3 ms·
Modern CPUs are optimized for C code. This is not the fault of FORTH, but it certainly is a problem for its adoption.
by coliveira 9y ago
Modern CPUs are optimized for C code. This is not the fault of FORTH, but it certainly is a problem for its adoption.
- Karrot_Kream 9y agoNot really, modern Lisps have done a fine job optimizing performance. FORTH suffers from treating the hardware too granularly, and thus not being able to take advantage of any of the advances in hardware in the last 2 decades.
- yorwba 9y agoThere is no a priori reason FORTH can't take advantage of modern hardware, since in the extreme case the compiler can be completely replaced by redefining the meaning of ':' and ';'.
- throwaway7645 9y agoThis is why Chuck Moore designed his own chips like GreenArrays I believe. There is no impedance mismatch between software and hardware and the entire thing is optimized for the problem domain and massively parallel. I'm sure you can get more speed out of C, but it no other language (even Lisp or Smalltalk) can the user understand the entirety of the system. Lisp machines and Smalltalk machines probably are about as close as possible, but I have zero experience with them personally. Perhaps the project to put PicoLisp on bare-metal qualifies if one uses a simple enough microcontroller as the language itself is about as simple as you can get a practical lisp.
- spelc 9y agoOver the last twenty years or so, I have written serious Forth code generators for six CPU architectures. There's only one code generation algorithm that's not regularly present in most Pasgol family compilers. The results are the VFX Forth systems at http://www.mpeforth.com http://www.mpeforth.com.
- Karrot_Kream 9y agoI've looked over your products over the years and been super impressed by your results. Thanks for all your hard work!