Archives
-
Create/update function for CLSQL
Django has a very handy model method in its database library called get_or_create, which either creates a new record using the keyword arguments passed as field values or gets a record using the arguments passed. Submit article
May 9th, 2008 | Filed under Programming -
newLISP to get Cilk-style concurrency
Multi-processing in newLISP can be a chore. All processes must be directly known to any others that will be accessing shared memory, which must be synchronized using semaphores. A new development release of newLISP (9.3.7) will change all that by adding Cilk-style primitives. Submit article
Apr 3rd, 2008 | Filed under ProgrammingTags: concurrency, newlisp -
Variable-arity functions in Lisp
One of the handier features of modern functional languages like Erlang and OCaml is the use of unification to match arity against function definitions. The ability to define a function in terms of the type and number of arguments passed is both expressive and useful. Submit article
Feb 27th, 2008 | Filed under Programming -
newLISP Template System
The template module was inspired largely by the Django template system. I firmly believe that separating complex logic from the template itself leads to both cleaner code and, much more importantly, a simpler system for non-programmers. A content producer should not be required to know lisp to write a simple template. Submit article
Feb 26th, 2008 | Filed under Programming, SoftwareTags: newlisp -
Request and Response modules for newLISP
Together, these two modules form a coherent replacement for the newLISP CGI module. They can be found here. Submit article
Feb 22nd, 2008 | Filed under Programming, Software