Re:Lisp implemented in under 1K of JavaScript
by mrottenkolber on Thursday February 26, 2015 @06:52AM
(#9112099)
I wrote a minimal Lisp compiler (targeting C) when I was a bit younger. :> My GC was just a really bad reference counting implementation though. I dare you to make fun of my "hash function". Hehe.
Re:Lisp implemented in under 1K of JavaScript
by rrmm on Thursday February 26, 2015 @04:35PM
(#9115670)
Your hash function is fast! So it's got that going for it.
Re:Lisp implemented in under 1K of JavaScript
by PhantomGremlin on Thursday February 26, 2015 @08:40PM
(#9116713)
I had to go look. Not hard to find.
I'll just say this, back in the prehistoric 1970s, a '%' operation was eschewed, because it wasn't fast (relatively speaking)!!!
It often was used anyway, because it's very effective considering its simplicity.
https://github.com/rui314/minilisp