3 ms·
Forth has not won any popularity awards since the end of the '90s but it is still used by a small group of engineers around the world to solve their custom need
by lebuffon 4y ago
Forth has not won any popularity awards since the end of the '90s but it is still used by a small group of engineers around the world to solve their custom needs.
This can be for embedded projects or firmware yes, but it has crept into larger projects.
IMHO opinion Forth is hard to learn, takes more effort to bootstrap your project (more like Assembler) and more importantly it is hard to switch gears to think with Chuck Moore's methodology. However once learned it can make one very productive.
Forth was (is?) used for experimental control in the ISS quite regularly. The ability to wip up a simple DSL that talks directly to hardware and will compile or can be used as a script is a win for those custom projects.
It's running in the FEDEX handheld package scanner from what I understand. (may be dated information) Funny story that. Way back, Version I was started in C but they hit the ROM size limits on the hardware that was already finished. Forth Inc. was asked if they could help. Using their Forth RTOS they re-wrote it and it all fit with room to spare. (Indirect-threaded-code is tight)
Years later, Version II hardware was designed with waaay more memory. Re-write in C fit nicely. All good.
But... the batteries would not last for an entire shift.
Forth Inc was brought in again and they own their task scheduler so they modified it to put the CPU to sleep at every chance they could.
Batteries lasted.
Largest known Forth program is on Windows.
https://ribccs.com/candy/ https://ribccs.com/candy/
1M+ LOC. Compiles with VFX Forth by MPE UK.
</sermon>
- cmpaul 4y agoYES! I worked on the FedEx Enhanced SuperTracker software from 1999-2006, which I believe is the "Version II" you're referencing. The core software was still written in Forth, but we rebuilt the package routing logic in in C, which might be what you're referring to. Very curious to know how you are familiar with all the history, did you work there or at Forth, Inc?
- lebuffon 4y agoI worked in a Forth shop for a few years and attended a few conferences. The FEDEX story made its way around the community.