One thing where I would use #rustlang rewrite: vim/neovim clone. Helix/Amp etc. have the problem that they try to do something new.
Actually the best would be if @neovim would join the club of Firefox, Linux etc. and provide shenanigans for rewriting parts of it in Rust. I promise to contribute in this effort, if that ever happens (no time for working on the shenanigans unfortunately).
OK, a bit more intensive to get the spacing right (or readable):
>>> ' '.join(list(map(lambda x: x[::-1], list(map(lambda i: val[::-1][i:i + 4], range(0, len(val), 4)))[::-1])))
'1 0001 0001 1001 1110'
.@beagleboardorg launched the BeagleV®-Fire, a new SBC that opens up new horizons for developers, tinkerers and more to explore the vast potential of #RISCV architecture and FPGA technology: https://riscv.org/news/2023/11/beagleboard-org-makes-fpga-and-risc-v-accessible-with-new-beaglev-fire-single-board-computer-at-150/?hss_channel=tw-2694452875 #RISCVeverywhere
Original tweet: https://twitter.com/risc_v/status/1723024225127076007
Did you know you could control brightness of the red dot on the i of the "ThinkPad" on the top-side of your thinkpad? I sure didn't:
this turns it off:
echo 0 | sudo tee /sys/class/leds/tpacpi\:\:lid_logo_dot/brightness
and this turns it on:
echo 255 | sudo tee /sys/class/leds/tpacpi\:\:lid_logo_dot/brightness
I don't really know what this information is good for, but hey, isn't it awesome to have a 1px display on the outside of your laptop?
@liw I’ve tried this for out of memory conditions (aka memory exhaustion) in Rust but there’s no -ENOMEM
:-) In unstable
there is handle_alloc_error()
but it is. sort of complicated track to adapt. Would be nice if you could do this every and each at the site, as callback indirection sucks…
In this thread I see one common and wrong conclusion:
“Yeah, but there are also other application areas, such as embedded environments with less RAM and no memory overcomittment.”
For restricted embedded payloads and stuff like that you usually define metrics already at the compile time, and use crates such as heapless. It is exactly dynamic over-committed memory where it would be nice to explicitly deal with this unexpected corner case.
It is pretty hard to sometimes discuss about memory issues in Rust with “rustaceans” because they are living in the myth of Rust being memory-safe. Nothing is never fully memory-safe.
@liw I’ve tried this for out of memory conditions (aka memory exhaustion) in Rust but there’s no -ENOMEM
:-) In unstable
there is handle_alloc_error()
but it is. sort of complicated track to adapt. Would be nice if you could do this every and each at the site, as callback indirection sucks…
In this thread I see one common and wrong conclusion:
“Yeah, but there are also other application areas, such as embedded environments with less RAM and no memory overcomittment.”
For restricted embedded payloads and stuff like that you usually define metrics already at the compile time, and use crates such as heapless. It is exactly dynamic over-committed memory where it would be nice to explicitly deal with this unexpected corner case.
It is pretty hard to sometimes discuss about memory issues in Rust with “rustaceans” because they are living in the myth of Rust being memory-safe. Nothing is never fully memory-safe.