|
|
|
|
|
by nickpsecurity
3935 days ago
|
|
Remember the context is replacing Forth for where it's used. This is often in bootloaders with basically no storage and sometimes under 32-bits. I'm not sure how well Ada works in such situations. So, we'll need a HLL that's readable, safer, easy to compiler, and easy to produce both CISC and RISC code for. Wirth & Jurg threw Modula-2 together in a year or two for Lilith with students routinely porting his stuff to new platforms in months rather than years. So, a new Modula-2 variant seemed like an easy replacement for Forth. "but that's just a matter of getting more programmers interested." Won't happen: they hate Ada as much as LISP. More given Clojure is going mainstream but Ada still isn't. So, if I want to use it, I have to deliver the result in their language or build killer app that hooks them onto Ada. The first is easier to do most of the time. Adacore even acquired a company that specialized in deploying Ada apps as either C or C++. So, it's a proven model which could be applied to a simpler language (eg Modula-2) for bootloaders, etc. |
|
That said, I will reiterate that it's clear that based on the several recent attempts, un-zombie-fying Modula-2 isn't trivial. Perhaps the answer is to grab one of these projects (or Modula-3) and throw the effort into "you're not going to be the next Webdev language, but lets beat this low-level systems niche into our world". Maybe start by writing a bulletproof bootloader or something. Or some security sensitive network plumbing. Can't do any worse than the Rust/Go guys are doing, with the bonus that Modula-[23] have actually been used to build real bare metal systems.
I dunno...maybe I just need another scotch.
FWIW...every time I've been in a "Forth could do this, but forth makes me want to dig my eyeballs out with spoons, what is the alternative?" scenario, I reached for C, and haven't really been all that disappointed. I know that makes me a bad person.