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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Alumina Programming Language

107 点作者 tibordp超过 2 年前
Alumina is a programming language I have been working on for a while. Alumina may be for you if you like the control that C gives you but miss goodies from higher level programming languages.<p>It is mostly for fun and exercise in language design, I don&#x27;t have any grand aspirations for it. It is however, by this time, a usable general-purpose language.<p>Alumina borrows (zing) heavily from Rust, except for its raison d&#x27;être (memory safety). Syntax is a blatant rip-off of Rust, but so is the standard library scope and structure.<p>Alumina bootstrap compiler currently compiles to ugly C, but a self-hosted compiler is early stages that will target LLVM as backend.<p>If that sounds interesting, give it a try. I appreciate any feedback!<p>Standard library documentation: <a href="https:&#x2F;&#x2F;docs.alumina-lang.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.alumina-lang.net&#x2F;</a><p>Online compiler playground: <a href="https:&#x2F;&#x2F;play.alumina-lang.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;play.alumina-lang.net&#x2F;</a>

11 条评论

MontyCarloHall超过 2 年前
I get that this is mostly for fun, but this is as good a place as any to bring up an issue I rarely see discussed with any post about a new language.<p>Well-established languages have tons of widely used, highly vetted libraries implementing functionality that doesn’t exist in the new language and would be totally impractical for an individual to implement themselves. For example, if I’m doing scientific computing, I need a good linear algebra library like Eigen or Armadillo (or Numpy&#x2F;PyTorch&#x2F;Tensorflow), all of which would be impossible for me to implement myself.<p>Therefore, for a new language to catch on, it needs a good foreign function interface. Yet FFIs are almost never brought up whenever new languages are discussed on HN. (Again, I realize that this is just a fun project and widespread adoption is not a goal.)
评论 #32706269 未加载
评论 #32703988 未加载
评论 #32704045 未加载
评论 #32705101 未加载
评论 #32704242 未加载
mhd超过 2 年前
I thought people got along with Rust due to its features and semantics and learned to live with the syntax. Not it being something one would copy. (I&#x27;m personally still hoping for a Ratfor&#x2F;Coffeescript transpiler)<p>Also, wonder how long it&#x27;ll take until we see a &quot;Aluminia&quot; fork...
评论 #32705116 未加载
评论 #32710963 未加载
Surfactant7超过 2 年前
&gt; Unlike Rust, however, Alumina is not memory-safe and it requires manual memory management.<p>From what I gather, it might be more accurate to say that Alumina has no ownership model. Rust requires manual memory management, but offers the ownership model as a compile-time tool for doing so.<p>It would actually be pretty interesting to see some experimentation around alternative ownership models.
noncoml超过 2 年前
I really don’t like the cognitive load of having to remember to use defer. We already have the scope defined, why add something extra?<p>IMHO the way it’s used in Go is a workaround, of luck of destructors, not a feature.<p>Edit: not a criticism on your language OP, which is better than what I could have ever built. Just a comment in the “defer” trend.
评论 #32705021 未加载
评论 #32705805 未加载
评论 #32722277 未加载
Eliah_Lakhin超过 2 年前
I&#x27;m currently working on a project similar to Tree-Sitter.<p>Basically, it is going to be a full-featured Compiler front-end foundation library with incremental parsing capabilities, error recovering, AST manipulations, etc, but written entirely in Rust, and hopefully with more user-friendly API for Rust devs.<p>May I ask you to give me some feedback on your experience with Tree Sitter, and the challenges you faced during the development of your compiler&#x27;s front-end?<p>Thanks in advance!
评论 #32704944 未加载
ducktective超过 2 年前
Awesome!<p>How difficult was it for you to design a whole programming language?<p>Do you have a theoretical CS background?<p>If I want to design my own, would learning Racket and other LISPs help?<p>I&#x27;m interested in formal methods and embedded systems.
评论 #32706136 未加载
chaosprint超过 2 年前
Online playground! So it compiles to WASM? If you are gonna look like Rust. Please, no unwrap() everywhere.
评论 #32706028 未加载
revskill超过 2 年前
Love this.<p>What if Rust provide a separate analyzer to analyze potential memory leak from this language.
评论 #32704633 未加载
chrismsimpson超过 2 年前
Interesting no one here is discussing “Jakt”, which looks very similar in style and approach. Jakt is the language attempted by the SerenityOS team, which itself dispels the notion you can’t building something of substance from scratch without outside libraries. Jakt also implements fairly lightweight reference counting, making it memory safe. I think the potential of SerenityOS&#x2F;Jakt can’t be overstated and strikes me as comparable to the excitement surrounding Linux in the early ‘90s.
评论 #32708494 未加载
renox超过 2 年前
So, as far as I understand its main feature is that it has a Rust-like syntax?
评论 #32704585 未加载
nnoitra超过 2 年前
New language posts have to stop. There are tons of other CS topics to talk about but instead LIPSs ()()()()((((())))) and random langs taka the spotlight on HN.
评论 #32705629 未加载
评论 #32708970 未加载