Archives
-
Writing Python modules in C with SWIG
The Python C API, while very well put together, is still C and therefore requires a lot of time an effort to understand, let alone use. But every now and then, a programmer comes across something that is either impossible in Python or so prohibitively expensive performance-wise that it is worth dusting off the old [...]
Aug 14th, 2007 | Filed under Programming -
Updating the newLISP MySQL5 module
It has been a very busy few weeks here. This is the time of year when work gets very rushed, and on top of that, my wife and I are expecting. Due to all of that, I have decided against finishing the C Libraries tutorial for newLisp at this time. The reason that I had [...]
Aug 1st, 2007 | Filed under Programming -
Using C libraries in newLISP
The past couple of articles have been tutorials on how to use CFFI to access functions from C libraries in Lisp. Out of completeness, I thought I’d write a short tutorial demonstrating how much easier it is to do the same thing in newLisp. As newLisp is an entirely interpreted language, this built in functionality [...]
Jul 14th, 2007 | Filed under Programming -
Wrapping a C library in lisp (part 2)
Once the library has been defined and loaded into the Lisp image, work can begin on defining C routines in Lisp. Submit article
Jul 3rd, 2007 | Filed under Programming -
Wrapping a C library in lisp (part 1)
One of the more significant difficulties I face when developing Lisp applications is the apparent lack of generally compatable database libraries for the various lisp dialects. CLSQL is a nice solution, but it does not get along well on OSX, my development OS, or with CLISP, which is the primary lisp dialect I have available [...]
Jul 2nd, 2007 | Filed under Programming