Now this is very interesting! There are plenty of compiler writing tutorials for conservative, imperative programming languages with a straightforward static type system (like C). I did study a little bit of compilers for functional languages from Simon Peyton-Jones' old book "The Implementation of Functional Programming Languages" [0]. It predates the Haskell programming language and uses a contemporary research lan…
I think the online version of that book actually uses Haskell (but the text still refers to Miranda).
Write You a Haskell: Building a modern functional compiler from first principles
11–20 of 48 posts
Re: Write You a Haskell: Building a modern functional compiler from first principles
#12Re: Write You a Haskell: Building a modern functional compiler from first principles
#13http://matt.might.net/articles/cps-conversion/
http://lucacardelli.name/Papers/BasicTypechecking.pdf
http://library.readscheme.org/page1.html
https://research.microsoft.com/pubs/67083/spineless-tagless-...
Re: Write You a Haskell: Building a modern functional compiler from first principles
#14I recommend Lisp In Small Pieces (LISP) by Christian Queinnec and Compiling with Continuations by Andrew Appel if you're interested in writing a functional compiler. Also: http://matt.might.net/articles/cps-conversion/ http://lucacardelli.name/Papers/BasicTypechecking.pdf http://library.readscheme.org/page1.html https://research.microsoft.com/pubs/67083/spineless-tagless-... http://www.pipeline.com/~hbaker1/CheneyMTA…
Re: Write You a Haskell: Building a modern functional compiler from first principles
#15Now this is very interesting! There are plenty of compiler writing tutorials for conservative, imperative programming languages with a straightforward static type system (like C). I did study a little bit of compilers for functional languages from Simon Peyton-Jones' old book "The Implementation of Functional Programming Languages" [0]. It predates the Haskell programming language and uses a contemporary research lan…
I think the online version of that book actually uses Haskell (but the text still refers to Miranda).
[0]: http://research.microsoft.com/en-us/um/people/simonpj/Papers...
Re: Write You a Haskell: Building a modern functional compiler from first principles
#16To pull this forward, the author is also the author of "Implementing a JIT Compiled Language in Haskell and LLVM" [0]. [0] http://www.stephendiehl.com/llvm/
Re: Write You a Haskell: Building a modern functional compiler from first principles
#17To pull this forward, the author is also the author of "Implementing a JIT Compiled Language in Haskell and LLVM" [0]. [0] http://www.stephendiehl.com/llvm/
If you haven't spent time with this, you need to stop everything and look at it. It's wonderful.
I haven't read it, that's why I'm asking this.
Re: Write You a Haskell: Building a modern functional compiler from first principles
#18Earlier quoted context omitted.
If you haven't spent time with this, you need to stop everything and look at it. It's wonderful.
Wonderful regarding learning using LLVM? I mean, isn't the heavy lifting (most interesting part?) done by LLVM, so you're just using it? I haven't read it, that's why I'm asking this.
Re: Write You a Haskell: Building a modern functional compiler from first principles
#19Earlier quoted context omitted.
If you haven't spent time with this, you need to stop everything and look at it. It's wonderful.
Wonderful regarding learning using LLVM? I mean, isn't the heavy lifting (most interesting part?) done by LLVM, so you're just using it? I haven't read it, that's why I'm asking this.
Re: Write You a Haskell: Building a modern functional compiler from first principles
#20I recommend Lisp In Small Pieces (LISP) by Christian Queinnec and Compiling with Continuations by Andrew Appel if you're interested in writing a functional compiler. Also: http://matt.might.net/articles/cps-conversion/ http://lucacardelli.name/Papers/BasicTypechecking.pdf http://library.readscheme.org/page1.html https://research.microsoft.com/pubs/67083/spineless-tagless-... http://www.pipeline.com/~hbaker1/CheneyMTA…
http://research.microsoft.com/pubs/64044/compilingwithcontin...