Earlier quoted context omitted.
> So what's impractical about Ocaml? The biggest issue Ocaml has is that its GC is single-threaded which basically removes the ability to do parallel programming inside a single executable. You have to resort to message passing between multiple processes. For what it's worth, I think I heard rumors there's work on an improved GC.
I'd add that Unicode support is also a problem. latin-1 isn't even good for French. My brother's name is Jérôme and the first thing I try with any language to check strings is this: # print_endline (String.uppercase "Jérôme");; JéRôME Oops, two characters didn't get properly uppercased. I really like OCaml, it's probably my favorite language, and I hope that RWO will increase its popularity and that this will in turn…
Real World Ocaml announced
41–50 of 58 posts
Re: Real World Ocaml announced
#42Discussions of whether OCaml is "practical" or useful or good aside, this book really, really needed to be written. It may be the case that there are truly excellent resources for learning OCaml, but I know the language, and I've never heard of them. There's Jason Hickey's tutorial, an introduction or two scattered around the internet, and some book that was fan-translated from French, sure, but OCaml lacks the hacke…
http://blog.merjis.com/2006/11/08/practical-ocaml/
I'm reviewing drafts of Real World OCaml too, but after the sheer amount of work (and what went wrong) with P.O., I'm just going to informally comment on them.
OCaml as a language is extremely useful and practical. A good book on it really needs to be written.
Re: Real World Ocaml announced
#43I'm curious. How many folks here have used OCaml for production work? I'd just like to get an idea of the numbers. Edit: By 'production work' I meant built things that are being used by other people.
* generating code, bindings etc in libguestfs (http://libguestfs.org/)
* analysing Windows Registries for hivex, using ocaml-bitstring
* virt-top
* virt-dmesg
* whenjobs
Re: Real World Ocaml announced
#44I'm curious. How many folks here have used OCaml for production work? I'd just like to get an idea of the numbers. Edit: By 'production work' I meant built things that are being used by other people.
You might find this interesting: https://ocaml.janestreet.com/?q=node/61 TL;DR: Jane Street is a quantitative trading firm whose language of choice is OCaml and has several people programming in it full-time. Besides experiencing the commonly-cited advantages of FP (productivity, expressiveness, local reasoning), they also found it highly performant, useful for rapid prototyping and resilient to changing requirements…
Re: Real World Ocaml announced
#45Perhaps OT: I've tried to like OCaml 2 or 3 times so far and have not succeeded. I've loved Haskell (until I hit the wall), enjoy Python, enjoyed Ruby, am very happy with JS, had a love/hate relationship with C/C++ (really, header files?!), loved Java compared to C/C++ (until I learned to hate Java). And I'm generally really excited by what's going on in languages right now. I just wish there was an SML for the JVM.…
i) It needs better libraries, or perhaps better library documentation. A full hour of my time was spent working out how to read lines from a file.
ii) It is a beautiful language. The code I wrote, as someone completely new to the language and not using any libraries, was much shorter than the equivalent code I would have written in Python, a language which I know much better, and an order of magnitude shorter than what I would have written in Java or C. It makes functional abstraction easy in the same way that Haskell does, but the ability to mix in imperative code if it gets the job done in fewer lines (or in a less mind-bending way) is supremely useful.
Re: Real World Ocaml announced
#46I'm curious. How many folks here have used OCaml for production work? I'd just like to get an idea of the numbers. Edit: By 'production work' I meant built things that are being used by other people.
Re: Real World Ocaml announced
#47Re: Real World Ocaml announced
#48Perhaps OT: I've tried to like OCaml 2 or 3 times so far and have not succeeded. I've loved Haskell (until I hit the wall), enjoy Python, enjoyed Ruby, am very happy with JS, had a love/hate relationship with C/C++ (really, header files?!), loved Java compared to C/C++ (until I learned to hate Java). And I'm generally really excited by what's going on in languages right now. I just wish there was an SML for the JVM.…
My only experience with OCaml is two hours that I spent coding in it for an interview problem. So, from a complete beginner's perspective: i) It needs better libraries, or perhaps better library documentation. A full hour of my time was spent working out how to read lines from a file. ii) It is a beautiful language. The code I wrote, as someone completely new to the language and not using any libraries, was much shor…
Re: Real World Ocaml announced
#49I'm curious. How many folks here have used OCaml for production work? I'd just like to get an idea of the numbers. Edit: By 'production work' I meant built things that are being used by other people.
Re: Real World Ocaml announced
#50Earlier quoted context omitted.
So what's impractical about Ocaml? I just looked at it and it looks cool, but I haven't tried it for anything. If they actually have event driven programming that seems like a big step over most functional languages, where I/O is kind of an afterthought. Steve Yegge wrote some points about Ocaml quite awhile ago. http://sites.google.com/site/steveyegge2/ocaml He says it is quite fast and I've seen that in other place…
I've tried OCaml a few times over the years, and I think its biggest problems are chicken/egg problems. It's impractical for "real world" use because not many people are using it in the real world. My biggest complaints: * Poor libraries - This is getting better, but it used to be a real pain to do stuff like make an HTTP request, parse JSON or XML, or connect to a database. They definitely weren't in the stdlib, and…
This is something I have been working on http://gaiustech.github.com/ociml/