Author Archives: coherent

An OCaml Interface for GPC

Alan Murta’s General Polygon Clipper is the standard way of finding the intersection, union etc. of polygons. I wrote an Ocaml interface for this many years ago for a dead project, but I’ve only just got around to packaging it … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

A PDF Version of OCaml’s Graphics Module

I’ve just completed a PDF version of the Graphics module from the standard OCaml distribution, based on CamlPDF and following the conventions of Pierre Weis’ Postscript version GraphPS. The implementation is mostly straightforward, but there are are some complications – … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

CamlPDF Version 0.4 (for Ocaml and F#)

CamlPDF Version 0.4 has been released. The biggest change is that this release now compiles with Microsoft F Sharp as well as with OCaml. Some major non-compatible changes have been made to the low-level API, due to the experience of … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Keeping the Codebase Together

We have to generate the following things from our OCaml codebase: (a) Command Line PDF Tools for Windows, Mac, Linux and Solaris, demo and full versions (b) .NET DLL by compiling with F#, demo and full versions (c) The open-source … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

.NET Toolkit Released, Command Line Tools Updated

Our .NET PDF Toolkit, in 100% F#, cross-compiled with OCaml is now available, starting at £495. It does everything the command line tools do, and more, but is usable natively from VB.NET, C# and ASP.NET. At the same time, we’ve … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Coherent PDF Toolkit for .NET Beta Release

We’re almost ready to release the .NET SDK version of our PDF Command Line Toolkit, and are looking for feedback. This is the fruit of altering our OCaml codebase of about 20,000 lines to cross-compile with F# – a not … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Profiling F Sharp Code for Speed

I wrote earlier about profiling F# code for memory usage. I’ve been looking at products for profiling speed, and have settled on JetBrains dotTrace for the forthcoming .NET release of our PDF tools. Here are a couple of screenshots profiling … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

PDF Command Line Tools 1.3 and CamlPDF Progress

PDF Command Line Tools 1.3 now out, with new features for fonts, better splitting by bookmark, and dozens of smaller improvements. There will be a new release of CamlPDF in the next few months. It will be somewhat backward-incompatible due … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Building Cpdf into a .NET library – progress

I’ve been turning our cpdf PDF command line tools into a .NET DLL by cross-compiling it with F#. Here are a couple of screenshots of editing code using the library in C#. And here are a couple of screenshots of … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

On the Use of non-Tail-Recursive Functions In Commercial Code

Dear Customer, Attached is the software for which you paid several hundred pounds. It should work. Maybe on larger inputs it will fail. Sometimes several small parts of it will work, but when you put them together it will fail. … Continue reading

Posted in Uncategorized | Tagged | Leave a comment