News for hackers. Stuff that matters.
Re:Rust on the Arduino Due by exDM69 on Saturday August 24, 2013 @08:16AM (#6268445)
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.

Native code with a lean and mean runtime system has a lot of advantages over bytecode based virtual machines and slow interpreters.

Re:Rust on the Arduino Due by namespace on Saturday August 24, 2013 @09:23AM (#6268561)
This is an amazing feat with Rust being a modern open alternative to C! So far many have tried and failed. Rust developers have learned well and Rust seems to be on right track.
Re:Rust on the Arduino Due by titzer on Saturday August 24, 2013 @11:53AM (#6268945)
I've been working on this problem a while ago, but Virgil II didn't get much traction outside of a couple academic projects. It's here though:

http://compilers.cs.ucla.edu/virgil/

Re:Rust on the Arduino Due by aray on Saturday August 24, 2013 @08:36PM (#6270377)
Javascript is in a similar situation with node.js ported to a Cortex-M3 ARM microcontroller (similar to the Due) http://technical.io/

I've been working off and on porting the go runtime to a microcontroller, but still finicking with segmented stack support.

Re:Rust on the Arduino Due by exDM69 on Sunday August 25, 2013 @05:36AM (#6271495)
> Javascript is in a similar situation with node.js ported to a Cortex-M3 ARM microcontroller

Well, yes and no. Yes, there are JavaScript environments ported to different platforms, including microcontrollers. But no, JavaScript is not compiled to native code ahead of time nor does it run without a big runtime system.

While there is some technical trickery involved in getting JavaScript running on different platforms, I find the new LLVM-based languages that run on bare metal much more interesting.

Due to its nature, even the best of JavaScript implementations waste quite a lot of resources compared to native code. While computers are fast enough and have enough memory not to notice the difference, it's still consuming more battery power and producing more heat than executing native code. And it's power and thermals that have been the limiting factor of computational power for the past decade.