Does anyone know of uses in industry?
Does anyone know of uses in industry?
$ qemu-system-ppc64
VNC server running on ::1:5900
$ vncviewer :0
Ready!
0 > 1 2 3 * + .
7 ok
0 > WORDS
(gigantic list of built-in words ...)1. https://en.m.wikipedia.org/wiki/Forth_(programming_language)
First time all the features wouldn't fit. Forth re-write fit with room to spare. (factoring is easy in Forth)
New Hardware! Everything fit but batteries didn't last a full shift. :(
Forth with a proprietary tasker put the device to sleep at every opportunity. Problem solved.
Even more than working in functional languages like SML, Forth (and RPL, my first stack language) taught me how to factor out code and remove/minimize duplication. It's just so obvious when using it where the duplication is, the hard part is coming up with decent names. But if a sequence of words can be given a good name, give it that name and define it.
https://en.wikipedia.org/wiki/Starflight
Ok, this is an ancient example. But still :-)
The source code is partially available. Here one example.
https://web.archive.org/web/20030906110447/http://www.sonic....
This use is not necessarily limited to enthusiasts, since nowadays even Arduino ends up in commercial products.
While the language itself it's considered difficult to read by some, it's a great way to access MCUs features in a stack-based way and at a level higher than assembly.
“...is still used today for certain applications.”
and is clickable.
• https://www.forth.com/resources/who-uses-forth/
• https://vfxforth.com/#customers
(Curiously this also turned up on another thread, https://news.ycombinator.com/item?id=26165804 )