TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A million lines of Lisp

41 点作者 muriithi将近 17 年前

3 条评论

ajross将近 17 年前
This kind of loses me towards the end. I mean, sure, emacs is a freakishly large lisp program. I get that part. But, what's the point here?<p>The abstractions in emacs (modes and hooks are the ones discussed in the linked post) really aren't that strange, or unique, or even lisp-specific. Nor are they without analogs in other tools written in conventional imperative languages. An emacs written in python, frankly, wouldn't look that different. A mode by any other name would hook as smooth.
评论 #230397 未加载
评论 #230260 未加载
评论 #230326 未加载
JesseAldridge将近 17 年前
Ok, this is probably me being ignorant, but can't you do stuff like this to get macros in Python:<p><pre><code> import os, subprocess def macro(string, filename="~/macro.py"): program_name = os.path.expanduser(filename) out = open(program_name, 'w') out.write(string) out.close() command = ["python"] command.append(program_name) subprocess.Popen(command) macro("print 'Hello macro!'") </code></pre> It seems like with a bit of ingenuity you could achieve any level of abstraction using a technique like that.
评论 #230366 未加载
评论 #230370 未加载
评论 #230773 未加载
评论 #230358 未加载
评论 #230355 未加载
brandonkm将近 17 年前
I've been really interested in Lisp lately, for someone that knows next to nothing about this language, this is a pretty interesting read.