David's Blog

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

凝视深渊

Wer mit Ungeheuern kämpft, mag zusehn, dass er nicht dabei zum Ungeheuer wird. Und wenn du lange in einen Abgrund blickst, blickt der Abgrund auch in dich hinein.1– Beyond Good and Evil, Friedri...

Notes on Deploying Common Lisp Web Services

I’m recently finishing a Common Lisp web service used inside a company. An essential part of the reason why I choose Lisp in this case is, CLOS, one of the most powerful tools for designing complic...

Embedding Julia in Lisp

Julia is a high-level dynamic programming language designed to address the needs of high-performance numerical analysis and computational science while also being effective for general-purpose prog...

ECL 中的 ffi:c-inline

今天在 Twitter 上看到有人转发标题为 “NumPy vs. Common Lisp” 的帖子,似乎不少日本的 Lisp 程序员们对此交流甚欢。这个帖子主要围绕 Numpy 和 Common Lisp 的性能比较进行讨论,尤其是如何一步一步地优化 Lisp 代码使之变快。为了方便阅读,我们干脆把 Python 和 Lisp 的代码先都贴在下面: Python 3.4.31 + Num...

Untitled

A path to home, a path to dream.


将语言编译到 Java(译)

注:原文发表于 http://matt.might.net/articles/compiling-to-java/ 在我的高级编译器课程中,我们涵盖了一系列中间语言和目标语言。出于对性能的追求,C 是一门受欢迎的目标语言;但在另一方面,Java 的优点却经常会被忽视。相较于更抽象的高级语言中的构造,一些 Java 中不那么“高级”的功能却恰好使其成为一门适宜的目标语言,例如,词法闭包在 J...

Common Lisp 中的 'map'

In many programming languages, map is the name of a higher-order function that applies a given function to each element of a list, returning a list of results in the same order. It is often call...

Keynote

A Brief Introduction to Common Lisp

This is a keynote that I made when I was studying at Mid Sweden University about one and half year ago. In a project course, every student was invited to give a presentation about what kind of tool...

QuickTips

设置一个下拉式的终端

在 Linux 上,有一个叫 Guake(拼音“挂科”,虽已不在大学,但依旧“如雷贯耳”) 的终端很好用。我最喜欢的是它可以通过快捷键(例如 F12)打开或者唤醒一个下拉式的终端会话。 如下图所示: 但是 Linux 是我的桌面机,我出门的时候就不能带着个主机 + 显示屏到处跑了。幸运的是,在 MacOS 上设置一个这样的终端也是很容易的。不过首先,下面要介绍的配置只适用于 iTerm...

音乐分享: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...