News for hackers. Stuff that matters.
Re:Oberon - The Oberlooked Jewel by guard-of-terra on Sunday April 22, 2012 @11:40AM (#3875076)
I'm happy that Pascal lost:

- Everything new that Pascal had (record file io, for example) were suboptimal. Everything useful in Pascal came from C (including loop controls).

- Useful things from C are bolted on Pascal in gross, inconsistent and ugly way. E.g. break; loop construct is a procedure! Lol, what?

Re:Oberon - The Oberlooked Jewel by pjmlp on Sunday April 22, 2012 @01:35PM (#3875453)
Pascal heritage is Algol not C.

Since Pascal lost, we gained buffer overflows exploits everywhere, thanks to a language that does not provide proper safer constructs coupled with bad developers everywhere.

Re:Oberon - The Oberlooked Jewel by guard-of-terra on Sunday April 22, 2012 @04:11PM (#3875922)
The problem is, you can't do any real work in Pascal without resorting to the same unsafe constructs. Delphi is a kind of useful Pascal and it totally does have those.
Re:Oberon - The Oberlooked Jewel by pjmlp on Monday April 23, 2012 @01:41AM (#3877432)
Yes you can.

Do you really need pointer arithmetic, null terminated strings and array downgrade to pointers for real work?

Because every other language in the planet is able to deliver real work without them. Even the ones that existed before C.

Re:Oberon - The Oberlooked Jewel by guard-of-terra on Monday April 23, 2012 @07:49AM (#3878304)
Okay, then where is the work done in Pascal? Research projects excluded.
Re:Oberon - The Oberlooked Jewel by pjmlp on Monday April 23, 2012 @11:10AM (#3879166)
Mac OS was created in Pascal originally, http://shop.oreilly.com/product/9780596007195.do

Skype was originally created in Delphi, before being ported to Qt.

http://www.prweb.com/releases/2011/5/prweb8476410.htm

Pixel32 is done with FreePascal http://www.kanzelsberger.com/ http://en.wikipedia.org/wiki/Pixel_Studio_Pro

Atmel AVR-Microcontrollers programmed in Pascal http://www.e-lab.de/index_en.html http://www.mikroe.com/eng/categories/view/2/compilers/

Should I keep posting examples?

Or for you is Pascal only the very first release of the standard, which was only planned for education purposes?

Re:Oberon - The Oberlooked Jewel by guard-of-terra on Monday April 23, 2012 @01:27PM (#3879931)
Was Mac OS so secure and crash-free because it was written in Pascal? I've heard otherwise.

Most of other examples are about a thin layer of Pascal on top of (unsafe and non kosher) C.

Re:Oberon - The Oberlooked Jewel by pjmlp on Monday April 23, 2012 @01:55PM (#3880072)
I said created, not maintained, if you read the book you will see later generations were later rewritten in C.

Of course you have to write on top of C, because that is what, sadly most operating systems are still written today.

But even that is slowly changing, when we look at the way operating system development is evolving, with safe layers on mini kernels, like Google is doing with Android or Microsoft with WP/WindowsRT/Singularity.

Anyway, I am stopping here, as won't convince you of anything and you won't convince me.

Re:Oberon - The Oberlooked Jewel by masklinn on Sunday April 22, 2012 @12:12PM (#3875189)
> loop construct is a procedure! Lol, what?

Common Lisp's loop is a macro, Smalltalk's are method calls (with blocks), work fine.

That's not the case in Pascal though. Neither `for` nor `while` are procedures, as in C they're special forms of the language.

Re:Oberon - The Oberlooked Jewel by guard-of-terra on Sunday April 22, 2012 @12:43PM (#3875299)
Macro is okay. Procedure is not okay. Break is a procedure.
Re:Oberon - The Oberlooked Jewel by masklinn on Sunday April 22, 2012 @03:12PM (#3875747)
> Macro is okay. Procedure is not okay. Break is a procedure.

Why do you believe this to matter? Smalltalk's signaling and exception handling (both `catch` and `finally` equivalent) uses regular messages and blocks (with hooks into the interpreter obviously). What value do you see in making special syntax things which need not be so, ease of "optimizations" (such as compiling a block to a jump)?

Re:Oberon - The Oberlooked Jewel by lucian1900 on Sunday April 22, 2012 @02:23PM (#3875594)
Why is it not okay? Any lisper will tell you using a function is always preferable to using a macro, if at all possible.
Re:Oberon - The Oberlooked Jewel by guard-of-terra on Sunday April 22, 2012 @04:10PM (#3875918)
C is a strict and beautiful. Pascal is "Here you have your ugly break; because you too weak to live without it".
Re:Oberon - The Oberlooked Jewel by pjmlp on Monday April 23, 2012 @01:46AM (#3877449)
Yes, I have a collection of works of art entitled "buffer exploit", placed next to the "dangling pointer" exhibition hall.

It is sooo beautiful.

Re:Oberon - The Oberlooked Jewel by masklinn on Monday April 23, 2012 @02:24AM (#3877549)
Don't you understand the sheer beauty of the undefined behavior? It is not the beauty of a great painting, it's the beauty of the winter mountain: shining, tantalizing, with the stability of a marble on a needle and ready to take your life at the lightest sneeze.
Re:Oberon - The Oberlooked Jewel by adestefan on Sunday April 22, 2012 @04:55PM (#3876062)
If you think C is strict, then you've never looked at the ANSI C standard.
Re:Oberon - The Oberlooked Jewel by guard-of-terra on Sunday April 22, 2012 @05:48PM (#3876205)
I've looked at Delphi, thank you.
Re:Oberon - The Oberlooked Jewel by zvrba on Monday April 23, 2012 @03:31AM (#3877730)
Pascal has had labeled goto from its conception. Break is just an extension / syntactic convenience. Even in C and C++ i still use goto when I have to break out of multilevel loops.