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, ...
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...
... 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 ...
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...
... 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 ...
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...
... 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...
... 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...
... 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...
... @ 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...
... How many distinct suffixes are there? I might be tempted to enumerate those, and use (num, suffix) ____________________________________________________ ...
... 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...
... instead. ... not a ... the form ... enumeration ... @ David Thomas Already hundreds of suffixes, and even more in the future as the LEGO company keeps...
... 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...
... 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...
... 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...
Christophe TROESTLER
Christophe.Troestler@...
Aug 3, 2005 9:21 pm
3974
... I fourth my own motion. It is just such a great idea... :-) -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists ...
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...
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...
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...
[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....
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...
... In general I avoid "open List" because several other modules (Array, Hashtbl, ...) define functions of the same name (iter, map, ...). That's nothing...
Martin DeMello wrote: let nonempty s = match s with "" -> false; ... You could also write this as: let nonempty = function "" -> false | _ -> true or in this...
... 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....
Christophe TROESTLER
Christophe.Troestler@...
Aug 5, 2005 9:51 pm
3983
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,...
... 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...
... 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...