caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tim Freeman <tim@fungible.com>
To: brogoff@speakeasy.net
Cc: jean-baptiste.rouquier@ens-lyon.org, caml-list@inria.fr
Subject: Re: [Caml-list] stream conversion
Date: Tue,  9 Dec 2003 11:30:52 -0700	[thread overview]
Message-ID: <200312091943.hB9Jhb7v012609@lobus.fungible.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0312090921270.15081-100000@grace.speakeasy.net> (brogoff@speakeasy.net)

From: brogoff@speakeasy.net
>The documentation in the Stream library for the stream builders (you use
>Stream.of_string) states :
>
>   Warning: these functions create streams with fast access; it is illegal to
>   mix them with streams built with [< >]; would raise Failure  when
>   accessing such mixed streams.
>
>and you build such streams by stream concatenation with your convert function
>and when you make foo.

There's a fix for this bug at http://www.fungible.com/stream_fixed.ml
and http://www.fungible.com/stream_fixed.mli.

It's bug 1284 in the OCAML bug-tracking system.

According to the benchmark given in the comments at the end of
http://www.fungible.com/stream_fixed.ml, my version is essentially the
same speed as the original.

Unlike the original version, it does not do type-unsafe efficiency
hacks.

The bug database at http://caml.inria.fr/bin/caml-bugs documents that
bug 1284 has been ignored without comment as of 9 Dec 2003.  My code
is a clean solution to a problem that has been reported repeatedly, so
I find that frustrating.  This looks to me like a clear signal that I
shouldn't bother sending them any other bugfixes.

-- 
Tim Freeman                                                  tim@fungible.com
I xeroxed a mirror. Now I have an extra xerox machine.       -- Steven Wright


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2003-12-09 19:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09  7:56 Dustin Sallings
2003-12-09 12:08 ` Remi Vanicat
2003-12-09 16:58   ` Jean-Baptiste Rouquier
2003-12-09 17:25     ` brogoff
2003-12-09 17:40       ` Jean-Baptiste Rouquier
2003-12-09 18:30       ` Tim Freeman [this message]
2003-12-16 22:42         ` Damien Doligez
2003-12-09 19:13     ` Dustin Sallings
2003-12-09 19:15   ` Dustin Sallings
2003-12-10  1:09 ` Nicolas Cannasse

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=200312091943.hB9Jhb7v012609@lobus.fungible.com \
    --to=tim@fungible.com \
    --cc=brogoff@speakeasy.net \
    --cc=caml-list@inria.fr \
    --cc=jean-baptiste.rouquier@ens-lyon.org \
    /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).