3 ms·
OCaml syntax is a little hard to read for plebian like me. What is the use cases for OCaml?
by didip 4y ago
OCaml syntax is a little hard to read for plebian like me.
What is the use cases for OCaml?
- defrost 4y agoOne famous example (from 1997) is to lay out the rules for generating Fast Fourier code (for any input range, not just powers of two) and have correct efficient C code generated. [1] https://www.fftw.org/ https://www.fftw.org/ [2] https://en.wikipedia.org/wiki/FFTW https://en.wikipedia.org/wiki/FFTW
- jasperry 4y agoOne of the top use cases for OCaml is to build interpreters and compilers for new languages. Its syntax and type system makes it very natural to navigate tree-structured data, such as ASTs. It has a great parser generator library, Menhir, as well as an up-to-date LLVM API. The first version of Rust was written in OCaml.