News for hackers. Stuff that matters.

149765

Re:JPEG XL vs. AVIF for web use-cases on Friday October 16, 2026 @05:30PM (#50125032)
I would love to try it out.
Re:Google Revisits JPEG XL in Chromium After Earlier Removal on Sunday November 23, 2025 @10:43AM (#46024368)
There is some sort of tag, jxlinfo can tell you if a file is "lossy" or "(possibly) lossless".
Re:Modern Linux tools on Monday October 13, 2025 @10:41AM (#45568826)
I think GNU parallel has similar placeholders, but I do prefer to just use `fd`.
Re:Show HN: Glide, an extensible, keyboard-focused web browser on Wednesday October 01, 2025 @08:15PM (#45445135)
Vimium C has this option, you have to enable 'extensions-on-chrome-urls' flag.
Re:fd: A simple, fast and user-friendly alternative to 'find' on Wednesday March 19, 2025 @10:06AM (#43412193)
Had to lookup regex crate docs, but it's possible:

    $ fd '(?-u:\xFF)'
    a.�
Re:Show HN: Shpool, a Lightweight Tmux Alternative on Friday June 14, 2024 @10:29AM (#40681261)
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/[email protected]/app.slice/shpool.service
                ├─3895609 /usr/local/bin/shpool daemon
                ├─3895629 -fish
                ├─3895719 systemctl --user status shpool
                └─3895720 pager
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/
Can you assign virtual desktops to different screens?
Re:JPEG XL and the Pareto Front on Friday March 01, 2024 @11:21AM (#39563258)
> 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.

Re:JPEG XL and the Pareto Front on Friday March 01, 2024 @09:41AM (#39562217)
The blur issue is an easy fix, yes, but the memory one doesn't help that much.
Re:JPEG XL and the Pareto Front on Friday March 01, 2024 @09:00AM (#39561823)
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

Re:JPEG XL and the Pareto Front on Friday March 01, 2024 @08:43AM (#39561677)
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.

Re:JPEG XL and the Pareto Front on Friday March 01, 2024 @04:58AM (#39560277)
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.
Re:fd, xargs, bat = quick document review on Sunday February 25, 2024 @09:51AM (#39501225)
Why not just "fd -e fi.md -X batcat"?
Re:Zed Editor: All Occurrences Search from 1s to 4ms on Sunday February 18, 2024 @12:14PM (#39420847)
Full debug build on my 7 year old pc takes 1m 33s with all dependencies already downloaded.
Re:A smarter CD command. Supports all major shells on Thursday February 15, 2024 @08:22AM (#39382362)
fzf (golang) readme also has the same banner.
Re:Re: [Git Pull] Bcachefs on Tuesday September 26, 2023 @02:24PM (#37663670)
This is a bit stale, bcachefs is now in the linux-next tree.
It's possible to set $ZDOTDIR in /etc/zsh/zshenv, I used to do it before switching to fish.