Re: [Caml-list] [OSR] Standard syntax extensions ?

2008-04-25 Thread Richard Jones
= %s\n (String.concat ; (List.map string_of_int xs)) -- -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http

Re: [Caml-list] [OSR] Standard syntax extensions ?

2008-04-25 Thread Richard Jones
/.cmxa files. Why? Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

[Caml-list] Two camlp4 questions

2008-04-25 Thread Richard Jones
: :expr match $someexpr$ with $mypatt$ - $code$ I hacked around it a little with this function: let pattern_is_exhaustive = function | :patt $lid:_$ - true | _ - false but I guess you can see that this function is not a complete solution. Rich. -- Richard Jones Red Hat

Re: [Caml-list] Two camlp4 questions

2008-04-25 Thread Richard Jones
the exhaustiveness checks at all so this works out fine for me. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http

Re: [Caml-list] [OSR] Standard syntax extensions ?

2008-04-25 Thread Richard Jones
of OCaml which is why it changes so much. Anyway we already have (safe) meta-tools. We don't need ones which hack away at internal representations, even if that is a common development model for Java class files. Rich. -- Richard Jones Red Hat

Re: [Caml-list] [OSR] Standard syntax extensions ?

2008-04-26 Thread Richard Jones
', or even: let mem = List.mem ;; mem 1 [1;2;3] Did I miss something about how the Python syntax works? Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list

Re: [Caml-list] [OSR] Standard syntax extensions ?

2008-05-01 Thread Richard Jones
For the record, here's a better version by bluestorm: http://bluestorm.info/camlp4/pa_matches.ml.html Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list

Re: [Caml-list] camlp4 and quotations for c#: Two parsers needed?

2008-05-01 Thread Richard Jones
to share a parser this way or do I need a special parser for quotations and another parser to read C# files? You might want to look at the implementation of PG'OCaml. It passes SQL statements off to the database for parsing. Rich. -- Richard Jones Red Hat

Re: [Caml-list] Re: Why OCaml sucks

2008-05-09 Thread Richard Jones
was tiny, I think a UTF-8-sensitive string truncation function, and a little bit of collation (mostly handled by the database, but could easily have been done using Camomile). My conclusion: UTF-8 is easy. Rich. -- Richard Jones Red Hat ___ Caml-list

Re: [Caml-list] Re: Why OCaml rocks

2008-05-09 Thread Richard Jones
currently does could speed things up. At the risk of sounding like a broken record ... OR you could use Ancient which does the above, right. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin

Re: [Caml-list] Re: Why OCaml rocks

2008-05-09 Thread Richard Jones
would prevent them from fixing it themselves (unlike if they'd decided to go with an open source solution). Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list

Re: [Caml-list] Re: Why OCaml rocks

2008-05-10 Thread Richard Jones
restrictions. The differences are: - the polymorphic primitives don't work (so you can't compare or hash them) - they don't get garbage collected - you should be very careful about mutating them Rich. -- Richard Jones Red Hat ___ Caml-list mailing

[Caml-list] Re: Ancient, concurrency, etc.

2008-05-10 Thread Richard Jones
On Sat, May 10, 2008 at 11:09:04AM +0200, Berke Durak wrote: On Sat, May 10, 2008 at 10:51 AM, Richard Jones [EMAIL PROTECTED] wrote: 'Deep copying' of ancient data can be done just like deep copying any other OCaml value. As in: it can't be done polymorphically, unless you resort

Re: [Caml-list] Re: Why OCaml rocks

2008-05-12 Thread Richard Jones
Q9450 @ 2.66GHz [1] Creation of the result matrix and copying it to shared memory is almost instantaneous in my tests. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list

Re: [Caml-list] Core has landed

2008-05-15 Thread Richard Jones
On Sat, May 03, 2008 at 06:56:44AM -0400, Yaron Minsky wrote: On Sat, May 3, 2008 at 4:19 AM, Richard Jones [EMAIL PROTECTED] wrote: It would be nice to have bin-prot working on all architectures ... We're happy to receive bug reports My mail's been all over the place recently so sorry

Re: [Caml-list] Core has landed

2008-05-16 Thread Richard Jones
On Thu, May 15, 2008 at 08:06:08PM +0100, Richard Jones wrote: On Thu, May 15, 2008 at 12:03:43PM -0400, Markus Mottl wrote: Oops, typo. The compilation flag in question is called -fno-unsigned-char. Yes, unfortunately our dev ppc64 machine has been broken for a little while, hence why

