• 1 Post
  • 37 Comments
Joined 1 year ago
cake
Cake day: July 15th, 2023

help-circle

  • The concern for code duplication is valid, but as the article mentioned it is also a while off until the Nova project is mainlined. I honestly never thought of how the work to bring in Rust to mainline may in effect lead to a more complete deprecation of older hardware as we start to change API’s older/unmaintained components aren’t updated. On the flip side, trimming out older stuff might save maintainer work going forward.




  • Doom4535@lemmy.sdf.orgtoGuix@lemmy.mlHow is Shepherd?
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    3 months ago

    I miss ‘systemctl poweroff’ (haven’t learned the new herd equivalent); also, ‘herd --help’ doesn’t really give any useful information and only lists a few things you can do… Have to really dig into the documentation (someday). Also, the ‘shutdown’ syntax has changed… Otherwise, most stuff has gone well








  • The constraint on memory isn’t on the compiler it is in the available ram and flash on ultra-lowcost/power microcontrollers, use can find some with less than 1KByte of ram, so that 32bit int could have been 4 8bit ints in your electric toothbrush. The packing of bits is space effecient, but not compute effecient and takes several extra clock cycles to finish when run on an 8bit microcontroller. It’s better to store it in the native 8bit word size for these devices. Further more, on more powerful systems using the smaller size can allow you to optimize for SIMD instructions and actually do multiple operations per clock beyond what you could do with the 32bit size.

    There are reasons for these types to exist; as was mentioned elsewhere, if you don’t care you can always just use i32 or i64 for your code and be done with it.