Multiprocessing utilities for newLisp

newLisp’s Cilk API simplifies the task for forking new processes and retrieving the results of child processes’ calculations a breeze. Some patterns remain complex, particularly when dealing with shared state or managing access to resources. To formalize some of the more common patterns of usage with the Cilk API, semaphores, and shared memory, I have written a multiprocessing library for newLisp. Read more…

Jan 29th, 2009 | Filed under Programming, Software

Updating modules for newLISP 10

I am in the process of updating my module repository for newlisp 10.  In the process, I am refactoring each module and doing some updates. I am paying shockingly little attention to backward compatibility, so if you want to use the new modules, be prepared to do update your own code.

A couple of notable changes are a complete replacement of the mysql module, functional has been renamed to matching, and the addition of the Element module, which provides utilities to write XML (or any structured markup) quickly and efficiently.

As modules are updated, I am making a note of it in their descriptions.

The repository

Jan 25th, 2009 | Filed under Site news

A better MySQL module for newLISP

The Mysql module has been written from scratch utilizing some of the more recent features of newLisp, such as FOOP and reference returns. One of its major design goals was to simplify use as well as broaden the features of the standard MySQL module, while at the same time allowing the creation of new, anonymous instances at run-time. Read more…

Jan 22nd, 2009 | Filed under Programming, Software
Tags: , , ,

Using the newLISP FFI

One of newLisp’s out-of-the-box features is its foreign function interface. It is simple to use, requiring only a minimal knowledge of C and a willingness to read documentation. Read more…

Jan 18th, 2009 | Filed under Programming
Tags: ,

MultiFormDict

For the moment, I am stuck on Django 0.96 on one of our servers at work, but needed the formset functionality from the newer forms module.  It is a common problem and easily dealt with by prepending keys with a common token to group forms’ values together.  I ended up writing a little derived class that makes things simple. Read more…

Jan 11th, 2009 | Filed under Programming
Tags: ,