5 ms·
Is Forth still being used in industry other than for legacy systems? (genuine question)
by sysk 11y ago
Is Forth still being used in industry other than for legacy systems? (genuine question)
- AdieuToLogic 11y agoOpen Firmware and the FreeBSD loader use it presently.
- sedatk 11y agoYes, IIRC Intel's Itanium (IA64) architecture used firmware and drivers in Forth (instead of machine code) so you could use the hardware on any CPU architecture.
- pgeorgi 11y agoNo, Itanium specifically eschewed OpenFirmware (IEEE1275-1994, which is ANS Forth based) in favor of inventing EFI, which would develop into UEFI later. Among the reasons: no interest in bytecode (UEFI now has EBC), no ACPI support (IEEE1275 predates ACPI by a decade, Intel didn't bother), protecting Intel's "Independent" BIOS Vendors from having to compete in an existing market (there were several OpenFirmware vendors). Most OF implementations are now open source, we collected them at www.openfirmware.info.
- theophrastus 11y agopostscript is a dialect of forth http://hyperpolyglot.org/stack http://hyperpolyglot.org/stack
- teh_klev 11y agoI wouldn't go as far as saying Postscript is a dialect of Forth, influenced by or perhaps "Forth-like" (i.e. stack-based), but certainly not a dialect.
- Animats 11y agoNot much. Forth is from an era when it was hard to program small microcontrollers and the tools for doing so were expensive. Today, everybody cross-compiles to microcontrollers. I've done robotics programming in Forth. I do not expect to use it again.
- minikomi 11y agoWhat has the industry moved onto now?
- pjc50 11y agoEmbedded stuff is nearly always C. Arduino have made the "Wiring" language popular for rapid prototyping (based on processing and hence javascript). But these days, embedded full Linux systems are just too cheap to not be the default option when you want to develop on the device itself.
- GuiA 11y agoProcessing is based on Java, not JavaScript.
- technomancy 11y agoMy understanding is that the link between Arduino and Processing is solely in the IDE. I don't think the two share any common ground beyond just the fact that Java (which Processing is a very thin layer on top of) is similar to C (which Arduino is a very thin layer on top of.)
- Animats 11y agoArduino's language is just GCC C++ with some extra Arduino-specific libraries and some standard libraries missing. I think there's now Rust for the Arduino Due, which is ARM-based.
- mhd 11y agoFor the smaller stuff (automation) PLCs are also quite popular, especially for the EE guys.
- rebootthesystem 11y agoI'll echo one of the other comments. I've also done robotics with Forth and used it extensively for about ten years. I do enjoy the language. That said, I don't see much justification for it today for general usage. As early as 15 years ago a number of our embedded products using 8 bit processors were programmed in assembler and/or Forth. This quickly became challenging in terms of product maintenance (assembler) and finding qualified experienced developers (assembler and Forth). I found myself in the difficult position, as CEO, of not being able to remove these responsibilities from my desk. And so we ported all of our code from assembler/Forth to C. In that process we improved nearly every technical and business metric. The port took months but it was well worth it. I still think every programmer needs to start with assembler wrangling processor architecture internals "by hand", move on to Forth (or a TIL), then Lisp and C. I am sometimes in horror to come across programmers for whom every solution requires bloated, inefficient object oriented code.
- rpcope1 11y agoYes, for starters, some hardware companies still use Forth for low level testing of devices.
- JoachimS 11y agoYes in OS boot loaders. FreeBSD uses it, and I think Apple uses it for OSX. Possibly iOS.
- JoachimS 11y agoSorry, I'm wrong regarding OSX and iOS. OpenFirmware is used at numerous places, but Apple is not one of them.
- technomancy 11y agoApple used it when they were still PowerPC-based. They sadly dropped it with the move to Intel.
- david-given 11y agoYou used to be able to boot up with Command+O+F and get a Forth prompt. (Although I have a hazy recollection that on some models they didn't include a screen terminal, so you couldn't interact with it...)
- rollthehard6 11y agoApple used to use it in the PowerPC days as did Sun - https://en.wikipedia.org/wiki/Open_Firmware https://en.wikipedia.org/wiki/Open_Firmware http://www.brendangregg.com/Sun/obp.html http://www.brendangregg.com/Sun/obp.html
- kryptiskt 11y agoRosetta (the comet probe) has a bunch of RTX processors running Forth.