... Have you tried looking at using threads and the Event module? If you grab the Adwords Toolkit from http://merjis.com/developers/adwords_toolkit and look...
Sorry I couldnt get back here earlier - it takes so long for posts to appear. Anyway, I fixed it to work. Here's the working vesion: type pipes = {server_read...
Lukasz> What is the motivation behind this convention, and if it is not Lukasz> rational, can we promote uppercase names, that match module names? I can't...
... I don't think using names equivalent modulo captialisation is sane, I just insist that CamelCase.ml matching my uses of CamelCase in sources is much more...
Hello, I have a list1 of elements in type t(x,y) like [t(x1,y1); t(x2,y2); t(x3,y3); t(x4,y4)], where y can be a single element or a list of the same with...
Hi, there I'm wondering whether it is possible to define a "generic" (if I'm using the right terminology) map in plain OCaml. Basically, List.map of OCaml maps...
... So List.map is: ('a -> 'b) -> 'a list -> 'b list and you want to generalise this beyond "list" to: ('a -> 'b) -> 'a 't1 -> 'b 't2 I'm no expert on type...
Hi, Something is going wrong when I try to use Glut menu's. On Mac OS X and Unix I get a bus error when I select a menu item with the following code. The menu...
... If you allow yourself to peek inside OCaml structures using Obj.magic or whatever then it's possible to (a) iterate over an arbitrary structure and (b)...
Hello experts! this is my first time to meet objects in ocaml. Is there any difference (according performance, memory) between the next to tests? peter type t...
... Well, I guess you should test the performance and memory usage (see below). But the general issues you should be aware of: (1) Method calls are more...
... Not that I'm aware of. Some directions you could think about: (1) Write out Postscript and pipe it through something like ps2pdf. Postscript is actually...
... Funny you should ask. It happens I am working on one ... but I don't have any fixed timeline, and it will probably be at least two or three months before...
... I suppose I'll wait some time. ... It seems what I was looking for. Unfortunately, I started studying OCaml a couple of days ago. I used various tools to...
... Thank you very much, but non of these options are feasible. In fact I wanted only to write a spider that retrieved web pages and constructed a pdf with...
... As a workaround you can use perl4caml together with PDF::Create Perl's module. Cheers. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny...
... I don't think this is easy in any language. To turn a web page (HTML tag soup) into a PDF document requires a complex rendering step. Take a look at the...
... Depends on which library you can count on :) However, since I really do not have to interpret generic webpages but only documentation stuff, I can just...
Is there any way of generating format types for Printf.xxx at runtime, or can this only be done from string constants? I'm looking for a way of converting...
... Not really, no. If you only have a handful of formats that you want to use, then use format_of_string (in Pervasives). However it isn't dynamic in the...
... Yeah. You may want to take a look at Olivier Danvy's paper "Functional Unparsing" for som inspiration. http://www.brics.dk/RS/98/12/BRICS-RS-98-12.pdf ...
Hi folks,
I want to discuss the subject of operator (re)definition yet another
time. This is because most tutorials and books I have read tell you how
to...
algorithm which takes in entry a table (its elements are 0 and 1) and 2 indices I and J of this table such as 1<=i<=j<=N and which returns the position and the...
I've been having trouble with this very simple thing, and I was wondering if anyone could help me out: I have three files: (* burp.mli: *) class type foo = ...
... The problem here is that you are confusing class types with class signatures. They are two different things. What you need in burp.mli is class foo : int...
... Right. So for a trivial application (in this case, I wanted to print integers with a user-specified amount of left zero padding), it's probably easiest to...