World: r4wp
[#Red] Red language group
older newer | first last |
PeterWood 4-Nov-2012 [3289] | james_nak: When you run the Red tests, their output is logged to Red/quick-test/quick-test.log. Would you mind taking a look to see if any error message was logged. |
Kaj 4-Nov-2012 [3290] | I haven't seen any regressions yet in building the bindings with the new CONTEXT implementation |
DocKimbel 4-Nov-2012 [3291] | Good! Thanks for reporting it. |
Kaj 4-Nov-2012 [3292] | Oddly, the Windows (and MSDOS) builds are changed, but I can't see where that's coming from |
DocKimbel 4-Nov-2012 [3293] | Changed how? Size or content? |
Kaj 4-Nov-2012 [3294] | Content, I suppose. Probably not size, as Windows works with pages. I checked them in, so they can be retested |
Jerry 5-Nov-2012 [3295] | I am studying Red/System. For me, it's good enough, so I am curious: What can C do and Res/System cannot do? |
DocKimbel 5-Nov-2012 [3296x3] | From top of my head: C has unions and can pass struct by value. Both those concerns should be addressed in future Red/System versions. |
s/concerns/features | |
Another missing feature in Red/System that C has: 64-bit integers. | |
Jerry 5-Nov-2012 [3299] | Yeah, I thought about the lack of union. |
PeterWood 5-Nov-2012 [3300] | You can address bits in C but not the current version of Red/System |
DocKimbel 5-Nov-2012 [3301] | Right, no bitfields in Red/System (yet). |
Kaj 5-Nov-2012 [3302x2] | Stack allocation of local structs |
16 bit integers | |
MagnussonC 5-Nov-2012 [3304] | If I use a foreach on a c-string, how can I tell when I am at the last character? tail? stringname doesn't seem to work. Maybe I need to use length to keep track of where I am!? |
PeterWood 5-Nov-2012 [3305] | As I understand, there is no foreach in the current version of Red/System and no c-strings in the current version of Red. The best loop to use in Red/System is until: str: "1234567" until [ print str/1 str: str + 1 str/1 = null-byte ] Will print the characters in a c-string ( as would print str). |
MagnussonC 5-Nov-2012 [3306x2] | Hmm, OK, I was using Red so probably it is a string! , but there seems to be a foreach. |
Thanks for the suggestion about until. Will try it. | |
DocKimbel 5-Nov-2012 [3308x2] | MagnussonC, you're mixing Red and Red/System. The above suggestion from Peter is for Red/System, not Red. What you are looking for in Red is FORALL or REPEAT iterators. |
Though, you can also use UNTIL in Red, but string! is not c-string!, the + 1 part and final test are not valid in Red. | |
MagnussonC 5-Nov-2012 [3310] | I realize I mixed string and c-string, but it was possible to use foreach on the string. The problem was to find the find the last char. |
DocKimbel 5-Nov-2012 [3311] | In such case, you should not use FOREACH, but an alternative. FOREACH doesn't handle a series offset, so you can't test for a position in the series. |
MagnussonC 5-Nov-2012 [3312] | Thnx :) |
GiuseppeC 5-Nov-2012 [3313] | Doc, now that REBOL is Open Source, I ask which are the differencies between REBOL3 and RED to create a different language ? Can't you propose your view and have it merged into REBOL3 ? |
DocKimbel 5-Nov-2012 [3314] | Giuseppe: no, R3 is an interpreter based on C, Red is a compiler based on Red/System. I hardly can see how they could be "merged". |
GiuseppeC 5-Nov-2012 [3315] | Doc, I am talking about the semantinc differences. Are those languages so different ? |
DocKimbel 5-Nov-2012 [3316x2] | Semantically, no, very close. |
But there are some things that we might do differently, like concurrency handling. | |
GiuseppeC 5-Nov-2012 [3318x6] | Before I continue, I just want to say I don't want to convince you but let you think. |
You will be involved in a 2 year commitment to make something that it will be quite close to another product with very few differencies. | |
RED/System is a "different" low level language. It is nice. | |
I see a great future for it. | |
RED is only a REBOL clone. | |
With few differences in the semantic. | |
BrianH 5-Nov-2012 [3324] | Keep in mind that R3's concurrency model isn't really set yet. That is an area where you can make a lot of impact. |
DocKimbel 5-Nov-2012 [3325] | Agreed, but implementation is totally different. |
GiuseppeC 5-Nov-2012 [3326x8] | I would like to see RED/System mature. |
REBOL3 Improved with your contribution. | |
And when RED/System will be ready for prime time... the community could extend and port all/parts of REBOL3 to RED/system. | |
Doc, lets suppose I am a customer: | |
I need a veicle with 4 wheels and and engine. | |
You can make it however you want but I need 4 wheel and and engine. | |
If the result is the same why care abut the building process ? | |
-- END OF MY ARGUMENTATION -- | |
Pekr 5-Nov-2012 [3334] | Giuseppe - in few months, Red will gain 80% of Core functionality, and even surpass it in some areas. Just let it live ... |
Arnold 5-Nov-2012 [3335] | my vote is already a 100% for Red :) |
Jerry 5-Nov-2012 [3336] | I would like DocKimbel to stick with his own idea, not to be affected by the Open-source of R3. |
BrianH 5-Nov-2012 [3337] | but implementation is totally different - That's what I meant by "isn't really set yet". They will likely be different because of the different language semantic models, but they might be more alike than you think once both are set. |
GiuseppeC 5-Nov-2012 [3338] | Yes but I will have 4 wheel and an engine. The same of REBOL3. It is the result which counts. |
older newer | first last |