Unix system programming in OCaml
ocamlunix.forge.ocamlcore.org
Unix system programming in OCaml
1–10 of 16 posts
Re: Unix system programming in OCaml
#2Re: Unix system programming in OCaml
#31. Standard library was so weak that they had to come up with in-house replacement (which is now open sourced).
2. No true parallelism due to runtime limitations (single runtime lock) - http://queue.acm.org/detail.cfm?id=2038036
Re: Unix system programming in OCaml
#4Language-wise, it is a really nice and interesting, indeed. But two things keep me away from OCaml, both reported by the same company (Jane Street), which apparently uses OCaml in production: 1. Standard library was so weak that they had to come up with in-house replacement (which is now open sourced). 2. No true parallelism due to runtime limitations (single runtime lock) - http://queue.acm.org/detail.cfm?id=2038036
Re: Unix system programming in OCaml
#5Language-wise, it is a really nice and interesting, indeed. But two things keep me away from OCaml, both reported by the same company (Jane Street), which apparently uses OCaml in production: 1. Standard library was so weak that they had to come up with in-house replacement (which is now open sourced). 2. No true parallelism due to runtime limitations (single runtime lock) - http://queue.acm.org/detail.cfm?id=2038036
1. Excellent single-core performance. 2. Code is fast to write and can be quickly adapted, so you get the agility of the typical dynamic languages but the benefits of a static type system. 3. Although the community has few members, the quality of engineers in it is very high. Someone who knows OCaml well is much more likely to be a good hire. 4. Legibility of code. Partners review production code. These are very smart guys, but they're traders-- not quants or programmers by trade.
Writing libraries, if you have the resources, is a small cost. It's heavy upfront, but once you have good libraries, that's no longer an issue. That issue depends on the scope of your project. You probably wouldn't use OCaml for a web project you intended to deliver in one month.
The benefit that I think is most interesting is the 4th, because the reading of code is where most software companies seem to fall down. Of course, this involves style as much as the language itself, but OCaml is, in my experience, the language best optimized for the reader's concerns. Haskell can be similarly legible (and is much terser) but one can also go off the rails with it.
Re: Unix system programming in OCaml
#6Language-wise, it is a really nice and interesting, indeed. But two things keep me away from OCaml, both reported by the same company (Jane Street), which apparently uses OCaml in production: 1. Standard library was so weak that they had to come up with in-house replacement (which is now open sourced). 2. No true parallelism due to runtime limitations (single runtime lock) - http://queue.acm.org/detail.cfm?id=2038036
This is all true. On the other hand, it's worth mentioning the major benefits that Jane Street gets from OCaml: 1. Excellent single-core performance. 2. Code is fast to write and can be quickly adapted, so you get the agility of the typical dynamic languages but the benefits of a static type system. 3. Although the community has few members, the quality of engineers in it is very high. Someone who knows OCaml well is…
Re: Unix system programming in OCaml
#7Language-wise, it is a really nice and interesting, indeed. But two things keep me away from OCaml, both reported by the same company (Jane Street), which apparently uses OCaml in production: 1. Standard library was so weak that they had to come up with in-house replacement (which is now open sourced). 2. No true parallelism due to runtime limitations (single runtime lock) - http://queue.acm.org/detail.cfm?id=2038036
And the community isn't as vibrant as the communities of other functional languages such as Clojure or Haskell
Re: Unix system programming in OCaml
#8Earlier quoted context omitted.
This is all true. On the other hand, it's worth mentioning the major benefits that Jane Street gets from OCaml: 1. Excellent single-core performance. 2. Code is fast to write and can be quickly adapted, so you get the agility of the typical dynamic languages but the benefits of a static type system. 3. Although the community has few members, the quality of engineers in it is very high. Someone who knows OCaml well is…
What I like most about the Jane Street story is that they weren't afraid to rewrite their system and even went through a half-done abandoned Java rewrite. It shows that if you're working with smart enough people you can break away from the "incremental development reality" and discover the hidden powers of all sorts of technologies that others are afraid to try for fear of transition nightmare.
Re: Unix system programming in OCaml
#9Earlier quoted context omitted.
What I like most about the Jane Street story is that they weren't afraid to rewrite their system and even went through a half-done abandoned Java rewrite. It shows that if you're working with smart enough people you can break away from the "incremental development reality" and discover the hidden powers of all sorts of technologies that others are afraid to try for fear of transition nightmare.
It's more a question of company priority and customer demands. Try rewriting a few hundred thousand lines of code currently in production at several customers, who all want modifications. Unless you have enough manpower to dedicate a team to maintenance, that's not going to happen. Especially if the competition keeps churning out new features.
Re: Unix system programming in OCaml
#10Language-wise, it is a really nice and interesting, indeed. But two things keep me away from OCaml, both reported by the same company (Jane Street), which apparently uses OCaml in production: 1. Standard library was so weak that they had to come up with in-house replacement (which is now open sourced). 2. No true parallelism due to runtime limitations (single runtime lock) - http://queue.acm.org/detail.cfm?id=2038036
4. Stack traces are as likely to be wrong as right
5. Too much boilerplate exception handling (e.g Not_found)
6. Clunky type polymorphism (e.g. Set)