Hello to everybody I have just finished putting online a bunch of tutorials either by me or (mostly) by Stefano Zacchiroli. You can find them under the name...
964
Johann Spies
jspies@...
Apr 2, 2003 9:50 am
... Thank you for the effort you put in to help others like me. Regards. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie,...
965
billspight
Apr 3, 2003 7:19 pm
Hi! Using OCamlWin I tried entering the following from the Chailloux, Manoury, Pagano book, and got these responses. # let from_rgb (c : Graphics.color) = let...
966
Issac Trotts
issac_trotts
Apr 3, 2003 10:11 pm
How about #load "graphics.cma"? Issac...
967
Bill Spight
billspight
Apr 3, 2003 11:10 pm
Dear Issac, ... That works. :-) Many thanks, Bill __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online,...
968
Daniel Andor
daniel_andor
Apr 4, 2003 12:24 am
Hi, I'm wondering about implementation of dynamic programming algorithms in OCaml -- essentially, how does it relate to recursion? Does anyone have a small...
969
Manos Renieris
er@...
Apr 4, 2003 12:47 am
... Using the imperative features of Ocaml, dynamic programming algorithms can be copied almost exactly from standard table-filling pseudocode. The memoization...
970
james woodyatt
dr_strychnine
Apr 4, 2003 1:25 am
... Recursion is just the traditional pure functional way of achieving what imperative programmers use loop constructs to do. The "dynamic programming...
971
lambdawannabe
Apr 4, 2003 1:17 pm
Hello Everyone! I made a program that contains a lot of Printf's to a file. While programming i did a lot of (camlp4r syntax) do { ... }. This is a very...
972
Stalkern 2
stalkern2
Apr 4, 2003 1:58 pm
... Do a lot of Format.sprintf instead and fetch the strings around in a functional way, ouputting it only at a key-passage that you can control. Imperative...
973
lambdawannabe
Apr 5, 2003 6:04 pm
Hi Ernesto, I can't seem to get it working by using Format.sprintf while Format.fprintf works. How do i keep the "formatting stream" when i use sprintf? ...
974
Stalkern 2
stalkern2
Apr 5, 2003 10:41 pm
... Hi, I have stopped developing Camlp4 since Daniel De Rauglaudre, the inventor of Camlp4, broke with Ocaml and so Camlp4 seems to be unmantained at present....
975
Remi Vanicat
dl_ens
Apr 5, 2003 11:52 pm
... This is false. bug fix are still apply to camlp4, even after Daniel De Rauglaudre broke with the rest of the team... The only problem may be that as none...
976
Remi Vanicat
dl_ens
Apr 6, 2003 12:28 am
... this have nothing to do with camlp4. This a type thing, not a lexical/syntaxical thing : # Format.sprintf;; - : ('a, unit, string) format -> 'a = <fun> its...
977
Stalkern 2
stalkern2
Apr 6, 2003 11:44 am
... OK, that's good to hear. Who's the current mantainer BTW? Do you know whether Camlp4 will be part of the next core distribution? T I A Ernesto...
978
Nicolas Cannasse
ncannasse
Apr 7, 2003 1:11 am
... whether ... I'm pretty sure it will. Nicolas Cannasse...
979
DUBOIS Fabrice FTRD/D...
fabrice.dubois@...
Apr 10, 2003 10:42 am
Hi all, There's something I don't wonder about with that "Str.global_substitute" function. Here's the signature: val global_substitute : regexp -> (string ->...
980
DUBOIS Fabrice FTRD/D...
fabrice.dubois@...
Apr 10, 2003 10:44 am
Sorry, in my previous message, you must read "There39;s something I ___DO___ wonder about..." :-) ... De : DUBOIS Fabrice FTRD/DTL/LAN Envoyé : jeudi 10 avril...
981
Remi Vanicat
dl_ens
Apr 10, 2003 11:31 am
... well, you can easily find it by using the functions matched_string, match_beginning, match_end, matched_group, group_beginning, group_end. [...] -- Rémi...
982
Nicolas Cannasse
ncannasse
Apr 11, 2003 1:48 am
... WHOLE TEXT ("s") to that function. ... instead! Creating the substring has as cost, and for example sometimes you don't care about which substring is...
983
Eray Ozkural
examachine
Apr 16, 2003 7:10 pm
... Good point!! For bonus points: if you can come up with a generic functor for a few dynamic programming approaches (such as filling a 2d table, etc.) then...
984
Walter C. Reel III
waltercreel
Apr 17, 2003 6:14 am
I have a little learning program does simple processing on a report style file. I build a list using the 'input_line input_channel39; in a recursive function...
985
Didier Le Botlan
lebotlan
Apr 17, 2003 8:56 am
... Probably, but you WANT to use exceptions. (As far as I know, it is the Right Way to read a file). ... In OCaml you are welcome to use exceptions as much as...
986
DUBOIS Fabrice FTRD/D...
fabrice.dubois@...
Apr 17, 2003 9:24 am
Yes, exception handling is really clean is OCaml. Too often, exceptions are considered synonyms of "nasty error " or "imminent-crash" indicators. But in fact,...
987
Stalkern 2
stalkern2
Apr 17, 2003 9:38 am
... Use exceptions, but be aware both of the fact that try...with... constructs break tail-recursiveness, and of the kind of incorrect nesting described below...
988
Eray Ozkural
examachine
Apr 17, 2003 11:52 am
... severe performance penalty: each activation record gets code for unrolling exceptions IIRC -- Eray Ozkural (exa) <erayo@...> Comp. Sci....
989
Eray Ozkural
examachine
Apr 17, 2003 11:54 am
... For functional code right now I'm using haskell style type 'a maybe = None | Just of 'a -- Eray Ozkural (exa) <erayo@...> Comp. Sci. Dept.,...
990
Stalkern 2
stalkern2
Apr 17, 2003 1:09 pm
... You know that's like 'a option in Ocaml, don't you Ernesto...
991
Walter C. Reel III
waltercreel
Apr 17, 2003 2:18 pm
... There's a lot of overhead associated to C++ exception (so much as to cause Trolltech Inc. to not use them in their Qt product, e.g. the --no-g++-exceptions...
992
Walter C. Reel III
waltercreel
Apr 17, 2003 2:18 pm
Wow... I'm certainly getting a lot of interesting input. Thanks everyone! What if the recursive function is constructing a return? Like a 'val :: mk_more_rec...