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
wose has quit [Server closed connection]
wose has joined #rust-embedded
majors has quit [Server closed connection]
majors has joined #rust-embedded
sknebel has quit [Server closed connection]
sknebel has joined #rust-embedded
DuyTiL[m] has quit [Quit: Idle timeout reached: 172800s]
dinkelhacker has quit [Server closed connection]
dinkelhacker has joined #rust-embedded
rwnd[m] has quit [Quit: Idle timeout reached: 172800s]
jr-oss has quit [Server closed connection]
jr-oss has joined #rust-embedded
NishanthMenon has quit [Server closed connection]
NishanthMenon has joined #rust-embedded
jxsl has joined #rust-embedded
HumanG33k has quit [Server closed connection]
HumanG33k has joined #rust-embedded
nadja has quit [Server closed connection]
nadja has joined #rust-embedded
Allie has quit [Server closed connection]
Allie has joined #rust-embedded
nohit has quit [Server closed connection]
nohit has joined #rust-embedded
vanner has quit [Server closed connection]
vanner has joined #rust-embedded
Lumpio- has quit [Ping timeout: 260 seconds]
Lumpio- has joined #rust-embedded
Alistair[m] has quit [Quit: Idle timeout reached: 172800s]
vancz has quit []
vancz has joined #rust-embedded
ryan-summers[m] has quit [Quit: Idle timeout reached: 172800s]
crabbedhaloablut has quit [Server closed connection]
crabbedhaloablut has joined #rust-embedded
GenTooMan has quit [Server closed connection]
GenTooMan has joined #rust-embedded
ni has quit [Server closed connection]
ni has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
thejpster[m] has joined #rust-embedded
<thejpster[m]> Now everyone knows I’ll be in Montreal for RustConf and in Vienna for EuroRust.
<thejpster[m]> jamesmunns accused me on his podcast of having the embedded rust project that’s had the most talks. One solution to that is for more people to submit more embedded rust talks.
inara has quit [Server closed connection]
inara has joined #rust-embedded
sigmaris has quit [Server closed connection]
sigmaris has joined #rust-embedded
psukys has joined #rust-embedded
ilya-epifanov[m] has joined #rust-embedded
<ilya-epifanov[m]> does anyone know what's the progress of #[ramfunc]? https://github.com/rust-embedded/cortex-m-rt/pull/100 What are the workarounds being currently used?
limpkin has quit [Server closed connection]
limpkin has joined #rust-embedded
Gnome[m] has joined #rust-embedded
<Gnome[m]> Would the libs team accept a PR that made `heapless::Vec<T, N>` generic over the length type used? For the extreme example of a `Vec<u8, 2>` on a 64 bit system it would balloon to `(2 * 1) + size_of<u64>` which is `2` bytes of data and `8` bytes of length type.
<Gnome[m]> This could be smoothed by implementing a default length value for common values of `N`, with some macro generated trait implementations and would only really affect users using weirdly high `N` values or generic libraries which would only need to add a concrete or generic value of `LenT`.
t-moe[m] has joined #rust-embedded
<t-moe[m]> is someone also using the nordic ppk2?
<t-moe[m]>
<t-moe[m]> I'm trying to set it up to catch power consumption regressions in CI/CD automatically. But I'm struggling to get the same current integral as in the GUI when using it in the terminal (via python library or also rust crate)
JamesMunns[m] has quit [Server closed connection]
JamesMunns[m] has joined #rust-embedded
<diondokter[m]> <Gnome[m]> "Would the libs team accept a..." <- > <@gnomeddev:matrix.org> Would the libs team accept a PR that made `heapless::Vec<T, N>` generic over the length type used? For the extreme example of a `Vec<u8, 2>` on a 64 bit system it would balloon to `(2 * 1) + size_of<u64>` which is `2` bytes of data and `8`... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/buVcDZSCDIyCcFngfeCpTHoH>)
jxsl has quit [Ping timeout: 252 seconds]
whitequark[cis] has quit [Server closed connection]
whitequark[cis] has joined #rust-embedded
<Gnome[m]> <diondokter[m]> "> <@gnomeddev:matrix.org..." <- Okay, I'll look into implementing it
<diondokter[m]> Gnome[m]: I'm not a libs maintainer though! So I don't know if something like this would be merged
<Gnome[m]> That's okay, if there's some precedent I can imagine it's wanted.
<JamesMunns[m]> it might be worth looking back in history, IIRC, heapless USED to be generic over the len type?
<JamesMunns[m]> and IIRC it was removed?
<JamesMunns[m]> I could be remembering wrong tho
<diondokter[m]> Gnome[m]: Just make sure to measure the change too. Padding could make the smaller fields not actually take less space
<JamesMunns[m]> yeah, v0.6 -> v0.7 went from typenum length generics to just `usize`/`u8`
<JamesMunns[m]> I can't remember why tho
<diondokter[m]> Maybe they thought the complexity (both for the implementation and having to carry around the generics) vs saved ram tradeoff wasn't worth it?
<JamesMunns[m]> yeah, I can certainly imagine a lot of reasons why
<diondokter[m]> Gnome!: Probably good to figure that out first before spending lots of time on this
<Gnome[m]> I can see v0.6 was based on generic_array, but I'm not talking about using typenum-style generics. I'm talking about changing ```rs... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/tCcCpUlDknvJkMKoBVgjQdvP>)
jxsl has joined #rust-embedded
<Gnome[m]> * I can see v0.6 was based on generic\_array, but I'm not talking about using typenum-style generics. I'm talking about changing ```rs... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/MQeKXaDSVtMRMcrZkDGVOcxk>)
<Gnome[m]> * I can see v0.6 was based on generic\_array, but I'm not talking about using typenum-style generics. I'm talking about changing ```... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/sFMhKqErKpJwnPGmMxAggBOD>)
<Gnome[m]> * I can see v0.6 was based on generic\_array, but I'm not talking about using typenum-style generics. I'm talking about changing... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/TFuVSQPgyhqoRpeEnAuZDDTX>)
<Gnome[m]> * I can see v0.6 was based on generic\_array, but I'm not talking about using typenum-style generics. I'm talking about changing... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/cREXohwgBdDjAKntsCcLhIwu>)
<JamesMunns[m]> yep, I understand
<JamesMunns[m]> I'd probably bet "it made heapless vec painful to use" was the case, but that's just a guess :)
<Gnome[m]> The pain would be significantly mitigated via the DefaultLenType, I can imagine.
<Gnome[m]> Oh dear, this is going to be absolutely hell to implement with the view stuff....
<thejpster[m]> Does anyone know anything about FPUs and targets in Rust?
<thejpster[m]> I'm getting weird errors from the assembler again: https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/Error.20writing.20.20inline.20asmfor.20the.20FPU.20on.20Armv8-M/near/452392031
sourcebox[m] has quit [Quit: Idle timeout reached: 172800s]
takkaryx[m] has quit [Quit: Idle timeout reached: 172800s]
WSalmon has quit [Server closed connection]
WSalmon has joined #rust-embedded
therealprof[m] has quit [Quit: Idle timeout reached: 172800s]
bartmassey[m] has quit [Quit: Idle timeout reached: 172800s]
Henk[m] has quit [Quit: Idle timeout reached: 172800s]
henrik_alser[m] has quit [Quit: Idle timeout reached: 172800s]
adamhott[m] has quit [Quit: Idle timeout reached: 172800s]
adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
rmsyn[m] has quit [Quit: Idle timeout reached: 172800s]
dirbaio[m] has quit [Quit: Idle timeout reached: 172800s]
Vicente[m] has quit [Quit: Idle timeout reached: 172800s]
<Gnome[m]> Turned out it wasn't too annoying, can someone take a look and review please :3
danielb[m] has joined #rust-embedded
<danielb[m]> if only we could calculate the type in comptime from N
<diondokter[m]> danielb[m]: That'd be nice haha. OTOH, zig doesn't have the generics Rust has
<Gnome[m]> I could have a nightly feature to do that, tbh.
<danielb[m]> maybe not for mainstream heapless :D
<danielb[m]> this PR and a nightly-only auto variant sounds complex in the same codebase
dirbaio[m] has joined #rust-embedded
<dirbaio[m]> that wouldn't work with VecView hto
<dirbaio[m]> s/hto/tho/
<Gnome[m]> See the PR, I added the length generic to VecView but noted that I could also only allow `VecView` usage with `Vec<T, N, usize>`.
jxsl has quit [Ping timeout: 252 seconds]
dne has quit [Remote host closed the connection]
dne has joined #rust-embedded