最近打算把搁置了好久的Land of Lisp看完,在其第18章有讨论到lazy programming。觉得前面的一些例子很有趣,于是拿来分享一下。 前置知识: Common Lisp至少要会defun和defmacro 之前的章节里有写过一个双人对弈的棋类小游戏,其中有一个叫game-tree的函数。作用是给出当前的局面,当前下棋的人等信息,返回出一棵包含...
Common Lisp is a general-purpose programming language in the Lisp language family. Its syntax is defined on top of s-expressions, however it can be extended through the use of reader macros. It supports compile-time meta-programming through the use of macros. It supports the OOP paradigm thro...
game.lisp contains (ql:quickload :cl-liballegro) ;; Looks for the DLL at /path/to/Desktop/allegro.dll C-x C-f /path/to/Desktop/file9.lisp M-x slime C-x C-f /path/to/Desktop/game/game.lisp C-c C-l ;; Looks for the DLL at /path/to/Desktop/game/allegro.dll C-x C-f ...
AIMA-lisp - Common Lisp implementation of algorithms from Russell and Norvig’s “Artificial Intelligence - A Modern Approach”.AudioMusic composition:OpenMusic visual programming / computer-aided composition environment. GPL3. Developped at IRCAM, France. OM7 - a new implementation of the OpenMusic...
Paradigms of Artificial Intelligence ProgrammingNorvig, P. (1992) Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp. San Francisco, CA: Morgan Kaufmann.Norvig, P. (1992). Paradigms of Artificial Intelligence programming: Case studies in Common Lisp. San Mateo, CA: Morgan...
它不是一门简单易学的大众化的语言(common lisp),语法也很古怪,却是我见过的强力语言中最强力者。其表达力之丰富,程… xidong.net|基于53个网页 2. 通用串行处理程序语言 vocabulary... ... common language code 通用替言码Common LISP通用串行处理程序语言common machine language 通用 … ...
Lisp CLOS: Common Lisp Object System - Learn about the Common Lisp Object System (CLOS), its features, and how to implement object-oriented programming in Lisp.
Common Lisp 【Common Lisp】 1、操作符是什么? 2、quote。 3、单引号是quote的缩写。 4、car与cdr方法。 5、古怪的if语句。 6、and语句。 7、判断是真假。 null 与 not 方法。 8、递归。 9、缩排。
The Bowling Game Kata in Functional Common Lisp from Patrick Stein on Vimeo. Code Kata are repetitive coding tasks designed to help one internalize certain patterns, methodologies, or tools. In this video, I go through Uncle Bob Martin's The Bowling Game
I've gotten a bunch of emails asking for advice on how to learn Common Lisp in the present day. I decided to write down all the advice I've been giving through email and social media posts in the hopes that someone might find it useful.One...