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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

"Maxwell's equations of software" examined (2008)

32 点作者 hegzploit大约 3 年前

3 条评论

YeGoblynQueenne大约 3 年前
Pf. Too convoluted. You have to define stuff in M expressions and then map them to S expressions. And what is it that you&#x27;re defining? A set of primitive functions, some of them operating on specialised data structures. Why? Here&#x27;s Prolog in Prolog:<p><pre><code> prove(true). prove((L,Ls)):- prove(L) ,prove(Ls). prove(L):- clause(L,Body) ,prove(Body). clause(H:-B,B). clause((H:-),true). </code></pre> This is just a straight-forward implementatio of SLDNF Resolution [1]. No &quot;primitives&quot;, no data types, no specialised data structures and no translation from Prolog to something else before looping back to Prolog.<p>Also, rather fewer LOCs. LISP people are always bragging about their LOCs. I don&#x27;t know why.<p>__________<p>[1] &quot;SLDNF&quot; Resolution is Selective Linear Definite Resolution with Negation as Failure, officially; or, Straight-up Logical Derivations with No Fuckups Resolution, as I prefer to think of it.
评论 #30715228 未加载
FullyFunctional大约 3 年前
I feel a little sick every time I see this regurgitated; McCarthy&#x27;s interpreter is not remotely in the same class as Maxwell&#x27;s equations (and the Church-Turing thesis). It&#x27;s neither axiomatic, universal, nor minimal. Good ol&#x27; lambda calculus does a much better job. For example, here&#x27;s the lambda calculus self-interpreter [1]<p><pre><code> (\f. (\x.f(xx)) (\x.f(xx)) (\em.m(\x.x)(\mn.em(en)) (\mv.e(mv))) </code></pre> [1] <a href="https:&#x2F;&#x2F;crypto.stanford.edu&#x2F;~blynn&#x2F;lambda&#x2F;" rel="nofollow">https:&#x2F;&#x2F;crypto.stanford.edu&#x2F;~blynn&#x2F;lambda&#x2F;</a>
评论 #30684765 未加载
评论 #30680450 未加载
dang大约 3 年前
Related:<p><i>“Maxwell&#x27;s equations of software” examined (2008)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23321955" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23321955</a> - May 2020 (47 comments)