Re:Nimrod: The Return of Pascal
by mojuba on Monday September 02, 2013 @06:14PM
(#6317481)
Simple and great idea that's been in my mind for at least a decade now (seriously): just give us Pascal sets and ranges with Python-like super-minimalist syntax and all the other sugar and fructose of modern languages. And, if you can, some sort of unification of functions and classes, JavaScript-style.
Nimrod is quite close, though probably not exactly there (yet).
Anyway, there are two kinds of programmers: those who build compilers and those who start writing ones but never finish.
Re:Nimrod: The Return of Pascal
by saejox on Monday September 02, 2013 @06:38PM
(#6317591)
Possibly the best compile to C language. Easy to setup, fast, feature rich, works nice with C and best part: configurable GC.
One thing i don't like tho: Case insensitivity.
I write many in many languages, all but Nimrod are case sensitive. Lot's of 'already defined' errors.
There is nice discussion about it here: https://github.com/Araq/Nimrod/issues/521
Re:Nimrod: The Return of Pascal
by jk4930 on Monday September 02, 2013 @07:11PM
(#6317729)
Ada (Pascal-inspired) was designed to be a language that's safe against (mediocre) programmers. And it's case-insensitive. Note that Ada is especially made for reliable systems and they really look for error sources. Case sensitivity didn't show up as a problem, so they didn't have to change it in any later version (Ada 2012 now).
Re:Nimrod: The Return of Pascal
by cafard on Tuesday September 03, 2013 @09:07AM
(#6320658)
I'm not sure that Thompson and Ritchie really did the world a favor with case-sensitive identifiers. I write a fair bit of PL/SQL, and don't mind the narrower range.
Re:Nimrod: The Return of Pascal
by hcarvalhoalves on Monday September 02, 2013 @11:37PM
(#6318660)
Pascal was (is?) a great language, never had trouble hacking and figuring out Pascal/Delphi code, even code clearly written by below-average programmers. I don't think many languages pass this litmus test.
Also interesting is looking at old Pascal code and seeing how it stood the test of time. I had a lot of fun reading the Photoshop v1 source [1]
Re:Nimrod: The Return of Pascal
by nnq on Tuesday September 03, 2013 @01:58AM
(#6319257)
How come nobody comments about this feature of Nimrod:
> a powerful (AST based, hygienic) macro system
...and I can't find any easy to digest example of it? I know, macros are "evil" and shouldn't be overused and this is not Lisp and all, but it actually seems like a potential killer feature for a language targeting the C/Rust/Go niche.
Re:Nimrod: The Return of Pascal
by stewbrew on Tuesday September 03, 2013 @03:49AM
(#6319608)
Looks like a nice language. The warning of "Caution: This section is already outdated! XXX" in the language manual makes me wonder though whether it's ready to use.
Nimrod is quite close, though probably not exactly there (yet).
Anyway, there are two kinds of programmers: those who build compilers and those who start writing ones but never finish.
One thing i don't like tho: Case insensitivity. I write many in many languages, all but Nimrod are case sensitive. Lot's of 'already defined' errors. There is nice discussion about it here: https://github.com/Araq/Nimrod/issues/521
> Lot's of 'already defined' errors.
That's false, or at least an exaggeration.
Also interesting is looking at old Pascal code and seeing how it stood the test of time. I had a lot of fun reading the Photoshop v1 source [1]
[1] http://computerhistory.org/atchm/adobe-photoshop-source-code...
> a powerful (AST based, hygienic) macro system
...and I can't find any easy to digest example of it? I know, macros are "evil" and shouldn't be overused and this is not Lisp and all, but it actually seems like a potential killer feature for a language targeting the C/Rust/Go niche.
http://nimrod-code.org/tut2.html#macros
http://nimrod-code.org/manual.html#macros
Note that Nimrod also has templates, which also uses AST-based macro expansion.
Maybe it's a bird, maybe it's a plane, maybe it's Superman.
Does Nimrod support Unicode?