• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

Pekr
26-Jul-2012
[779]
btw - what is the 0.3.0 branch? I forgot what it was about?
Rebolek
26-Jul-2012
[780]
I can still reproduce #223 with slightly modified code - see comment.
Pekr
26-Jul-2012
[781]
Where's the bugbase, please?
Kaj
26-Jul-2012
[782]
https://github.com/dockimbel/Red/issues?sort=created&direction=desc&state=open
Reichart
26-Jul-2012
[783]
I know nothing about RED, so, would anyoe be so kind to tell me in 
a nut shell where it stands?
Pekr
26-Jul-2012
[784x2]
Reichart - I suggest general About page, there is nice presentation 
Doc did for Reborcon - http://www.red-lang.org/p/about.html
But in short - Red is going to be compiled language, and it will 
probably get some kind of JIT too, to allow interactive stuff like 
console. Red language compiles down to Red/System, which is kind 
of VM for it. In fact, it is REBOL-like low level wrapper to C, allowing 
some bindings. Red/System apps recently run even on ARM, eg I am 
able to run it on my HTC Sensation. But that's raw ARM Linux, no 
Android API linking yet ....
Reichart
26-Jul-2012
[786]
Very cool.

So, is there a guess when it will "run" most of the scripts in the 
REBOL public library?
Pekr
26-Jul-2012
[787]
Doc wants to keep certain level of compatibility, but due to Red 
nature, full compatibility will not be possible imo. Red currently 
does not exist yet, Doc worked on some other stuff for 4 months or 
so. I don't know, how long it can take to have Red layer in alpha 
version finished, hopefully this year ....
Reichart
26-Jul-2012
[788]
Very cool, thank you for info.
Henrik
26-Jul-2012
[789]
Yeah, Red seems to have the greatest momentum right now. It will 
be very interesting in a few months, hopefully.
Reichart
26-Jul-2012
[790]
I'm ALL for it!
Arnold
26-Jul-2012
[791]
No VID support at this moment, but there is growing interest in it.
Rebolek
26-Jul-2012
[792]
Red/System is not VM or wrapper to C, it has compiler that creates 
executable files.
DocKimbel
26-Jul-2012
[793x2]
Reichart: thanks for your enthusiasm! :-)
@Rebolek: fixed #223 again, I hope that this time the fix will hold. 
;-)
Rebolek
27-Jul-2012
[795x2]
Thanks, I hope so too :) I will test it and see.
Doc, you won't like my report :) I used 7 as loop count in my last 
example because it was smallest number to trigger the bug. This now 
works, but increasing the counter to at least 8 (I used 10, as it's 
length of allocated array) will trigger the bug again. See comment 
in #223 for example.
DocKimbel
27-Jul-2012
[797x2]
:-)
I found the cause of this new FPU stack leaking (x87 stack has 7 
slots) and fixed it (it was a regression).
Rebolek
27-Jul-2012
[799]
Wonderful! My test now runs without a problem. Time to try something 
more complicated :)
DocKimbel
27-Jul-2012
[800]
Pekr: "btw - what is the 0.3.0 branch? I forgot what it was about?"


Initially, it was for completing the Red runtime but, as it was not 
possible for me to achieve that without implementing the Red compiler 
itself (even in an alpha state), it's now dedicated to Red compiler 
first alpha. So I guess that v0.4.0 will mark the completion of Red 
compiler (in the bootstrapped form).
Henrik
27-Jul-2012
[801]
Does this mean that Red will from 0.3.0 lose it's dependency of REBOL/Core?
DocKimbel
27-Jul-2012
[802]
Nope, it still relies on REBOL/Core for the compiler until we rebuilt 
it in Red itself.
Henrik
27-Jul-2012
[803]
ok
PeterWood
27-Jul-2012
[804x2]
Rebolek: "Thanks, I hope so too :) I will test it and see." - it 
would be really helpful if you could use qutick-test.reds to wriite 
your tests. We could then add them to the Red/System test suite which 
would allow Nenad to discover regressions before he relaeses fixes.
qutick-test.reds -> quick-test.reds
Rebolek
27-Jul-2012
[806x2]
My tests are bit random, they test just what I need but I will add 
them, it's probably better than nothing.
Also I've run into some weird problems with float32!. I try to separate 
the code and write some simple examples.
Kaj
27-Jul-2012
[808]
That's fine, regression tests are supposed to be for very specific 
situations that occurred
Gerard
27-Jul-2012
[809]
Hi Doc and everybody, since I'm studying the opportunity to create 
myself - in a loooong future - a test  version of Red/system running 
over the JVM - I asked myself, after reading some doc titled "Create 
ypour own programming language" by Marc-Andre Cournoyer, if in any 
case Doc had thought about this way of doing things for his future 
implementation of Red (not Red/system), as described by this excerpt 
from the doc itself under the section :  PROTOTYPE-BASED

Except for Javascript, no Prototype-based languages have reached 
widespread

popularity yet. This model is the easiest one to implement and also 
the most
flexible because everything is a clone of an object.

Ian Piumarta describes how to design an Open, Extensible Object Model 
that
allows the language’s users to modify its behavior at runtime.

Look at the appendix at the end of this book for a sample prototype-based

language: Appendix: Mio, a minimalist homoiconic language. For a 
follow-up about these concerns here is the URL related to the Extensible 
Object Model upon which the author has based his own Mio language, 
itself inspired by the IO language  -  http://piumarta.com/software/cola/objmodel2.pdf
DocKimbel
28-Jul-2012
[810]
Prototype-based: certainly, that's the REBOL way, so that will be 
the Red way too.
Rebolek
28-Jul-2012
[811]
I've put some (I think) useful functions to https://github.com/rebolek/user.reds

There are things like int-to-float and float-to-int conversion and 
some string support functions.
DocKimbel
28-Jul-2012
[812]
Thanks Rebolek! I like the ** power function. :-)
Rebolek
28-Jul-2012
[813]
It's unfortunately integer! only, I need float! version, so maybe 
for next release I find something :) i'm most happy with float-to-int 
and int-to-float, I was really missing it from Red/System.
DocKimbel
28-Jul-2012
[814]
I was planning to add them as intrinsic ASM functions in the backends, 
but in the meantime, your implementation will certainly be useful.
Gerard
29-Jul-2012
[815]
Hi Doc, I didn't express correctly in my last post and you missed 
the point - I already know that Red will be prototype-based but the 
question is : will the object model implementation you'll use be 
flexible enough to permit you and/or the end-user  to easily extend 
  Red with other  new types, or change primitive functionality and 
semantics at some later time. The author of this article has done 
some studies and experiments about this fact and within his 16 pages, 
he explains how it could circumvent these possible limitations without 
sacrificing efficiency - even if I'm not advanced enough to take 
his word as truth per se. I thought it would be useful to you to 
see such writing before you committed to much material, based on 
your current architecture and internal implementation details - about 
which I don't know anything, I must confess. Sorry if this is more 
of an annoyance than a useful tip but I thought it could be useful 
as a reading to anyone interested in implementing some programming 
language - be it not fully Red related.
Rebolek
30-Jul-2012
[816]
Thanks for fixing #224, I''ve added #225 (good old 11 float stack 
check :-)
Kaj
30-Jul-2012
[817x2]
Sometimes progress doesn't feel like progress :-S
There's another reason: look in the tracker
Rebolek
30-Jul-2012
[819]
Kaj, you're right, but even if I fix the examples, both errors are 
still present.
Kaj
30-Jul-2012
[820]
OK, that would be bugs, then
Rebolek
31-Jul-2012
[821]
Doc, thank you for your swift response to my bug reports. There's 
clearly visible daily progress in Red/System and it's getting more 
and more usable every day. Red/System clearly shows advantages of 
open sourced language compared to closed source ones. I'm really 
happy with it and I look forward to next versions of Red/System.
Pekr
31-Jul-2012
[822]
I look forward to the first version of Red :-)
Rebolek
31-Jul-2012
[823]
BTW, yesterday I've encountered a strange bug that's very hard to 
separate. The bug is that EITHER will always execute FALSE block, 
even if the condition is TRUE (EITHER is in function and the function 
is in WHILE loop, but that's not enough to trigger the bug). When 
I try to separate the problem the bug is gone. When I leave the function 
as is and just remove all unrelated stuff, the bug is also gone. 
It happens only when I compile my whole project. When I have more 
time, I will once again try to separate the problem and when unsuccesful, 
I will post the project as is for you to check it.
DocKimbel
31-Jul-2012
[824x2]
Thanks Rebolek! You can send me the whole project source code if 
you want, it might be hard to pinpoint the cause of such kind of 
heisenbug without looking at the disassembled code.
Pekr: I'm working on it. :-)
Pekr
31-Jul-2012
[826]
OK, as you are back on track with Red development, another donation 
sent ....
DocKimbel
31-Jul-2012
[827x2]
Thanks Peter! :-)
Petr* (I was just writing to Peter WA Wood).