News for hackers. Stuff that matters.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by yjftsjthsd-h on Tuesday January 24, 2023 @08:05PM (#34512953)
Eh, that's fine, nobody writes OSs in standard C without compiler extensions either.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by Rochus on Tuesday January 24, 2023 @08:13PM (#34513023)
There are a couple of operating systems which indeed use standard C; Linux is rather an exception in this respect.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by yjftsjthsd-h on Tuesday January 24, 2023 @08:56PM (#34513396)
What OSs would those be? AFAIK none of the major ones - NT, Linux, illumos, or the BSDs are in standard C.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by kevin_thibedeau on Wednesday January 25, 2023 @04:20AM (#34516215)
All of the embedded OSs. They need to support a mixture of commercial C compilers that don't support GNU extensions.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by pjmlp on Wednesday January 25, 2023 @04:57AM (#34516499)
Since when is inline assembly and a couple of language extensions they have part of ISO C?
Re:Oberon-2, a hi-performance alternative to C++ (1997) by Rochus on Wednesday January 25, 2023 @05:40AM (#34516748)
There is no need for inline assembly. Modules written in assembler can be separate from C.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by pjmlp on Wednesday January 25, 2023 @05:44AM (#34516773)
When I look at those embedded OSes, I see more than just what ISO C89 allows for, beyond //.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by Rochus on Wednesday January 25, 2023 @06:31AM (#34517070)
My argument is extended ad absurdum in this thread anyway. My point was that Lisa Pascal has made several significant language extensions compared to original Pascal, such as a module system, pointer handling like in C, compiler directives, etc. - all things Wirth himself later added to Modula-2; these were intended, significant and documented extensions under the name "Lisa Pascal", not just the usual errors, inaccuracies and "common deviations" that you find in every C compiler, and that force you to secure libraries with #ifdefs.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by pjmlp on Wednesday January 25, 2023 @08:13AM (#34517841)
Many of those things were already present in ISO Extended Pascal and UCSD Pascal.

> not just the usual errors, inaccuracies and "common deviations" that you find in every C compiler, and that force you to secure libraries with #ifdefs.

And extension keywords for microcontrollers specific features, intrisics for CPU instructions, DSP specific capabilities,....

Yeah I am already used that what goes for Pascal gets another weigth when placed against C.

Re:Oberon-2, a hi-performance alternative to C++ (1997) by Rochus on Wednesday January 25, 2023 @08:56AM (#34518246)
Apple II and III Pascal (and in consequence Lisa Pascal, but there was e.g. not UNIT or USES syntax in USCD) were indeed based on USCD Pascal, but ISO 10206 was a decade later as far as I remember.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by pjmlp on Wednesday January 25, 2023 @09:30AM (#34518633)
There were other Pascals around with system programing extensions, quite a few were eventually standardized in ISO 10206 (1991).

http://pascal.hansotten.com/

And while the discussions keep going around Pascal and its extensions, there is this little detail of Modula-2 being released in 1978, where all the issues with Pascal (as originally designed by Wirth) for systems programming were already fixed.

Re:Oberon-2, a hi-performance alternative to C++ (1997) by Rochus on Wednesday January 25, 2023 @10:07AM (#34519107)
Yes, the first ETH Report about Modula-2 appeared in 1978, around the time Lisa Pascal was developed; the latter refers to the Jensen/Wirth 1975 Pascal edition. I don't know whether there were contacts between Apple and Wirth before Clascal. Not to forget that Tesler came from PARC where they had Mesa, so he had the same source as Wirth had.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by Rochus on Wednesday January 25, 2023 @02:54PM (#34523279)
Here I found an interesting Article by David Craig about where Lisa Pascal (and all the other Apple Pascal version) came from: https://www.applefritter.com/content/brief-history-apple-com...

Where Apple II and III Pascal was based on UCSD Pascal, Lisa Pascal was apparently directly based on Wirth's P4 compiler, not on UCSD Pascal. See page 4.

Re:Oberon-2, a hi-performance alternative to C++ (1997) by musicale on Wednesday January 25, 2023 @04:47PM (#34524622)
Great reference! Terrific to have a semi-original source, thoug I wish it included more detail and references.

> Therefore, Lisa Pascal lasted from 1981 to 1986, an eternity in the field of microcomputer languages.

;-)

> Tho (sic) Pascal will have the support of a small but vocal minority at Apple, C/C++ will be the dominant language for Apple and outsiders for the next decade.

RIP Pascal, you will not be forgotten - and you will live on as Delphi.

Re:Oberon-2, a hi-performance alternative to C++ (1997) by Kranar on Wednesday January 25, 2023 @12:11AM (#34514673)
Can you name them? Even the academic/research ones or the barebones embedded kernels I'm familiar with use extensions to get things like context switching/multitasking/threading to work.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by foobarian on Tuesday January 24, 2023 @09:10PM (#34513506)
Even without compiler extensions the integration with the linker system is a huge strength of C
Re:Oberon-2, a hi-performance alternative to C++ (1997) by pjmlp on Wednesday January 25, 2023 @01:10AM (#34514974)
Just any compiled language.