From: Dave Benjamin <dave@ramenlabs.com>
To: caml-list@yquem.inria.fr
Subject: OCaml PLEAC reaches 70%
Date: Sun, 29 Jun 2008 09:30:14 -0700 [thread overview]
Message-ID: <4867B896.2040506@ramenlabs.com> (raw)
Hello,
The PLEAC project aims to translate the source code examples of the Perl
Cookbook to many programming languages. I have been working steadily for
the past two years toward completing the OCaml translation. As of today,
it is 70.71% complete, in between Ruby (64.43%) and Python (85.43%).
http://pleac.sourceforge.net/
http://pleac.sourceforge.net/pleac_ocaml/index.html
Much of my recent work has been on the file I/O chapters, which cover
the topics of reading and writing to files using Pervasives and the Unix
module. The file access chapter covers argument parsing, file locking,
buffering and non-blocking I/O:
http://pleac.sourceforge.net/pleac_ocaml/fileaccess.html
The file contents chapter contains some helpful examples of working with
Streams and Buffers, line-indexing of large files, and manipulation of
binary data including an example of using Richard Jones' Bitmatch
library to parse and "tail" Linux's binary "utmp" database of login events:
http://pleac.sourceforge.net/pleac_ocaml/filecontents.html
I have updated the PDF version as well, if you prefer to read PLEAC in
an offline format. You can download it here:
http://ramenlabs.com/pleac-pdf/pleac_ocaml.pdf
As always, feedback, corrections, and contributions are more than
welcome, and I will do my best to make suggested improvements. I think
that, despite being somewhat Perl-centric and in need of more
explanation, the OCaml PLEAC has already become a valuable resource. I
refer to it frequently myself. Hopefully some day there will be a real
OCaml Cookbook. In the meantime, there are a lot of practical code
snippets that can save a few trips to the manual / interface files. I
hope you find it useful as well.
Thanks,
Dave
next reply other threads:[~2008-06-29 16:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-29 16:30 Dave Benjamin [this message]
2008-06-29 20:36 ` [Caml-list] " Erik de Castro Lopo
2008-06-30 4:58 ` Dave Benjamin
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=4867B896.2040506@ramenlabs.com \
--to=dave@ramenlabs.com \
--cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).