4 ms·
Nimrod Programming Language
- ulf 17y agoIn that code sample the variable "matches" seems to be magically set by the =~ assignment. That would not be very clean. Or am I missing something?
- pshc 17y agohttp://force7.de/nimrod/regexprs.html http://force7.de/nimrod/regexprs.html You're correct. It seems to work using a template, which is a simple macro. I wonder if those are hygienic... In any case, it seems you could use the macro facility to instead have explicit bindings for match groups.
- zeeone 17y agoIt looks very much like Pascal to me.
- berntb 17y agoI'd say it tastes like chicken. :-) Seems like {perl|ruby|etc}-light. I don't get it. The scripting languaguages in common use are quite similar; what distinguishes Nimrod?
- dpapathanasiou 17y agoMacros: http://force7.de/nimrod/manual.html#macros http://force7.de/nimrod/manual.html#macros
- berntb 17y agoOK, that is Lispy (or Perl 6y). I do count Scheme as a scripting language today. Perl 5 has had source filters for a long time. It isn't unique, afaik. Still neat, I guess.
- RiderOfGiraffes 17y agoIt's compiled and statically typed, amongst other things. Did you not bother to read it?
- berntb 17y agoLots of lisp and Basic variants are compiled and typed. Still tastes like chicken. But if it is really fast, then I'd say it is like some spicy indian chicken and consider using it -- if there also is an interpreted version.
- nixme 17y agoWe get it. Now stop overusing this chicken metaphor.
- lucraft 17y agoThe compiler is written in Pascal.
- halo 17y agoI think it takes bits and pieces from various languages. Python's influence is obvious: iterators, whitespace, and default values for arguments. Pascal's main influence seems to be type declarations and the way things are named. C-esque enumerations, strings ending in null and pointers. It does have lists/sequences, sets and tuples, but associative arrays/dictionaries seem like a major oversight.
- joshsharp 17y agoIt looks a lot like python to me, but with native compilation and function overloading. Which is a good thing. I'll keep an eye on it...
- cnlwsu 17y agoI was curious about "Nimrod produces small executables without dependencies for easy redistribution." does this mean that it packages any third party libs in the executable? wouldnt there be licensing issues?
- ajuc 17y agoAre functions first class objects in Nimrod, because I couldn't find function type in manual(pointers to function isn't what I mean :)).
- CodeJustin 17y agoThis seems pretty nice, I might start learning this actually.