... The main reasons I'm approaching the problem using objects is firstly because I have a background in Java, and therefore object-oriented programming is a...
3127
Kamil Shakirov
kamils@...
Apr 1, 2005 10:17 am
hi, LP> I downloaded ocaml-mode-XYY.tar.gz, I installed it under Linux LP> and I added the lines LP> (setq auto-mode-alist LP> (cons...
Hello Paola, ... If you want to get the x-component of a colored_point, you have to use get_x. P.get_x expects an argument of type P.point, which is, from the ...
3129
Rakotomandimby (R12y)...
mihamina@...
Apr 2, 2005 12:01 am
Hello all, I have a little text file wich contains 4 lines. Very simple. I wanted to test the "input" function on it, but I got error. What did I do wrong? #...
... Fire up ocamlbrowser, click on "Pervasives", then "input (v)" and then "Intf" and you'll get the documentation for the "input" function: "[input ic buf pos...
... input works as follows: input ic buf pos len so pos should be 0 (the beginning of your string chaine = buf) and len should be not more than the length of...
I was composing an answer, but the question has been answered - I won't. Though, for future reference, the OCaml library documentation is available at...
Hi, everyone Compiling with ocamlopt, is there an estimation on how fast ocaml programs runs comparing with their peers in C/C++? It looks like ocaml have...
... C is so much less capable than OCaml that I'd begin by restricting the comparison to C++ with the STL. ... Why do you say that? ... No, ocamlopt optimises...
The users of Ocaml know it to be a very good compiler, producing well-optimized code. It's not quite in the class of the best C compilers, however, so you...
Any help on any of these will be greatly appreciated and a prayer will be said for you!! /******************************************************************** ...
... Well, we're certainly not going to do your homework for you, but here ... Obviously, you're converting 2 -> 45, 3 -> 47, and so on here. Which of the...
An old professor of mine was telling me about a feature in some Lisp compilers where if you call a function more than once with the same arguments, rather than...
... I'm pretty sure OCaml doesn't have any form of automatic memoization, but you can always wrap your own[1]. ... You have to have built OCaml the the LablTk...
... As William pointed out, the key word here is 'memoize39;. Not sure about Lisp, but I believe it's the default in Haskell. Try searching for it on Google[1]...
I'm getting linking errors compiling ocamlffi. The first ( and most repeated message ) is undefined reference to __errno. This is on the prebuilt mingw version...
Thanks for those exercises. They were good practice for me. (My mind has been numbed from corporate programming for the last few years, and I'm still...
3144
Vincenzo Ciancia
vincenzo_yahoo_addres...
Apr 4, 2005 8:50 am
... I suppose that _this time_, since the book is for scientists, my complains about the price will make more sense: it's about 10% of a postdoc monthly ...
... It does indeed! Check out OCaml's "Lazy" module. Very useful... :-) Lazy evaluation has a special place in functional programming as FPLs would not...
... Agree with this. Jon: Have you thought about self-publishing the book through something like the excellent Lulu (http://www.lulu.com) service? Rich. -- ...
Hi! Is it possible / sensible to use ocaml for embedded programming? (e.g. use ocaml to code programs meant to run in a microcontroller or a dsp) I feel its a...
3148
Oliver Bandel
oliver@...
Apr 4, 2005 12:46 pm
... [...] Me too, but Jon knows this already... It's many times more than 10% of what I have per month (since some months...) Ciao, Oliver...
... I didn't know that lazy memoization could be used to mimic DP memoization... any chance I can get a brief explanation on how that works? Most of the use...
This code: let r = ref 10;; for i = 1 to !r do incr r done;; terminates, which means that <e1> and <e2> in for i = <e1> to <e2> do <e3> done;; are evaluated...
... OCaml is already being used in embedded applications, albeit embedded in a huge computer. :-) ... OCaml can generate ARM assembler, IIRC, which would be...
... Alex Baretta is producing a commercial glass cutting table with an embedded ocaml controller. Mind you the controller is a 2Ghz Celeron with 256MB RAM, so...
... Oh, hang on. If you want to memoize the result of an expression then you want to use lazy evaluation and the Lazy module. If you want to memoize the ...