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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rust on the Arduino Due

103 点作者 kaeso将近 12 年前

8 条评论

exDM69将近 12 年前
The ability to run with a small runtime system on bare metal, microcontrollers and such makes Rust, in my opinion, one of the most interesting new languages out there right now.<p>Native code with a lean and mean runtime system has a lot of advantages over bytecode based virtual machines and slow interpreters.
评论 #6268561 未加载
评论 #6270377 未加载
jnbiche将近 12 年前
This is great -- I&#x27;m very pleased to see a challenger to C&#x2F;++ step up in this space. And I&#x27;m starting to get really interested in Rust. It would be great to have a safer language to use in the place of C&#x2F;++, particularly since the world seems to have decided to disregard Ada.<p>That said, it&#x27;s important to note that this is not Rust on an AVR Arduino -- it&#x27;s the Due, which sports an Arm Cortex M3. Targeting AVR which probably be much more difficult (at least that&#x27;s what I&#x27;ve read). So you won&#x27;t be able to get this running on your Uno.
评论 #6268643 未加载
评论 #6269138 未加载
smilekzs将近 12 年前
Quite surprised. Exactly a year ago I was in hope that someone do something similar for Golang, but soon realized that it&#x27;s impossible because Golang relies heavily on GC. Now this seems quite interesting.
评论 #6269132 未加载
tcdowney将近 12 年前
I&#x27;m more excited to see that the project is based off one for the STM32F4. I&#x27;ve got one of those lying around and I&#x27;m looking forward to trying this out. :)
评论 #6269619 未加载
cdcarter将近 12 年前
So far you&#x27;re still stuck calling Wiring methods &lt;digitalWrite, pinMode, etc...&gt; from directly extern&#x27;d C. But a quick wrapper around the basic functions shouldn&#x27;t be too hard and allows for a more rust-y (rust-ful?) experience.
评论 #6269354 未加载
评论 #6269958 未加载
评论 #6269636 未加载
kqr2将近 12 年前
Since this builds on zero.rs, there are some limitations.<p><a href="https://github.com/pcwalton/zero.rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pcwalton&#x2F;zero.rs</a><p><pre><code> Garbage collection, tasks, and failure will not work. All the other language features, including unique pointers, references, and closures do work, so programs such as sprocketnes that do not use garbage collection should be fine. The Rust standard library cannot be used in this mode, but splitting out the Rust standard library into a portion that can be used in freestanding mode would be an interesting and valuable project (IMO).</code></pre>
评论 #6269518 未加载
评论 #6270021 未加载
fzzzy将近 12 年前
I was able to build and flash my Due with this, very cool. The possibilities are really exciting!
zokier将近 12 年前
I&#x27;d assume the libarm thingy is at least partially generated instead of being handwritten?