Re: Writing a Compiler: Lisp or Scheme or Haskell?



iwritecode2@xxxxxxxxx wrote:
Neither the source nor target language is a very low level language
( such as assembler or machine code ) The target language is a not-so-
low-level language such as SQL or even C.

How do Lisp and Scheme stack up against Haskell for this sort of
thing?

Badly. Metaprogramming benefits enormously from pattern matching. Lisp
offers nothing in that regard (and the Greenspun alternatives to modern
function language implementations suck in comparison, e.g. fare-match).
Scheme has something but nothing like as much as Haskell or ML.

You might also consider tools like Camlp4, ocamllex, ocamlyacc, menhir,
dpygen etc. for OCaml.

Lisp and Scheme do offer first-class symbols and EVAL but both are of little
practical value. Symbols are trivial to implement in Haskell or ML. EVAL
was long since made obsolete by VMs.

--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?u
.



Relevant Pages

  • Re: Scheme went one direction, Haskell went another: Why?
    ... these sorts of language features, ... Scheme, the current Haskell situation may be considered an anti-goal. ... a feature of the Glasgow Haskell Compiler ...
    (comp.lang.scheme)
  • Re: Learning Lisp in Linux?
    ... Common Lisp fold from the Scheme failed experiment ... ... The Scheme fools started it and paraded it around as this Great Thing About Scheme, a measure of their obsession with The Wrong Thing when it came to language design. ... what was in the language standard and no more was in, ...
    (comp.lang.lisp)
  • Re: Lisp Ruby Scheme
    ... The other side is that Lisp and Scheme: allow you to explore new programming styles for which there are no: dedicated languages available yet. ... with styles for which there is no dedicated language yet. ...
    (comp.lang.scheme)
  • Re: Ideas for an SICP?
    ... Scheme, I believe, would seriously benefit from the addition of language ... Schematic, Mul-T, Symmetric Lisp, NetCLOS, EDS Lisp, ... research projects that never had a community of users. ...
    (comp.lang.scheme)
  • Re: Polishing my lisp
    ... but I don't understand is this language or implementation issue ... even millions as they claim in Gambit Scheme. ... Erlang, todays first choice for concurrent programming, ... Agreed but lisp is not anybody, it's the ultimate for me, ...
    (comp.lang.lisp)

Loading