Search the web
Sign In
New User? Sign Up
ocaml_beginners · Ocaml Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 628 - 657 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
628
... Hi Eric, The 'Num' arbitrary-precision library might also be useful if floating-point arithmetic isn't precise enough: ...
Danny Yoo
dyoo@...
Send Email
Dec 2, 2002
12:22 am
629
I was wondering what are the relative merits (in terms of speed, portability and ease of use) between using arrays of arrays, and the BigArray class. While web...
Kevin Patrick Murphy
kevin_patric...
Offline Send Email
Dec 2, 2002
4:59 pm
630
... Sometime ago I found a library for Ocaml, PsiLAB: they say: "PsiLAB has been developed for scientific research and data analysis" and it remembered me the...
Gianluca Moro
giangiammy
Offline Send Email
Dec 2, 2002
5:35 pm
631
... How about this: type tag = SmallIntTag | IntTag | SmallBigTag;; let t2i = function ... let i2t = function ... Issac...
Issac Trotts
issac_trotts
Offline Send Email
Dec 2, 2002
7:06 pm
632
... This would work as well. I wonder if it would be more or less efficient then what I did end up doing which was let some_func xt = match xt with x when x =...
Eric Merritt
cyberlync
Offline Send Email
Dec 2, 2002
7:10 pm
633
Suppose function f returns a pair. I would like to assign the result to some vector elements: (a.(0),b.(0)) <- f();; Unforuntately, this syntax is illegal. The...
kevin_patrick_murphy
kevin_patric...
Offline Send Email
Dec 2, 2002
11:19 pm
634
... In your code, values are first calculated as (c,d) and then assigned to a.0 and b.0. The pattern matching expression "let (c,d) = f()" operates by naming ...
Stalkern 2
stalkern2
Offline Send Email
Dec 3, 2002
12:17 pm
635
... Ocaml value are always reference, so the c (resp d) in a.(0) (resp b.(0) is the same that the one returned by f (well, with the notable exception of...
Remi VANICAT
dl_ens
Offline Send Email
Dec 3, 2002
12:36 pm
636
Consider this example List.map2 (+) [1;2] [3;4];; - : int list = [4; 6] Now consider this List.map2 (*) [1;2] [3;4];; Warning: this is the start of a comment. ...
Kevin Patrick Murphy
kevin_patric...
Offline Send Email
Dec 3, 2002
7:30 pm
637
Kevin, This doesn't answer your question exactly, but contains other useful information about ocaml's efficiency: ...
warrensomebody
Offline Send Email
Dec 3, 2002
8:11 pm
638
... you use the " " character : List.map2 ( * ) [1;2] [3;4];; ... Well, I don't know any better direct way. ... It's a good Idea, why don't you do it ? By the...
Remi VANICAT
dl_ens
Offline Send Email
Dec 3, 2002
10:43 pm
639
... Put some spaces in: ( * ) ... Maybe Array.fold_left (+.) 0.0 (Array.mapi (fun i num -> num *. b.(i)) a) ? An Array.fold_lefti seems helpful here; too bad...
Ryan Tarpine
rtarpine
Offline Send Email
Dec 3, 2002
11:11 pm
640
... It's probably not noticably different, but the way you describe seems overly round-about. Why not keep it simple? Issac...
Issac Trotts
issac_trotts
Offline Send Email
Dec 3, 2002
11:49 pm
641
... You would use ( * ) and ( *. ) because (* is the beginning of a comment and *) is the end of a comment. ... Here's a very close approximation of the Matlab...
Issac Trotts
issac_trotts
Offline Send Email
Dec 4, 2002
12:09 am
642
Issac, Your very right. I didn't think about that. I am going to change the source to reflect your suggestion. Thanks, Eric ... ...
Eric Merritt
cyberlync
Offline Send Email
Dec 4, 2002
12:59 am
643
... Thanks! That's beautiful! Kevin...
Kevin Patrick Murphy
kevin_patric...
Offline Send Email
Dec 4, 2002
2:44 pm
644
Hi all, my program (babbage.ml) use str and unix library. I would want to link both in my program. (Objective Caml version 3.01) This command allows me to...
pame_la@...
Send Email
Dec 4, 2002
8:31 pm
645
... ocamlc unix.cma str.cma babbage.ml -o babbage should make it. The custom, cclib and lunix options are AFAIK out of date in Ocaml 3.x Ciao Ernesto...
Stalkern 2
stalkern2
Offline Send Email
Dec 4, 2002
9:15 pm
646
... put both after the -custom -- Rémi Vanicat vanicat@... http://dept-info.labri.u-bordeaux.fr/~vanicat...
Remi VANICAT
dl_ens
Offline Send Email
Dec 4, 2002
10:52 pm
647
I would like to find out where an exception is being raised. How can I do this wihtout single stepping my whole program? If I type 'run' inside ocamldebug, it...
Kevin Patrick Murphy
kevin_patric...
Offline Send Email
Dec 5, 2002
6:41 pm
648
Consider the following 2 files: ... let foo = 1;; ... let bar = foo + 1;; In interactive mode, I can type #use "f1.ml";; #use "f2.ml";; and everything is fine....
Kevin Patrick Murphy
kevin_patric...
Offline Send Email
Dec 5, 2002
6:49 pm
649
... can you send the code? Ernesto...
Stalkern 2
stalkern2
Offline Send Email
Dec 5, 2002
6:54 pm
650
http://caml.inria.fr/ocaml/htmlman/libref/Sys.html says val interactive : bool Pervasives.ref This reference is initially set to false in standalone programs...
Ryan Tarpine
rtarpine
Offline Send Email
Dec 5, 2002
9:58 pm
651
... No, it don't, because open F1 is not an expression. By the way, the true mean to test a module inside a toplevel is : #load "foo.cmo";; then the module Foo...
Remi VANICAT
dl_ens
Offline Send Email
Dec 5, 2002
10:45 pm
652
Hello, some days ago, I had a problem concerning how to restrict a map to a certain type. Thanks to the help of this list, I was able to solve my problem. So I...
Clemens Hintze
ml-ocaml_beginners@...
Send Email
Dec 6, 2002
4:59 am
653
And by the way did you try and type "back" after program end in the debugger?...
Tom Hirschowitz
chov_1_itz
Offline Send Email
Dec 6, 2002
7:11 am
654
... Usually it's if !Sys.interactive then (<commands>) else (<commands>);; indeed ... IMHO it's normal, nobody could change it at runtime (either you're...
Stalkern 2
stalkern2
Offline Send Email
Dec 6, 2002
7:15 am
655
You could #load the already finished files, and #use the currently edited one. #load "f1.ml" would be roughly equivalent to the declaration module F1 = struct...
Tom Hirschowitz
chov_1_itz
Offline Send Email
Dec 6, 2002
7:17 am
656
... interacting ... writing ... global scope. Just my point of view about scope and ref: the (static) scope of a variable is that piece of code where a...
Gianluca Moro
giangiammy
Offline Send Email
Dec 6, 2002
9:55 am
657
I agree on everything, but there is a strong reason for "global refs" in ocaml; in a functional-featured language, where lambda calculus takes charge gently of...
Stalkern 2
stalkern2
Offline Send Email
Dec 6, 2002
10:37 am
Messages 628 - 657 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help