News for hackers. Stuff that matters.
Re:Try OCaml in Your Browser by christiangenco on Friday December 23, 2011 @10:07PM (#3388029)
Other than a novel syntax, what are the advantages of using OCaml over python, perl, or ruby?
Re:Try OCaml in Your Browser by thelema314 on Friday December 23, 2011 @11:11PM (#3388154)
1) Strict yet expressive typing. Find errors at compile time rather than runtime, while still allowing a very flexible set of values to be described. (tuples, sets, lists, hashtables, maps, arrays, records, objects, etc.)

2) Efficiency. Python, perl, ruby are all... slow. OCaml compiles to very efficient native code. Xavier Leroy's accomplishment is a high level language that's within 2x the speed of C.

Re:Try OCaml in Your Browser by christiangenco on Tuesday December 27, 2011 @09:08AM (#3395761)
Got it. 2x the speed of C is very interesting... this could come in handy the next time I need to write a physics/math computation script.
Re:Try OCaml in Your Browser by swah on Saturday December 24, 2011 @11:25PM (#3390428)
Just having a nice way to define datatypes is already a big win against dynamic languages:

    type tree = Empty
              | Leaf of int
              | Node of tree * tree
What I would like to know is: could it have Python's community/libraries, or the language itself somehow prevents this blossoming from happening?