Is Rust the future? As a C++ (hobby), Java (full time) developer, should I invest my time in Rust?
I started playing around with Rust a few weeks ago and fell in love; it has some quirks for sure (the whole borrowing system is a bit tough to grok at first) but it didn't take long for me to start seeing things the "Rust way." My only hang-up with it right now is that so many of the most useful packages in Cargo depend on the nightly build of Rust.
Raspberry Pi Bare Metal Programming with Rust
21–30 of 96 posts
Re: Raspberry Pi Bare Metal Programming with Rust
#22Re: Raspberry Pi Bare Metal Programming with Rust
#23Is Rust the future? As a C++ (hobby), Java (full time) developer, should I invest my time in Rust?
Rust, Go, Java, Scala, Clojure, Javascript... (leaving out quite a few other choices for brevity). They say choice is a good thing but too much choice is actually really annoying and fragments the community across a very large number of ecosystems.
Re: Raspberry Pi Bare Metal Programming with Rust
#24Is Rust the future? As a C++ (hobby), Java (full time) developer, should I invest my time in Rust?
Out of all the new languages of the last 5 years or so (D, Rust, Crystal, Go?, etc.) I think Rust shows the most promise. It is attracting both c/c++ people and people coming from dynamic languages (Python, ruby, js). So I'd recommend trying Rust out for sure, not much to lose, maybe spending a day...
Re: Raspberry Pi Bare Metal Programming with Rust
#25Is Rust the future? As a C++ (hobby), Java (full time) developer, should I invest my time in Rust?
Re: Raspberry Pi Bare Metal Programming with Rust
#26I have the perfect project for this! Generate a signal using the GPIO ports to drive a mirror and camera in a synchronized fashion. Does anyone know if the RPi GPIOs can be driven at around 80KHz? I've seen reports that this is possible, but that the USB or video driver tends to lock the CPU for long times, messing with timings - but hopefully running on bare metal would take care of that.
Re: Raspberry Pi Bare Metal Programming with Rust
#27I have the perfect project for this! Generate a signal using the GPIO ports to drive a mirror and camera in a synchronized fashion. Does anyone know if the RPi GPIOs can be driven at around 80KHz? I've seen reports that this is possible, but that the USB or video driver tends to lock the CPU for long times, messing with timings - but hopefully running on bare metal would take care of that.
Re: Raspberry Pi Bare Metal Programming with Rust
#28Re: Raspberry Pi Bare Metal Programming with Rust
#29As a long time C programmer this is not very convincing. A C program to do the same requires far less voodoo. All you need to do is take the address of the GPIO register then toggle the bit. No name mangling. No error handlers to override. Don't get me wrong I know rust does have some compelling features. It does seem odd to me that so many of what would be compiler options in C are hard coded.
Re: Raspberry Pi Bare Metal Programming with Rust
#30Earlier quoted context omitted.
The new raspberry pi zero can be run as a device, so you could use that.
O.o this $5 puppy could essentially replace the 1.5K National Instruments DAQ I'm using right now. Even better, I won't have to deal with their horrendous API documentation anymore. Of course that would require a Linux kernel, so not bare metal anymore, but there might be a way to make this work! Now I just need to get my hands on one, it's out of stock everywhere within a radius of 300km...