Live data from Hacker News

Self-hosting Lisp-to-C compiler in 384 lines of Lisp

github.com

1–10 of 12 posts

Re: Self-hosting Lisp-to-C compiler in 384 lines of Lisp

#4

Is there a problem around lines 87 or 88? Or is it just with the syntax highlighting? ETA: Thanks!

Syntax highlighting. Github thinks it's Scheme when it's really its own dialect of Lisp, with \c for a character literal instead of #\c. (Part of the fanatical simplification.)

Re: Self-hosting Lisp-to-C compiler in 384 lines of Lisp

#10
post #8

"Lisp compiler in (arbitrary language) in (arbitrary number lines." Why not just metaprogram this?

Metaprogramming isn't free. Trivial conversion from lang A to lang B, even less so.

I dare you to write a program that compiles arbitrary Java code to awk. They're both Turing-complete, so it's guaranteed to be possible! Cheers!

Post reply on HN