Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ocaml_beginners · Ocaml Beginners

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 3986 - 4016 of 13890   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
3986 William Neumann
scoey13 Send Email
Aug 6, 2005
12:11 am
... One other minor note: Your join function is almost the same as String.concat in the standard library (with the exception that a: your version also...
3987 jshaw10 Send Email Aug 6, 2005
4:46 am
Recently I ran into an issue in the type system I hadn't seen before. The ocaml manual says that _ indicates an anonymous type.... but what is an anonymous...
3988 Jon Harrop
harropjon Send Email
Aug 6, 2005
4:57 am
... Monomorphic rather than polymorphic. ... Beta expansion: # let dual l = List.map ( fun (x,y) -> (y,x) ) l;; val dual : ('a * 'b) list -> ('b * 'a) list =...
3989 jshaw10 Send Email Aug 6, 2005
5:06 am
... I assumed that ocaml would do this for me automatically, but I guess not. Thanks for your help!...
3990 Jon Harrop
harropjon Send Email
Aug 6, 2005
12:21 pm
... As the two expressions do not mean the same thing (in general), you don't want the language to do it for you. -- Dr Jon D Harrop, Flying Frog Consultancy...
3991 Martin DeMello
martindemello Send Email
Aug 6, 2005
11:05 pm
... Good point - it just looked weird prepending List to all the basic functions. ... How come? ... I take it this is the OCaml equivalent of C's main()? ...
3992 Martin DeMello
martindemello Send Email
Aug 6, 2005
11:10 pm
... Thanks :) Totally missed that. Is there a simplification of match x with " " -> y; ... too? (I was translating it from x == " " ? y : x) martin...
3993 Martin DeMello
martindemello Send Email
Aug 6, 2005
11:16 pm
... Totally missed String.concat! And the bit about the extra prepended separator (though speaking of which, why is there no foldl1? I've found it at least as...
3994 Christophe TROESTLER
Christophe.Troestler@... Send Email
Aug 6, 2005
11:18 pm
... Yes and no. The difference is that you can have as many of these (let () = ...) as you like. ChriS...
3995 Martin DeMello
martindemello Send Email
Aug 6, 2005
11:23 pm
... No particular insights, I'm afraid (I basically see OCaml as sitting within a Ruby-Haskell-Lisp triangle, and reach for idioms from each until I develop a...
3996 William Neumann
scoey13 Send Email
Aug 6, 2005
11:27 pm
... You get used to it. I tend to only open modules like Big_int and Printf, where the functions contained in the module are fairly unique. ... Well, it's not...
3997 Jon Harrop
harropjon Send Email
Aug 6, 2005
11:46 pm
... if x = " " then y else x -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists ...
3998 Jerry He
rebound1618 Send Email
Aug 7, 2005
12:24 am
Hey, Does anyone use SWIG with Ocaml? After downloading Swig, I tried building some of the example ocaml extensions. ... gave no error, however ... gave a long...
3999 Richard Jones
rwmjones Send Email
Aug 7, 2005
9:12 am
I've never used SWIG with OCaml, but the errors seem to indicate that one of the caml #includes isn't being included. Possibly #include <caml/mlvalues.h> ...
4000 Chris Campbell
chrisdanx Send Email
Aug 7, 2005
2:11 pm
ok, I think I figured out what was happening. Camlimages was being linked into the maths lib and the main executable, so I end up with 2 copies of the lib in...
4001 Brian Hurt
bhurt42 Send Email
Aug 7, 2005
4:03 pm
... I was just about to reply to you over there, so instead I'll reply to you over here. Two obvious examples of modules being used to combine state + code...
4002 sobek2ml Send Email Aug 7, 2005
4:58 pm
... Thank you very much for your answer, i'm a little confused with your post too, i don't anderstand well how i can write the fun. My problem is to write a...
4004 sobek2ml Send Email Aug 7, 2005
5:05 pm
... taking ... either ... [], ... Thanks for your answer :) I don't understand well what you explain, i'm sorry, especially how i can write my func. My problem...
4005 Jerry He
rebound1618 Send Email
Aug 7, 2005
5:58 pm
... C. On >x86, OCaml is likely to be up to 2x slower. Why is there such a drastic difference between different architectures? Are you taking into account ...
4006 Jon Harrop
harropjon Send Email
Aug 7, 2005
6:18 pm
... From experience and personal benchmarks. The INRIA team had a lot more trouble generating efficient floating point code on x86 because, in Xavier's words, ...
4007 Damien Guichard
brickcaster Send Email
Aug 8, 2005
12:23 am
Hello, Here is my code: #load "str.cma";; type info = {name: string; year: int};; let has_name s info = Str.string_match (Str.regexp s) info.name 0;; Now i...
4008 james woodyatt
dr_strychnine Send Email
Aug 8, 2005
1:24 am
... This is the version you want, for the reasons you have correctly surmised. -- j h woodyatt <jhw@...> markets are only free to the people who own...
4009 Damien Guichard
brickcaster Send Email
Aug 8, 2005
2:18 am
... Many thanks. It's amazing how ocaml_beginners is responsive :) Hope it will boost OCaml popularity, it deserves to. - damien...
4010 Martin Jambon
BioMim Send Email
Aug 8, 2005
4:13 am
... Mmmm, you don't use tuareg-mode, do you? :-) The Tuareg mode for Emacs/XEmacs provide a convenient "evaluate phrase" function which does the whole...
4011 superluminal1905
superluminal... Send Email
Aug 8, 2005
6:49 am
Hello, I'm trying to call a trivial C-function from my OCaml program. I read the Merjis chapter on this, but I'm still having problems getting off the ground....
4012 Richard Jones
rwmjones Send Email
Aug 8, 2005
12:13 pm
... Same answer as on Jul 31 - what prototype do you want for 'foo'? It matters, and it makes a big difference to how you would interface the function. Also,...
4013 William D. Neumann
scoey13 Send Email
Aug 8, 2005
2:06 pm
... Heh. No... I've grown to hate emacs over the years, and tuareg isn't nearly enough to dull the pain of it -- perhaps if it made me coffee... I *much*...
4014 David Thomas
david_hd Send Email
Aug 8, 2005
2:51 pm
I'm just about positive there's an emacs module out there that will make you coffee. ... ____________________________________________________ Start your day...
4015 superluminal1905
superluminal... Send Email
Aug 8, 2005
6:59 pm
The function I actually want to implement is matrix*vector: void foo(double mat[][1000], double vec1[], double vec2[]) { int i, j; double sum; for ( i = 0; i <...
4016 Jerry He
rebound1618 Send Email
Aug 8, 2005
7:57 pm
Hi, Since I started using Ocaml, I've gotten so used to tail recursions that sometimes I do it in other programming languages too. Of course, the problem is,...
Messages 3986 - 4016 of 13890   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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