caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: John Prince <john.prince@colorado.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] questions
Date: Wed, 25 Mar 2009 00:17:03 +0000	[thread overview]
Message-ID: <20090325001703.GB14880@annexia.org> (raw)
In-Reply-To: <364f41440903241242v6dd2244fkbbd1ea8e3b20af60@mail.gmail.com>

On Tue, Mar 24, 2009 at 01:42:40PM -0600, John Prince wrote:
> 1) Is there something comparable to RSpec (i.e., behavior driven
> development)?  A recommendation on which testing module to use?

Possibly ounit?  To be honest test-driven development is more useful
with dynamic languages, because the compilers for those languages pick
up so few errors.  In OCaml the compiler is much more thorough, and by
the time your program "passes" the compiler, it's bug free!  (Well,
that's the theory anyhow :-)

> 2) Is there something like 'ri' in ocaml?  (commandline access to basic
> documentation)

I usually use this low-tech but very effective solution:

  cd $(ocamlc -where)
  less <module>.mli

One catch is that the first letter in <module> is lowercase, whereas
module names themselves start with an uppercase letter.
eg: unix.mli vs Unix

> 3) Is there consensus on the best/fastest xml parser?

There are certainly several to choose from :-)

> 4) What kind of YAML support is there?  I've seen an ad-hoc writeup to read
> in JSON in an ocaml program, but I'm much more familiar with YAML.

ocaml-syck (not used it).  For JSON use json-wheel and/or json-static.
I've recently become a fan of s-expressions because it's ridiculously
easy to write s-expressions from any other language and then import
those directly into OCaml data structures.  (See the sexplib library /
syntax extension).  I have been "liberating" a lot of data from Python
programs this way.

  http://ocaml-syck.sourceforge.net/
  http://martin.jambon.free.fr/json-wheel.html
  http://www.ocaml.info/home/ocaml_sources.html#sexplib310

> Where is the message archive located?  Is it searchable?

Google ...

> Can someone point me to the best resource(s) for newbies?  I have been
> reading through what's out there, but its always nice to get a
> recommendation.

You should definitely join the ocaml_beginners mailing list.

INRIA have beginners' resources here:

  http://caml.inria.fr/resources/index.en.html

I maintain this site, along with dozens of external contributors:
  http://www.ocaml-tutorial.org/
Scroll down for plenty of external links ...

Rich.

-- 
Richard Jones
Red Hat


  parent reply	other threads:[~2009-03-25  0:17 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-24 19:42 questions John Prince
2009-03-24 20:42 ` [Caml-list] questions Stéphane Glondu
2009-03-24 20:44 ` Jon Harrop
2009-03-25  0:17 ` Richard Jones [this message]
2009-03-25  1:11   ` Daniel Bünzli
2009-03-25  0:24 ` questions Michael Ekstrand
2009-03-25  5:45 ` [Caml-list] questions David Rajchenbach-Teller
2009-03-25 17:16   ` John Prince
2009-03-27 22:14 ` xah lee
2009-03-31 13:37   ` Kuba Ober
2009-03-31 14:44     ` Martin Jambon
2009-04-01 13:49       ` Thomas Gazagnaire
2009-04-01 19:13       ` David MENTRE
2009-04-01 19:27         ` Jon Harrop
2009-04-01 20:23           ` Re : " Matthieu Wipliez
2009-04-02  7:20             ` David MENTRE
2009-04-02  8:06               ` LLC book [was: Questions] Xavier Leroy
2009-04-02  8:23                 ` [Caml-list] " Alp Mestan
2009-04-04 17:17             ` Re : [Caml-list] questions Kuba Ober
2009-03-31 16:31     ` Xavier Leroy
2009-04-01  9:14       ` FALCON Gilles RD-RESA-LAN
2009-04-01 12:59         ` Mihamina Rakotomandimby (R12y)
2009-04-01 16:45           ` Kuba Ober
2009-04-01 13:13         ` Xavier Leroy
2009-04-01 13:42           ` Till Varoquaux
2009-04-01 16:29         ` Kuba Ober
2009-04-01 15:17       ` xahlee
2009-04-02 10:35       ` Florian Hars
2009-03-31 21:18     ` Jon Harrop
  -- strict thread matches above, loose matches on Subject: below --
2006-11-06 18:51 questions Igor Ozerov
2006-11-06 23:18 ` [Caml-list] questions Richard Jones
2006-11-07  8:55   ` Richard Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090325001703.GB14880@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=john.prince@colorado.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).