Category Archives: C++

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

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