Better HN
topnewbestaskshowjobs
Log inSign up

mikethe

7 karma · joined Dec 22, 2025 (11mo ago) · 15 submissions

Submissions

comment 3mo ago · link · parent

I am in discussion now with a colleague on the subject of c++/rust, so there will be greater clarity on that soon.

comment 3mo ago · link · parent

I should make this clearer.

On the one hand, the art of unix programming claims that object-orientation only succeeds at solving certain problems by creating something sufficiently complex that the human mind can barely cope. Then I read that oberon solves problems that c can't solve, while claiming to be better than c++. Then I read, in principia, that oberon is only simplified by getting rid of all the really interesting and valuable functionality that is in plan9.

So the questions: is that functionality really necessary, or is oberon really all we need? and.. what would a plan9 system written in object-oriented oberon look like? in oberon+ with concurrency/parallelism? would this result in a better system than the current plan9? And what about safer languages like ada? (rust being based on c++, and therefore not being a real contender..)

comment 3mo ago · link · parent

I am currently exploring languages, operating systems.. my conclusions so far are that the two fish in the pond are plan9, and oberon. I am also aware of Geoff Collyers criticisms of RISC-V, and the criticisms of oberon of principia-softwarica. But that's about where my knowledge ends. I am also extremely suspicious of any project that makes any use of c++, being familiar with both the art of unix programming, and the attitudes of the suckless community.

A brief glance at https://oberon-lang.github.io/2023/12/25/towards-concurrency... tells me that oberon+ supports parallelism, so I take that to mean that the criticisms in principia-softwarica no longer completely hold, at least for that new language.

Something that really surprises me is, a project so closely connected to the simplicity and elegance of oberon, also connected to c++, a language so widely vilified for complexity and ugliness, and with which oberon itself, apparently, competes. I'm sure there must be really good reasons for all this.

comment 11mo ago · link · parent

Well, we basically agree on how I should go about it, which is good :-)

Jehanne is now on my radar..

comment 11mo ago · link · parent

"Why?"

Because of what Raymond said. He said two things that I remember fairly clearly:

1) If you have to resort to OO to solve your problems, you probably have another unresolved problem at a higher level. This is from near the beginning of the book.

2) OO succeeds mainly by increasing the global complexity of the problem.

All I'm doing is answering your question. It is true I wasn't totally clear about this. It is very clear that you understand his detailed logic better than I do. Reading the rest of your post now.

comment 11mo ago · link · parent

Greetings again..

I have now read more of the book on oberon, and confess that I lost traction. It seems very clear that he is using objects, and my bias against them is very strong. I have heard it said that both oberon and plan9 are beautiful, but completely different.

I'd be interested in your take on the two of them, when, if, each of them should be used, and why. I am currently attempting to install plan9/9front/9legacy et. al. I understand that oberon, being much smaller, could be very useful for learning purposes, but if you don't actually approve of OO, then.. is it really the kind of thing you want to be teaching people. Obviously, you want people to see a bit of everything, just so they are aware of alternate ways of doing things. At the same time, most people will assume that the first thing you show them is the way you actually want them to do it, and will tread the alternatives as what you present them as, curiosities, potentially useful. So, if the objective is plan9, then what would actually be needed would be a .. well.. a tutorial for plan9. A tutorial that gradually built the operating system, explaining the logic step-by-step. There -is- actually at least one tutorial that does such a thing, that I am aware of, but what it takes as it's inspiration, I haven't checked out yet. This is the one: https://os.phil-opp.com/

comment 11mo ago · link · parent

"Should be cast in bronze" comes to mind.

comment 11mo ago · link · parent

To clarify, you obviously understand OO better than most, certainly much much much better than I do. I happen to have Wirth's book on oberon here, have started reading it. So possibly, eventually, I will reach your level. :-)

comment 11mo ago · link · parent

OO is a big issue here. Or rather, in general. I have read "The Art of Unix Programming", where a very big fuss is made over object-orientation. It's like they want to take a really big gun that means big business, and shoot it. Ever since reading that, I yelp whenever I see it mentioned, and squint in suspicion at the offender. So when a titan like Wirth endorses it.. ..there is obviously something of great importance that needs to be clearly understood, and that is -not- obvious.

The same thing when I see mentions of C++. Except that I haven't yet found endorsements of it from anybody of Wirth's stature. Sites like suckless really do not help.

Related: https://plan9.io/wiki/plan9/lfaq/index.html#HARDWARE_AND_SOF...

" Is it object-oriented?

No, not in the conventional sense. It is written in a strict dialect of ISO/ANSI C. In a wider sense, its general design of making all its ``objects'' look like files to which one talks in a well-defined protocol shows a related approach. "

comment 11mo ago · link · parent

"Simpler is not automatically better. If a language is too "simple" (i.e. minimalist), the complexity often shifts from the language specification to the application code, requiring more boilerplate or "clever" tricks to solve complex problems."

..fascinating..

..it always comes down, again and again, to what is the problem you need to solve, and from there, what is the best solution. And at that point, once you have identified the problem.. in a way it's a toss-up whether you implement your own solution, or just happen to have heard of a solution to a similar or equivalent (or the same) problem, developed by somebody else. ..or how willing you are to dig in search of said hypothetical already-existing solution. And said hypotheticals must then themselves be evaluated, which also takes time.

comment 11mo ago · link · parent

Super helpful! Thank you!

comment 11mo ago · link · parent

Thanks!

comment 11mo ago · link · parent

..thank you..

I am very curious at the moment about why my post shows up a lighter shade of gray than others. I have done some searching, and apparently this can have something to do with people down-voting something, maybe if it seems to contain disparaging comments. I described oberon as "dusty", could that be it? It wasn't meant to be disparaging. You see rust all over the place. If I hadn't been exploring the text editor vis referred to by suckless, I wouldn't have even known oberon existed.

I am -not- trying to criticize oberon. I am not trying to claim that rust is better. I am just looking for a comparison of the two, from the point of view of the particular poster I referenced. I would have responded to his comment directly if I could.

Thank you very much for your tip about ada. I'll check it out!

14.

Ask HN: Oberon et al., vs. Rust

17 points · by mikethe · 11mo ago · 37 comments