Most functional compiler
CRANK

Most functional compilerBen Lynn @bmxlynnJudges' comments:To use:make Try:(./prog < fib.hs; cat prog.c) > fib.c cc fib.c -o fib ./fib Selected Judges Remarks:A fully functional compiler. The example prints out the 30th Fibonacci number.Author’s comments:RemarksA Haskell compiler. Supports a subset of Haskell more than large enough to self-host. Like GHC with custom language extensions:WeDontServeYourType: Compilation failing because of inscrutable type checking rules? Confused by the ever-growing mire of extensions to the type system? The solution is simple: no type checking. It also means no typeclasses. Just pass dictionaries explicitly.ZeroPauseGarbageCollection: Instead of disruptive stop-the-world garbage collection, we only tidy up when the world stops of its own accord, that is, on program termination.OneHundredPercentPure: Gone is the catch-all lawless IO monad. And no trace of those scary unsafeThisAndThat functions. All functions must be pure.SyntaxForTheMasses: See below.D…

ioccc.org
Related Topics: