crabbedhaloablut has quit [Ping timeout: 276 seconds]
crabbedhaloablut has joined #rust-embedded
<re_irc>
<firefrommoonlight> Hey. After learning electronics/embedded etc about 2 years ago, I dove into Rust for MCU programming instead of the easy option of C or C++. Despite Rust still being immature in the field, I regret nothing
<re_irc>
<firefrommoonlight> It doesn't limit things at all. Requires more work, eg building APIs you don't want to use Bindgen etc for, but not a big deal. The language design/docs/tooling etc is so much nicer
<re_irc>
<firefrommoonlight> I feel like I can build whatever I want, and Rust will provide the benefits of a modern language, with no drawbacks comparable to its benefits
<re_irc>
<firefrommoonlight> It doesn't limit things. Requires more work, eg building APIs you don't want to use Bindgen etc for, but not a big deal. The language design/docs/tooling etc is so much nicer
<re_irc>
<firefrommoonlight> It doesn't limit things. Requires more work, eg building APIs you don't want to use Bindgen etc for, but not a big deal. The language design/docs/tooling etc is much nicer
<re_irc>
<dalepsmith> seds: Maybe a crazy idea: have a "build.rs" that creates the asm include file? You can have rust macros in there, if that's what you need.
<seds>
dalepsmith: might not be that crazy at all
<re_irc>
<dalepsmith> Years ago, I was using a Moto supplied asm for 68K on dos. No macros at all. But I did have access to a dos m4! Was wonderful! Can do way more things than a C processor.
<re_irc>
<dirbaio> it would be a mega breaking change to cortex-m-rt though lol
<re_irc>
<adamgreig> seems a kind of niche use case too :/ with that setup you could very easily put two methods in one section and it would go badly wrong
<re_irc>
<dirbaio> yeah the linker script would have to assert there's only one :D
<re_irc>
<adamgreig> And the linker script would need to know the names of all the interrupts?
<re_irc>
<dirbaio> and if there's zero, pad with one DefaultHandler
<re_irc>
<dirbaio> adamgreig: PACs already generate a "device.x" today
<re_irc>
<dirbaio> +with irq names
<re_irc>
<adamgreig> Not sure you can even tell the linker to react by padding with default, hm
<re_irc>
<dirbaio> yeah it seems very cursed
<re_irc>
<dirbaio> very likely not worth it
<re_irc>
<adamgreig> Can you just export some function pointers instead