HNHacker News
TopNewBestAskShowJobs

149765

53 karma · joined January 13, 2023

submissionscomments
149765··on JPEG XL vs. AVIF for web use-cases
I would love to try it out.
149765··on Google Revisits JPEG XL in Chromium After Earlier Removal
There is some sort of tag, jxlinfo can tell you if a file is "lossy" or "(possibly) lossless".
149765··on Modern Linux tools
I think GNU parallel has similar placeholders, but I do prefer to just use `fd`.
149765··on Show HN: Glide, an extensible, keyboard-focused web browser
Vimium C has this option, you have to enable 'extensions-on-chrome-urls' flag.
149765··on fd: A simple, fast and user-friendly alternative to 'find'
Had to lookup regex crate docs, but it's possible:

    $ fd '(?-u:\xFF)'
    a.�
149765··on Show HN: Shpool, a Lightweight Tmux Alternative
Not sure, if it's a bug, but it eats 1.4G memory after running find for a few seconds, detaching, re-attaching and running find again.

        Active: active (running) since Fri 2024-06-14 19:26:55 +05; 27s ago
    Invocation: d84b9281e0f64a798c4e555836815036
    TriggeredBy: ● shpool.socket
    Main PID: 3895609 (shpool)
        Tasks: 15 (limit: 154377)
        Memory: 1.4G (peak: 1.4G)
            CPU: 6.566s
        CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/shpool.service
                ├─3895609 /usr/local/bin/shpool daemon
                ├─3895629 -fish
                ├─3895719 systemctl --user status shpool
                └─3895720 pager
149765··on CPU Energy Meter: A tool for measuring energy consumption of Intel CPUs
There is also perf:

  perf stat -e 'power/energy-pkg/' -I 1000 --interval-count 3 
  #           time             counts   unit events
       1.001064377              11.00 Joules power/energy-pkg/                                                     
       2.002605466              10.98 Joules power/energy-pkg/                                                     
       3.003726824              11.01 Joules power/energy-pkg/
149765··on KDE Neon shows that the Plasma 6 Linux distro is something special
Can you assign virtual desktops to different screens?
149765··on JPEG XL and the Pareto Front
> peace of mind of knowing PNG is always lossless

There is pngquant:

> a command-line utility and a library for lossy compression of PNG images.

149765··on JPEG XL and the Pareto Front
The blur issue is an easy fix, yes, but the memory one doesn't help that much.
149765··on JPEG XL and the Pareto Front
I tried jxl.js, it was very finicky on iPad, out of memory errors [0] and blurry images [1]. In the end I switched to a proxy server, that reencoded jxl images into png.

[0]: https://github.com/niutech/jxl.js/issues/6

[1]: https://github.com/niutech/jxl.js/issues/7

149765··on JPEG XL and the Pareto Front
A couple of videos comparing progressive decoding of jpeg, jxl and avif:

https://www.youtube.com/watch?v=UphN1_7nP8U

https://www.youtube.com/watch?v=inQxEBn831w

There's more on the same channel, generation loss ones are really interesting.

149765··on JPEG XL and the Pareto Front
Lossless webp is actually quite good, especially on text heavy images, e.g. screenshots of a terminal with `cwebp -z9` are usually smaller than `jxl -d 0 -e 9` in my experience.
149765··on fd, xargs, bat = quick document review
Why not just "fd -e fi.md -X batcat"?
149765··on Zed Editor: All Occurrences Search from 1s to 4ms
Full debug build on my 7 year old pc takes 1m 33s with all dependencies already downloaded.
149765··on A smarter CD command. Supports all major shells
fzf (golang) readme also has the same banner.
149765··on Re: [Git Pull] Bcachefs
This is a bit stale, bcachefs is now in the linux-next tree.
149765··on Show HN: boxxy – Control where Linux programs put files, without symlinks
It's possible to set $ZDOTDIR in /etc/zsh/zshenv, I used to do it before switching to fish.