Why ML/OCaml are good for writing compilers
Why ML/OCaml are good for writing compilers Author: Dwight VandenBerghe Email: dwight@pentasoft.com Date: 1998/07/28 Forums: comp.compilers Let's use the term "ML" to mean SML or Objective Caml. I'm a devotee of Ocaml, but I have SML/NJ installed and although I prefer the distribution, tools and overall implementation of Ocaml, I'd be happy to write in SML/NJ if Ocaml wasn't around. (I can't speak for Haskell, gofer, hugs, or any of the lazy languages. I think that there are different kinds of people, some of whom like things like deferred evaluation and other who like strict call-by-value. I'm decidedly in the latter camp; I like how clean strict evaluation is, how easy it is to understand exactly what is going on, and I find that I have to give a little of that up with Haskell. But your mileage may vary.) So although when I am writing about "ML" I am writing about Ocaml, what I say also applies, I think, to SML/NJ. So here is an unordered list of language features that see
Why ML/OCaml are good for writing compilers Why ML/OCaml are good for writing compilers Author: Dwight VandenBerghe Email: dwight@pentasoft.com Date: 1998/07/28 Forums: comp.compilers Let's use the term "ML" to mean SML or Objective Caml. I'm a devotee of Ocaml, but I have SML/NJ installed and although I prefer the distribution, tools and overall implementation of Ocaml, I'd be happy to write in SML/NJ if Ocaml wasn't around. (I can't speak for Haskell, gofer, hugs, or any of the lazy languages. I think that there are different kinds of people, some of whom like things like deferred evaluation
saved by
related reading
- A friendly introduction to machine learning compilers and optimizershuyenchip.com
- Many can write faster asm than the compiler, yet don't. Why? — LessWronglesswrong.com
- What even is compiler correctness?williamjbowman.com
- A Gentle Introduction to LLVM IR · mcyoungmcyoung.xyz
- 1.2. OCaml · Functional Programming in OCamlcourses.cs.cornell.edu
- What to learndanluu.com
- Compilers - What Every Programmer Should Know About Compiler Optimizations | Microsoft Learnlearn.microsoft.com
- Writing a C compiler in 500 lines of Pythonvgel.me
- Compiling ML models to C for fun | Max Bernsteinbernsteinbear.com
- Why Learn Compilersamasad.me
- A Gentle Introduction to LLVM IR · mcyoungmcyoung.xyz
- Beautiful Racket: Make a language in one hour: stackerbeautifulracket.com