Picon
Gravatar

Ocaml Beginners' anonymized html archive up to 2011-12-31

 

Hello to everybody!

As I attempt to do every year, I've put online a downloadable version
of the ML archive.
It is at http://www.connettivo.net/cntprojects/ocaml_beginners (as it's
marked in the standard message footer for this ML).

Lately I changed my private email address for administering this list
and it happens to me to miss some requests for subscribing, for some
reasons unknown to me and possibly to my mailbox. I apologise for that.

If anybody attempting to subscribe with a decent email (i.e. an email
that can be found out to be in use for legitimate, non-spamming
purposes) notices that in spite of time fleeing, the list
administrator(s) does/do not show up and the subscription does not go
on, please feel free to knock at my/our mailbox dropping a line to
ocaml_beginners-owner <at> <guess-what>.

I must also say that I do not read all the messages passing. So if you
spot a spam message, and you notice that nobody takes action against it,
that's probably because I/we missed it; dropping me/us a line, you can
help keeping the list clean.

Well, and this is the README that goes with the archive:

----------------------------------------------------------
README
----------------------------------------------------------

The anonymized html archive of the Ocaml Beginners' Mailing List up to
31/12/2011, is available in .tar.bz2 form, as a folder with all messages
exchanged in the ML so far, grouped by year.
If you can host it in extended form, that would be great (and remember
to tell the list!):
I am not doing so just because I don't have enough web space for all my
interests...

Bye!

One of the mantainers of the Ocaml Beginner's Mailing List (E.T.)

PS1: I've been stripping the domain names from the e-mails
using the following sed commands:
sed 's/\([-_\+\.0-9a-zA-Z]* <at> \)[-_\.0-9a-zA-Z]*/\1.../g'
sed 's/\([-_\+\.0-9a-zA-Z]*%40\)[-_\.0-9a-zA-Z]*/\1.../g'
and I've been checking the results quickly with
grep -rE " <at> [0-9a-zA-Z]+" *
grep -rE "%40[0-9a-zA-Z]+" *
If you detect any domain name left over, please tell the list, I'll
strip it away.
----------------------------------------------------------

Ciao !

Ernesto Torresin (acting as a list administrator)

__._,_.___
Recent Activity:
Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid flames etc.
.

__,_._,___
Francois Berenger | 7 Feb 08:06
Picon
Favicon

How to know if the Random module was initialised

 

Hello,

Is there a way to determine if Random has been
initialized?

I'd like some of my functions to fail in case the RNG is used
without having been initialized previously.

Thanks,
F.

__._,_.___
Recent Activity:
Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid flames etc.
.

__,_._,___
Joshua D. Guttman | 5 Feb 15:31
Favicon
Gravatar

Putting an ocaml program inside a web page

 

Suppose that I have an OCaml program that reads from an
input channel and then writes to an output channel.

What's the easiest way of attaching this to a web page?

By that, I mean that the web page should offer the recipient
R a text box. Whatever R types into the box and submits,
should be delivered as input to the OCaml program. Its
output should then be returned to the user as a web page.

For my purposes, the html formatting etc can all be ultra
simple; I'd just like to know how to make the program's IO
behavior available over the web.

Many thanks for your help!

Joshua
--
Joshua D. Guttman
WPI, Computer Science

__._,_.___
Recent Activity:
Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid flames etc.
.

__,_._,___
Boris Hollas | 5 Feb 12:06
Picon

Re: BatArray

 

On Sun, 2012-02-05 at 11:44 +0100, Philippe Veber wrote:

> open Batteries_uni

alright, this works. Quite confusing, though.

--
Best regards,
Boris

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid flames etc.
.

__,_._,___
Boris Hollas | 5 Feb 11:02
Picon

BatArray

 

Hello,

according to the manual, the BatArray module can be used to override the
Array module. Also, the notation Array.<function> is used in the manual.
However, I have to use the notation BatArray.<function> instead as the
module is named BatArray. Is this a flaw in the manual or is there a way
to use the Array.<function> notation?
--
Best regards,
Boris

__._,_.___
Recent Activity:
Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid flames etc.
.

__,_._,___
Andreas Romeyke | 1 Feb 14:47
Picon

There are any way to handle this namespace conflict?

 

Hello,

in our project we have a lot of modules. Now, we need to include
camlimages to create jpeg-files. But now, we got a namespace conflict,
because our own modules share the same namespace with camlimages,
example: bmp, color and so on.

We need camlimages only to save a jpeg-file

There are any workaround to avoid namespace conflict without renaming
all our modules? Is it possible to decide between "local" modules within
actual dir (our project) and external ocaml dirs...

Could you help?

With best regards

Andreas
--
Andreas Romeyke
- Abteilung Blindenschrift -
Deutsche Zentralbücherei für Blinde zu Leipzig (DZB)
Gustav-Adolf-Straße 7, 04105 Leipzig
Tel: +49 341 7113-..., Fax: +49 341 7113-125
Internet: www.dzb.de
E-Mail: andreas.romeyke <at> dzb.de

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
Archives up to December 31, 2010 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid flames etc.
.

__,_._,___
Dan Bensen | 20 Jan 19:27
Picon
Favicon

thread/IO prob

 

I'm having trouble calling read_line in a parent thread when a child thread
makes a system call:

dan$ threadtest
Press <ENTER> to stop the alarm.Fatal error: exception Sys_blocked_io

Why doesn't this work?
The sound file plays once, and the program exits immediately.

let alarm_is_on = ref false

let play_alarm () =
let rec play () =
if !alarm_is_on then begin
ignore (Sys.command "aplay -q /usr/share/sounds/Zen/login-gong.wav");
Thread.delay 5.;
play ()
end in
alarm_is_on := true;
let _ = Thread.create play () in
try
print_string "Press <ENTER> to stop the alarm.";
ignore (read_line ());
alarm_is_on := false
with
x -> alarm_is_on := false; raise x

let () = play_alarm ()

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
    Archives up to December 31, 2010 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
    The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
    Attachments are banned and you're asked to be polite, avoid flames etc.
    .

    __,_._,___
    Andreas Romeyke | 20 Jan 09:58
    Picon

    howto deal with sexplib changes in own code to avoid version locking?

     

    Hello,

    in our project we are using the debianized version of ocaml-packages
    including sexplib in version 4.2.16 (Debian Squeeze)

    But in upcoming versions sexplib, pE. 7.0.4 in Debian Testing, you need
    to add this line:

    open Sexplib.Std;;

    explicitely, see
    http://article.gmane.org/gmane.comp.lang.caml.general/52962 for details.

    My question is, how could we handle this problem to use *one*
    source-package which could be compiled under Debian Squeeze and Testing,
    too?

    Any hints?
    --
    Andreas Romeyke
    - Abteilung Blindenschrift -
    Deutsche Zentralbücherei für Blinde zu Leipzig (DZB)
    Gustav-Adolf-Straße 7, 04105 Leipzig
    Tel: +49 341 7113-..., Fax: +49 341 7113-125
    Internet: www.dzb.de
    E-Mail: andreas.romeyke <at> dzb.de

    [Non-text portions of this message have been removed]

    __._,_.___
    Recent Activity:
      Archives up to December 31, 2010 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
      The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
      Attachments are banned and you're asked to be polite, avoid flames etc.
      .

      __,_._,___
      Francois Berenger | 20 Jan 07:52
      Picon
      Favicon

      Error: No implementations provided for the following modules: Camlp4 referenced from test_logger.cmx

       

      Hello,

      This is the error I get when I compile using the following command:

      ocamlfind ocamlopt -package camlp4,batteries \
      -linkpkg -o test_logger -annot -g \
      -pp "camlp4o -parser Camlp4MacroParser" \
      biocaml_logger.cmx test_logger.cmx test_logger_main.cmx

      What am I missing in the compilation command?

      Thanks a lot,
      Francois.

      __._,_.___
      Recent Activity:
        Archives up to December 31, 2010 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
        The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
        Attachments are banned and you're asked to be polite, avoid flames etc.
        .

        __,_._,___
        Francois Berenger | 19 Jan 04:55
        Picon
        Favicon

        question about module

         

        Hello,

        I can't put
        type ts_formatter = float -> string
        in a module signature?

        Why?

        Thanks,
        F.

        __._,_.___
        Recent Activity:
          Archives up to December 31, 2010 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
          The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
          Attachments are banned and you're asked to be polite, avoid flames etc.
          .

          __,_._,___
          Boris Hollas | 18 Jan 14:57
          Picon

          Ocaml doesn't find library in /usr/local/

           

          Hello,

          I installed parmap in /usr/local/lib/ocaml/3.11.2/. How do I tell
          ocamlopt to use it? Also, can I use parmap functions in the REPL?

          Ocamlfind does find parmap, but my makefile doesn't use ocambuild. What
          is the right approach when using ocamlbuild, and how is it done with Gnu
          make only, ie w/o ocamlbuild?

          -Boris

          [Non-text portions of this message have been removed]

          __._,_.___
          Recent Activity:
            Archives up to December 31, 2010 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
            The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
            Attachments are banned and you're asked to be polite, avoid flames etc.
            .

            __,_._,___

            Gmane