News for hackers. Stuff that matters.
Re:Nimrod Programming Language by ulf on Wednesday May 13, 2009 @10:18AM (#606915)
In 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?
Re:Nimrod Programming Language by pshc on Wednesday May 13, 2009 @10:39AM (#606948)
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.

Re:Nimrod Programming Language by zeeone on Wednesday May 13, 2009 @12:16PM (#607092)
It looks very much like Pascal to me.
Re:Nimrod Programming Language by halo on Wednesday May 13, 2009 @06:50PM (#607858)
I 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.

Re:Nimrod Programming Language by joshsharp on Wednesday May 13, 2009 @10:40PM (#608130)
It 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...
Re:Nimrod Programming Language by lucraft on Wednesday May 13, 2009 @02:29PM (#607368)
The compiler is written in Pascal.
Re:Nimrod Programming Language by berntb on Wednesday May 13, 2009 @01:19PM (#607213)
I'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?

Re:Nimrod Programming Language by dpapathanasiou on Wednesday May 13, 2009 @01:22PM (#607218)
Re:Nimrod Programming Language by berntb on Wednesday May 13, 2009 @01:40PM (#607250)
OK, 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.

Re:Nimrod Programming Language by RiderOfGiraffes on Wednesday May 13, 2009 @01:59PM (#607297)
It's compiled and statically typed, amongst other things.

Did you not bother to read it?

Re:Nimrod Programming Language by berntb on Wednesday May 13, 2009 @04:46PM (#607606)
Lots 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.

Re:Nimrod Programming Language by nixme on Wednesday May 13, 2009 @04:52PM (#607618)
We get it. Now stop overusing this chicken metaphor.
Re:Nimrod Programming Language by cnlwsu on Thursday May 14, 2009 @08:21AM (#608601)
I 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?
Re:Nimrod Programming Language by ajuc on Thursday May 14, 2009 @12:58PM (#609143)
Are functions first class objects in Nimrod, because I couldn't find function type in manual(pointers to function isn't what I mean :)).
Re:Nimrod Programming Language by CodeJustin on Friday May 15, 2009 @04:40PM (#611314)
This seems pretty nice, I might start learning this actually.