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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Paren Programming Language now supports threads.

1 点作者 ktg大约 11 年前
Check out Paren and its friends.<p>Host languages are: C++, Java, C#<p>Paren | https:&#x2F;&#x2F;bitbucket.org&#x2F;ktg&#x2F;paren<p>ParenJ | https:&#x2F;&#x2F;bitbucket.org&#x2F;ktg&#x2F;parenj<p>Paren# | https:&#x2F;&#x2F;bitbucket.org&#x2F;ktg&#x2F;parensharp<p><pre><code> &gt; (set t1 (thread (for i 1 10 1 (pr &quot;&quot; i)))) (set t2 (thread (for j 11 20 1 (pr &quot;&quot; j)))) (join t1) (join t2) 1 2 3 4 5 6 11 12 13 14 15 16 17 18 7 8 9 10 19 20</code></pre>

1 comment

ktg大约 11 年前
Links<p>Paren | <a href="https://bitbucket.org/ktg/paren" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;ktg&#x2F;paren</a><p>ParenJ | <a href="https://bitbucket.org/ktg/parenj" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;ktg&#x2F;parenj</a><p>Paren# | <a href="https://bitbucket.org/ktg/parensharp" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;ktg&#x2F;parensharp</a>