Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Francisco Reyes" <fran@reyes.somos.net>
To: "caml-list@pauillac.inria.fr" <caml-list@pauillac.inria.fr>
Subject: Seeking pratical tutorial or examples.
Date: Sun, 15 Oct 2000 20:52:25 -0400	[thread overview]
Message-ID: <200010160046.UAA57403@sanson.reyes.somos.net> (raw)
In-Reply-To: <25507.971539172@silvercomet.emperorlinux.com>

I have looked at the caml site, the hump and all I links I could
find from the main site.
So far the manuals/tutorials I have seen did not "quick start"
my development intentions.

I am looking for a pratical tutorial or some simple beginner
examples. After days of reading the manuals I am yet to be able
to write even a simple program. Even when I skip sections on the
manuals they still don't offer anything beyond Syntax.

Isn't there a code snippet/samples page?

What I have tried so far are the intro on the Ocaml Manual,  the
"Functional Programming using Caml light" and "One hundred lines
of Caml".

Comments on the 3 sources I mentioned above:
** Ocaml Manual: The intro is not bad, except that for those of
us coming from languages without a built in interactive system
we may not be as interested to start with that. Why? because
although great for learning it is of not much use unless we just
want to try simple things. It also falls short of giving enough
info to get one started.

I think the following order may be more benefitial to someone
coming from languages such as C/pascal.
-Start by having something which shows a compiled program and a
few basic statements (i.e. ask for name and then print hello
<name>. 

-Cover data types and show the functions to read them and
display them. No fancy explanation about "channels" just give
examples using print functions and whatever is used to read info
into a variable.

-Loops and branching: "for" and "if"

-Cover functions

-Basic file I/O

-String handling

-More advanced data structures/types: arrays, user defined data
types, lists.

-The interactive system

And of course on all those steps start showing the user the way
things are written in Ocaml and how things are called in it.


** Functional Programming using Caml Light
I am up to chapter 5 and I am yet to dream of how to actually
write a complete program. Even after I jumped chapters ahead to
chapter 9, Basic I/O, there are one line descriptions or trivial
use of the fucntions, but I didn't even see a simple brief
program to show all elements together. The document almost seems
like reference material, except that it is too
descriptive/narrative to be that.


** One Hundred lines of Ocaml: This is enough to give a "taste"
of the language, but far from been enough to start hacking.

Have a missed a kinder/gentler tutorial somewhere?
Somewhere on the caml site I saw a mention about a series of
examples that come with the compiler. The FreeBSD port I got
didn't have them and I was unable to find them on the web site
(caml.inria.fr)


francisco
Moderator of the Corporate BSD list
http://www.egroups.com/group/BSD_Corporate




  reply	other threads:[~2000-10-16  6:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-14 15:59 OCaml sync tool for Rex organizer bcpierce
2000-10-16  0:52 ` Francisco Reyes [this message]
2000-10-16  5:42   ` Seeking pratical tutorial or examples Alan Schmitt
2000-10-16 11:20     ` Francisco Reyes
2000-10-16  7:49   ` Pierre Weis
2000-10-16 17:57     ` Chris Hecker
2000-10-17 17:40       ` Stefan Monnier
2000-10-18  5:52       ` Francisco Reyes
2000-10-18  7:20         ` Chris Hecker
2000-10-18 13:31         ` Stephan Houben
2000-10-16 21:46 Brent Fulgham
2000-10-17 10:10 ` Francisco Reyes
2000-10-17 17:51 ` Chris Hecker
2000-10-18  5:58   ` Francisco Reyes
2000-10-17 19:21 Brent Fulgham
     [not found] <20001019101803A.garrigue@kurims.kyoto-u.ac.jp>
2000-10-19 19:02 ` Francisco Reyes

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=200010160046.UAA57403@sanson.reyes.somos.net \
    --to=fran@reyes.somos.net \
    --cc=caml-list@pauillac.inria.fr \
    /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