2 ms·
There's something very practical about postfix and stack based languages like Forth - compactness and simplicity. Just couple weeks ago I had the need to build
by ww520 5y ago
There's something very practical about postfix and stack based languages like Forth - compactness and simplicity. Just couple weeks ago I had the need to build a small language with the requirement of terse and compact syntax. I settled on a Forth-like stack based language and was able to build the parser, compiler, and code gen to GPU in about 80 lines of JS code in a short time.