4 ms·
They are in two different segments. Forth and C are low-level languages. I can (and do) use them to develop firmware. Lisp and Java are for "big-iron" system.
by pietrofmaggi 16y ago
They are in two different segments.
Forth and C are low-level languages. I can (and do) use them to develop firmware.
Lisp and Java are for "big-iron" system.
But you are right, one of the strength of Forth and Lisp is the availability of a REPL.
- sgt 16y agoREPL is indeed a great feature. Once you get used to it, you can hardly ever go back.
- kbob 16y agoLisp was for big iron in 1975. Machines with over a megabyte of RAM and several hundred KIPS. There are several Lisps and Schemes targeting the embedded world these days.
- pietrofmaggi 16y agoYep! Even Java is used in the embedded world today (luckily not my world). Simply, C and Forth can scale down to really small MCU with few hundreds bytes of code space and some bytes of RAM (with Forth, on such small target you will probably loose REPL). A readily available OSS Forth I really like can be used on small MSP430 where no lisp or scheme can go! (www.camelforth.com) Currently most embbeddable scheme I know is the Armpit http://armpit.sourceforge.net/ http://armpit.sourceforge.net/
- mahmud 16y agoJava was designed as an embedded language for a set-top box.
- pietrofmaggi 16y agoTrue, but that was oak (oak 0.2 langage spec is here https://duke.dev.java.net/green/OakSpec0.2.ps https://duke.dev.java.net/green/OakSpec0.2.ps). BTW this specs put some lights on some java behavior: http://www.devx.com/Java/Article/10686 http://www.devx.com/Java/Article/10686.
- ajuc 16y agoI was thinking about similarity of Lisp and Forth in that programmer can very easily create DSLs.