From: "chen yang" <chenyang@kongzhong.com>
To: <whenning@ucsd.edu>, <caml-list@inria.fr>
Subject: RE: [Caml-list] Experiences with learning OCaml?
Date: Thu, 25 Nov 2004 20:28:45 +0800 [thread overview]
Message-ID: <200411251229.iAPCT2bZ025434@concorde.inria.fr> (raw)
In-Reply-To: <3033.66.167.163.102.1101382830.squirrel@acs-webmail.ucsd.edu>
> -----Original Message-----
> From: caml-list-admin@yquem.inria.fr
> [mailto:caml-list-admin@yquem.inria.fr] On Behalf Of whenning@ucsd.edu
> Sent: Thursday, November 25, 2004 7:41 PM
> To: caml-list@inria.fr
> Subject: [Caml-list] Experiences with learning OCaml?
>
> Hi,
>
> I'm an undergraduate student studying computer science. My
> course assignments generally use C, C++, or Java, and I find
> myself pining for something more elegant. That is, I'd like
> to teach myself a functional programming language of some
> kind. I don't think I like all the parentheses in Lisp. But I
> was very impressed by a Haskell implementation of the usual
> quicksort algorithm which was very concise -- only 5 lines or
> so. However OCaml seems to have a larger community and has a
> reputation for fast executation times, so that seems like a
> better fit.
>
> The academic term at my university is ending soon and I'll
> have a few weeks of free time on my hands -- I was thinking
> of checking out a suitable text on some functional
> programming language from the library and working through some of it.
>
> Would doing this be difficult if one were sufficiently
> motivated? I sort of did something similar with C++ a while
> ago with some amount of success.
>
> Although I've of course Googled around for potential books to
> select, are there any ones particularly suited for someone in
> my position?
>
Firstly, I suggest that you should know some basic theory of lambda
culculus,
which definitely help you understand functional programming better.
Then you can write some basic algorithms, such as sorting, binary tree, etc.
Here is an good book, http://caml.inria.fr/oreilly-book/ , or
you can begin with more simple one,
http://www.cs.caltech.edu/courses/cs134/cs134b/book.pdf
> Finally, although OCaml looks interesting, would some other
> functional language be better for someone new to functional
> programming? If so, which? I ask because I don't know anyone
> who uses functional languages or even knows how to use one.
>
Ocaml will satisfy you. Scheme is another good choice, with its simple and
grace syntax.
-chen
> Thanks.
>
> -Warren
>
next prev parent reply other threads:[~2004-11-25 12:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-25 11:40 whenning
2004-11-25 11:59 ` [Caml-list] " Erik de Castro Lopo
2004-11-25 13:46 ` skaller
2004-11-25 12:28 ` chen yang [this message]
2004-11-25 13:52 ` Martin Berger
2004-11-25 13:36 ` Richard Jones
2004-11-25 20:39 ` Joshua D. Guttman
2004-11-25 20:56 ` Michael Vanier
2004-11-25 21:16 ` Danny Yoo
2004-11-26 0:16 ` Martin Berger
2004-11-26 0:15 ` Michael Walter
2004-11-26 0:47 ` SooHyoung Oh
2004-11-26 1:46 ` Michael Vanier
2004-11-26 3:09 ` SooHyoung Oh
2004-11-26 6:56 ` William Lovas
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=200411251229.iAPCT2bZ025434@concorde.inria.fr \
--to=chenyang@kongzhong.com \
--cc=caml-list@inria.fr \
--cc=whenning@ucsd.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