Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: David Allsopp <dra-news@metastack.com>
Cc: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Sorted list
Date: Sun, 05 Aug 2007 18:41:12 +0200	[thread overview]
Message-ID: <46B5FDA8.6060805@inria.fr> (raw)
In-Reply-To: <000c01c7d77c$d5adeb50$6a7ba8c0@treble>

> ExtList is underpinned by Obj.magic -

Agreed.

> its "tail recursive" implementations
> work by manipulating the internal representation of a list rather than
> writing "proper" O'Caml (it's a piece of genius and frankly is how the
> StdLib ought to do it...).

I don't think so -- basically, Obj.magic isn't part of the OCaml
language and should not be used unless there is absolutely no other
option.  The Queue module is the standard library uses Obj.magic for
additional performance, but this is really sending the wrong message.
If tail recursion elimination modulo constructors (what Extlib is
doing manually) is really important, I believe it should be done by
the compiler, under the hood.  (That's not trivial, mind you.)

>>Well, Windows is a world apart.  It has no packaging system to speak
>>of, no versioning, no centralised repository, no installation policies
>>of note.  In other words, it's where Linux was circa 1993.
>
> Spoken by someone who sounds like he hasn't used Windows since 1993? :o)

I reluctantly but regularly use Windows to maintain the Windows port
of OCaml, and agree with Richard Jones's assessment.  Windows is
geared towards the installation of big, standalone programs like
Office or games, but has nothing comparable to the package management
facilities of Linux or BSD.

> My understanding is that in 1993 finding any PC hardware capable of
> running Linux was the amusing game... rose-tinted spectacles,
> perhaps?

Replace "Linux circa 1993" by "Unix variants circa 1993" (SunOS,
Ultrix, etc) if you wish.  But for the record, I was running NetBSD on
a bog-standard 486 PC in 1993, and installed Slackware Linux on the
same PC in 1994.

- Xavier Leroy


  reply	other threads:[~2007-08-05 16:41 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-04  9:35 tmp123
2007-08-04 10:00 ` [Caml-list] " Jon Harrop
2007-08-04 10:29 ` Philippe Wang
2007-08-04 11:22   ` skaller
2007-08-04 12:23     ` Philippe Wang
2007-08-04 13:39       ` skaller
2007-08-04 14:01         ` Philippe Wang
2007-08-04 14:45           ` skaller
2007-08-04 14:27       ` tmp123
2007-08-04 20:33       ` Christophe TROESTLER
2007-08-04 14:37     ` tmp123
2007-08-04 15:09       ` Brian Hurt
2007-08-04 15:42         ` skaller
2007-08-04 16:21           ` Richard Jones
2007-08-04 17:17             ` Brian Hurt
2007-08-04 18:24               ` skaller
2007-08-04 17:54             ` skaller
2007-08-04 19:16               ` Richard Jones
2007-08-05 16:22                 ` David Allsopp
2007-08-05 16:41                   ` Xavier Leroy [this message]
2007-08-05 17:01                     ` David Allsopp
2007-08-04 17:35           ` Julien Moutinho
2007-08-04 18:04             ` skaller
2007-08-05  1:47             ` Jon Harrop
2007-08-05 11:44               ` Erik de Castro Lopo
2007-08-05 12:03                 ` Jacques GARRIGUE
2007-08-05 12:31                   ` Erik de Castro Lopo
2007-08-05 13:22                     ` Richard Jones
2007-08-05 20:47                       ` Erik de Castro Lopo
2007-08-05 13:17                 ` Richard Jones
2007-08-05 16:26           ` Xavier Leroy
2007-08-05 23:47             ` skaller
2007-08-04 15:36       ` skaller
2007-08-04 15:17     ` tmp123
2007-08-12 12:05       ` Andrej Bauer
2007-08-04 12:15 ` Brian Hurt
2007-08-04 12:36   ` Brian Hurt
2007-08-04 13:49     ` skaller
2007-08-04 12:16 ` Daniel Bünzli
2007-08-04 12:58 ` Oliver Bandel

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=46B5FDA8.6060805@inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=dra-news@metastack.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