Re: [Caml-list] Fedora Core 9

2008-05-16 Thread Richard Jones
On Fri, May 16, 2008 at 11:11:33AM +0100, Richard Jones wrote: Is there a reason why you're compiling OCaml from source? F9 ships with OCaml 3.10.2 and over 50 OCaml packages, in the standard release. Erm, I mean 3.10.1 in Fedora 9, of course. You can get 3.10.2 by adding

Re: [Caml-list] Fedora Core 9

2008-05-16 Thread Richard Jones
(?). Is there a reason why you're compiling OCaml from source? F9 ships with OCaml 3.10.2 and over 50 OCaml packages, in the standard release. yum install ocaml It also contains a fix for the large pagetable problem, for x86-64. Rich. -- Richard Jones Red Hat

Re: [Caml-list] Fedora Core 9

2008-05-16 Thread Richard Jones
tests with ocaml 3.10.1 and 3.10.2 still hold I believe. That is, the memory bug is still essentially unresolved and I have to use 3.11 (at least on this particular machine configuration). Unfortunately I've got to go out now, but I can look at this tomorrow morning. Rich. -- Richard Jones Red

[Caml-list] ANNOUNCE: bitmatch 1.0

2008-05-18 Thread Richard Jones
=/lib/ Bitmatch is available under the GNU LGPL version 2 or later with the usual OCaml linking exception. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list

Re: [Caml-list] picking / marshaling to strings in ocaml-revision-stable way

2008-06-02 Thread Richard Jones
http://code.google.com/p/deriving/ and I guess maybe even: http://code.google.com/p/bitmatch/ if you wanted a way to generate and parse a stable binary format. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management

[Caml-list] Release date for 3.11?

2008-06-03 Thread Richard Jones
I'm sure the answer will be 'when it's ready', but is there a release date (month / year / ...) for 3.11 or release candidates of 3.11? Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin

Re: [Caml-list] Custom lexer in Camlp4

2008-06-24 Thread Richard Jones
for virt-df because we want ints which can comfortably hold the size (in bytes / sectors / blocks / etc) of a block device. You don't really need a 64 bit int for this, but you do need something which is bigger than 32 bits. -- Richard Jones Red Hat

Re: [Caml-list] Custom lexer in Camlp4

2008-06-25 Thread Richard Jones
use it :-) Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug

Re: [Caml-list] Newbie question: OCaml equivalent of Haskell's show?

2008-07-06 Thread Richard Jones
want to look at one of the following projects (and probably others ...) http://www.ocaml.info/home/ocaml_sources.html http://code.google.com/p/deriving/ http://tools.assembla.com/tywith/wiki Another alternative is to run your code in the OCaml toplevel. Rich. -- Richard Jones Red Hat

Re: [Caml-list] Heaps size problems with caml_alloc_small in foreign function interfaces

2008-07-11 Thread Richard Jones
On Fri, Jul 11, 2008 at 10:40:50AM +0100, Richard Jones wrote: v = caml_alloc (2, 0); vv = caml_alloc (3, 0); /* GC could run here */ Ick, actually caml_alloc is OK, it's only caml_alloc_small which doesn't initialize. Rich. -- Richard Jones Red Hat

Re: [Caml-list] Heaps size problems with caml_alloc_small in foreign function interfaces

2008-07-12 Thread Richard Jones
some generated code, apparently from camlidl, with your modifications. If this is a bug in camlidl, we need to see everything which generates this. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http

[Caml-list] Why can't immediate objects be extended?

2008-07-12 Thread Richard Jones
Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports

Re: [Caml-list] Why can't immediate objects be extended?

2008-07-12 Thread Richard Jones
On Sat, Jul 12, 2008 at 03:12:00PM +0100, Richard Jones wrote: let obj = object inherit (typeof parent_obj) method str = string_of_tree t end in Node (annotate left, obj, annotate right) Further exploration reveals I can write this, which is _almost_

Re: [Caml-list] thousands of CPU cores

2008-07-14 Thread Richard Jones
ignored. I recently saw Ulrich Drepper giving a talk about OpenMP and it was interesting in a 'what are the C programmers smoking nowadays' kind of way. The barriers to porting OpenMP to OCaml go far beyond lack or otherwise of concurrent garbage collection. Rich. -- Richard Jones Red Hat

[Caml-list] [ANNOUNCE] ocaml-bitstring 1.9.6 (formerly known as ocaml-bitmatch)

2008-07-17 Thread Richard Jones
I'm please to announce version 1.9.6 of ocaml-bitstring (formerly known as ocaml-bitmatch). The home page has changed again, so please update any bookmarks or links to point to the new home page here: http://code.google.com/p/bitstring/ Version 1.9.6 features 'check()', 'bind()' and

Re: [Caml-list] New Ocaml Plug-in for NetBeans

2008-07-26 Thread Richard Jones
have something to release soon(~ish). Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com

Re: [Caml-list] New Ocaml Plug-in for NetBeans

2008-07-26 Thread Richard Jones
on anyone's list. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug

Re: [Caml-list] New Ocaml Plug-in for NetBeans

2008-07-26 Thread Richard Jones
to the community. In fact it's a Fedora policy: http://fedoraproject.org/wiki/PackageMaintainers/WhyUpstream http://fedoraproject.org/wiki/Objectives Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http

Re: [Caml-list] Array copying in OCaml

2008-07-28 Thread Richard Jones
against the compiler we can look at test? Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http

Re: [Caml-list] Getting an element of a hashtable: simple ... or is it?

2008-08-05 Thread Richard Jones
the best way given that you've made a poor choice of data structure in the first place. But this still comes back to the question, what are you trying to do? Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http

Re: [Caml-list] Error: This function is applied to too many arguments, maybe you forgot a `; '

2008-08-05 Thread Richard Jones
On Sun, Aug 03, 2008 at 08:46:32PM -0400, Ben Aurel wrote: print_int fac(6);; Read this: http://www.ocaml-tutorial.org/the_basics Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin

[Caml-list] [camlp4] expr_of_string, string_of_expr functions exist?

2008-08-05 Thread Richard Jones
Maybe a simple question, but does camlp4 have functions to turn expr and patt AST structures to and from strings? Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml

Re: [Caml-list] [camlp4] expr_of_string, string_of_expr functions exist?

2008-08-06 Thread Richard Jones
On Tue, Aug 05, 2008 at 07:53:08PM +0200, Christophe TROESTLER wrote: On Tue, 5 Aug 2008 17:04:26 +0100, Richard Jones wrote: Maybe a simple question, but does camlp4 have functions to turn expr and patt AST structures to and from strings? Parsing: Printing: [..] Thanks

Re: [Caml-list] native vs bytecode

2008-08-06 Thread Richard Jones
? Yes, use the Dynlink module. - Are there any performance test that shows how bytecode programs stack up agains dynamic languages like ruby, perl and python? If you look for the Great Language Shootout you'll find something. Rich. -- Richard Jones Red Hat

[Caml-list] [ANNOUNCE] virt-mem 0.2.8 has been released

2008-08-06 Thread Richard Jones
, patches, feedback, suggestions etc. are very welcome! Binaries will be available in Fedora 10 (Rawhide) at some point soon. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo

[Caml-list] camlp4: How to make a record expression w/o useless with

2008-08-11 Thread Richard Jones
$ } Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http

Re: [Caml-list] camlp4: How to make a record expression w/o useless with

2008-08-12 Thread Richard Jones
On Mon, Aug 11, 2008 at 05:49:25PM +0100, Richard Jones wrote: I have some code like the minimal example below. Notice the '{ () with ... }' record expression. If I remove the '() with' part, it fails to compile. For reference, Bluestorm found an answer to my question, by building the AST

Re: [Caml-list] ocamldebug with GDB

2008-08-13 Thread Richard Jones
could do with something similar for OCaml ... Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http

Re: [Caml-list] Value shadowing

2008-08-13 Thread Richard Jones
counter-intuitive if OCaml behaved like this, and annoying if it gave a warning. Just name the variables to be different! Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman

Re: [Caml-list] New Ocaml Plug-in for NetBeans

2008-08-20 Thread Richard Jones
/cgi-bin/hump.en.cgi?contrib=560 Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group

[Caml-list] ANNOUNCE: bitstring mailing list

2008-08-21 Thread Richard Jones
as primitives to the language, making it exceptionally simple to use and very powerful. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman

[Caml-list] ANNOUNCE: bitstring 1.9.9 released

2008-08-28 Thread Richard Jones
/bitstring/coverage-report/) Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group

[Caml-list] What does underscore mean in this type expression?

2008-08-30 Thread Richard Jones
it mean? I can supply some reproducer code if needed, but the code is rather long at the moment. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http

Re: [Caml-list] What does underscore mean in this type expression?

2008-08-30 Thread Richard Jones
On Sat, Aug 30, 2008 at 01:38:31PM +0200, Christophe TROESTLER wrote: On Sat, 30 Aug 2008 12:27:18 +0100, Richard Jones wrote: val get_domains : (_[ `R ] as 'a) Connect.t - is not included in val get_domains : ([ `R ] as 'a) Connect.t - This syntax doesn't

[Caml-list] 3.11?

2008-08-30 Thread Richard Jones
I ask is that the Fedora 10 beta deadline has slipped because of the security intrusion two weeks ago, which means there is a slim possibility of getting 3.11 into Fedora 10, if the release happens real soon. Rich. -- Richard Jones Red Hat ___ Caml

Re: [Caml-list] How to fix this unbound value problem?

2008-08-30 Thread Richard Jones
BTW, this guy seems to be some sort of weird troll-bot: http://www.google.com/[EMAIL PROTECTED] Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives

Re: [Caml-list] How to join ocaml-tutorial.org?

2008-08-31 Thread Richard Jones
and include 'ocaml' prominently in the subject line. Also I hope this is of interest: I've picked up mod_caml cocanwiki development again for Fedora RHEL, so I should have F10 packages for them shortly, plus an active upstream. Rich. -- Richard Jones Red Hat

Re: [Caml-list] set custom handler on any signal

2008-09-06 Thread Richard Jones
something like autoconf. By the way, for beginners questions there is a list: Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi

Re: [Caml-list] Native code compile time question

2008-09-06 Thread Richard Jones
running out of physical RAM and thrashing. The OCaml garbage collector performs very badly when this happens. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list

Re: [Caml-list] Replacing Pervasives?

2008-09-08 Thread Richard Jones
to xavierbot, which obliterates large parts of the standard library when it starts up (for security reasons). Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list

Re: [Caml-list] csml: high-level bindings between OCaml and .Net

2008-09-17 Thread Richard Jones
/2008-March/037946.html). If anyone is interested in helping porting CSML to Mono, please let me know! This didn't work? http://www.mono-project.com/Interop_with_Native_Libraries Rich. -- Richard Jones Red Hat ___ Caml-list mailing list

Re: [Caml-list] thousands of CPU cores

2008-09-19 Thread Richard Jones
libraries available for most languages, including OCaml. Even if you were writing all your applications in C, you'd still be stupid to hand roll your own matrix multiplication. Let's have a real example instead. Rich. -- Richard Jones Red Hat ___ Caml-list

Re: [Caml-list] Portable PNG exporter

2008-09-20 Thread Richard Jones
. in fprintf chan %d %d %d\n (int_of_float (r*.255.)) (int_of_float (g*.255.)) (int_of_float (b*.255.)) done done; ignore (Unix.close_process_out chan) Rich. -- Richard Jones Red Hat ___ Caml-list

Re: [Caml-list] What's the purpose of the static library?

2008-09-23 Thread Richard Jones
if necessary. -- Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http

Re: [Caml-list] Issue to compile a program with camlp4 in OCaml 3.10.0

2008-09-23 Thread Richard Jones
to workaround them because Fedora 8 is stuck at 3.10.0 ...) Best to upgrade if you can. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr

(off topic) Re: [Caml-list] csml: high-level bindings between OCaml and .Net

2008-09-24 Thread Richard Jones
You piqued my interest and I managed to get C# FFI to work in Mono: https://www.redhat.com/archives/libvir-list/2008-September/msg00283.html Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr

Re: [Caml-list] Teaching ocaml programming

2008-09-26 Thread Richard Jones
/FedoraLiveCD/LiveCDHowTo Persistence (of files in the project) is a problem but maybe they can be encouraged to save project files to a network share or on to a USB key. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management

Re: [Caml-list] Teaching ocaml programming

2008-09-26 Thread Richard Jones
. (Of course, if they have to type this at a command prompt, arguably you've lost the battle.) Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http

Re: [Caml-list] embedding ocaml into a windows app: need gcc?

2008-09-27 Thread Richard Jones
and use Dynlink. Or wait for OCaml 3.11 which can use Dynlink on native code. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr

Re: [Caml-list] Writing to argv[0]

2008-10-10 Thread Richard Jones
no sense in Posix) -maybe working on few other OSes. http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/ps_status.c?rev=1.33.2.1;content-type=text%2Fplain PostgreSQL offers this code to change the proc title on many different platforms. Rich. -- Richard Jones Red Hat

Re: [Caml-list] Writing to argv[0]

