Posts

Showing posts from December, 2008

Installing the GODI system on Tiger (Part I)

Synopsis Given the complexity of the stack described in my previous post, things did not quite go into linear fashion. However as far as GODI itself is concerned, I just had to overcome a single hurdle for its installation on my system. The rest of the process was surprisingly smooth. Getting the GODI distribution From the GODI homepage I downloaded godi-rocketboost-20080630.tar.gz (which is the version including Ocaml 3.10.2) and unpacked it under my 'Ocamel' directory. As this software is not installed via 'wizard', one needs to read the README file first. In the section 'Requirements', it is clearly explained that the installation requires the GNU gcc compiler (which is best provided by the Xcode package engineered by Apple) and also other UNIX tools such as GNU make (which on my Mac is provided by Fink ). As I had already Fink installed on my Mac, the only additional step before starting the Ocaml installation was to install a Tiger-compatible version of...

A preamble on Ocaml packaging and Mac OS X

Image
Although OCaml is available as binary packages for Mac OS X, the problem is that this kind of distribution cannot easily be complemented by various packages available from the Caml Hump (an Ocaml equivalent of CPAN for Perl). This is fine as long as one only wants to experiment with the language. Beyond this, any work involving some pragmatic issues such as database persistence or internationalization, needs to be based one way or another on the functionality offered by the standard packages provided by the Ocaml community. An example of this is the Camomile library, which is the de-facto standard to handle Unicode characters in Ocaml, yet is not included in the standard Ocaml distribution. As opposed to Java, there is no simple way to drop a library (such as a jar file) in some agreed directory. The current Ocaml ecosystem relies on a source based package being built, compiled, tested, and installed into the Ocaml environment, in a fashion similar to Perl 5. Depending on the specifi...

Where a rather bumpy journey unfolds ...

Out of curiosity I picked in 2007 this rather dense book in the IT corner of a Toulouse book shop: "Programmation fonctionnelle, générique et objet" from P. Narbel (unfortunately for English readers this is only available in French...and also it now seems out of print). The book focuses on the concepts of functional programming, using Ocaml as a platform to experiment with. This approach, starting from the concepts and showing their application with small code examples, is clearly very didactic. Having digested most of this material over several months, I said to myself : "why not try it out and use Ocaml on a personal project ?", having in mind to create a tool to assist with the learning of the Japanese language. This is where things got rather complicated...but at the same time enlightening... Having worked for 2 decades using imperative programming languages (C, Perl, Java, JavaScript), my recent experience with JavaScript was quite revealing that f...