... This looks like some weird build problem with the build tool I'm using. The wrong_file_type exception occurs for this simple 5 liner if the simple maths...
3984
Richard Jones
rwmjones
Aug 5, 2005 10:36 pm
... Your code is good, certainly much better than my first attempt at an OCaml program. If you have any insights into the learning process, please share them...
3983
Chris Campbell
chrisdanx
Aug 5, 2005 10:28 pm
Hi, I'm having a wee problem with CamlImages. For some reason it won't load any image in my toy OpenGL earth program. I tried another program with the image,...
3982
Christophe TROESTLER
Christophe.Troestler@...
Aug 5, 2005 9:51 pm
... I can't unzip your file, so cannot see what library you are using. ... You could define your stdout channel and route it through the usual stdout channel....
3981
Karl Zilles
kzilles
Aug 5, 2005 8:37 pm
Martin DeMello wrote: let nonempty s = match s with "" -> false; ... You could also write this as: let nonempty = function "" -> false | _ -> true or in this...
3980
Martin Jambon
BioMim
Aug 5, 2005 8:02 pm
... In general I avoid "open List" because several other modules (Array, Hashtbl, ...) define functions of the same name (iter, map, ...). That's nothing...
3979
Martin DeMello
martindemello
Aug 5, 2005 7:30 pm
I finally stopped reading OCaml manuals (an endlessly fascinating exercise :)) and wrote an actual, if trivial, program. It's pretty much a translation of some...
3978
Richard Jones
rwmjones
Aug 5, 2005 6:16 pm
[This is not my question. It was originally posted to this page: http://www.ocaml-tutorial.org/newbie_faq but I think it's more appropriate to answer it here....
3977
Stalkern 2
stalkern2
Aug 4, 2005 6:05 pm
My 2 cents... sobek2ml wrote: [...] ... Generally the root is just the unparented element, and every node is a root to its children, so it is not necessary to...
3976
Jonathan Bryant
jonboy3182
Aug 4, 2005 5:04 pm
I'm a little confused on exactly what you are doing, but I'll give it a shot. As far as I can tell, you're taking an XML abstract syntax tree and annotating it...
3975
sobek2ml
Aug 4, 2005 3:48 pm
Hi, i'm a french student at Pierre & Marie Curie University in computer science Master , so sorry for my bad english :) I would like some help, if it is...
3974
Jon Harrop
harropjon
Aug 3, 2005 9:49 pm
... I fourth my own motion. It is just such a great idea... :-) -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists ...
3973
Christophe TROESTLER
Christophe.Troestler@...
Aug 3, 2005 9:21 pm
... I do too :) You also probably want to think about a function returning approximate matches to help to user if he entered a wrong string identifier. Good...
3972
David Thomas
david_hd
Aug 3, 2005 9:12 pm
... I second the motion. It allows you to verify your strings and get them in canonical form in one place, and get a little more help from the compiler in...
3971
Seth J. Fogarty
aravthamis
Aug 3, 2005 9:01 pm
... So write a function let brick_of_string str = ...... that translates strings into bricks. You do not have to expose the internals, they are for your own...
3970
Damien Guichard
brickcaster
Aug 3, 2005 8:55 pm
... instead. ... not a ... the form ... enumeration ... @ David Thomas Already hundreds of suffixes, and even more in the future as the LEGO company keeps...
3969
Jon Harrop
harropjon
Aug 3, 2005 7:46 pm
... Presumably you won't be parsing the enumeration very often? ... Firstly, integers are not the only alternatively. Secondly, that is not a valid reason to...
3968
David Thomas
david_hd
Aug 3, 2005 6:19 pm
... How many distinct suffixes are there? I might be tempted to enumerate those, and use (num, suffix) ____________________________________________________ ...
3967
Damien Guichard
brickcaster
Aug 3, 2005 6:14 pm
... @ William D. Neumann && Jon Harrop I apologize. It really works, just it takes 1 min or more to parse on my slow machine. Definitely too slow so i will use...
3966
Jon Harrop
harropjon
Aug 3, 2005 5:31 pm
... Yes, it works fine here too. I don't see the point of having such a big enumeration though... -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective...
3965
William D. Neumann
scoey13
Aug 3, 2005 5:08 pm
... It works fine for me, in the toplevel, with ocamlc, and ocamlopt. What kind of problem are you having that indicates it isn't being parsed well? William...
3964
Damien Guichard
brickcaster
Aug 3, 2005 4:56 pm
... for them. ... Would be great if it were only a misconception... Now when i open this file: http://perso.wanadoo.fr/alphablock/downloads/Peeron.ml The...
3963
superluminal1905
superluminal...
Aug 3, 2005 7:51 am
Following up: I'm on a Mac machine and the timings I gave earlier are for OCaml + CamlFloat. At this point, I haven't implemented the C- function (since I'm...
3962
Jon Harrop
harropjon
Aug 3, 2005 2:58 am
... It looks as though you are measuring time taken to make the OCaml->C call vs time taken to execute the call, i.e. these results are highly dependent upon ...
3961
superluminal1905
superluminal...
Aug 3, 2005 2:08 am
Thanks for your responses. I am in fact already using CamlFloat (that was the "library" I was referring to). From what I have been told by Shiv...
3960
Matt Gushee
mcgushee
Aug 2, 2005 5:46 pm
... Actually, it's Haskell-like, which may or may not be a good thing. -- Matt Gushee Englewood, CO, USA...
3959
Martin Jambon
BioMim
Aug 1, 2005 11:46 pm
Here is some code which does this (taken from the micmatch library) and provides some options. See http://martin.jambon.free.fr/mmodoc/Micmatch.Directory.html...
3958
Jon Harrop
harropjon
Aug 1, 2005 9:52 pm
... On AMD64, OCaml is likely to be at least as fast as C. On x86, OCaml is likely to be up to 2x slower. Regardless, if you're doing such low-level ...
3957
superluminal1905
superluminal...
Aug 1, 2005 8:49 pm
More precisely, what I'm trying to do is accelerate a matrix*vector operation as well as vector+vector and <vector,vector> (inner product). I'm using a...
3956
Jonathan Bryant
jonboy3182
Aug 1, 2005 4:23 pm
Hello, everybody. I'd like to announce a new site called CodeWiki.net. It's intended to be a gathering point for information programming languages, theory, ...