r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Red] Red language group

nve
5-Mar-2011
[119x2]
Started a new blog : http://red-chronicle.blogspot.com/
And a Twitter : http://twitter.com/red_chronicle
Dockimbel
5-Mar-2011
[121]
Very nice. :-)
Dockimbel
9-Mar-2011
[122]
Red/System alpha 1 is now available: http://j.mp/gTnaX2
Andreas
9-Mar-2011
[123]
Seems REBOL/View is required:

>> do/args %rsc.r "%tests/hello.reds"
** Script Error: Feature not available in this REBOL
** Where: context
** Near: file-header: make struct! [
Cyphre
9-Mar-2011
[124]
Doc, works well here. Keep it up!
Dockimbel
9-Mar-2011
[125]
Cyphre: thanks! Need to fix the README to point to R/View...can't 
believe that struct! is not supported by Core...Damn limitations...
Andreas
9-Mar-2011
[126x2]
Pushed three small fixes to https://github.com/earl/Red
(/View, some typos, and creation of the builds/ directory if it does 
not exist)
Dockimbel
9-Mar-2011
[128]
Oh, did the same...now need to learn how to merge and resolve conflicts 
with Git :-)
Andreas
9-Mar-2011
[129x2]
By the way, you currently have two public branches in your repo, 
one called "origin" and one called "master". I would suggest making 
"master" the default branch and dropping "origin".
Nah, don't mind. I just drop the /View fix and forward-port the other 
two.
Dockimbel
9-Mar-2011
[131]
Yes, I did a bad move with my git client and created two branches 
instead of one. Looking in github for a "drop branch" button.
Andreas
9-Mar-2011
[132]
Ok, my repository is updated containing only the two still relevant 
patches.
Oldes
9-Mar-2011
[133]
wau... it works:)
Dockimbel
9-Mar-2011
[134x3]
:-)
Forgot to mention in the blog, but << and >> operators are not implemented 
yet. They are defined in the compiler but lacks the backend part 
in the code emitter. Anyway, you can achieve the same using * and 
/ with powers of 2, they'll generate shifts instead of math ops.
Added the missing builds/ folder to the repo.
Janko
9-Mar-2011
[137x2]
Congrats Doc :) .. I will be following this.
Since red/system is c-level and compiled you can't and don't plan 
to have runtime goodnes of rebol in it. But the code is still data, 
so do you think you could use compile time macros to keep the core 
simpler and solve many things with macros then (like lisps do)?
BrianH
9-Mar-2011
[139]
Are #define statements defining constants?
Andreas
9-Mar-2011
[140]
Brian: yes (afaict)
BrianH
9-Mar-2011
[141]
Will /Pro work, or is /View needed for something other than structs?
Dockimbel
9-Mar-2011
[142x3]
/Pro should be enough (just need struct! support AFAIR)
Janko: thanks! About compile-time macros: that's an option. You already 
have #define, but it's quite limited for now (no  multiline or parameters 
support).
I'm not sure adding macros at the "data" level (LOADed source) would 
be really needed. Once Red will be ready, you'll be able to compose 
Red/System dialect source code at Red level (with all the block! 
series power), as you do today in REBOL with VID, DRAW, or other 
dialects.
BrianH
9-Mar-2011
[145]
Can it output DLLs yet?
Dockimbel
9-Mar-2011
[146x2]
No, but it shouldn't be hard to add.
The linker needs to be extended to add an "export" section and the 
compiler needs to prepare some data to populate that section.
BrianH
9-Mar-2011
[148]
The R3 module system uses an export keyword for marking its exports. 
Perhaps Red/System can use the same keyword.
Dockimbel
9-Mar-2011
[149]
Sure, that part is the easy one...Having quick look at "export" section 
format, it seems to be as messed up as the "import" one. Would probably 
need several days to make it work reliably.
BrianH
9-Mar-2011
[150x2]
For that matter, will Red/System be getting a module system, or some 
other kind of packaging facility?
We won't want to be limited to one-file programs forever :)
Dockimbel
9-Mar-2011
[152x2]
I'll extend it to allow compiling several sources in a single executable, 
but I won't go past that. Red/System will live as a Red dialect, 
so will benefit from the whole Red environment. The only time it 
needs to work alone will be to produce the Red's runtime layer. But, 
as said in my blog, Red/System could be extended to a full-featured 
language if someone want to invest in it.
In fact, support for incremental compilation is almost done, just 
needs testing/debugging. With that, you could feed the compiler with 
several sources while preserving its internal states and ask to "finalize" 
the job on the last one (means link the project).
Gregg
9-Mar-2011
[154]
Works here Doc. Congratulations!
Dockimbel
9-Mar-2011
[155]
Thanks Gregg.
Rebolek
9-Mar-2011
[156]
Build hello.exe under OS X and works under Windows :)
Dockimbel
9-Mar-2011
[157]
Red/System is a cross-compiler. ;-)
Henrik
9-Mar-2011
[158]
Let me get this straight: Is this instead of using C?
BrianH
9-Mar-2011
[159]
Yup.
Henrik
9-Mar-2011
[160]
ok. that's all I need to know. :-)
Maxim
9-Mar-2011
[161]
great work doc!
Dockimbel
9-Mar-2011
[162x2]
Thanks.
Henrik: what an overwhelming enthusiasm! :-)
Henrik
9-Mar-2011
[164]
:-)
Kaj
9-Mar-2011
[165]
I went through the code and it's very impressive to me. Most people 
these days wouldn't think it would be possible
NickA
9-Mar-2011
[166]
Doc, do you have Paypal account for donations?
GrahamC
9-Mar-2011
[167x2]
he does .. see his cheyenne page for the address,
http://www.cheyenne-server.org/about.shtml