dc740 has quit [Remote host closed the connection]
aspe has joined #rust-embedded
xnor has joined #rust-embedded
explore has joined #rust-embedded
<re_irc>
<James Munns> Mini announcement, I just put out "v1.0.0-alpha.1" of "postcard", if you use postcard for your stuff, I'd _really_ appreciate you taking this for a spin some time over the next days!
<re_irc>
<James Munns> This version DOES have breaking wire changes, and I'd love to hear any feedback on it. The twitter thread explains a bit more of what is/isn't there yet, but I'm always happy to chat if you have questions, just me here or open an issue!
<re_irc>
<James Munns> Also, I have most of a wire spec now! Give it a read if you have some time, and let me know what you think :)
<re_irc>
<James Munns> Most notably: "flavors" live on! I still think they are less of a "solve every problem" tool than I originally thought, but they have their place, and people seemed sad to see them go.
<re_irc>
<James Munns> I even added "deserialization" flavors, though the existing deserialization items (like from_cobs) are still possible/better with "in place decode then deserialize", so I probably won't change that
<cr1901>
I wanted to use it, but alas serde is probably "too recursive" to fit into small RAM requirements
<re_irc>
<newam> serde + postcard is pretty light in my experience, if you haven't measured the RAM usage I would recommend giving it a go, unless you're on something really really tiny (arduino sized) it will probably work out.
<re_irc>
<newam> I use it a lot for packet serialization on the STM32WL (256k flash, 64k RAM) and never think twice about it because "core::fmt" and "RustCrypto" are hogging all the resources :D
<re_irc>
<newam> cr1901: that's how I look at the STM32H7 with 2 whole megabytes of flash 😆
<cr1901>
But I can fit real Rust code into 128 bytes of RAM and 2kB ROM
<re_irc>
<dirbaio> that's a whole other level of tiny :D
<cr1901>
I want to code golf a Rust firmware for 128 bytes RAM/512 bytes of ROM. I think it can be done, but haven't found a good in scope application for the msp430g2001 yet
<cr1901>
(in C, assembly, Rust, or otherwise)
<cr1901>
"God invented LTO because he loves us and wants us to be happy"- Benjamin Franklin