Arc Forumnew | comments | leaders | submitlogin
Lightweight Modular Staging: transform programs into fast code-generators (
3 points by akkartik 1371 days ago | 3 comments

4 points by akkartik 1371 days ago | link

The key idea: turn strings to code inside quasiquote, and turn code to strings inside unquote.


3 points by Oscar-Belletti 1370 days ago | link

So now Scala has got macros?

Are they comparable to lisp ones? What do you think?


3 points by akkartik 1370 days ago | link

Looks like Scala has some experimental macro feature: I imagine people will be about as likely to use it as they've been to use previous non-lisp macros (i.e. not very likely).

OP isn't about macros because the output of the function isn't automatically evaluated. It's a step in the direction of allowing any programmer to perform compiler transformations and optimizations on his/her own code. I'm very interested in that area.