From: Martin Jambon <martin@wink.com>
To: caml-list@inria.fr
Subject: Dum: dumper module with cycle detection
Date: Mon, 22 Sep 2008 22:55:31 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0809222220150.14286@martin.ec.wink.com> (raw)
Hi list,
Wink.com is releasing a module called Dum for dumping data.
It derives from Dumper by Richard W Jones (now Std.dump in Extlib) and
from Size by Jean-Christophe Filliatre.
http://oss.wink.com/dum/
The main improvement over the original Dumper is that shared values
and therefore cycles are detected and labelled:
# let rec loopy = 1 :: 2 :: loopy in Dum.p loopy;;
- : string = "#0: (1 (2 #0))"
Dum was originally developed to print the maximum out of uncaught
exceptions, since the standard Printexc.to_string does not go arbitrarily
deep and this was occasionally a source of frustration.
Now data such as closure fields and object fields are dumped like regular
data without causing particular problems or worries.
The output is pretty-printed and its size limit is configurable.
Enjoy!
Martin, for Wink.
--
http://wink.com/
reply other threads:[~2008-09-22 21:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.64.0809222220150.14286@martin.ec.wink.com \
--to=martin@wink.com \
--cc=caml-list@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