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
duderonomy has quit [Client Quit]
m5zs7k has quit [Ping timeout: 265 seconds]
m5zs7k has joined #rust-embedded
starblue has quit [Ping timeout: 244 seconds]
starblue has joined #rust-embedded
crabbedhaloablut has joined #rust-embedded
duderonomy has joined #rust-embedded
<AndoThorNando[m]> Did a few tweaks and added a paragraph about writing to a register. It’s published now :)
duderonomy has quit [Ping timeout: 272 seconds]
duderonomy has joined #rust-embedded
vancz has quit [Ping timeout: 252 seconds]
vancz has joined #rust-embedded
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hicklin[m] has joined #rust-embedded
<hicklin[m]> I have submitted a couple of PRs ([#521](https://github.com/rust-embedded/heapless/pull/521) and [#524](https://github.com/rust-embedded/heapless/pull/524)) to the heapless crate that implement some missing features for `Deque`. These have been open for a month but there hasn't been any communication or reviews. Is this the correct forum to ask for reviews?
<thejpster[m]> Is it possible for force cargo to consider a pre-release as a stable release? and use that pre-release across the dependency tree?
AlexandrosLiarok has joined #rust-embedded
<AlexandrosLiarok> is anyone aware of any convenient method to generate const lookup tables using rust math expressions ?
<AlexandrosLiarok> * expressions ? Either a const-fn math library or a procedural macro one maybe.
<AlexandrosLiarok> * is anyone aware of any convenient method to generate const tables using rust math expressions ? Either a const-fn math library or a procedural macro one maybe.
<AlexandrosLiarok> I guess main problem is I need to use f32 const-fn logs/exps
<AlexandrosLiarok> I can do this with build-script generated tables but I don't think it is ideal.
<AndoThorNando[m]> There’s an issue with const fn for floating point as the compiler evaluating the function may be on a different architecture with a conflicting floating point implementation to the target architecture causing potential for unsound code
<AndoThorNando[m]> There is https://docs.rs/const_soft_float/latest/const_soft_float/index.html which might be of use?
<diondokter[m]> Const floating point has been stabilized in 1.82!
<AndoThorNando[m]> I stand corrected! Great news
<AlexandrosLiarok> yea one annoying issue is that I don't think many of the floating point functions are available in the non-std targets
<AlexandrosLiarok> so one can't take advantage of the const fn. I guess I will just go with the build script and be done with it
<AndoThorNando[m]> The crate I linked above is no_std and const fn if that helps
<AlexandrosLiarok> I am aware of it but it doesn't have exp/log functions unfortunately.
burrbull[m] has joined #rust-embedded
<burrbull[m]> <AlexandrosLiarok> "I am aware of it but it doesn'..." <- Yeah, unfortunately https://github.com/rust-lang/libm/issues/310
<dirbaio[m]> rust 1.84 is out 🚀
<danielb[m]> finally you can bump msrv in patch releases and people who opt in, won't get mad at you :D
<thejpster[m]> > This is fully equivalent to addr as *const T. The provenance of the returned pointer is that of some pointer that was previously exposed by passing it to expose_provenance, or a ptr as usize cast. In addition, memory which is outside the control of the Rust abstract machine (MMIO registers, for example) is always considered to be accessible with an exposed provenance, so long as this memory is disjoint from memory that will be
<thejpster[m]> used by the abstract machine such as the stack, heap, and statics.
<JamesMunns[m]> Oh I didn't realize that was stabilizing!
<danielb[m]> > The provenance of the returned pointer is that of some pointer that was previously exposed
<danielb[m]> You still have to start with a pointer 🥲
<JamesMunns[m]> whatcha mean?
<danielb[m]> I mean this still doesn't handle the "we conjure up a register block at a particular address" case I asked about yesterday
<danielb[m]> the Exposed Provenance chapter contains this:
<danielb[m]> > Bare-metal platforms can also require the synthesis of a pointer “out of thin air” without anywhere to obtain proper provenance from.
<danielb[m]> so the current api still doesn't cover all the author wants, it seems?
<JamesMunns[m]> it doesn't? the second part of what JP quoted seems to cover that?
<JamesMunns[m]> > In addition, memory which is outside the control of the Rust abstract machine (MMIO registers, for example) is always considered to be accessible with an exposed provenance, so long as this memory is disjoint from memory that will be used by the abstract machine such as the stack, heap, and statics.
<JamesMunns[m]> which means you can use yolo ints as long as the addrs are outside of the AM?
<danielb[m]> ah okay I didn't read far enough :D
<JamesMunns[m]> like you can't use that for a static addr, but you can use it for a hw addr outside of the linker script basically
<JamesMunns[m]> I wonder why it isn't a const fn 🤔
<thejpster[m]> You should ask :)
<thejpster[m]> (Like it EDWG doesn’t know, the rest of us don’t stand a chance)
duderonomy has joined #rust-embedded