ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
<re_irc> < (@grantm11235:matrix.org)> Oh, it's not exactly identical, but it is very similar
<re_irc> < (@jamesmunns:beeper.com)> pub fn james_foo2(num: u32) {
<re_irc> let mut res = [0; 8];
<re_irc> res[2..4].copy_from_slice(&[0xBE, 0xEF]);
<re_irc> res[4..].copy_from_slice(&num.to_le_bytes());
<re_irc> < (@jamesmunns:beeper.com)> https://godbolt.org/z/hMd8xh6Kf
<re_irc> < (@jamesmunns:beeper.com)> Funnily enough, it totally ignores the 2 unused bytes on thumbv7em
<re_irc> < (@grantm11235:matrix.org)> Now without "inline(never)" https://godbolt.org/z/hxaMWKfGo
<re_irc> < (@jamesmunns:beeper.com)> I have two modes when trying to write fast/efficient code:
<re_irc> - Write THE CLEVEREST code I can think of, assume I know better than the optimizer
<re_irc> - Write THE DUMBEST code I can think of, assume the optimizer will get what I mean
<re_irc> < (@jamesmunns:beeper.com)> honestly, I don't have a good metric for which is better
<re_irc> < (@jamesmunns:beeper.com)> though I probably try and write the dumbest code, as often as possible
<re_irc> < (@adamgreig:matrix.org)> i guess the important part is the second step where you check what it did
<re_irc> < (@adamgreig:matrix.org)> (when it matters...)
<re_irc> < (@grantm11235:matrix.org)> Option two is pure hubris, except when it works 🤣
<re_irc> < (@jamesmunns:beeper.com)> Option one is like driving
<re_irc> < (@jamesmunns:beeper.com)> the more predictable you can be, the less you'll run into trouble
<re_irc> < (@jamesmunns:beeper.com)> LOOK, IM TELEGRAPHING THIS THING I'M DOING. I KNOW, YOU KNOW, WE BOTH KNOW. HERE WE GO.
causal has quit [Ping timeout: 252 seconds]
causal has joined #rust-embedded
starblue has quit [Ping timeout: 260 seconds]
starblue has joined #rust-embedded
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]
crabbedhaloablut has joined #rust-embedded
ni has quit [Ping timeout: 264 seconds]
ni has joined #rust-embedded
<re_irc> < (@newam:matrix.org)> Does anyone know what changed with TAIT such that embedded-hal-async no longer compiles on the latest nightly?
<re_irc> Trying to find the background information.
emerent has quit [Ping timeout: 252 seconds]
emerent has joined #rust-embedded
_whitelogger has joined #rust-embedded
nohit has joined #rust-embedded
sauce has joined #rust-embedded
x56_ has joined #rust-embedded
Ekho has joined #rust-embedded
hwj2 has joined #rust-embedded
hwj2 has quit [Ping timeout: 272 seconds]
cr1901 has quit [Remote host closed the connection]
dc740 has joined #rust-embedded
cr1901 has joined #rust-embedded
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #rust-embedded
cr1901 has quit [Remote host closed the connection]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
causal has quit [Quit: WeeChat 3.6]
emerent has quit [Ping timeout: 246 seconds]
GenTooMan has quit [Ping timeout: 264 seconds]
GenTooMan has joined #rust-embedded
emerent has joined #rust-embedded
conplan has joined #rust-embedded
conplan has quit [Remote host closed the connection]
conplan has joined #rust-embedded
GenTooMan has quit [Ping timeout: 250 seconds]
GenTooMan has joined #rust-embedded
hwj has joined #rust-embedded
cr1901 has joined #rust-embedded
conplan has quit [Quit: Leaving.]
conplan has joined #rust-embedded
conplan has left #rust-embedded [#rust-embedded]
conplan has joined #rust-embedded
<conplan> has anyone been able to find an SVD file for the msp432p4111
hwj has quit [Ping timeout: 272 seconds]
fooker has quit [Quit: WeeChat 3.5]
dc740 has quit [Remote host closed the connection]
dc740 has joined #rust-embedded
fooker has joined #rust-embedded
dc740 has quit [Remote host closed the connection]
<re_irc> < (@CyReVolt:matrix.org)> It might be part of this: https://www.keil.com/dd2/texasinstruments/msp432p4111/
<conplan> thanks