Hacker News new | past | comments | ask | show | jobs | submit login

I believe a toy Haskell compiler could be made with comparable effort to toy C compilers. Admittedly, I cannot find people making toy Haskell compilers.

What makes Haskell higher-level than C? Garbage collection does not really complicate the compiler if you just use BoehmGC.

You can use a simple subset of assembly instead of the full complicated set. Toy C compilers do this, e.g. by treating x86 as a stack machine.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: