... As far as I can see, that's right. However, you probably ought to be using a Makefile and some standard rules, meaning that you will be compiling each file...
... Yes, I would use a makefile, but that's for a tool and it shouldn't depend on GNU make. I'm thinking about the alternatives, I'll probably end up compiling...
Dear Camlers, In the spirit of "release early, release often", we therefore announce the first release of camlclipse (version 0.1.0), a group of plugins to add...
Hi, Does anyone have any code to generate a random number from the standard normal distribution laying around? I've tried a transliteration of the Box-Muller...
... What do you mean by that? The mean of a set of N of your random numbers is also normally distributed, with mean 0 and standard deviation 1/sqrt(N). The ...
... numbers is ... 1/sqrt(N). The ... Right, but it should approach 0. If I run 1000 or 1000000 trials the mean stays around 0.00xxx. ... [Note: I should have...
... It seems to me you've done everything right... If you look at the output of box_muller, it doesn't look very Normal! :) There are outliers all over the...
Le mardi 07 septembre, à 10h10 +0000, ... Hello, open M allows you to use the values of M without prefixing them by 'M.', while include M tells ocaml to...
... Virgile is right. Here's another way to describe the difference. Let's have a module M containing some symbols: -- m.ml ----- let x = 1 let s = "hello" ...
... Does it also work for interfaces ? module type A = sig val x : int end module type C = sig include A val y : int end ? Frédéric vdP (asking because i...
Le mardi 07 septembre, à 8h37 +0000, ... Good question... The answer is yes at least for ocaml 3.08.1: Objective Caml version 3.08.1 # module type A = sig...
i'm moving some code from sml to ocaml, and using a makefile based on the one in the manual. however, for the module defined in SortFilter.ml: module...
andrew cooke
andrew@...
Sep 9, 2004 9:18 pm
2634
This is one of the most frustrating aspects of learning Ocaml. A module type isn't a signature of a module. It is more of an interface a module may implement....
thanks, but i'm still confused. after reading your quick solution i went back and read the manual and realised the mli extension was incorrect. however,...
andrew cooke
andrew@...
Sep 9, 2004 10:25 pm
2636
I'm a rookie here. I don't use ocamldep yet. Do you have the statement open Filter at the beginning of your SortFilter.ml file? If so, I bow out to someone...
brilliant! i have no idea why i need to open that, but it worked :o) thanks, andrew ... -- ` __ _ __ ___ ___| |_____ work web site:...
andrew cooke
andrew@...
Sep 9, 2004 10:50 pm
2638
... worked :o) ... Well, there could be several module type named FILTER in several module you have to tell this to ocaml You could have also choose to use...
... If SortFilter is the only module which uses the FILTER interface, then the right way to do this in OCaml is: sortFilter.ml --------------- type state = ......
Sorry to post again about this, but SML has the CM which does this for you, while Ocaml seems to expect Makefiles instead. I have a makefile that follws the...
andrew cooke
andrew@...
Sep 10, 2004 2:48 pm
2641
... Don't use module ... struct/sig ... end in your code. A good rule of thumb is not to use them anywhere at all, except in specific (and rare) cases where...
... Absolutely. If you are using module Utils = struct ... end in your utils.ml file, you are really specifying the module Utils.Utils in whatever program is...
... ah. light finally comes on. i hope. ok, thanks. andrew -- ` __ _ __ ___ ___| |_____ work web site: http://www.ctio.noao.edu/~andrew / _` / _/ _ \/ _ \...
andrew cooke
andrew@...
Sep 10, 2004 3:55 pm
2644
... Have you seen F#? http://research.microsoft.com/projects/ilx/fsharp.aspx Might be a step in the right direction toward a commercially viable Objective ...
I agree with your comments on the performance of these new, shiny, and cool languages like C# and Java. This new breed of language designers must see a ...
... cool languages like C# and Java. This new breed of language designers must see a psychiatrist, I think. Actually, they're pretty sane for what they intend:...
... I agree with your remarks, but we need one thing: a defunctorizing compiler.... you know, i want to write *really* abstract code, and still have it run...
I'm a long time programmer (mainly OO) and an Ocaml newbie. I wrote the following code to perform the 'business model' of a program to randomly jitter lots of...