Slashdot Mirror


mod_caml Comes Of Age

Richard W.M. Jones writes "mod_caml is a set of bindings between Objective Caml and the full Apache API. mod_caml 0.6 has bindings for the Apache API and a full Perl-like CGI and templating library. There's only two things you need to know about Objective Caml: it's a modern, fully-featured and highly-optimised language, and it has a good tutorial so Perl/Java/C/C++ programmers can join in the fun."

5 of 43 comments (clear)

  1. O'Caml for Scripting? by Anonymous Coward · · Score: 1, Interesting

    i have a question: ocaml is usually only used for "heavy" projects like compilers or proof assistants. however, it should also be a great scripting language. i wonder if other people have used it for this purposes and would like to relay their experiences -- good or bad?

    1. Re:O'Caml for Scripting? by wcbarksdale · · Score: 2, Interesting
      Only in a very limited sense could Python be considered strong typing. It's stronger than C, but most anything is, and you can do things like
      obj.feild = 4
      and in general, functions tend to care about whether their arguments have certain properties (you can apply something to them) rather than what type they are.

      And yes, type inference is absolutely necessary to have a workable strong-typing system - otherwise you end up with something as verbose as Java.

    2. Re:O'Caml for Scripting? by Richard+W.M.+Jones · · Score: 2, Interesting
      Erm, and the other way to do it is by loading a shared module. In httpd.conf:

      CamlLoad /path/to/my/module.cmo

      Then all scripts can access functions/values in Module.

      Rich.

  2. Re:Improved linkage by Anonymous Coward · · Score: 1, Interesting

    does it really make sense to say that O'Caml is a functional language? clearly it has references and hence is not a pure functional language. it is a mixed paradigm language, like java or c++. in fact, syntactic differences aside, java is a sublanguage of o'caml! hard to believe that o'caml is nevertheless faster than java, but it is ... good work xavier et al!

  3. Re:Improved linkage by zangdesign · · Score: 2, Interesting

    I can see his point about hating /. - I read his reasons and they're all reasonable opinions. I pray god I never post anything that is even remotely interesting to /. as a whole.

    So far, no worries on that point.

    --
    To celebrate the occasion of my 1000th post, I will post no more forever on Slashdot. Goodbye.