Know the Common Lisp power! |
||||
---|---|---|---|---|
Lisp is the most powerful programming language ever |
||||
And feel yourself like at the sideral space |
||||
Using secret alien technology |
||||
|
|
|||
Nowadays I make an effort to program on Common Lisp. I use cmucl and sbcl on Linux, but I tried other Lisp implementations. This is a wonderful program to express you, due to It's a very high level language, and It exists lots of libraries and programs that will help you to program everything you can imagine. Moreover, lots of lisp software is free software, like all my software. I actually develop : A comic viewer written on Common Lisp, distributed under the GPL license. It's simple and efficient, and It will serve you to read all those files filled with photos that you found at the emule but you never asked how to read. Those are cbr files (comic book archiver), and you can read them with something like cl-cbr. To install cl-cbr, just load your favourite lisp implementation and use asdf-install:
(asdf-install:install 'cl-cbr) This will download the sources from internet, and the dependencies too (at the moment, only ltk, a library to use Tk -the Tcl toolkit- from Lisp). To run the program, just write: (cl-cbr:main) I distribute binaries for linux and x86. You can find the last release at sourceforge, looking for cl-cbr. To install a binary release, just download and decompress It, and write make at the prompte. To run the program, write cl-cbr at the prompt.
This library was called cl-gnuplot, but I changed Its name because another library is called the same. It's an interface to use gnuplot from Common Lisp. It has been tested successfully on Linux and Windows, but It should work where Ltk and Gnuplot work: Mac OS X, BSDs ... It uses the Ltk library to create a pipe to comunicate with gnuplot. It includes some sugar to do function plots, scatter plots, controlling the grid, titles, ranges ... The 005 release includes the possibility to save postscript copies of your graphics. You can find the last release at Cliki. The easiest way to install It is with asdf-install: (asdf-install:install 'cgn)
;Run gnuplot (start-gnuplot) ;Close gnuplot (close-gnuplot) ;Sets the graphic title (set-title "titol") ;Sets the grid (set-grid 'on) ;Unsets the grid (set-grid 'off) ;Shows a scatter plot with x-y error bars. (plot-points '(1 2 3) '(4 5 6) :x_error '(0.1 0.2 0.3) :y_error '(0.4 0.5 0.6)) ;Plots a function of only 1 variable (plot-function "cos(x)") ;Saves a postscript copy (Linux) (postscript-copy "sortida.ps" 'linux) ;Saves a postscript copy (Windows) (postscript-copy "sortida.ps" 'w32) To do whatever It's not wrapped at the library, you can use the pipe, with the format-gnuplot text function. For example, you can show a 2 variables graphic with: (format-gnuplot "splot x*y")
|