Articles Written in 2012

First release of OCaml binding of Lua library

I'm happy to announce the first release of ocaml-lua, the OCaml binding of the Lua library. With ocaml-lua you can embed a Lua interpreter in an OCaml program in a few lines of code, and use Lua for configuration or customization purposes.

Here are some references:

  • The homepage of the project is hosted on OCaml Forge;
  • The complete library reference (ocamldoc generated) is here;
  • Source tarballs are on the download page on OCaml Forge;
  • The official GIT repository is here;
  • Bug reports and feature requests are on my page on GitHub.

I hope it could be useful.

Online backup with Crashplan: my experience

Crashplan ETA for the first backup

Following this article of Lifehacker I decided to give a try to Crashplan, an online "cloud" backup service that seemed very promising to me because it supports many platforms (Linux and Android included) and offers an unlimited space plan for one computer for only $36 a year.

Installing the client for Linux is very easy, and presents all the typical backup options (timing, include/exclude paths, and so on).

I decided to include all the directory I already backup with a script of mine on a USB external hard drive.

The problem here is visible in the screenshot I saved: the estimated time for completing the first backup was 52 days!

It's not Crashplan fault, of course, but the fact is that here in Italy we are still very far from using a remote service like that.

Maybe I'll retry again in a a few… years.

Debugging memory in OCaml: any advice?

Memory consumption chart

A server I just deployed (written in OCaml, of course) seems to eat RAM at breakfast. This is the chart of the RSS field of "ps" in the past 24h (click to enlarge). The program starts with almost 6 Mb and is now reaching 40 Mb, in a linear trend that has nothing good to say.

Any advice on how to debug the memory consumption?

Copyright © 2004–2017 by .
Creative Commons License Content on this site is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Italy License.

Valid XHTML 1.1. This blog is written in Objective Caml. Design based on the work of Rodrigo Galindez.