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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Orange: A simple systems programming language

55 点作者 rfratto将近 10 年前

12 条评论

jerf将近 10 年前
My advice to you is that you need to answer the question, &quot;What <i>is</i> Orange?&quot;<p>Your page right now focuses much more strongly on answering what it <i>isn&#x27;t</i>. It isn&#x27;t klunky, like C++. It is neither typed nor untyped. It doesn&#x27;t &quot;limit user&#x27;s expressivity&quot;. It doesn&#x27;t require you to declare variables, except that&#x27;s <i>also</i> optional.<p>It almost comes across like it&#x27;s nervous that some people might disagree with some design decisions. Let me put your mind at ease: If you are serious, and if you attain any success, I solemnly promise you the Internet will string up your language, dismember it publicly, douse all the pieces in gasoline, light them on fire, and dance around the flames. Why is that actually something that ought to put your mind at ease? Well, it&#x27;s inevitable <i>anyhow</i>, so you might as well go ahead, have some fun, and make some decisions about what Orange is going to positively be. If you get to that point, remember you&#x27;ll be the one in possession of a language that&#x27;s gotten enough attention for that to be worthwhile, and they&#x27;ll just be hecklers.
评论 #9787690 未加载
评论 #9787624 未加载
评论 #9789176 未加载
评论 #9787987 未加载
评论 #9787691 未加载
nunull将近 10 年前
That looks interesting. However, i&#x27;m not really into language-design and compilers and the first commit is from April while the project has only two contributors. Apart from the absence of a standard-library, I couldn&#x27;t find anything like &quot;attention, this is in beta&quot;. Don&#x27;t get me wrong, I just would be surprised if this really was a stable language developed in under three months.<p>(Something I was wondering about is that it says &quot;Contains orange standard library stuff&quot; in <a href="https:&#x2F;&#x2F;github.com&#x2F;orange-lang&#x2F;orange&#x2F;blob&#x2F;master&#x2F;lib&#x2F;libor&#x2F;README.txt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;orange-lang&#x2F;orange&#x2F;blob&#x2F;master&#x2F;lib&#x2F;libor&#x2F;...</a> and &quot;At the moment, Orange has no standard library&quot; in <a href="https:&#x2F;&#x2F;github.com&#x2F;orange-lang&#x2F;orange&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;orange-lang&#x2F;orange&#x2F;blob&#x2F;master&#x2F;README.md</a> at the same time.)<p>Edit: I definitely was too fast. <a href="https:&#x2F;&#x2F;github.com&#x2F;orange-lang&#x2F;orange&#x2F;tree&#x2F;master&#x2F;lib&#x2F;libor" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;orange-lang&#x2F;orange&#x2F;tree&#x2F;master&#x2F;lib&#x2F;libor</a> doesn&#x27;t contain any code.
评论 #9786604 未加载
gue5t将近 10 年前
Is it memory-safe? Is it garbage-collected?<p>Edit: Looks like it does extern calls to `malloc`, with no matching frees. Supporting proper dynamic resource management is <i>fundamental</i> for a system language, as the whole point of an operating system is to manage resources for user programs.
评论 #9787616 未加载
dom96将近 10 年前
Have you seen Nim and&#x2F;or Crystal? Both of these languages seem to incorporate a lot of the ideas you are planning for orange, hence I must ask: what makes Orange different?
评论 #9788035 未加载
gtirloni将近 10 年前
It&#x27;d be nice to update &quot;Why&quot; with reasons why other recent developments in systems programming languages fail to address what you think Orange is addressing.
rurban将近 10 年前
You are including etc&#x2F;cereal&#x2F;include to your -I but this does not exist, and I see no probe for cereal.<p><pre><code> tools&#x2F;orange&#x2F;main.cc:12:10: fatal error: &#x27;cereal&#x2F;types&#x2F;unordered_map.hpp&#x27; file not found #include &lt;cereal&#x2F;types&#x2F;unordered_map.hpp&gt; </code></pre> This one: <a href="https:&#x2F;&#x2F;github.com&#x2F;USCiLab&#x2F;cereal" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;USCiLab&#x2F;cereal</a> ? Please add it as submodule to etc.<p>The apple standard cc=clang-602.0.53 is not good enough. error: no matching constructor for initialization of &#x27;llvm::EngineBuilder&#x27; EngineBuilder builder((std::unique_ptr&lt;Module&gt;(m_module)))<p>macports clang-mp-3.{3,5,6,7} even fail before with this error: no matching constructor for initialization of &#x27;llvm::raw_fd_ostream&#x27; raw_fd_ostream raw(loutput.c_str(), ec, llvm::sys::fs::OpenFlags::F_RW)<p>I only have 5 clang&#x27;s on my mac.
scriptproof将近 10 年前
I suggest this reading to each author before making a new language: <a href="http:&#x2F;&#x2F;www.scriptol.com&#x2F;programming&#x2F;languages-with-no-programmer.php" rel="nofollow">http:&#x2F;&#x2F;www.scriptol.com&#x2F;programming&#x2F;languages-with-no-progra...</a>
protomyth将近 10 年前
<p><pre><code> for (i = 0; i &lt; 10; i++) </code></pre> Why do so many language copy C&#x27;s error prone while masquerading as a for loop? This construct is responsible for quite a bit of errors (off by 1).
评论 #9788849 未加载
cordite将近 10 年前
Is the simple--easy-to-learn--without-the-mistakes-of-C systems language becoming a hype now?<p>Not to be a downer, but that&#x27;s what it seems like since Rust 1.0.
评论 #9788750 未加载
评论 #9787571 未加载
评论 #9787530 未加载
评论 #9788670 未加载
exacube将近 10 年前
What are the pros of leaving out the type identifier when declaring a generic type? I understand that it&#x27;s viable to not provide some &quot;Type&quot; identifier to denote a generic type, but I feel like it&#x27;s better to have it for clarity. What happens when you have a function that accepts two kinds of generic types? This inconsistency doesn&#x27;t seem worth it to me
评论 #9787493 未加载
phantom_oracle将近 10 年前
Is the syntax python-inspired?<p>It looks a lot more clean to read than Nim, so this will be interesting.<p>I couldn&#x27;t find any more examples besides the simple &quot;hello world&quot;, so it would be nice to see a few more in-depth examples.
评论 #9787386 未加载
WalterBright将近 10 年前
&gt; variables can be defined implicitly<p>Oops! :-)
评论 #9788638 未加载