Posts

Showing posts with the label common lisp

Alsa lisp in alsa-lib

Image
Alsa lisp in Alsa-lib Table of Contents 1 What is Alsa lisp? 2 Difference between lisp and alsa lisp. 3 Sample code 4 Why not make a alisp-mode for emacs? 1 What is Alsa lisp? Alsa lisp is a lisp interpreter provided by alsa-lib package, it can be used as a script language to configure alsa. Alsalisp is not installed default by alsa-lib, so you need to compile alsalisp from source code. It provide a simple example to make a tiny lisp interpreter from scratch. Of course we can make our own script language by wrapper alsa-lib functions with some script language like Gnu's guile. 2 Difference between lisp and alsa lisp. Alsa lisp just implemented basic syntax of lisp with some simple intrinsic function. But it does not support macro syntax, that's too complicated. Beside the simple syntax, alsa lisp implemented its own special intrinsic function to invoke alsa-lib native functions. Those alsa related intrinsic function include: static const...

How to use quicklisp to manager common lisp packages

http://xach.livejournal.com/278047.html http://common-lisp.net/project/asdf/asdf.html quicklisp is an amazing tool in common lisp tool. It just like "easy-install" in python field, and "cpan" in Perl world. * How to install or load package by quicklisp We can install or load some package into lisp's core image by quicklisp's help, (ql:quickload "package name") this will load the package, if this package didn't installed, it will search in the quicklisp's repository in the net, and install it. But, If I want to load a package that is developed by myself. May I use ql:quickload to manage my personal project? Yes, you can. ql:quickload use the ASDF2 package to do this. First, We need to config ASDF, it can scan a particular directory tree for my own project. To do that, I create a config file named ~/.config/common-lisp/source-registry.conf.d/projects.conf   that has following stuff: (:tree (:home "src/lisp/")) ...