4 ms·
Anyone that likes Wirth line of OS's and languages should check out the Modula-2 revision: http://modula-2.info/m2r10/pmwiki.php/Project/FAQ http://modula-2.in
by nickpsecurity 11y ago
Anyone that likes Wirth line of OS's and languages should check out the Modula-2 revision:
http://modula-2.info/m2r10/pmwiki.php/Project/FAQ http://modula-2.info/m2r10/pmwiki.php/Project/FAQ
FAQ asks good questions and with rational answers. I'm still going to fight them on uppercase just for sake of adoption and saving pinky fingers. Otherwise, Modula-2 makes a nice C replacement and a start on safer C++ alternative that's easy to grok. The language was originally used in Wirth's and Jurg's first homebrew system, Lilith. I have a link to that and many other Wirth works here:
https://news.ycombinator.com/item?id=10479213 https://news.ycombinator.com/item?id=10479213
Anyway, Modula and Oberon have already been used to build a number of maintainable, safer OS's and system software. Oberon did it with a GC for most of it while Modula-2 just tried to be safer about memory management. Very easy to compile & optimize. Adding macros for low-overhead abstractions and a solid stdlib to that would give a differentiator in systems programming without learning curve of Rust or C++.
Go achieved some of this already in application language space. It was a modern attempt on the Oberon programming experience. So, some precedent for my Modula-2 ideas being able to take off. I'll be fine if Modula-2R10 or an Oberon variant ends up a niche language with supported, constantly-enhanced compiler & decent community. It would be another secret weapon for startups like LISP, Ocaml, Haskell, and so on were. This time for systems or embedded use.
http://www.astrobe.com/default.htm http://www.astrobe.com/default.htm
https://www.cs.cmu.edu/~chuck/pubpg/luv95.pdf https://www.cs.cmu.edu/~chuck/pubpg/luv95.pdf
http://www.algo-prog.info/ocapic/web/index.php?id=OCAPIC:OCAPIC http://www.algo-prog.info/ocapic/web/index.php?id=OCAPIC:OCA...
https://hackage.haskell.org/package/atom https://hackage.haskell.org/package/atom
Ooops, maybe again for embedded use. :)
- MaysonL 11y agoBack in the '80s, I got tasked to implement a prototype distributed OS that a team at JPL had just spent all but a little less than a year of a 5 or 6 year DOD contract designing (with a bit more than 6 months to a big conference where it was supposed to be demoed). After I gave my estimate of what I could produce in the time remaining, the design team said that that was impossible. Modula-2 (embodied in a Logitech(!!) compiler and standard library) came through with flying colors. OS ran on 8 Vax 725's. Pull the plug on one running unique processes, they would restart on another. Ditto for splitting the net. [0] http://oai.dtic.mil/oai/oai?verb=getRecord&metadataPrefix=html&identifier=ADA124379 http://oai.dtic.mil/oai/oai?verb=getRecord&metadataPrefix=ht...
- nickpsecurity 11y agoAs in the Logitech mouse/keyboard company? If so, that makes them more awesome haha. It's great that you used it to (rescue?) a distributed OS project. Thanks for the paper, too, as some of us collect these for any wisdom that might be lost to time. I'll read it when I have more time.
- rbanffy 11y agoAt that time, Logitech had great developer tools. Their debugger was well known.
- justin66 11y agoAny thoughts on Blackbox? http://www.oberon.ch/blackbox.html http://www.oberon.ch/blackbox.html
- nickpsecurity 11y agoAnswered that here: https://news.ycombinator.com/item?id=10793137 https://news.ycombinator.com/item?id=10793137 Seems great from what people say. Better than Oberon with great tooling. The linked PDF will tell you more. I need to play with it sometime to see what it can do.
- Animats 11y agoNow that's interesting. I used Modula 2 on a PC for some embedded robotics work decades ago, and it was quite useful. If a program compiled, it usually worked. But Modula 2 didn't have objects. Modula 3 did, but it was also garbage-collected, making it undesirable for small-scale embedded work. This new variant of Modula 2 has objects, in a limited way, and avoids some of the strangeness of Oberon. Is it available for small embedded machines in the Arduino and low-end ARM class? It would be a good choice for when you just need to run some sensors and actuators, and need reliability. Go is for larger systems, in the large web server class. It does too much implicit allocation and garbage collection for small embedded work.
- nickpsecurity 11y ago"Now that's interesting." I knew you'd like it. It's why I tried to message you in another comment about it. " Is it available for small embedded machines in the Arduino and low-end ARM class? It would be a good choice for when you just need to run some sensors and actuators, and need reliability." Good point. I just found it thanks to another HN commenter. I don't know much about the state except to say they're jump starting it with another Modula-2-to-C compiler. I have the source for the original mtc compiler if anyone needs it. Meanwhile, the new one needs skilled contributors. The language spec itself is in alpha and can use input on its features. They're adding stuff that might help. I'd say now is the time to suggest things that offer safety or maintenance benefits without bloating the language. Anyone you or anyone else can think of. I for one intend to go through Ada and Eiffel looking for every trick they use for safety for internal and integrations. Then, see what can be applied to Modula-2 without ridiculous effort. Design by contract (or a knockoff), existential types, and SCOOP concurrency come to mind immediately. Plus, maybe a formal semantics or a subset to aid static analysis tools or formal verification. Macro's, too. I want safe (or safe-ish) macros. My old BASIC/LISP-based 4GL had macros for DSL's. They were awesome. So good for portability, security, performance hacks... many things with less overhead or confusion. Let's let people extend the language without punishing them by forcing knowledge of compiler writing. Whats your thoughts on jumpstarting with a M2-to-C compiler, borrowing from Ada/Eiffel in simpler form, and adding macros? "Go is for larger systems, in the large web server class. It does too much implicit allocation and garbage collection for small embedded work." Oh I agree. I was just pointing out they created an Oberon-style language with industrial enhancements to solve problems of Java, etc. It worked with quite a bit of uptake. Like Oberon, the programs are pretty simple, safer, compile fast, and run fast. Old benefits carried over into that application of Wirth style. So, applying it to a system-level language will probably re-create the prior benefits in that area.