caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Chris Hecker <checker@d6.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] bigarrays and toplevel on Win32?
Date: Mon, 5 Mar 2001 17:57:15 +0100	[thread overview]
Message-ID: <20010305175715.B16895@pauillac.inria.fr> (raw)
In-Reply-To: <4.3.2.7.2.20010304234009.00e1e220@shell16.ba.best.com>; from checker@d6.com on Sun, Mar 04, 2001 at 11:43:16PM -0800

> I can not seem to get the bigarray module to work at the toplevel,
> no matter what I do.  I've got both ocamlc and ocamlopt apps
> building and working fine using bigarrays.
> I always get "The external function `bigarray_get_1' is not
> available".  I must be doing something stupid and wrong.  Any ideas?

This is a known bug in OCaml 3.00.  A simple fix is described here:

    http://caml.inria.fr/bin/caml-bugs/fixed?id=94

and of course this will be fixed in OCaml 3.01.

Concerning bounds checks for bigarray accesses: you are correct that
the current implementation always perform them, there is no equivalent
to Array.unsafe_{get,set}, and the -unsafe flag simply doesn't apply
to bigarrays.

The party line on unsafe array accesses is unclear: on the one hand,
we do not want to encourage their use, as it can break type safety and
dramatically reduce the safety of the programs; on the other hand,
they are handy when benchmarking against C or Fortran :-)

I'll keep that in mind for 3.02.

- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


  reply	other threads:[~2001-03-05 16:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-05  7:43 Chris Hecker
2001-03-05 16:57 ` Xavier Leroy [this message]
2001-03-05 17:37   ` Chris Hecker
2001-03-06 17:18     ` Brian Rogoff
2001-03-05 20:52   ` Bruce Hoult
2001-03-05 21:28   ` John Prevost
2001-03-07 16:00     ` Dan Grossman
2001-03-07 21:04       ` John Prevost

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=20010305175715.B16895@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=checker@d6.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;
as well as URLs for NNTP newsgroup(s).