It's going to be really great as Rust spreads further and further into the embedded world. I know enough C to get by, but I'm always second guessing myself when things start to get complicated, and Rust has really made lowish-level programming a lot easier for me. The safety features in addition to exposing a C ABI make it a great language for build once, run everywhere (everywhere that LLVM supports, anyway). Exciti…
Unfortunately, there's little chance for Rust to make inroads into the embedded market, tho I wish it were otherwise. C++ has had many benefits over C for embedded s/w for many years and has similarly failed. Note that contrary to popular belief, C++ does not result in larger, more inefficient s/w than C (for the correct C++ subset). The momentum behind the C ecosystem is so overwhelming that Rust simply will not get…
Rust on RTL8710 running FreeRTOS
11–20 of 47 posts
Re: Rust on RTL8710 running FreeRTOS
#12It's going to be really great as Rust spreads further and further into the embedded world. I know enough C to get by, but I'm always second guessing myself when things start to get complicated, and Rust has really made lowish-level programming a lot easier for me. The safety features in addition to exposing a C ABI make it a great language for build once, run everywhere (everywhere that LLVM supports, anyway). Exciti…
Is rust actually used in the embedded world, anywhere? All sorts of languages have been made to run on micro controllers, from Pascal to Scheme.
Pascal, maybe, but it's about the same thing as C.
Scheme would be nice, but it's both more resource-hungry and the static checking is sort of bolted on.
With Rust's security features I hope we'll have fewer crashing or crackable embedded devices.
Re: Rust on RTL8710 running FreeRTOS
#13Earlier quoted context omitted.
Unfortunately, there's little chance for Rust to make inroads into the embedded market, tho I wish it were otherwise. C++ has had many benefits over C for embedded s/w for many years and has similarly failed. Note that contrary to popular belief, C++ does not result in larger, more inefficient s/w than C (for the correct C++ subset). The momentum behind the C ecosystem is so overwhelming that Rust simply will not get…
What makes the ecosystem so unfriendly to languages that link to C easily, either way?
Re: Rust on RTL8710 running FreeRTOS
#14It's going to be really great as Rust spreads further and further into the embedded world. I know enough C to get by, but I'm always second guessing myself when things start to get complicated, and Rust has really made lowish-level programming a lot easier for me. The safety features in addition to exposing a C ABI make it a great language for build once, run everywhere (everywhere that LLVM supports, anyway). Exciti…
Unfortunately, there's little chance for Rust to make inroads into the embedded market, tho I wish it were otherwise. C++ has had many benefits over C for embedded s/w for many years and has similarly failed. Note that contrary to popular belief, C++ does not result in larger, more inefficient s/w than C (for the correct C++ subset). The momentum behind the C ecosystem is so overwhelming that Rust simply will not get…
Re: Rust on RTL8710 running FreeRTOS
#15Earlier quoted context omitted.
Is rust actually used in the embedded world, anywhere? All sorts of languages have been made to run on micro controllers, from Pascal to Scheme.
Got talking to a dude on the phone (random call about something totally non-technical). Turned out he was an embedded systems engineer in the Nuclear industry. Uses Forth for everything. He strongly encouraged me to use it for any embedded hobby project.
Re: Rust on RTL8710 running FreeRTOS
#16Earlier quoted context omitted.
Got talking to a dude on the phone (random call about something totally non-technical). Turned out he was an embedded systems engineer in the Nuclear industry. Uses Forth for everything. He strongly encouraged me to use it for any embedded hobby project.
JeeLabs has some stuff on Forth in the uC world: http://jeelabs.org/2016/02/dive-into-forth/
https://github.com/yesco/esp-lisp
https://github.com/zeroflag/punyforth
(and of course lua which i didn't try because its official... https://github.com/nodemcu/nodemcu-firmware)
Re: Rust on RTL8710 running FreeRTOS
#17It's going to be really great as Rust spreads further and further into the embedded world. I know enough C to get by, but I'm always second guessing myself when things start to get complicated, and Rust has really made lowish-level programming a lot easier for me. The safety features in addition to exposing a C ABI make it a great language for build once, run everywhere (everywhere that LLVM supports, anyway). Exciti…
Unfortunately, there's little chance for Rust to make inroads into the embedded market, tho I wish it were otherwise. C++ has had many benefits over C for embedded s/w for many years and has similarly failed. Note that contrary to popular belief, C++ does not result in larger, more inefficient s/w than C (for the correct C++ subset). The momentum behind the C ecosystem is so overwhelming that Rust simply will not get…
I'd love to learn and start using Rust in our work, but we are client-project-driven, so it will be hard to justify the investment and productivity drop. I think it would make it easier to attract top talent, though things are weird in the embedded world.
Re: Rust on RTL8710 running FreeRTOS
#18Re: Rust on RTL8710 running FreeRTOS
#19It's going to be really great as Rust spreads further and further into the embedded world. I know enough C to get by, but I'm always second guessing myself when things start to get complicated, and Rust has really made lowish-level programming a lot easier for me. The safety features in addition to exposing a C ABI make it a great language for build once, run everywhere (everywhere that LLVM supports, anyway). Exciti…
Unfortunately, there's little chance for Rust to make inroads into the embedded market, tho I wish it were otherwise. C++ has had many benefits over C for embedded s/w for many years and has similarly failed. Note that contrary to popular belief, C++ does not result in larger, more inefficient s/w than C (for the correct C++ subset). The momentum behind the C ecosystem is so overwhelming that Rust simply will not get…
But it only took an afternoon to bolt Rust into the C build because Rust's FFI story is really nice (imo). So I get the best of both worlds: existing C HAL and SDK with the pleasantness and safety of Rust.*
* With the assumption/hope that the HAL isn't buggy, since Rust will rely on that to not explode :)
Re: Rust on RTL8710 running FreeRTOS
#20Soldering tip: tack a pin down on opposing corners of the chip before attacking the rest.