News for hackers. Stuff that matters.
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale by vardump on Wednesday April 04, 2018 @03:43PM (#16758245)
I think IoT will push embedded development towards Rust. As well as security critical desktop/server code. Especially when said code needs to be a loadable library (.dylib, .so, .dll).

While Rust certainly isn't the silver bullet, it demonstrably significantly reduces memory and concurrency related bugs.

Yeah, the last firmware I developed was in C and assembler. No, I could not have done it in Rust, mainly due to no Rust compiler available for the arch. Then again, I could not have done it in pure C either...

For future platform selection availability of a Rust compiler is already a factor. Even if we'd still end up using C/C++ for now.

Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale by jcoffland on Wednesday April 04, 2018 @10:58PM (#16761418)
Since Rust does not yet really work on ARM Cortex or AVR it's still a long way from taking over IoT. Only devices with an OS, like a RaspberryPi, are properly supported by Rust at this point. That's a huge limitation. GCC can target literally hundreds of bare metal devices with C and even C++. Developers have been using C and C++ successfully in IoT devices for years now.

Rust may be the bees knees but it has many hurdles to overcome before it dominates a language that has been around for 46 years.

Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale by steveklabnik on Thursday April 05, 2018 @07:14AM (#16763704)
> Only devices with an OS, like a RaspberryPi, are properly supported by Rust at this point.

You must be confused, as this isn't true. https://www.tockos.org/ is even an OS written in Rust for ARM boards.

ARM Cortex stuff already works, AVR is coming.

Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale by vardump on Thursday April 05, 2018 @06:52AM (#16763601)
ARM (thumb 2, Cortex M0-M4) is by far the most important target. Second is cores like Cortex A7 and A53.

I think AVR is pretty minor outside hobbyist circles. After ARM support, I'd rather first see MSP430 (amazing for low power), some FPGA softcores (like NIOS, microblaze, etc., common in low volume, industrial & medical devices) and even 8051 (these buggers seem to still be everywhere, but I guess targeting Rust for this arch is the ultimate challenge.).

I guess RISC-V would be cool as well, I can see this getting more popular in the future, eating ARM market share.

Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale by steveklabnik on Thursday April 05, 2018 @07:16AM (#16763712)
MSP430 already works, as far as I know. RISC-V is there too.
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale by tuukkah on Thursday April 05, 2018 @12:59AM (#16761900)
Embedded use cases including ARM Cortex-M and AVR support seems to be in the focus on the Rust 2018 roadmap: "We want embedded programming to reach first-class status this year." https://blog.rust-lang.org/2018/03/12/roadmap.html