Re:Graal and Truffle could accelerate programming language d...
by qwertyuiop924 on Tuesday July 19, 2016 @04:33PM
(#12124678)
Well, for regular macros, only if your C syntax was in a string. Otherwise, lisp would try to tokenize it, and choke. Heck, if your lisp of choice offers an eqivalent of TCL's uplevel, you wouldn't even need a macro, just a function.
[ Parent
| on HN ]
Re:Graal and Truffle could accelerate programming language d...
by dragonwriter on Tuesday July 19, 2016 @04:39PM
(#12124713)
> Well, for regular macros, only if your C syntax was in a string. Otherwise, lisp would try to tokenize it, and choke.
Which is why I said normal (rather than reader) macros could do a "basically C-like syntax" but with Lisp tokenization rules.
Re:Graal and Truffle could accelerate programming language d...
by qwertyuiop924 on Tuesday July 19, 2016 @04:42PM
(#12124740)
What would that look like?
Re:Graal and Truffle could accelerate programming language d...
by TJSomething on Wednesday July 20, 2016 @01:37AM
(#12127104)
((:include "stdio.h")
(const char * message = "Like this.\n")
(int main ((int argc) (char * * argv))
(printf message)
(return 0)))
Re:Graal and Truffle could accelerate programming language d...
by qwertyuiop924 on Wednesday July 20, 2016 @06:21AM
(#12127947)
Ah.