Re: Writing Compilers in Functional Languages

Christian Mueller <cm.abo@aktivanet.de>
28 Apr 2005 14:30:24 -0400

          From comp.compilers

Related articles
Writing Compilers in Functional Languages onlyafly@gmail.com (Kkaa) (2005-04-26)
Re: Writing Compilers in Functional Languages bobduff@shell01.TheWorld.com (Robert A Duff) (2005-04-28)
Re: Writing Compilers in Functional Languages stephen@dino.dnsalias.com (2005-04-28)
Re: Writing Compilers in Functional Languages cm.abo@aktivanet.de (Christian Mueller) (2005-04-28)
Re: Writing Compilers in Functional Languages torbenm@diku.dk (2005-04-28)
Re: Writing Compilers in Functional Languages arthurvl+news@cs.uu.nl (Arthur van Leeuwen) (2005-04-28)
Re: Writing Compilers in Functional Languages tarvydas@allstream.net (Paul Tarvydas) (2005-04-28)
Re: Writing Compilers in Functional Languages neelk@cs.cmu.edu (Neelakantan Krishnaswami) (2005-04-28)
Re: Writing Compilers in Functional Languages awwaiid@thelackthereof.org (Brock) (2005-04-28)
Re: Writing Compilers in Functional Languages torbenm@diku.dk (2005-04-30)
[4 later articles]
| List of all articles for this month |

From: Christian Mueller <cm.abo@aktivanet.de>
Newsgroups: comp.compilers
Date: 28 Apr 2005 14:30:24 -0400
Organization: Compilers Central
References: 05-04-068
Keywords: functional

Hello,


> I've written a few compilers and interpreters in procedural and
> object-oriented languages (in particular Java, C, C++, and C#), and
> these seem to be popular choices, but I would like to write my next
> one in a functional language. Every compiler text I've read assumes
> that you are writing your compiler in a procedural or OO language.
> Are there any books or online resources that instead focus on using
> functional languages as implementation languages? I'm considering
> using Haskell or Scheme, but I'm hoping that the resources won't
> assume a particular functional langauge.


there is the book "Modern Compiler Implementation in ML". You can find
further details on the web page
http://www.cs.princeton.edu/~appel/modern/ml/


However this book concentrates on ML. I have no experiences in Scheme
or Haskell, but can recommand SML for your task. It has a nice syntax
and especially constructor types make functional languages very handy
for compiler implementation. With OCaml and MLton there are ML systems
that generate very fast programs that are supposed to be nearly as fast
as C/C++.


Regards,


Christian



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.