News for hackers. Stuff that matters.
Re:Jane Street releases open source alternative to OCaml's s... by cpeterso on Saturday January 07, 2012 @10:13PM (#3438767)
What was the initial motivation for writing an alternative "standard" library? Is it self-sufficient or does it build new frameworks onto of OCaml's standard library?
Re:Jane Street releases open source alternative to OCaml's s... by lins on Sunday January 08, 2012 @12:44AM (#3438983)
The std-lib in OCaml's official release by INRIA is very basic and not enough to be used in medium/large projects, and some people would rather call it "base-lib" instead of "std-lib" . Two major libraries can be used as an alternative, i) Jane Street's Core libraries. and ii) the comunity-driven "Batteries included".

Related links:

Core: https://bitbucket.org/yminsky/ocaml-core/wiki/Home Batteries: https://github.com/ocaml-batteries-team/batteries-included

Re:Jane Street releases open source alternative to OCaml's s... by dkersten on Sunday January 08, 2012 @01:14AM (#3439015)
For someone just starting out with OCaml, what are the pros and cons of one over the other? (or which would you recommend and why?)

I've been interested in OCaml for a good few years now and have tinkered with it from time to time, but I think its time I gave it serious try.

Re:Jane Street releases open source alternative to OCaml's s... by lins on Sunday January 08, 2012 @02:49AM (#3439122)
First, I think for beginners the std-lib is fairly enough for basic learning tasks. Choosing a library is something one should consider only after he has gained some insight of the language.

Second, As no better than someone "just starting out with OCaml" myself, I'd like to redirect you to this page on StackOverflow for a comparison between Batteries and Core:

http://stackoverflow.com/questions/3889117/what-are-the-pros....

Re:Jane Street releases open source alternative to OCaml's s... by dkersten on Sunday January 08, 2012 @11:07AM (#3439786)
Great, thanks for the link!

Choosing a library is something one should consider only after he has gained some insight of the language.

Well, like I said, I've tinkered with OCaml in the past and have a reasonable idea what it has to offer. While I still have a lot to learn before I can properly make use of OCaml idioms and such, I would prefer if I didn't have to relearn the library as soon as I get to a level where I can write real programs. From the link I see that Batteries is backwards compatible with the standard library, so perhaps its the better one to start with for a beginner.

Re:Jane Street releases open source alternative to OCaml's s... by samdk on Sunday January 08, 2012 @12:06AM (#3438938)
I'm really not the right person to be answering this. I haven't been at Jane Street that long, and I have no experience programming OCaml without Core. You'll likely get a much better answer on the mailing list: https://groups.google.com/forum/#!forum/ocaml-core. (I've also posted a link there to this discussion already, so hopefully someone will come by and give you a better answer.)

Probably the biggest difference between Core and the INRIA (default) standard library is that Core itself is mostly written in OCaml. This has many benefits: code is less verbose, easier to read, it's easier to verify correctness, etc.