Hacker News new | past | comments | ask | show | jobs | submit login
Oberon System Implemented on a Low-Cost FPGA Board (2015) [pdf] (semanticscholar.org)
123 points by tosh on Sept 7, 2018 | hide | past | favorite | 34 comments



Niklaus Wirth is one of those unsung geniuses of computer science. He invented Pascal, the Modulas, Oberon ...

Then he woke up one morning wanting to reboot his life's work for his class and, undeterred by the fact the original targeted processor did not exist anymore, settled to write his own computer architecture on a Xilinx Spartan.

He then successfully ported the Oberon system and compiler to this architecture to demonstrate to his students.

Just wow.


Wirth is one of the rare geniuses who can do the "Things should be as simple as possible, but no simpler." Just reading the code he writes make me feel slightly elevated.


The line counts in the article just really drives home how obsessed he is with simplicity (obsessed in a good way...)


Unsung? He won a Turing award.


Yeah, but most people don't know him for much more than Pascal.

I am aware of Oberon and Modula, but had never got a chance to touch them. And that's much more of his work than Pascal.


mainstream unsung then


Oberon is interesting, as is Blackbox/Component Pascal (http://blackboxframework.org/)

But it's so niche and windows-centered as to be almost useless. And the community is microscopic.


As for the OS, I assembled some links here:

https://liam-on-linux.livejournal.com/46523.html

This is a good overview:

http://ignorethecode.net/blog/2009/04/22/oberon/

Oberon, a tiny text-oriented OS, evolved into A2, a graphical OS with a zooming UI called Bluebottle. There's some info about A2/Bluebottle here:

http://sage.com.ua/en.shtml?e1l0

Here is the OS on GitHub:

https://github.com/btreut/a2

There are bare-metal versions for x86 -- I am running it on a Thinkpad X200 as well as under VirtualBox -- and also versions that run hosted on Windows, 32-bit and 64-bit Linux and Mac OS X.


My website has a long article with A2 running and screenshots for all delivered apps.

Also wort mentioning that Active Oberon has the language features that Oberon lacked for manual memory management in unsafe code and co-routines in the form of active objects, hence its name.

Paco (Active Oberon's compiler) is probably one of the first compilers with parallel phases.


Perhaps the seminal academic paper is "Oberon - the Overlooked Jewel" by Michael Franz of University of California at Irvine.

A PDF is here: https://pdfs.semanticscholar.org/d48b/ecdaf5c3d962e2778f804e...

This is essential reading to understand its relevance in computer science.


Interesting read! When/how were Oberon systems phased out and replaced (I assume they have been) at the Institute for Computer Systems? It seems to still exist: http://www.cs.inf.ethz.ch/


The technical claims here are badly incorrect.

Oberon is 2 things. It is a language and an OS, or even a family of OSes.

Oberon the language has several versions and works on Linux on x86, x86-64, ARM and other platforms, as well as Windows, BSD, Mac OS X, etc.

E.g. https://github.com/vishaps/voc

Oberon the OS runs on x86 and RISC5 among others. I am considering attempting an ARM port for Raspberry Pi.

So no, it is not at all Windows-centric. One commercial compiler is, but not the language.

It is niche but the community seems quite active.


It was relatively big in European universities during the mid-90's.

Former Oberon researchers now work on GraalVM, Go.

The Austrian university which collaborates with Oracle Labs on Graal, used to do Oberon research before switching to Java with Sun Labs.

Java and .NET kind of killed it.


Interesting tidbit - second generation GLONASS satellites' software is written in Modula-2 running on hardware implementing a subset of VAX ISA

Modula-2 being Oberon's predecessor.


FWIW there's also a Python emulator for the Wirth RISC. It's slow. It's written to be easy to inspect and trace in a debugger so it does a lot of extra work to "spell out" events in the chip logic. (But if you want speed there's the C emulator, or FPGA!) In any case, the Python emulator will load the disk image and, if you have Pygame installed, it will open a screen window and paint the Oberon Desktop, etc... (It paints it so slowly that you can see the characters fill in as they are drawn!)

https://github.com/PhoenixBureau/PythonOberon



There is a clickable link to the project website in the linked PDF.


The author states:

>"It is indeed a healthy design paradigm to stick to synchronous circuits in general, if possible. Then, quite obviously, all elements of a circuit operate concurrently, literally at the same time. Every variable and register is defined by one and only one expression combinational circuit). Multiple assignments do not make sense."

I am not quite grokking this and hope someone can explain this to me.

He starts by extolling the merits of sequential logic circuits but then goes on to say that every variable and register need only be a combinatorial circuits. Since these are the two fundamental circuit types, does this point not contradict the earlier one? What am I missing?


Reading further: "In order to simplify an explanation, we restrict our analysis to synchronous circuits — that is, circuits in which all registers tick with the same clock"

Sounds like the author is advocating for designs that do not have derived clocks or gated clocks or multiple clock domains -- all tricky things that designers occasionally do with great care. Clock your flip-flops with the master clock and avoid transparent latches and your design will approach the mathematical ideal that he describes when comparing a circuit to a software program.

I'd guess his Lola HDL restricts you from doing some of these things, where Verilog is more YOLO depending on the vendor and warnings that are enabled.


He said "synchronous" (synchronized by a clock), not "sequential."


"Synchronous" is a type of sequential circuit. The "synchrony" or sequencing is derived from the clock signal.

https://en.wikipedia.org/wiki/Sequential_logic


Yes, you're right of course.

Looking at it again, I'm reading Wirth's statement as pretty much a bog-standard endorsement of synchronous circuit design.


Yeah it's the "Every variable and register is defined by one and only one expression combinational circuit)" part that confuses me, since he seems to use that to support the endorsement of synchronous design. But maybe I'm just reading it wrong though.


There are two parts to a synchronous design - the combinatorial bits, and the flip-flops.

  /----\    |-----|
 /      \   |    Q|
 | COMB |---|D    |
 \      /   |>CLK |
  \----/    |-----|
I think what he's getting at is that any combinational logic that goes in a register is defined in one place - he's not doing complex statements.

It sounds like he's doing a very (terse) RTL style. This makes it very clear what your synthesizer will do with it - he isn't trying to be clever on the RTL front.

We should email him and ask!


Thanks for channeling your "inner Wirth" :)

Also thanks for the ascii diagram.

In re-reading that passage this all makes good sense now.

Cheers.


Channeling my inner Wirth, I think he's just saying that, for the duration of any given clock cycle, synchronization ensures that every combinational building-block within the sequential circuit will have a consistent state.


He calls it RISC5, one might assume but does anyone know if it is using the RISC-V ISA?


Pretty sure that there is no relationship. The instruction set is 20 instructions total.


Correct, there is zero relationship.

This is not RISCV.


Any fans of inferno / plan9 here?


Inferno and Limbo.

I don't share the joy of others for Plan 9, because for me Inferno is the actual end of the road, Plan 9's architecture with a sane userspace.


Interesting. I have never tried Inferno. Are you running it bare metal? What do you use it for?


I just devoured all the available documentation related to it.

http://doc.cat-v.org/inferno/

http://www.vitanuova.com/inferno/

Papers and books read cover to cover during business travels.


This is really impressive! I'm gonna look more into it after work.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: