Re:Why ML/OCaml are good for writing compilers (1998)
by gnuvince on Friday December 11, 2015 @01:17PM
(#10718795)
I love writing compilers in OCaml: I T.A. a compiler class and my own implementation of the project (a compiler for a not-quite subset of Go) is written in OCaml. Compared to my thesis project which is written in Java, OCaml is a breath of fresh air and I feel that the single, most important feature of OCaml is its type system, especially having sum types available. Once you learn to use sum types to design your solutions, it's very hard to go back to other languages that don't support them and where you need to figure out the least painful way to emulate them.
[ Parent
| on HN ]
Re:Why ML/OCaml are good for writing compilers (1998)
by smcl on Friday December 11, 2015 @01:23PM
(#10718842)
Hey - minor long shot but have you got a link to the course? Or is it on edx/coursera?
Re:Why ML/OCaml are good for writing compilers (1998)
by MaxScheiber on Friday December 11, 2015 @01:28PM
(#10718876)
Not the original comment author, but I thoroughly enjoyed taking Penn's undergraduate compilers course, which used OCaml to compile a basic OO language with single inheritance and dynamic dispatch. http://www.seas.upenn.edu/~cis341
Re:Why ML/OCaml are good for writing compilers (1998)
by gnuvince on Friday December 11, 2015 @01:34PM
(#10718916)
Hi, no the course isn't on a MOOC platform. The website from last year is available here: http://cs.mcgill.ca/~cs520/2015/