Archive for May, 2009

The 4 levels of making code work

Tuesday, May 26th, 2009

[caption id="" align="alignleft" width="300" caption="Photo by dbking"][/caption] You want to make your code work.  Anything else would be dumb, right?  Right.  But as we've discussed before, deciding whether your code is good enough to count as "working" isn't always straightforward.  On way of looking at this is to categorise four stages ...

The basics of SWIG

Monday, May 11th, 2009

[caption id="attachment_535" align="alignleft" width="240" caption="Image from sketch22"][/caption] Simplified Wrapper and Interface Generator, or SWIG for short, is a tool that provides a way to interface C/C++ with a variety of high level programming languages (notably Python, R but not Matlab - which has it's own way of linking to C). It ...