Bill Roper (billroper) wrote,
Bill Roper

The Wretched Incompatibility of Things

For testing, I've written a Java implementation of MFC serialization. We won't be shipping it, but it allows us to test things for now.

The problem is that Java and C++/MFC have very different ideas about how to handle various data items. For example, Java would like IDs to be immutable and shared among different objects that reference the same object by that ID. C++ doesn't want to share those IDs, because reference counting, well, not so much. So if you edit something in Java, the course of least resistance is to share the IDs, but then you need to make them all unique when you serialize them so that they work the way that C++ expects.

This turns out to be more difficult than you might think.

Tags: c++, computers, java, musings, tech, work

  • Happy Birthday, Gretchen!

    And here it is, Gretchen's birthday again. Most of the festivities were last night, due to K's being in the school play tonight, so we had a good…


    I am in a maze of twisting JARs, all alike, except that some work and some don't.

  • Putting Things To Bed

    I think I managed to put a lot of things to bed today at work, which means that I should be able to go work on something else. Except for the…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded