HackerTrans
TopNewTrendsCommentsPastAskShowJobs

149764

no profile record

comments

149764
·4년 전·discuss
In python // is integer division, comments start with #.
149764
·4년 전·discuss
JPEG XL supports lossless, lossy and lossless JPEG recompression.

You can see lossless benchmarks against other formats here:

https://docs.google.com/spreadsheets/d/1ju4q1WkaXT7WoxZINmQp...
149764
·4년 전·discuss
There is a tv show about Einstein, well, only the first season is about him.
149764
·4년 전·discuss
Yes, a small python script.
149764
·4년 전·discuss


  # compression

  bzip3 -j 4 -e linux-5.18-rc6.tar linux-5.18-rc6.tar.bz3 
    user: 345.48s system: 0.59s cpu: 373% total: 1:32.75

  zstd -19 --long -T4 -f linux-5.18-rc6.tar
    user: 1270.48s system: 0.89s cpu: 376% total: 5:37.9

  > du -b linux-5.18-rc6.tar.* | sort -rn | reln
  1.000000  130907738  linux-5.18-rc6.tar.zst
  0.994715  130215881  linux-5.18-rc6.tar.bz3
With additional ‘--ultra -22’ tar.zst is smaller, but the compression time sky rockets.

  # decompression 

  bzip3 -j 4 -d linux-5.18-rc6.tar.bz3 linux-5.18-rc6.tar 
    user: 222.57s system: 0.92s cpu: 362% total: 1:01.69

  bzip3 -d linux-5.18-rc6.tar.bz3 linux-5.18-rc6.tar 
    user: 141.29s system: 0.89s cpu: 99% total: 2:22.19

  zstd -d -T4 -f linux-5.18-rc6.tar.zst 
    user: 2.26s system: 0.84s cpu: 99% total: 3.102
zstd doesn’t seem to support parallel decoding, but still 20x faster
149764
·4년 전·discuss
In particular mpv can now open jxl images, there is also a recent commit that adds support to make jxl screenshots.

As I use mpv both as a video player and as an image viewer, this is great news for me.
149764
·4년 전·discuss
There is a fork of mc that adds Lua scripting support [1], but it hasn’t been updated since 2016. There were also talks about merging it with mc [3], alas never happened.

[1] https://www.geek.co.il/~mooffie/mc-lua/docs/html/

[2] https://github.com/mooffie/mc

[3] https://midnight-commander.org/ticket/3745
149764
·4년 전·discuss
Fuzzy file search, the current ctrl-s implementation doesn’t quite do it for me. It would also be nice to have a shortcut, that filters current directory.