Category Archives: Ocaml

One Year On

Re-learning C++ is proving to be something of an exercise in frustration thus far; it seems there is so much you need to know before you can get anything useful done. And choices that need to be made, this library … Continue reading

Posted in C++, Ocaml, Operation Foothold | Leave a comment

Putting it all together: PubSub for OCaml with Coherence

In this post I will present a simple PubSub system for OCaml using the Continuous Query feature of Oracle Coherence. The code is all on GitHub. For this example, we will have three subscribers interested in different kinds of messages: … Continue reading

Posted in C++, Coherence, COHML, Ocaml, Operation Foothold | 1 Comment

Queries in Coherence with OCaml

Well, it looks like I posted the last entry too soon, as I can get close to what I want to do with the PofExtractor available from Coherence 3.5 onwards, without needing to write any Java (ugh!). It is a … Continue reading

Posted in C++, Coherence, COHML, Ocaml, Operation Foothold | Leave a comment

Custom classes in Coherence with OCaml

I have not updated in a little while as I have been busily (re)learning C++ in my already-scarce free time. Seems there is a lot of work around for C++ types, and it’s always good to have options. Anyway, on … Continue reading

Posted in C++, Coherence, COHML, Ocaml, Operation Foothold | Leave a comment

Updated: MapListener example

A slight update to yesterday’s example listener.ml supporting named callback functions: I am not entirely comfortable with this as a problem in the names can’t be detected at compile time – tho’ at runtime there is a check that the … Continue reading

Posted in Coherence, COHML, Ocaml, Operation Foothold | Leave a comment

OCaml binding for Coherence MapListener

In this post I will demonstrate triggering the execution of OCaml code by events within the Coherence grid. The full code is on GitHub, but at the OCaml level it is designed to be very simple†, using the callback mechanism. … Continue reading

Posted in C++, Coherence, COHML, Ocaml, Operation Foothold | 7 Comments

OCaml bindings for Coherence (without SWIG)

I am much happier with my second attempt at an OCaml binding for Oracle Coherence. This way is easier to build, easier to use, and I could reuse all of the C++ code from my first attempt. See the code … Continue reading

Posted in C++, Coherence, COHML, Ocaml, Operation Foothold | Leave a comment

OCaml bindings for Coherence with SWIG

Way back in the day, I did some work programming in C++. But to be honest, I never really learnt C++; I learnt MFC and enough ATL to do COM. And then I decided to focus on Oracle and left … Continue reading

Posted in C++, Coherence, COHML, Ocaml, Operation Foothold, Oracle | 3 Comments

Extprocs in OCaml

An external procedure or EXTPROC is a technique for calling C or other native code from SQL in Oracle. Why might you want to do this? To interface to a 3rd party system for which there is only a C … Continue reading

Posted in Linux, Ocaml, Operation Foothold, Oracle | 2 Comments

Stacks and other stuff

An interesting coincidence: I happened to mention Forth in my last post, and I have also been looking at Tenacious C, a new (sadly Windows-only for now) C IDE with some innovative visualization of a program’s memory use. They’ve a … Continue reading

Posted in Ocaml, OCIML, Operation Foothold, Oracle, Random thoughts | Leave a comment