2008-10-10 Thread Richard Jones
On Fri, Oct 10, 2008 at 09:33:17AM -0700, Dave Benjamin wrote: On Fri, 10 Oct 2008, Richard Jones wrote: On Thu, Oct 09, 2008 at 05:31:11PM +0200, Basile STARYNKEVITCH wrote: Dave Benjamin wrote: Is there any way for an OCaml program to change its name in the process table? Assigning

Re: [Caml-list] OCaml version 3.11.0+beta1

2008-10-15 Thread Richard Jones
with it? Excellent news. For Fedora we'll probably leave this until Fedora 11, which should begin in a week or two. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives

Re: [Caml-list] Camlp4 generate more than one (compiled) files?

2008-10-17 Thread Richard Jones
this issue here: http://camltastic.blogspot.com/2008/05/persistent-matches-in-pabitmatch.html Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http

Re: [Caml-list] What does Jane Street use/want for an IDE? What about you?

2008-10-20 Thread Richard Jones
] Here or in a blog posting ... [2] http://en.wikipedia.org/wiki/Microemacs -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's

Re: [Caml-list] stupid q: camlp4

2008-11-09 Thread Richard Jones
. This is probably the most useful reference page of all: http://brion.inria.fr/gallium/index.php/AST Finally take a look at some real examples: http://caml.inria.fr/cgi-bin/hump.en.cgi?sort=0browse=92 Rich. -- Richard Jones Red Hat ___ Caml-list mailing list

Re: [Caml-list] stupid q(2): camlp4

2008-11-12 Thread Richard Jones
. For instance, a + b where a = 1 and b = 2 means let a = 1 and b = 2 in a + b You could cheat and have a look at pa_where ... http://bluestorm.info/camlp4/pa_where/list.php http://bluestorm.info/camlp4/pa_where/pa_where.ml.html (Is bluestorm running a gopher server?) Rich. -- Richard

[Caml-list] OCaml 3.11.0+beta1 cross-compiler

2008-11-14 Thread Richard Jones
which searches for files using \ as a path separator, which is wrong and causes it to fail looking for pervasives.cmi. Anyone done this, or care to share any more hints? Rich. [1] Running stuff under Wine isn't acceptable and nor is installing binaries. -- Richard Jones Red Hat

Re: [Caml-list] What does Jane Street use/want for an IDE? What about you?

2008-11-15 Thread Richard Jones
. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http

ANNOUNCE: Windows cross-compiler (was: Re: [Caml-list] OCaml 3.11.0+beta1 cross-compiler)

2008-11-15 Thread Richard Jones
/MinGW -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http

Another example (was: Re: [Caml-list] Is it a bug or just ordinary floating point differences?)

2008-11-17 Thread Richard Jones
movl_camlTest_float2, %eax @@ -88,6 +88,7 @@ L103: .double 62.05 .data L102: .double 60. + .data .text .globl _camlTest_float2__code_end _camlTest_float2__code_end: -- Richard Jones Red Hat ___ Caml-list mailing

Re: Another example (was: Re: [Caml-list] Is it a bug or just ordinary floating point differences?)

2008-11-17 Thread Richard Jones
On Mon, Nov 17, 2008 at 12:23:31PM +, Richard Jones wrote: I'm thinking the difference must be somewhere in Wine itself or in the way that the two compilers initialize the floating point environment, such as using different rounding modes. L103: .double 62.05 .data L102

Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included

2008-11-18 Thread Richard Jones
then an external package can extend the namespace (eg. by providing System_Newpackage) Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr

Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included

2008-11-18 Thread Richard Jones
~size:size; icon #else let icon = GMisc.image () in icon#set_stock `DIALOG_ERROR; icon#set_icon_size `DIALOG; icon #endif (Well, you can run -pp cpp, but that breaks other stuff) Rich. -- Richard Jones Red Hat ___ Caml-list mailing list

Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included

2008-11-18 Thread Richard Jones
, implementation of the option, and documentation for the option right next to each other. http://perldoc.perl.org/Getopt/Long.html#Documentation-and-help-texts Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http

Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included

2008-11-18 Thread Richard Jones
. The above scheme allows one person to extend the Array module, but not two people, unless they coordinate with each other about which order they extend it (or both have incompatible extensions). Rich. -- Richard Jones Red Hat ___ Caml-list mailing list

Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included

2008-11-18 Thread Richard Jones
'_' as a separator scales because distributed, loosely coordinated parties can add new modules ad hoc to such a namespace. Rich. [1] http://www.cpan.org/modules/by-module/Net/ -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http

Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included

