From: skaller <skaller@users.sourceforge.net>
To: Tom <tom.primozic@gmail.com>
Cc: David Teller <David.Teller@ens-lyon.org>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Feature request : Tuples vs. records
Date: Fri, 23 Feb 2007 10:26:35 +1100 [thread overview]
Message-ID: <1172186795.9935.57.camel@rosella.wigram> (raw)
In-Reply-To: <c1490a380702221145n453c3ed8w45f144a358a2a6b1@mail.gmail.com>
On Thu, 2007-02-22 at 20:45 +0100, Tom wrote:
> In general, there is a problem with structural (sub)typing... Although
> it seems better and in all ways superior to nominal (sub)typing from
> the theoretical point of view, practically, it is... slow. (At least
> when compared to nominal (sub)typing).
It isn't slow if you actually use the power: your program
compiles and runs with amortised O(1) dispatch.
The equivalent C++ program can be written, and requires
a base for each method, and a base for every possible
combination of methods .. and whilst you're uploading
the sources for these combinations to the Klingon computer
network fortunately the universe suffers heat death.
[This is a good thing because there's no way you were
going to be able to pay Enterprise ISP P/L the network
traffic charges]
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
next prev parent reply other threads:[~2007-02-22 23:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 10:25 David Teller
2007-02-22 10:42 ` [Caml-list] " Andrej Bauer
2007-02-22 12:41 ` skaller
2007-02-22 13:55 ` David Teller
2007-02-22 15:44 ` Jon Harrop
2007-02-22 19:45 ` Tom
2007-02-22 23:26 ` skaller [this message]
2007-02-22 15:28 ` Andreas Rossberg
2007-02-22 15:57 ` Till Varoquaux
[not found] ` <45DDC424.2020804@ens-lyon.org>
2007-02-22 16:57 ` Till Varoquaux
2007-02-22 17:19 ` brogoff
2007-02-22 15:34 Frederic GAVA
2007-02-22 16:16 ` David Teller
2007-02-23 1:39 ` Jacques Garrigue
2007-02-23 13:34 ` Richard Jones
2007-02-23 13:43 ` Till Varoquaux
2007-02-23 14:14 ` Nicolas Pouillard
2007-02-23 1:45 ` Jon Harrop
2007-02-23 16:32 ` Lukasz Stafiniak
2007-02-24 13:43 ` Lukasz Stafiniak
2007-02-24 15:50 ` Brian Hurt
2007-02-24 18:14 ` skaller
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=1172186795.9935.57.camel@rosella.wigram \
--to=skaller@users.sourceforge.net \
--cc=David.Teller@ens-lyon.org \
--cc=caml-list@yquem.inria.fr \
--cc=tom.primozic@gmail.com \
/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