From: "François Pottier" <francois.pottier@inria.fr>
To: Gabriel Scherer <gabriel.scherer@gmail.com>
Cc: KC Sivaramakrishnan <sk826@cam.ac.uk>, caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] [ANN] New release of visitors
Date: Thu, 9 Mar 2017 21:22:46 +0100 [thread overview]
Message-ID: <58C1B996.4090400@inria.fr> (raw)
In-Reply-To: <CAPFanBESvRPRPsa9hvLopwZADw3icBMgzuwdwnL_BZ++cB9xLw@mail.gmail.com>
Hello Gabriel,
Le 09/03/2017 20:17, Gabriel Scherer a écrit :
> This use of the monoid structure is very nice. I believe that you
> could cut through the intermediate tree structure as follows. Is there
> any downside?
You are right, Gabriel, my code is a defunctionalized version of yours,
which is much shorter. Nice!
I don't think there is any significant downside. You lose the
ability to perform the little optimization in my method [plus].
I don't see any other downside.
I take this opportunity to add that, although my previous solution
duplicates the definition of the type [sometree], this is actually
not necessary.
I will probably prepare a blog post with a cleaned up solution...
--
François Pottier
francois.pottier@inria.fr
http://gallium.inria.fr/~fpottier/
next prev parent reply other threads:[~2017-03-09 20:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 10:29 François Pottier
[not found] ` <CACVN0Vvw_oxj9bpEUJe0QBo5ZNC7pVE2b5LJQ+e7hSx-HnMa7A@mail.gmail.com>
2017-03-09 18:33 ` François Pottier
2017-03-09 19:17 ` Gabriel Scherer
2017-03-09 20:22 ` François Pottier [this message]
2017-03-14 17:28 ` François Pottier
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=58C1B996.4090400@inria.fr \
--to=francois.pottier@inria.fr \
--cc=caml-list@inria.fr \
--cc=gabriel.scherer@gmail.com \
--cc=sk826@cam.ac.uk \
/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