Hacker News new | ask | show | jobs
by pjmlp 2 days ago
Which version though?

While my interest got spiked initially by the original Project Oberon, I was more found of the paths taken by Component Pascal and Active Oberon, as language evolution.

Anyway, it was what initially opened my eyes to systems programming with GC enabled languages, and drew me into the rabbit hole of Cedar, Modula-2+, Modula-3 and co.

2 comments

Was Active Oberon the foundation of A2/Bluebottle? My memory fails me.

I haven't dug into Oberon, because it's not quite Pascal enough for me to love it, and felt a bit heavier than I had hoped for syntax wise.

I'm enjoying Odin lately, and if I felt i had more time/use for Oberon I'd probably try driving it. But feel that as a "living" project Odin is more usable, it feels more constrained in syntax and concision than the larger Oberon project.

This is similar to like Genera/Lisp Machines, where I'd love to explore more (and even plan9, though that's less related to OS/Language integration in the way Bluebottle/A2 and Genera/Lisp Machines.

Yes it was, last programming language update was on 2019.

https://gitlab.inf.ethz.ch/felixf/oberon

https://gitlab.inf.ethz.ch/felixf/oberon/-/blob/main/docu/Ob...

Odin is quite interesting for those of us with Wirthian background, although not having some form of GC kind of puts it off to me. I know how it looks like and don't really miss plain manual memory management beyond building blocks.

The language is Wirth's Oberon-07, as his 2016 report defines it, with additions for objects, interfaces and literals, and with the data sizes of the 16-bit 65C816. INTEGER and SET are 16 bits, LONGINT is 32, BYTE is 8 bits unsigned, and REAL is 32 bits, with LONGREAL as another name for it. Records can have type-bound procedures, chosen at run time by the record's actual type, and the language adds OVERRIDE, SUPER, initialisers declared with PROCEDURE INIT and called as T.Make(...), and WEAK pointers. INTERFACE types are implemented by records that declare IMPLEMENTS. There are constant arrays, record and array literals such as Point{x := 1; y := 2}, an ELSE in a numeric CASE, and _ in names. Modules can be declared LARGE (code over a bank) or FRIENDS (named modules may assign to their exported variables). Like Oberon itself, it has no exceptions and no concurrency in the language: errors are compiler messages, traps or result codes, and processes come from the OS16 library. The compiler grew from Wirth's Project Oberon compiler, and follows his structure. It was initially written in C, then ported to Oberon so it could compile itself. It comes in two builds that compile the same language to the same files: oc on OS16 and oc816 on Mac/Linux, using LLVM. The OO type features were primarily added to support the UI toolkit. OS16 is the associated operating system.
Many thanks for the whole overview, looks kind of interesting approach.
Wish it retained Modula-2's stackless coroutines though.
While not the same, Active Oberon's Active Objects provide a model similar to async/await.
Thanks for this, I wasn't aware.

LATER EDIT: After looking them up I found active Oberon objects to be quite heavy and preemptively scheduled. What I liked about Modula-2 coroutines is the control over how heavy a local stack they would own and when would control transfer to them -- not suitable for real parallelism of course. But for ten thousand boids simulating a swarm of bees foraging, returning, waggle dancing, recruiting, and flying out to precise coordinates, coroutines would be pretty good fit.

Here there you go, see the citations as well.

https://www.semanticscholar.org/paper/A-Multiprocessor-Kerne...

You might need to hunt for the actual PDFs, though.

Thanks so much.

I added some edits to my comment, we were likely working concurrently :)