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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Squirrel Programming Language

72 点作者 cia48621793将近 9 年前

10 条评论

iumtuip2001将近 9 年前
I appear to be a dying breed. A young ( &lt; 30 years old ) programmer, self taught, who loves classic, &quot;mainstream&quot; languages like C, C++, Java...<p>Why?<p>Types.<p>I cannot stand the road that new languages are on, abandoning the type system, or making it optional, or not explicit. Given that I appear to be a minority, I thank you for reading my rant... Have a good day :(
评论 #11886964 未加载
评论 #11888464 未加载
评论 #11887193 未加载
评论 #11887657 未加载
评论 #11886783 未加载
评论 #11887002 未加载
评论 #11887074 未加载
评论 #11887118 未加载
评论 #11887711 未加载
评论 #11886801 未加载
评论 #11888949 未加载
评论 #11887493 未加载
评论 #11889887 未加载
评论 #11887908 未加载
评论 #11887476 未加载
评论 #11887142 未加载
评论 #11887878 未加载
mingodad将近 9 年前
I did a fork of Squirrel -&gt; SquiLu <a href="https:&#x2F;&#x2F;github.com&#x2F;mingodad&#x2F;squilu" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mingodad&#x2F;squilu</a> because I found the syntax more familiar and also been made with C++ that make create extensions easier than plain C. Then I started adding more and more C&#x2F;C++ like syntax options with the idea to have a way to develop fast prototypes in a way that could be migrated to C&#x2F;C++ when performance was not good enough, the idea is to be able to parse and accept C&#x2F;C++ syntax but without actually inforce it at scripting level (accept discard&#x2F;warning) and be able to use a real C++ compiler to do the heavy work.<p>Example:<p><pre><code> class Klass &#x2F;&#x2F;struct Klass { int_t i; &#x2F;&#x2F;constructor() Klass() { print(&quot;Klass constructor&quot;, i); } ~Klass() { print(&quot;Klass destructor&quot;); } } Klass k = new Klass(); typedef int_t int; int test10(int x) { dente: if(x &gt; 10) { goto dente; goto done; return true; } done: return false; } print(test10(23)); output: test-class-constructor.nut:22:6 warning labels are only parsed right now test-class-constructor.nut:25:7 warning goto is only parsed right now test-class-constructor.nut:26:7 warning goto is only parsed right now test-class-constructor.nut:29:5 warning labels are only parsed right now Klass constructor (null : 0x(nil)) true</code></pre>
评论 #11887237 未加载
评论 #11887242 未加载
dang将近 9 年前
Previously discussed at <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9368075" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9368075</a>.
panic将近 9 年前
How does this compare to Lua? It seems to be going after a very similar market.
评论 #11886444 未加载
评论 #11887007 未加载
ciroduran将近 9 年前
OpenTTD (<a href="http:&#x2F;&#x2F;www.openttd.org&#x2F;en&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.openttd.org&#x2F;en&#x2F;</a>) is a Transport Tycoon clone that allows you to write an AI player for the game. The AI player is written in Squirrel.
jclekberg将近 9 年前
<a href="http:&#x2F;&#x2F;www.ticalc.org&#x2F;archives&#x2F;news&#x2F;articles&#x2F;14&#x2F;148&#x2F;148909.html" rel="nofollow">http:&#x2F;&#x2F;www.ticalc.org&#x2F;archives&#x2F;news&#x2F;articles&#x2F;14&#x2F;148&#x2F;148909.h...</a>
dalbin将近 9 年前
This language is used in Electric Imp, an &quot;IoT&quot; oriented ARM μController with WiFi, used in Wink products and Lockitron : <a href="https:&#x2F;&#x2F;electricimp.com&#x2F;docs&#x2F;squirrel&#x2F;squirrelcrib&#x2F;" rel="nofollow">https:&#x2F;&#x2F;electricimp.com&#x2F;docs&#x2F;squirrel&#x2F;squirrelcrib&#x2F;</a>
neukoelln将近 9 年前
I think Ron Gilbert uses Squirrel in his upcoming game Thimbleweed Park.
评论 #11889262 未加载
kkirsche将近 9 年前
How does this compare to Lua which seems to be the go to scripting ish language in games like world of Warcraft
pesha将近 9 年前
I had to do one project in Squirrel when I was in university and I have to say the experience was terrible.
评论 #11887360 未加载