Browse thread
OCaml efficiency/optimization?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Martin Chabr <martin_chabr@y...> |
| Subject: | Ant: [Caml-list] Re: OCaml efficiency/optimization? |
The second reference you mentioned (Ocaml for Experienced Programmers by Brian Hurt) is an excellent and very detailed introduction to functional programming in OCaml for C/C++/Java etc. programmers. It explaines a lot on the subject of optimization which I have not found elsewhere: It makes clear how OCaml uses the built-in singly linked lists, the role of data sharing in these and what should be avoided for fast performance. I think that this book contains more "secrets to be used in production" than any other tutorial I know. Another tutorial you might have a look at is the one by Rich Jones of Merjis Co. at: http://www.ocaml-tutorial.org/ It contains a chapter on performance and profiling at: http://www.ocaml-tutorial.org/performance_and_profiling Martin --- Tato Thetza <thetza@sent.com> schrieb: > sorry I meant > Ocaml for Experienced Programmers: > http://www.bogonomicon.com/bblog/book/html/book1.html > > On Fri, 28 Oct 2005 03:21:43 -0700, "Tato Thetza" > <thetza@sent.com> > said: > > I've been reading over > > > http://caml.inria.fr/pub/docs/manual-ocaml/index.html > and have learned > > two things: > > -lists are immutable and singly linked, which > explains why 1::[2;3] is > > valid while [2,3]::1 is not, and why its > efficient. > > -the proper way to ensure tail-recursive > optimization > > > > question: are these and other optimizations > documented somewhere > > officially? I find it a little uncomfortable I've > been learning OCaml > > without knowning such internal details. Any > secrets I should definitely > > know if I were to use this language in production? > > > > thanks, > > Tato Thetza > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: > http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de