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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Lobster Programming Language

43 点作者 Gadiguibou将近 3 年前

4 条评论

verdagon将近 3 年前
One thing I particularly like about Lobster is its memory management. It uses rust-like borrowing rules automatically under the hood to make one of the fastest RC implementations ever seen.<p>I think this is the direction languages should head in: embrace shared mutability for the flexibility benefits, and blend it with borrow checking for the speed benefits.
评论 #31456091 未加载
评论 #31455899 未加载
dwenzek将近 3 年前
One thing I find interesting and original is the idea of flow-based type inference.<p>Citing the &quot;The Lobster Type System&quot; page [1]:<p><pre><code> Type checking happens in order of function calls, i.e. it is much like evaluating the code, but with types instead of values. </code></pre> With this flow analysis, lobster infer more specific types for each usage of a variable.<p><pre><code> var a = nil &#x2F;&#x2F; a is a nilable of unknown type if ..: a = &quot;foo&quot; &#x2F;&#x2F; a is a nilable string if a: &#x2F;&#x2F; guaranteed not be nil inside block a += &quot;!&quot; &#x2F;&#x2F; ok: a is of type string here </code></pre> [1] <a href="https:&#x2F;&#x2F;aardappel.github.io&#x2F;lobster&#x2F;type_checker.html" rel="nofollow">https:&#x2F;&#x2F;aardappel.github.io&#x2F;lobster&#x2F;type_checker.html</a>
评论 #31463983 未加载
antifa将近 3 年前
I found the contrast between zero known published game and the claims of iOS and android targets for a 10 year old language to be... interesting.<p>But you can see some more for yourself, including screen shots of the author&#x27;s unreleased game:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;aardappel&#x2F;lobster&#x2F;issues&#x2F;136" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aardappel&#x2F;lobster&#x2F;issues&#x2F;136</a><p>I think what lobster really needs at this point is a page that prominently displays better examples of possible and real end-products somewhere.<p>raylib example:<p><a href="https:&#x2F;&#x2F;itch.io&#x2F;games&#x2F;made-with-raylib" rel="nofollow">https:&#x2F;&#x2F;itch.io&#x2F;games&#x2F;made-with-raylib</a>
评论 #31462551 未加载
Aardappel将近 3 年前
Author of Lobster here, AMA.