Re:Red programming language 0.6.2: LibRed and Macros
by greggirwin on Monday March 27, 2017 @09:34PM
(#13973277)
Per Nick's comment, above, Red likely won't generate C, because that would add a dependency on a C toolchain. Red is completely self-contained, and would like to stay that way. However, you could write those tight bits in C and put them in a DLL or something, to call from Red.
[ Parent
| on HN ]
Re:Red programming language 0.6.2: LibRed and Macros
by throwaway7645 on Tuesday March 28, 2017 @06:48AM
(#13975500)
Also very nice. If I added a C dependency like GSL as a DDL, Red could compile a binary using it?
Re:Red programming language 0.6.2: LibRed and Macros
by greggirwin on Tuesday March 28, 2017 @12:16PM
(#13977882)
It has an FFI, but no static linking to C libs at this time. Not sure if that will come, but technically it's possible, as Red's linker is written in Red/System. I'm a huge fan of Pieter Hintjens' work, and have written lots of code generators and FSM stuff, inspired by GSL and Libero.