3 ms·
Nicely done! I have been trying to implement actual usable (as in, they can be used as a scripting language for instance to build anything) languages in as few
by tluyben2 8y ago
Nicely done! I have been trying to implement actual usable (as in, they can be used as a scripting language for instance to build anything) languages in as few lines as I can (without making them unreadable). Ofcourse that's more as a challenge than anything serious, but it is fun. A minimal implementation I define as being something that can parse the language, interpret it and has FFI to add whatever else you may need. So far I got down to around 50 lines in C# [0].
0. https://gist.github.com/tluyben/16ee2645c4c8aed813005d51488d5c6a https://gist.github.com/tluyben/16ee2645c4c8aed813005d51488d...
- agumonkey 8y agotalking about forth, jvtoups elisp forth is a nice one https://github.com/VincentToups/emacs-utils/blob/master/with-stack.md https://github.com/VincentToups/emacs-utils/blob/master/with... another blog entry discusses it (scroll down): https://github.com/VincentToups/emacs-utils/blob/master/monads.md https://github.com/VincentToups/emacs-utils/blob/master/mona...
- sanxiyn 8y agoThat's so cool! Here is my try in 120 lines of PHP: https://gist.github.com/sanxiyn/3159161 https://gist.github.com/sanxiyn/3159161
- photon_lines 8y agoThank you :) If you want real power for implementing things in as few lines as possible, F# is definitely worth taking a look at as well!