|
|
|
|
|
by tacos
3929 days ago
|
|
And now's a perfect time to reflect on how the two languages evolved during the past decade. C++ obviously moved forward quite a bit -- cleaning up the loop constructs in particular. OCaml? Uh... there's F# for realists, Scheme for optimists, and Haskell for pedants. If you're actually writing OCaml web apps in OWebl I'd sure love to know why. Amazon released a native C++ SDK for AWS if you're into pain. If you're using "OPAM" to install the OCaml AWS client... wow. |
|
OCaml is totally a practical language for writing real world applications. As I usually point out in these threads, Red Hat pay me to write OCaml programs[3], that are used by thousands of customers and many more free software users worldwide. The advantages (over other languages, not C++) are: easy linking to C libraries, and builds a native binary with no extra dependencies, speed. Advantages over C++: safety, robustness, compact source code size.
[0] https://opam.ocaml.org/packages/
[1] https://ocaml.org/meetings/ocaml/2014/OCaml2014-Leroy-slides...
[2] https://ocaml.org/meetings/ocaml/2013/slides/leroy.pdf
[3] https://github.com/libguestfs/libguestfs