David's Blog

... because Lisp is, like life, what you make of it.

音乐分享:Young Men Dead

此为《真探》第一季第一集的片尾曲。 Fire for the hills pick up your feet and lets go Head for the hills pick up steel on your way And when you find a piece of them in your sight Fire at will don't you waste n...

cl-libhoedown

Common Lisp Binding for Hoedown

cl-libhoedown Common Lisp Binding for Hoedown, a standards compliant, fast, secure markdown processing library in C. Installation You need to first install Hoedown, either clone or download it f...

cl-libfarmhash

Common Lisp Binding for Google's Farmhash

cl-libfarmhash Common Lisp Binding for Google’s Farmhash. Usage note: all results shown below are from a 64bit Mac OS platform. farmhash FARM> (farmhash "test") 2929758365 farmhash32 FAR...

QuickTips

为 Slime 设置一份本地的 HyperSpec 拷贝

The Common Lisp HyperSpec is a hypertext html document which is not the ANSI Common Lisp standard, but is based on it with permission from ANSI and X3.1 Originally developed by Kent Pitman at Ha...

Some Photos took in ShenZhen City

The Beach and the Ocean The UFO is landing!1 Angles become Mothmen2 … Inspired by Fargo Season 2, 9th Episode, you may want to have a look here: Douban ↩ ...

Deliver Your Software by Producing a Single FASL File

From the very beginning, just like other ‘rookies’, I’m so confused why a Hello World executable file is so big in Common Lisp. Among all the implementations, of course you can argue that ECL can p...

Trivial-String-Template

A Pretty Handy Utility Library

Trivial-String-Template Usage substitute (substitute "$who likes $what" :who "tim" :what "kung pao") ;; => "tim likes kung pao" You can specify the delimiter character by lexcially binding ...

使用 Common Lisp 开发现代化的 Web 应用(一)

HTTP 服务器

引子 在《黑客与画家》一书中,Paul Graham 多次提到了 Common Lisp 和他的创业产品 Viaweb。在那个动态网站还未像现在大放异彩的年代里,Viaweb 的出现绝对是会让人异常印象深刻的。《拒绝平庸》1一文中,Paul 甚至将 Lisp 称为『秘密武器』。据我所知,当时 Paul 所使用的 Common Lisp 实现是现在因为无人『认领』而略显尴尬的 CLISP ;...

一件小事

晚上正在桌前学习 Lambda Calculus 之时,我妈发了个『数学题』的链接给我: 马总公司招聘测试数学题难倒了上万研究生:小明向爸爸借了500,向妈妈借了500,买了双鞋用了970,剩下30,还爸爸10块,还妈妈10块,自己剩10块,欠爸爸490,欠妈妈490,490+490=980。加上自己10块=990.还有10块哪儿去了?这是怎么回事呢? 据说,身为退休数学老师的老...

将语言编译为 Lambda Calculus(译)

注:原文发表于 http://matt.might.net/articles/compiling-up-to-lambda-calculus/ 我教授的编译器课程总是由一节关于 λ 演算的完整介绍开始。 It leaves behind only the dedicated. Barendregt is a helluva drug. λ 演算是一门微型编程语言。 尽管它只包含...