In Windows you must call your executable files with the ".exe" extension ocamlc -o scanner1.exe scanner1.ml M; ... -- View this message in context:...
citromatik
miguel.pignatelli@...
Mar 1, 2009 1:58 pm
10830
Hello, can someone suggest me the precise point in camlp4 source where the alternative syntax for bigarray ( the use of this syntax a.{i,j} instead of...
On Tue, Mar 3, 2009 at 1:15 AM, nicoletta triolo ... It appears to be in camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.ml (line 662 in the 3.10.2 source)....
Hey Guys, Does ocaml have anything similar to Haskall's ':t' interpreter command? Or python's 'dir', or 'help'? Maybe there is something else I should be using...
... Yes: # let x = 10.0;; val x : float = 10. # x;; - : float = 10. # let foo x y = (y x);; val foo : 'a -> ('a -> 'b) -> 'b = <fun> # foo;; - : 'a -> ('a ->...
... Hash: SHA1 It's available as an extension to the toplevel. See enhtop: http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=566 And my addition to it enhtop+ ...
Peng Zang
peng.zang@...
Mar 6, 2009 8:58 pm
10835
Wow, I've failed to notice your tools before; thanks for bringing it up! I've thought of a tool like SOLID, I even posted my thoughts to the list. (I would...
... Hash: SHA1 Yeah, I've never announced this properly on the list before because it's not a nicely packaged, robust piece of software. I wrote it to scratch...
Peng Zang
peng.zang@...
Mar 8, 2009 10:54 pm
10837
Hi all, I have a question on ocaml, is there a way to write a empty element say a which can make a::ax=ax ? I tried to find out in library, yet I didn't get...
... Hash: SHA1 It doesn't really make sense to talk about an empty element (what does that even mean?) You can have an empty list. For example: let empty =...
Peng Zang
peng.zang@...
Mar 9, 2009 4:23 am
10839
thank you for your reply, but I think what I want is an empty element but not empty list, like a is an empty element and b is a list like [1;2;3], can I have...
... There is no finite list ax that can satisfy a::ax=ax, for any a. The only solution to this equation is ax = [a;a;a;...] It's unclear from your question...
... The short answer is no (see previous). The long answer is you have an XY problem [1]. Tell us why you think this is what you want? Regards, Chris [1]:...
... another. You probably mean let rec arrangement x ys accumulated = match ys with []-> x::accumulated ... or better yet (using the rev_append function from...
I spent the last six months essentially not doing any programming at all. Now that I am getting inspiration again, I am resuming my attempts to learn ocaml. ...
Hi ... The Calendar library is in a "pack", i.e. an enclosing module called CalendarLib, which you have to open first: # Calendar.now();; Error: Reference to...
The question I have is whether or not can I take the tail of a int list list? it seems that List.tl is infeasible under this circumstance, here is my code: let...
... Yes, an "int list list" is still just a list. ... Can you explain what this "arrangement" function is supposed to be doing? -- Dr Jon Harrop, Flying Frog...
Jon Harrop
jon@...
Mar 10, 2009 8:57 am
10849
... List.tl works just fine. For example: # let intlistlist = [[1;2;3];[4;5;6];[7;8;9]];; val intlistlist : int list list = [[1; 2; 3]; [4; 5; 6]; [7; 8; 9]] #...
... This is a common kind of type error that can be a bit confusing. What the compiler is saying is that it had previously inferred the third argument of...
How do I refer to e.g. unit_big_int from Big_int? I've tried a few variants like Big_int:unit_big_int and Big_int.unit_big_ent, but gotten compiler errors. -- ...
This message raised that question in my mind: http://tech.groups.yahoo.com/group/ocaml_beginners/message/10534 Dr. Harrop said: F# is scheduled for its first...
What are the major issues here? Does the future look better with Batteries making what appears to be extremely rapid progress towards a well-organized standard...
... Jon Harrop is, on balance, a constructive member of the OCaml community. But he is a well-known crank on this issue. Just ignore him. Regards, Chris...
... Hash: SHA1 Yeah, second that. His opinion on this issue is an outlier. F# is interesting but OCaml will always be, in my opinion, the language of choice ...
Peng Zang
peng.zang@...
Mar 10, 2009 7:29 pm
10857
... Just to clarify: I was referring to the current OCaml implementation maintained at INRIA. We have since begun an industry-funded open source project called...
Jon Harrop
jon@...
Mar 10, 2009 9:55 pm
10858
... Two major issues: . Global run-time lock prevents threads from running in parallel which makes it difficult or impossible to leverage multicores...
Jon Harrop
jon@...
Mar 10, 2009 10:17 pm
10859
Hi Jon, HLVM sounds very exciting! But http://hlvm.org redirects to some content delivery network - what gives? Where can we get this to try? There is a post...