Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Programming

OCaml For the Masses 338

CowboyRobot writes "Yaron Minsky of Jane Street argues that the time has come for statically-typed functional languages like OCaml and Haskell. He cites many reasons and illustrates what he says is the most important, concision: 'The importance of concision is clear: other things being equal, shorter code is easier to read, easier to write, and easier to maintain.'"
This discussion has been archived. No new comments can be posted.

OCaml For the Masses

Comments Filter:
  • by tuffy ( 10202 ) on Tuesday October 04, 2011 @02:09PM (#37601792) Homepage Journal
    Both Ocaml and Haskell can compile directly to native machine code and aren't tied to decrepit virtual machines. In particular, Haskell's compiler is written in Haskell for optimal bootstrappy fun.
  • by Anonymous Coward on Tuesday October 04, 2011 @02:11PM (#37601816)

    You mean like right now? Haskell's pretty mature, and it's been able to compile to native code for years. It's pretty straight forward to talk to C (the universal ABI) with Haskell (well, as straight forward as anything is in Haskell).

    OCaml has been mature for nearly a decade, by the way. Without the success it's had, languages such as Haskell and F# wouldn't be around. It also can compile to native code, and has been able to since inception.

    PS, the .NET VM isn't really decrepit, it's much more performant than the JVM is. Sadly, mono isn't nearly as mature as the actual .NET virtual machine.

  • by Anonymous Coward on Tuesday October 04, 2011 @02:30PM (#37602068)

    I have the perfect hammer.

    Would that be the C family of languages used all over the place?

  • by Anonymous Coward on Tuesday October 04, 2011 @02:38PM (#37602158)

    haskell for "the masses" is possible as soon as "the masses" has a degree in mathematics. java and php are copy-and-paste languages, functional languages simply take more thinking to compile at all, and i think many programmers are not prepared to do that to the required degree, although i'd love to be proved wrong.

    Functional languages are very easy to master, much much easier than Java or C++; and no you certainly don't need a degree in mathematics to understand and program in Scala or Haskell or Ocaml.
    The problem is the mas of sunday day programmers out there that think that javascript or php are the end all to computer languages.

Remember to say hello to your bank teller.

Working...