topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 6:06 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: F# (Ocaml) looks like a killer language on paper. Opinions?  (Read 8404 times)

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
F# (Ocaml) looks like a killer language on paper. Opinions?
« on: November 11, 2008, 03:26 AM »
I've looking at Ocaml since a friend told me that the programming languages I use (ruby and R) are girly :). I of coruse asked "So what's not girly then for you? :) ... he was an Ocaml user. and I can see why he said that:

  • Strong typing
  • Types are inferred
  • Functional, but OO possible
  • Great compiler: Faster than C++
  • debugger can go back in time

And if Microsoft has copied it for their future language, there must be something to it (F# is Ocaml syntax):

http://spotless-spot...11/why-i-like-f.html

The main advantage of using F# is visual studio, and the graphics libs/windows integration if that suits you.

Functional languages are associated with 'academic' and 'not practical'. This is mostly because other programming languages come with the kitchen sink (libraries for everything), and most functional languages don't. But this is changing. There is  "Ocaml batteries included":
http://dutherenverse...-alpha-2-has-landed/
http://www.reddit.co..._batteries_included/

So I'm just poking around. Threre's a free book (in beta), and Steve Yegge loved the language for a while (he then repented).

Textbook:
http://files.metaprl...g/doc/ocaml-book.pdf

Yegge:
http://steve.yegge.g...pages.com/more-ocaml

Here's some more cool things you can do with it:
http://camltastic.bl...-you-cant-do-in.html

What do you think? Anyone has any experience? Anyone feeling like jumping in?

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 1,321
    • View Profile
    • Donate to Member
Re: F# (Ocaml) looks like a killer language on paper. Opinions?
« Reply #1 on: November 11, 2008, 05:25 AM »
mldonkey is written in ocaml, it is a P2P program that supports several P2P protocols. I used to use it a few years back because it was very light-weight. Maybe it can serve as an example what is possible with ocaml.


urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,837
    • View Profile
    • Donate to Member
Re: F# (Ocaml) looks like a killer language on paper. Opinions?
« Reply #2 on: November 11, 2008, 06:02 AM »
also, unison (file synch) is written in ocaml.

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 1,321
    • View Profile
    • Donate to Member
Re: F# (Ocaml) looks like a killer language on paper. Opinions?
« Reply #3 on: November 11, 2008, 12:17 PM »
oh I didnt know that. nice to know, I use unison every once in a while