Refactoring – Stay Quick and Beautiful

Sometimes you have to refactor something.  It may seem like it works, but the code is horrible-looking and inefficient. Consider for example this gem: No documentation, missing @Override annotation, quadratic blow-up of something that should be linear, unmotivated cloning of an immutable class, over-shadowing of field variables, leading to a clumsy syntax, and a code-structure […]

Read More… from Refactoring – Stay Quick and Beautiful

Slicker Widgets for ProM

I’ve already earlier whined about SlickerBox, the look-and-feel (L&F) toolkit used in ProM.  Not how it looks, as that’s pretty neat, but that it is not a real L&F using Java’s pluggable L&F (PLAF) architecture, so as soon as you go beyond what is built-in, you bang your head against a wall consisting of troublesome […]

Read More… from Slicker Widgets for ProM

The Access/CPN Source Released

10 days ago, I mentioned that CPN Tools is being open-sourced.  I then promised that within 1-2 weeks, I’d also release the simulator and Access/CPN.  The simulator will have to wait another couple days (weeks), but I have now finished cleaning up the Access/CPN source for release.  Well, actually it has been available from the […]

Read More… from The Access/CPN Source Released

When Pointers Attack (or How to Save 26-36 bytes of Memory in a Week)

You may have noticed, I’m currently running experiments where I have a lot of small things.  So many, that I computed I had an overhead of 16 bytes apiece (12 bytes per state and 4 bytes for a pointer to it), and was too lazy to improve my handling to reduce that to 8 bytes […]

Read More… from When Pointers Attack (or How to Save 26-36 bytes of Memory in a Week)