Common Lisp code |
This is a collection of Common Lisp libraries and sample code for Lispworks. Some of these libraries had actually been used in production systems running daily for the span of more than ten years.
Native driver for the MySQL database in Common Lisp. The word native here means that the code connects to the database directly through a socket and no C bindings or other foreign language bridges are used. The code requires no additional libraries, everything it needs is included in one file. Works with MySQL 5.0 or higher and any Lispworks 8.0 or higher.
This library was the first ever peace of code I wrote in Common Lisp and it became the backbone of production systems driving warehouse systems and online shops.
Interface to Amazon Simple Email Service (Amazon SES) to send text messages. It requires no additional lisp libraries, -- all the required lisp code is included in one file. The code depends on OpenSSL libraries and works with any Lispworks version 8.0 or higher. Inside the code there is also a SHA-256 implementation in generic Common Lisp.
Foreign language interface to the SQLite Version 3 database in Common Lisp for Lispworks. It requires no additional lisp libraries, and all the required code is included in one file. The code depends on the sqlite3 external dynamic library and works with any Lispworks version 8.0 or higher.
SHA-1 (Secure Hash Algorithm 1) and Hashed Message Authentication digest (HMAC) implementations in generic Common Lisp, not Lispworks specific. It requires no additional libraries, all the needed code is included in one file.
An implementation of the MD5 message-digest algorithm and the Hashed Message Authentication digest (HMAC) using the MD5 digest algorithm in generic Common Lisp, not Lispworks specific. It requires no additional libraries, all the needed code is included in one file.
The Common Lisp implementation of this simple game was written to
investigate the graphics capabilities of Lispworks' CAPI for
multiplatform drawing on Windows and Linux platforms.
Python code |
This is reimplementation of the Common Lisp's native driver for MySQL
in Python. I needed a database connection in some Python code and needed
something simple to deploy. So, in one evening I wrote this code. This is not
a complete library but rather all the necessary machinery for a library.
The code is fully working.
Forth code |
I've exclusively been using RPN calculators since the high school. So I had never had a question "Why Forth?" It just came naturally and stayed.
This is an interface to Component Object Model (COM) in 25 lines of code. I consider this one of the most elegant piece of code I've ever written. Component Object Model is in itself very simple, but in every programming language I've been using it (C++, C#, Delphi, Common Lisp) it is always presented as overcomplicated. It should not be.
The snipped of the COM interface code is taken from a larger library to interface with Microsoft Outlook. The Forth code is for SwiftForth 32 bits.
Monthly and yearly text console calendar with weeks starting from Monday.
The Forth code is for SwiftForth Linux 32/64 bits. The
screenshot of the program.
©2009-2023 Art Obrezan