OCaml/js_of_ocaml is presently my favourite AltJS stack.<p>OCaml syntax is super idiosyncratic and doesn't resemble anything, but, once you retrain your eyes, the underlying semantics are terrific.<p>js_of_ocaml imposes very minimal code overhead (6k-ish). Sourcemaps work great, and OCaml values are mapped into JS in a very straightforward way. You can read them in a JS debugger.<p>Ocsigen's lwt library is also the best "callback hell" solution I've found.
I started writing OCaml in college after hearing a talk by Jane Street [0], one of the most outspoken corporate supporters of OCaml.<p>After getting past the steep learning curve (about a weekend of pedal-to-the-metal debugging), I really got a feel for how beautiful OCaml semantics really are.<p>If you're looking for a solid and familiar OCaml stack, check out OWebl [0]. Always looking for helping hands or other support.<p>[0] - <a href="https://www.janestreet.com/" rel="nofollow">https://www.janestreet.com/</a><p>[1] - <a href="http://meetowebl.com" rel="nofollow">http://meetowebl.com</a>
There's a very good (and multithreaded!) implementation of OCaml for the JVM: <a href="http://www.ocamljava.org/" rel="nofollow">http://www.ocamljava.org/</a>
OCaml is a hard sell for me. I want to really like it but everytime I start to play with it, I drift back to F#, .net core, service stack, and all the other open source projects are really hard to compete with. The Syntax is similar to OCaml (really really close IMO) and other then it's ties to Microsoft it's seems to be all upside with F#. Is there a compelling lib or advantage of OCaml over f#?
This page is from 2006!<p>I guess the official homepage <a href="http://ocaml.org" rel="nofollow">http://ocaml.org</a> would be better for up-to-date information.
I recently looked at OCaml and quite liked it, but I was wondering if there is any SLIME/Geiser (these are the lisp and scheme IDEs for emacs) equivalent for it?
I know there is tuareg-mode, but as far as I can tell it is not nearly as convenient as SLIME.
Any ideas?
I've been developing in Haskell for a while and I recently had to learn OCaml to help TA for a course in my university.<p>I couldn't shake the feel that I was learning "Haskell Light". No pure/impure code (I/O, mutable references, exceptions), no monad syntax sugar, less syntax sugar for pattern matching, much smaller base library, plus surely other differences that my current level of expertise of Haskell is hiding.<p>Perhaps the simpler semantics make it easier to translate to js (I know haskell->js transpilers are very complex and I'm sure lazy evaluation has a lot to do with it), but in terms of language features, what am I missing in Haskell that makes you more productive/helps you write clearer code in OCaml?
I can't find the time to learn a language for fun. I need to find a way to incorporate it into my daily routine. There just aren't enough hours in the day to play.<p>Anyway, I've got a couple side projects, one of which is website in Go. How's OCaml for web development?<p>I also saw oCaml for iOS but it didn't seem to be up to date:
<a href="http://psellos.com/ocaml/compile-to-iphone.html" rel="nofollow">http://psellos.com/ocaml/compile-to-iphone.html</a>
My only skeptikism with OCaml is that OPAM (latest packages) does not work on windows and does not cooperate with msys2 (lates libraries) or another port solution like winbuilds.<p>I have to install msys2 and keep compiling by hand.<p>Even if a source solution that kept updating even if I had to compile regularly, would be preferable.<p>This is my only hesitation.
I did a couple small projects in OCaml and I loved the syntax and style of programming, but I think there would pretty much always be a better language choice for a serious project, regardless of what type of program you are writing. Also, the standard library leaves a lot to be desired and parts of the ecosystem (e.g. docs, and OPAM) are pretty rough. The standard library has a lot of gaps so you end up implementing a lot of low-level functions that will seem tedious and inefficient if you are coming from a more mainstream language with a rich ecosystem. Using the Jane Street's Core library helps a little bit but still leaves a lot of gaps. It's still a fun language though, but I don't think there would be a compelling reason to choose it nowadays for a new project.
I'm studying this language right now at a french school, with INRIA researcher.<p>And, well... I'm not really satisfied with it. OCaml produces a small amount of code, but is really slow and hard to understand. Sometimes, it looks like obfuscated code!<p>Documentation and libraries are not polished, and I would recommend Haskell instead of OCaml. Good for research and some algorithms, bad for applications.<p>And... God... "This page was last updated on 17 June 2006."
I was as recently as today quite curious to find that there was an implementation of Ocaml 2.00 for RISC OS, but alas, it seems to have been lost to the internet.
This is just a list of resources to learn OCaml, there is nothing about convincing skeptical people here.<p>Also, this page is almost ten years old.<p>Not sure how this kind of post ever makes it to the front page.