Stay updated with breaking news from Kent dybvig. Get real-time updates on events, politics, business, and more. Visit us for reliable news and exclusive interviews.
StoneKnifeForth This is StoneKnifeForth, a very simple language inspired by Forth. It is not expected to be useful; instead, its purpose is to show how simple a compiler can be. The compiler is a bit under two pages of code when the comments are removed. This package includes a “metacircular compiler” which is written in StoneKnifeForth and compiles StoneKnifeForth to an x86 Linux ELF executable. There is also a StoneKnifeForth interpreter written in Python (tested with Python 2.4). It seems to be about 100× slower than code emitted by the compiler. (All of the measurements below may be a bit out of date.) ....