reto

reto

@galactic-forensics.space

building instruments to study dust from the death throes of stars, mad scientist vibes, with a passion for 🦀

93 followers113 following68 posts

reto reposted

Device-driver release time! Version 2.2.0 introduces the LSP support I've been teasing for a while. This is coupled with a vscode extension. But the LSP should work anywhere you can hook it up to. Lots of internal changes too, probably the biggest MIR change since 1.0.

reto reposted

Please, install and test the latest probe-rs. @dbuga.bsky.social merged all of my proposed fixes/improvements. If you have cortex-m devices, make sure to check that there are no known regressions. I checked with STM32G071RB, MCXA266, MSPM0G3519, and STM32F405.

reto reposted

Got renames working in the LSP! Had to do a lot of internal refactoring to make this work well without hacky-ness. The internal MIR is now a couple of flat vecs instead of a tree. That makes the core compiler ~5-10% faster too as a bonus.

My first real Pico de Gallo test: successfully set the voltage on an LTC2686 DAC. Development with Pico de Gallo is going to be very fun :) Next thing up: write an actual Rust driver with Device Driver v2. Thanks to @balbi.sh and @diondokter.nl for these amazing tools! #EmbeddedRust #Rust

reto reposted

Ok, putting it out there so there's a higher chance of me getting it actually done :P It's my aim to release device-driver v2 this month

TIL: an endless loop in my proc macro crate can make the compiler spin forever in the test crate… But definitely having fun with macros for instrumentRs

Spent the last two weeks swapping out the PCB (top right, based on RPi Pico2) and expanding the user workflows of the interface. Firmware on the Pico2 as well as the interfacing software are written in Rust. The actual interface is based on Slint @slint.dev. #Rust #RustEmbedded

Next up will be a discussion of async support... It's in the making, so stay tuned! I do still have a few open questions on that front though that need to be answered first :)

Thanks, any thoughts are very welcome! Gotta have a look at yaq and what they do, looks quite interesting at first glance. This ecosystem is definitely quite important to me as well, would love to discuss more and see what can be done and what is needed.

Really enjoyed following the livestreams of #rustweek the last couple of days. There were lots of really great speakers presenting on amazing projects. Michael Winkelmann's talk on microcad.xyz and the live demo was especially fascinating to follow, a really neat project to play with more soon!

microcad.xyzStartseite

reto reposted

Final part of my async blog! tweedegolf.nl/en/blog/237/... Last time I shared some tips for improving your async code. Now we look at why the compiler doesn't do it for us. I want to fix it in the compiler, but I need your help! If you can help with funding, reach out to me. Please share :)

tweedegolf.nlAsync Rust never left the MVP state - Blog - Tweede golfI've previously explained async bloat and some work-arounds for it, but would much prefer to solve the issue at the root, in the compiler. I've submitted a Project Goal, and am looking for help to ...

Feel free to just sketch out answers, give pointers, etc. Answers will be curated and extended (if necessary) by the expert community! Of course, you can also reply here and I'm happy to transfer your questions over to the discussion, whatever is easiest! :)

If you are looking for a new incubator, look for a model that has the control board **above** the chamber, especially if you work with salt water... Don't get me wrong, I love oxidized firmware #EmbeddedRust, not so much corroded components though.