Re:Nimrod: A New Approach to Metaprogramming [video]
by rayiner on Thursday January 16, 2014 @02:09PM
(#7071759)
On a related note, the most principled approach to macros for an infix language I've yet seen is Honu (brought to you by the Racket people): http://www.cs.utah.edu/plt/publications/gpce12-rf.pdf.
[ Parent
| on HN ]
Re:Nimrod: A New Approach to Metaprogramming [video]
by pjmlp on Thursday January 16, 2014 @04:40PM
(#7072729)
I'll take the time to read the paper later.
Do you know how does it compares with Dylan's macros?
Re:Nimrod: A New Approach to Metaprogramming [video]
by rayiner on Thursday January 16, 2014 @04:56PM
(#7072813)
It's much more flexible. Dylan's macros are based on pattern matching substitutions. Honu allows for procedural macros.
Re:Nimrod: A New Approach to Metaprogramming [video]
by pjmlp on Thursday January 16, 2014 @05:09PM
(#7072865)
Thanks for the quick reply.
Re:Nimrod: A New Approach to Metaprogramming [video]
by breuleux on Thursday January 16, 2014 @06:50PM
(#7073305)
Funny you should say that, because I've been working on my own approach this month: https://github.com/breuleux/liso
I'm probably going to post about it soon in more detail, if people are interested.
Re:Nimrod: A New Approach to Metaprogramming [video]
by klibertp on Friday January 17, 2014 @02:17AM
(#7074692)
What is your use case? Very nice project, BTW.
Personally I didn't find myself wanting all of the Racket syntax to be transformed. but I certainly more than once wanted to have a form which would offer infix syntax for everything inside, like TCL's `expr` (IIRC). There's https://github.com/marcomaggi/Infix/blob/master/infix/infix.... but I don't know if it works with Racket. Having a `lang` for infix notation seems like a good alternative: everything that would benefit from it (mainly maths in my case) would be in a separate file anyway.
So you have at least one interested person now :)
Re:Nimrod: A New Approach to Metaprogramming [video]
by mortyseinfeld on Thursday January 16, 2014 @09:10PM
(#7073876)
Wish it were a Intellij plugin and for Clojure instead of Racket. I'd buy it.
Re:Nimrod: A New Approach to Metaprogramming [video]
by jessaustin on Friday January 17, 2014 @08:27PM
(#7079616)
Interesting, but I'm troubled that they got the first function (on the first page) wrong. (You can leave out the discriminant when it's zero, but not otherwise.)