fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.8K
active users

#riir

0 posts0 participants0 posts today
Replied in thread
Continued thread

#fishshell rewrite-it-in #rust progress, 2025-02-27

76776 / 76776 C++ lines removed
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100%

#riir #rustlang

--

We pushed out a beta a couple of months ago, but we finally sorted the full release!

github.com/fish-shell/fish-she

It should be in your favourite package manager reasonably soon.

GitHubRelease fish 4.0.0 (released February 27, 2025) · fish-shell/fish-shellfish’s core code has been ported from C++ to Rust (#9512). This means a large change in dependencies and how to build fish. However, there should be no direct impact on users. Packagers should see ...

step 1: Oh no, this numerical optimization written in #Python is too slow.

step 2: Let's #RiiR!

step 3: I bet #argminrs will be really fast!!

step 4: Ok, that's faster than Python, but I expected more. What will it be? Is heap allocation the bottleneck? Will I need to switch to a more efficient HashMap implementation? Cache some intermediate values?

step 5: Let's profile!

1/2

It still shocks me that no one has #RIIR the homebrew yet. The slowest package/dependency manager/tool these days (no parallel casks downloading, no multi-threads downloading, and no parallel attestation verification).

Replied in thread

@tirifto@jam.xwx.moe "100K lines of C++" is very misleading btw, as that figure contains the encoder, benchmarking tools, and other optional parts. The decoder, which is what Firefox only needs, is way smaller.

So yeah before I was like "that's some
#RIIR bullshit but better than nothing I guess", but now I'm not more optimistic. They're just finding another excuse to not support #JPEGXL after #Safari leapfrogged them ​:seija_coffee:​

https://twiiit.com/jonsneyers/status/1831258445409894858

NitterJon Sneyers 🟣 (@jonsneyers)That count includes the encoder, jpeg bitstream reconstruction, jpegli, various tools like metrics, benchmarking tools, hdr conversion tools, etc. Just the decoder alone is way smaller.