2008-11-19 Thread Richard Jones
On Wed, Nov 19, 2008 at 02:38:05PM +0100, Stefano Zacchiroli wrote: On Tue, Nov 18, 2008 at 12:32:31PM +, Richard Jones wrote: On Tue, Nov 18, 2008 at 01:15:39PM +0100, David Teller wrote: Do you see any better way of managing the complexity of all this? I'm still not getting where

Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included

2008-11-20 Thread Richard Jones
is also usually a bad idea, except in very limited circumstances (hello Printf). Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr

Re: [Caml-list] open Module (not?) considered harmful

2008-11-20 Thread Richard Jones
On Thu, Nov 20, 2008 at 11:49:14AM +0100, Stefano Zacchiroli wrote: On Thu, Nov 20, 2008 at 10:33:03AM +, Richard Jones wrote: Encouraging developers to open modules is also usually a bad idea, except in very limited circumstances (hello Printf). Why? You and others failed me

Re: [Caml-list] open Module (not?) considered harmful

2008-11-20 Thread Richard Jones
to debug something\n (The file was quite literally not more than 15 lines long, but it took me a good hour to work out why that printf wasn't printing anything ...) Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http

[Caml-list] Notes from testing OCaml 3.11.0+beta1 on Fedora

2008-11-21 Thread Richard Jones
. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http

Re: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-21 Thread Richard Jones
Does ocamlfind support any of this? Since I'm now also cross- compiling OCaml, I've certainly come to appreciate findlib more than ever. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi

Re: [Caml-list] OCaml 3.11.0 release candidate

2008-11-27 Thread Richard Jones
On Wed, Nov 26, 2008 at 11:29:04PM +0100, Stéphane Glondu wrote: Richard Jones wrote: Two camlp4 packages so far have given this error message, which is new since I tried 3.11.0+beta1: You mean two packages using camlp4, don't you? As it turns out, many packages using camlp4. File

[Caml-list] OCaml version 3.11.0 now in Fedora 11

2008-12-06 Thread Richard Jones
://cvs.fedoraproject.org/viewvc/devel/ Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group

Re: [Caml-list] Immutable cyclic data structures via a

2008-12-14 Thread Richard Jones
- minor heap pointers (ie. old - new objects) works correctly with the garbage collector? In any case, it seems to work. I have used ExtList.List extensively in masses of production code and never found a problem. Rich. -- Richard Jones Red Hat

Re: [Caml-list] Using camlp4 in extensions

2008-12-15 Thread Richard Jones
happened when you tried it? Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group

[Caml-list] Is there a maintainer / upstream for OCAML autoconf macros?

2008-12-16 Thread Richard Jones
like to get these upstream into autoconf, and perform a number of maintenance tasks on them (such as changing them so they are suitable for cross- compilation). Is there an official repository and/or maintainer for these macros? Rich. -- Richard Jones Red Hat

Re: [Caml-list] More cores

2008-12-19 Thread Richard Jones
massive numbers of cores and very long paths to main memory. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http

Re: [Caml-list] More cores

2008-12-19 Thread Richard Jones
in Google, eg: http://fhtr.blogspot.com/2008/09/preludeml-more-multicore-mandelbrot.html http://fhtr.blogspot.com/2008/08/preludeml-some-parallel-combinators.html But I guess some proper introductory documentation would be helpful. Rich. -- Richard Jones Red Hat

Re: [Caml-list] Re: camlp4 on Debian lenny

2008-12-21 Thread Richard Jones
) Actually, there's loads more projects here ... http://caml.inria.fr/cgi-bin/hump.en.cgi?sort=0browse=92 Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives

Re: [Caml-list] More Caml

2008-12-23 Thread Richard Jones
. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http

Re: [Caml-list] camlp4 blog posts

2009-01-05 Thread Richard Jones
. http://ambassadortothecomputers.blogspot.com/ Bookmarked! I'm looking forward to this ... Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http

Re: [Caml-list] Toplevel - load cmo from given location

2009-01-09 Thread Richard Jones
/ocaml/netstring/netaccel.cma: loaded /usr/lib64/ocaml/netstring/netaccel_link.cmo: loaded (2) Bugs should go in the bug tracker here: http://caml.inria.fr/mantis/ Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management

Re: [Caml-list] Why does value restriction not apply to the empty list ?

2009-01-10 Thread Richard Jones
= if List.length el 0 then (List.hd el)+(int_of_string (List.hd el)) else 0;; ^^ This expression has type int but is here used with type string Rich. -- Richard Jones Red Hat ___ Caml-list

  1   2   3   >