News for hackers. Stuff that matters.
Re:Nimrod: The Return of Pascal by vidarh on Monday October 21, 2013 @06:28AM (#6584536)
"Pascal" in this context seems to be "static typing with bounds checking" along with a handful of superficial syntactic similarities (but far more differences). You could substitute "Pascal" with a substantial subset of Algol-like languages and the comparison would make just as much (or little) sense.
Re:Nimrod: The Return of Pascal by drdaeman on Monday October 21, 2013 @09:51AM (#6585486)
As about bounds checking, unfortunately, there aren't many languages with dependent typing. (And Nimrod lacks them too.)

I mean, it's frustrating when a program suddenly fails at runtime. Especially when it can be proved at compile time that values won't (actually, can't) get out of bounds.

Re:Nimrod: The Return of Pascal by RobAley on Monday October 21, 2013 @05:34AM (#6584382)
Lazarus and Free Pascal have been around for an age, likewise Delphi for even longer. And they're all still here. Pascal adoption may have slowed, but it has always been here and no "return" is necessary.

Nice project though.

Re:Nimrod: The Return of Pascal by eli on Monday October 21, 2013 @09:55AM (#6585519)
Wow, I knew about Lazarus but I didn't realize there were still new versions of Delphi coming out. Anyone used it recently?

Delphi got me my first paying programming jobs. I remember when later versions came bundled with Delphi 1.0 so you could still build 16-bit applications with it :)

Re:Nimrod: The Return of Pascal by JasonFruit on Monday October 21, 2013 @10:21AM (#6585692)
Recent releases of Delphi have been troubled and a bit directionless; it seems like Embarcadero, the current owners, are understaffed or incapable, and they seem scattered and unable to make consistent strategic decisions.
Re:Nimrod: The Return of Pascal by eli on Monday October 21, 2013 @12:06PM (#6586403)
Bummer, but not too surprising. I was puzzled by some of the decisions they made back in the Inprise years.
Re:Nimrod: The Return of Pascal by dodyg on Monday October 21, 2013 @12:10PM (#6586432)
Aren't they targeting native Android, IoS, Mac and Windows now?
Re:Nimrod: The Return of Pascal by mirkoadari on Monday October 21, 2013 @02:32PM (#6587331)
Delphi is pretty neat for rapid user interface development. If I'm not mistaken then Skype Windows client is based on Delphi.
Re:Nimrod: The Return of Pascal by telephonetemp on Monday October 21, 2013 @03:44PM (#6587745)
How fast are they compared to Delphi? Fast compiling was definitely one of Delphi's main selling points back in the day.
Re:Nimrod: The Return of Pascal by networked on Monday October 21, 2013 @06:24AM (#6584529)
Previous discussion of this post: https://news.ycombinator.com/item?id=6316536.

A longer thread about Nimrod: http://news.ycombinator.com/item?id=6272600.

Re:Nimrod: The Return of Pascal by roadster72 on Monday October 21, 2013 @06:05AM (#6584471)
Not sure if this will really help improve the adoption rates for Pascal.
Re:Nimrod: The Return of Pascal by michaelfeathers on Monday October 21, 2013 @09:38AM (#6585384)
In a world with maps and folds do new languages really need for-loops? They seem like putting goto into a language as a fallback for uncommon performance cases and people who don't have the hang of higher order functions.

In particular, I don't like the fact the for-loops are often used in first examples. I had that issue when I looked at tutorials for D and Go for the first time. My initial reaction was "Seriously?"

Re:Nimrod: The Return of Pascal by thinkpad20 on Monday October 21, 2013 @04:26PM (#6587965)
Loops have their place: in imperative languages, they allow you to very naturally express a series of instructions, which are of course what imperative languages are meant to express in the first place. By the same token, loops aren't really of much use in functional languages, if they're supported at all, unless the language also supports destructive update (and therefore has imperative features). One can debate the merits of imperative vs. functional programming, but there's no reason to avoid for-loops as a natural expression within the imperative paradigm.

One thing I like about python loops, which CoffeeScript and Ruby, and apparently Nimrod, have adopted as well, is that they make you iterate over a data structure, rather than the C-style of providing start, finish, and step. Iterating over a data structure provides a better guarantee that the loop will terminate without errors (whereas, in Java for example, you could fall off the end of a linked list or an array if you're not careful about your ending test or update step). This ends up being conceptually similar to a map, which is how Ruby's each method works anyway.

Re:Nimrod: The Return of Pascal by mercurial on Tuesday October 22, 2013 @11:12AM (#6592409)
In Java, you can iterate over a collection or an array without fiddling with indexes, eg:

    for (Foo foo : foos) {
        ...
    }
Re:Nimrod: The Return of Pascal by saejox on Monday October 21, 2013 @10:01AM (#6585555)
An imperative language that aims to replace C/C++ ? Why would functional programming examples belong to front page.
Re:Nimrod: The Return of Pascal by mercurial on Monday October 21, 2013 @01:59PM (#6587154)
I don't know about D, but I don't think Go has map and other functional combinators, due to lack of generics. Besides, the world has had map and fold for a long time now, and this has not prevented for loops and iterators.