TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rust on the Arduino Due

103 pointsby kaesoover 11 years ago

8 comments

exDM69over 11 years ago
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 未加载
jnbicheover 11 years ago
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 未加载
smilekzsover 11 years ago
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 未加载
tcdowneyover 11 years ago
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 未加载
cdcarterover 11 years ago
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 未加载
kqr2over 11 years ago
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 未加载
fzzzyover 11 years ago
I was able to build and flash my Due with this, very cool. The possibilities are really exciting!
zokierover 11 years ago
I&#x27;d assume the libarm thingy is at least partially generated instead of being handwritten?