Nimrod: A new approach to metaprogramming
nimrod-lang.org
Nimrod: A new approach to metaprogramming
1–10 of 58 posts
Re: Nimrod: A new approach to metaprogramming
#2Re: Nimrod: A new approach to metaprogramming
#3Re: Nimrod: A new approach to metaprogramming
#4Re: Nimrod: A new approach to metaprogramming
#5Re: Nimrod: A new approach to metaprogramming
#6Looks like a cross-platform language thats an even more acceptable lisp than ruby (hello macros!), with multiple build-language targets including C/javascript/C++ and a fast garbage collector? Like Go, but even cooler?
Re: Nimrod: A new approach to metaprogramming
#7Cool project. How does it accomplish the realtime GC max pauses of 1-2 ms after compiling to javascript? Wouldn't the js implementation's GC have the final say on GC pauses? Thanks.
Re: Nimrod: A new approach to metaprogramming
#8- clean Pythonic syntax (whitespace relevant but tabs are forbidden)
- native Perl syntax for regular expressions (slide 42)
- subrange types as in Ada
- set types as in Pascal
- strings as case (switch) selectors
- easy C interface with automatic type conversion (only functions as parameters need additional compiler pragmas)
- typed macros (templates)
- object code: native, C, Javascript (probably more to come)
I am working with Nimrod right now, and it is really one of the most productive languages that I ever encountered. It seems to mix the best features of other popular languages. Nimrod actually is where Python should be. I wonder if it is suitable for small embedded systems also.
By the way, one important difference to Perl regular expressions is that re"..." always parses the whole expression where Perl parses partially. Fortunately Perl's behavior can easily be simulated with a template.
Re: Nimrod: A new approach to metaprogramming
#9Some very interesting features of Nimrod which I would like to emphasize: - clean Pythonic syntax (whitespace relevant but tabs are forbidden) - native Perl syntax for regular expressions (slide 42) - subrange types as in Ada - set types as in Pascal - strings as case (switch) selectors - easy C interface with automatic type conversion (only functions as parameters need additional compiler pragmas) - typed macros (te…
A simple word counting script I just wrote compiles down to about 52k on 64bit OS X.
Re: Nimrod: A new approach to metaprogramming
#10Cool project. How does it accomplish the realtime GC max pauses of 1-2 ms after compiling to javascript? Wouldn't the js implementation's GC have the final say on GC pauses? Thanks.