Category Archives: Operation Foothold

Quick histograms

Having come back to actively working on OCI*ML recently, it’s time I cracked on with some more features (I have been promising LOBs for a long time, sorry to anyone who’s still waiting). Just to get warmed up, inspired by … Continue reading

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

Segmentation Faults, TAP and Eclipse

This is quite a neat trick. Consider: Referencing that NULL pointer obviously crashes straight away with a terse segmentation fault: By simply linking it with libSegFault, which seems to be documented only very informally, but comes with glibc: Of course … Continue reading

Posted in C++, Emacs, Linux, Ocaml, Operation Foothold | Tagged , , , , , , | 3 Comments

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