Category Archives: Uncategorized

A Simple Parser with Genlex

(If you’re reading this via the OCaml planet, click the post title to see it with proper formatting – I shall fix this problem for the next post, I hope.) When calling our command line PDF Tools to, for instance, … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Storing Colours in 31 bits (Part One)

For rendering vector graphics scenes, colours are usually stored with what we call “premultiplied” or “associated” alpha. For instance, opaque dark red is stored as: 0.5, 0, 0, 0.5 (R * A, G * A, B * A, A) instead … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

A Proper GUI for OCaml (Part Two)

I’ve packaged up the basic libraries described last time and you can get them here, together with a little example. It should work on any platform / toolchain where OCaml and Python and WxPython can be installed. It allows you … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

A Proper GUI for OCaml (Part One)

Some time ago, I wrote a GUI for a large OCaml project in C++ using WxWidgets, linked to OCaml in a single executable. It was hard and slow to write and crashed all over the place. So I’ve redone it … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

CamlPDF 0.3 Released

I’ve just uploaded a new version of our library for reading and writing PDF files from within Ocaml – CamlPDF. New features: CCITTFaxDecode support Fully re-entrant Parsing of Type 3 fonts Bit-by-bit operations (e.g some decoders) much faster and of … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment