Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | RS Wood <rsw@therandymon.com> |
|---|---|
| Newsgroups | comp.misc, comp.lang.lisp |
| Subject | kanaka/miniMAL: Lisp in <1kb javascript |
| Date | 2015-02-26 11:48 +0000 |
| Message-ID | <20150226114802.fe197ab3.rsw@therandymon.com> (permalink) |
Cross-posted to 2 groups.
https://github.com/kanaka/miniMAL A Lisp implemented in < 1 KB of JavaScript with macros, TCO, interop and exception handling. //--clip miniMAL A Clojure inspired Lisp implemented in less than 1024 bytes of JavaScript. Rationale I originally started implementing a tiny Lisp interpreter as a quick hack to submit to the 2015 JS1K competition (demo 2209). However, I soon realized that I could fit far more functionality into 1024 bytes of JavaScript than I expected and so miniMAL was born as a "full-fledged" Lisp in its own right. The design of miniMAL started with mal (a Clojure-insipred pedagogical Lisp interpreter with implementations in over two dozen languages). And in fact, in the miniMAL repository you can see the incremental steps to build up the interpreter just like for each of the mal implementations. However, the syntax and functionality of miniMAL is fairly different from mal so it has become a standalone project. Usage There are several different ways to use miniMAL: Start a REPL: run the miniMAL REPL (read-eval-print-loop). Requires Node.js. ./miniMAL Run a miniMAL program: run a miniMAL program and then exit. Requires Node.js. ./miniMAL hello.json As a shebang script: add a shebang line to the top of your miniMAL program and turn it into an executable script. Requires Node.js. //--clip -- RS Wood <rsw@therandymon.com Posting to comp.misc, sci.misc, and misc.news.internet.discuss.
Back to comp.misc | Previous | Next — Next in thread | Find similar | Unroll thread
kanaka/miniMAL: Lisp in <1kb javascript RS Wood <rsw@therandymon.com> - 2015-02-26 11:48 +0000
Re: kanaka/miniMAL: Lisp in <1kb javascript Marko Rauhamaa <marko@pacujo.net> - 2015-02-26 16:08 +0200
Re: kanaka/miniMAL: Lisp in <1kb javascript Matthew Carter <m@ahungry.com> - 2015-02-27 00:48 -0500
Re: kanaka/miniMAL: Lisp in <1kb javascript RS Wood <rsw@therandymon.com> - 2015-02-27 13:23 +0000
csiph-web