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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Do you write quick and dirty hacks using Lisp?

5 点作者 chriszhang超过 4 年前
To those who know both Lisp and Python: Which one you prefer to use to write quick and dirty hacks? Which one you prefer for writing applications that will be used and maintained over a long period of time?<p>I know Python, Common Lisp and Scheme but I find myself reaching out for Python every time I have to write a quick and dirty hack. This is due to more familiarity with Python which makes me more comfortable with Python. What are your experiences? Maybe it will convince me to go all in and use Lisp all the time. :-)

1 comment

kazinator超过 4 年前
&gt; <i>Lisp and Python: Which one you prefer to use to write quick and dirty hacks?</i><p>There is a Lisp dialect for the &quot;C-and-Unix crowd&quot;: TXR Lisp.<p>Similarly to traditional tools like Awk, TXR Lisp has no external dependencies and builds into a single native executable (plus a collection of satellite files that go into &#x2F;usr&#x2F;share). It is documented by a single giant man page (&quot;man txr&quot;), which also exists in the form of a hyper-linked HTML document with a collapsible, two-way navigable table of contents.<p>Though fine for larger applications, it scales down to throwaway scripting, including one-liners on the command line.<p>It includes a whole-document scraping language called the TXR Pattern Language that is good for extraction tasks. Especially for &quot;messy&quot; text that consists of multiple <i>ad hoc</i> structures slapped together.
评论 #25284882 未加载