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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Strand Programming Language

117 点作者 QuinnWilton大约 4 年前

8 条评论

skissane大约 4 年前
Their implementation approach is interesting: they have their own custom Forth implementation, with a kernel written in assembly language (ARM, aarch64, x86_64 and ppc64le). Then Strand is written in a mixture of Forth and itself.
评论 #26960164 未加载
simplify大约 4 年前
A sample from their user manual[0]:<p><pre><code> % print even numbers between 1 and 10 main :- count(1). count(11). count(N) :- N =&lt; 10 | even(N), N2 is N + 1, count(N2). even(N) :- M is N \\ 2, even(M, N). even(0, N) :- writeln(N). even(_, _) :- otherwise | true. </code></pre> [0] <a href="http:&#x2F;&#x2F;www.call-with-current-continuation.org&#x2F;strand&#x2F;MANUAL" rel="nofollow">http:&#x2F;&#x2F;www.call-with-current-continuation.org&#x2F;strand&#x2F;MANUAL</a>
评论 #26950220 未加载
评论 #26949884 未加载
doublec大约 4 年前
From the same author, and in the same family of languages, is FLENG: <a href="http:&#x2F;&#x2F;www.call-with-current-continuation.org&#x2F;fleng&#x2F;fleng.html" rel="nofollow">http:&#x2F;&#x2F;www.call-with-current-continuation.org&#x2F;fleng&#x2F;fleng.ht...</a><p>It lacks Strand&#x27;s distributed features but includes prolog&#x27;s unification.
gnufx大约 4 年前
I wasn&#x27;t involved, but I remember considerable interest in Strand from parallel programming people in the lab about the time it appeared. I don&#x27;t think that lasted long, but unfortunately I don&#x27;t remember why it failed (if I knew then).<p>SISAL was probably a better bet as a dataflow-ish language, but I don&#x27;t remember anyone else looking at it, despite Manchester being &quot;just&quot; down the road.
anentropic大约 4 年前
No idea if related in any meaningful way, but <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;chalk&#x2F;tree&#x2F;master&#x2F;chalk-engine&#x2F;src" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;chalk&#x2F;tree&#x2F;master&#x2F;chalk-engine&#x2F;...</a> (a &quot;PROLOG-like logic solver&quot; for the Rust trait system) also makes use of &quot;strands&quot;
评论 #26959930 未加载
chrisjharris大约 4 年前
I find this fascinating, if a bit incomprehensible, but what might an intended use case be?
评论 #26954137 未加载
ADavison2560大约 4 年前
A good introduction to concurrent logic languages:<p>Parlog86 and the dining logicians G. A. Ringwood Communications of the ACM January 1988 <a href="https:&#x2F;&#x2F;doi.org&#x2F;10.1145&#x2F;35043.35044" rel="nofollow">https:&#x2F;&#x2F;doi.org&#x2F;10.1145&#x2F;35043.35044</a><p><a href="https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;10.1145&#x2F;35043.35044" rel="nofollow">https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;10.1145&#x2F;35043.35044</a>
pie_flavor大约 4 年前
From the User&#x27;s Manual:<p><pre><code> 三個和尚沒水喝 (Chinese Proverb)</code></pre>
评论 #26978376 未加载