News for hackers. Stuff that matters.
Re:OCaml, Batteries Included 1.0.0 released by Yoric on Saturday January 23, 2010 @06:12AM (#1071673)
A huge project for turning OCaml into a truly usable development platform. I can't wait to test version 1.0.0 .
Re:OCaml, Batteries Included 1.0.0 released by j_baker on Saturday January 23, 2010 @08:30AM (#1071781)
I love OCaml. But its standard library has always struck me as... less than perfect. Batteries is definitely a big improvement though.
Re:OCaml, Batteries Included 1.0.0 released by capablanca on Saturday January 23, 2010 @11:09AM (#1071968)
OMG if Slava Pestov was on Ocaml..
Re:OCaml, Batteries Included 1.0.0 released by jacquesm on Saturday January 23, 2010 @06:33AM (#1071691)
Re:OCaml, Batteries Included 1.0.0 released by Yoric on Saturday January 23, 2010 @06:35AM (#1071692)
Thanks
Re:OCaml, Batteries Included 1.0.0 released by jacquesm on Saturday January 23, 2010 @06:39AM (#1071696)
Only because the other one comes with a ton of warnings about expired certificates and exceptions that need to be added.

Weird how they run an https server for a language forum anyway.

Re:OCaml, Batteries Included 1.0.0 released by machrider on Saturday January 23, 2010 @08:38AM (#1071786)
The Bat* names strike me as a little odd. Does OCaml not have namespaces?
Re:OCaml, Batteries Included 1.0.0 released by mfp on Saturday January 23, 2010 @11:10AM (#1071969)
The new module organization avoids collisions with existing libraries like Extlib while allowing you to link Batteries' modules selectively, thus decreasing the size of the generated executables.

For convenience, all the modules are also available under the Batteries namespace. In this case, however, all of Batteries' code will be included in the executable --- that's how OCaml's linker works at the moment.

For instance, if you only use BatList in your code (or do module List = BatList to refer to it with that name), only that module will be included in the binary; if you do

    open Batteries
and then refer to the module simply as List, all the other modules in the Batteries hierarchy will also be included in the binary.
Re:OCaml, Batteries Included 1.0.0 released by j_baker on Saturday January 23, 2010 @08:46AM (#1071798)
It's sort of .Net or Java-like. Each source file is its own module. However, when you open a module, you import everything into the current module.

You can also use dotted notation: Module.thing

Re:OCaml, Batteries Included 1.0.0 released by capablanca on Saturday January 23, 2010 @08:17AM (#1071767)
Windows build already?