frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Rust cross-platform GPUI components

https://github.com/longbridge/gpui-component
89•xvilka•2h ago•28 comments

You Are How You Act

https://boz.com/articles/you-are-how-you-act
21•HiPHInch•25m ago•2 comments

Recall for Linux

https://github.com/rolflobker/recall-for-linux
208•anticensor•4h ago•70 comments

WorldGrow: Generating Infinite 3D World

https://github.com/world-grow/WorldGrow
25•cdani•2h ago•12 comments

Geoutil.com – Measure distances, areas, and convert geo data in the browser

https://geoutil.com
41•FreeGuessr•6d ago•7 comments

Artifact (YC W25) is hiring engineers in NYC to build modern ECAD

1•antonysamuel•1m ago

Should LLMs just treat text content as an image?

https://www.seangoedecke.com/text-tokens-as-image-tokens/
23•ingve•6d ago•24 comments

Why I'm teaching kids to hack computers

https://www.hacktivate.app/why-teach-kids-to-hack
92•twostraws•4d ago•35 comments

Microsoft's folds losses from OpenAI into $4.7B expense line – "other"

https://www.theverge.com/news/806880/microsofts-not-very-open-about-openai
39•zerosizedweasle•42m ago•9 comments

Don't Forget These Tags to Make HTML Work Like You Expect

https://blog.jim-nielsen.com/2025/dont-forget-these-html-tags/
18•FromTheArchives•2h ago•5 comments

How I turned Zig into my favorite language to write network programs in

https://lalinsky.com/2025/10/26/zio-async-io-for-zig.html
245•0x1997•12h ago•86 comments

If Your Adversary Is the Mossad (2014) [pdf]

https://www.usenix.org/system/files/1401_08-12_mickens.pdf
128•xeonmc•3h ago•88 comments

Show HN: Write Go code in JavaScript files

https://www.npmjs.com/package/vite-plugin-use-golang
76•yar-kravtsov•6h ago•23 comments

What Happened to Running What You Wanted on Your Own Machine?

https://hackaday.com/2025/10/22/what-happened-to-running-what-you-wanted-on-your-own-machine/
98•marbartolome•3h ago•30 comments

Corrosion

https://fly.io/blog/corrosion/
12•cgb_•4d ago•0 comments

Show HN: MyraOS – My 32-bit operating system in C and ASM (Hack Club project)

https://github.com/dvir-biton/MyraOS
198•dvirbt•15h ago•41 comments

You already have a Git server

https://maurycyz.com/misc/easy_git/
557•chmaynard•1d ago•376 comments

Structure and Interpretation of Classical Mechanics

https://tgvaughan.github.io/sicm/toc.html
42•the-mitr•7h ago•14 comments

An overengineered solution to `sort | uniq -c` with 25x throughput (hist)

https://github.com/noamteyssier/hist-rs
73•noamteyssier•4d ago•48 comments

The last European train that travels by sea

https://www.bbc.com/travel/article/20251024-the-last-european-train-that-travels-by-sea
65•1659447091•3h ago•69 comments

Sandhill cranes have adopted a Canada gosling

https://www.smithsonianmag.com/science-nature/these-sandhill-cranes-have-adopted-a-canadian-gosli...
106•NaOH•4d ago•24 comments

Ken Thompson recalls Unix's rowdy, lock-picking origins

https://thenewstack.io/ken-thompson-recalls-unixs-rowdy-lock-picking-origins/
176•dxs•19h ago•26 comments

Sphere Computer – The Innovative 1970s Computer Company Everyone Forgot

https://sphere.computer/
70•ChrisArchitect•3d ago•7 comments

Are-we-fast-yet implementations in Oberon, C++, C, Pascal, Micron and Luon

https://github.com/rochus-keller/Are-we-fast-yet
69•luismedel•12h ago•18 comments

We Saved $500k per Year by Rolling Our Own "S3"

https://engineering.nanit.com/how-we-saved-500-000-per-year-by-rolling-our-own-s3-6caec1ee1143
230•mpweiher•14h ago•182 comments

A definition of AGI

https://arxiv.org/abs/2510.18212
242•pegasus•17h ago•386 comments

A bug that taught me more about PyTorch than years of using it

https://elanapearl.github.io/blog/2025/the-bug-that-taught-me-pytorch/
397•bblcla•3d ago•74 comments

Why JPEG XL Ignoring Bit Depth Is Genius (and Why AVIF Can't Pull It Off)

https://www.fractionalxperience.com/ux-ui-graphic-design-blog/why-jpeg-xl-ignoring-bit-depth-is-g...
59•Bogdanp•3h ago•37 comments

Feed the bots

https://maurycyz.com/misc/the_cost_of_trash/
235•chmaynard•23h ago•165 comments

SETL Programming Language

https://en.wikipedia.org/wiki/SETL
6•usgroup•51m ago•1 comments
Open in hackernews

Why JPEG XL Ignoring Bit Depth Is Genius (and Why AVIF Can't Pull It Off)

https://www.fractionalxperience.com/ux-ui-graphic-design-blog/why-jpeg-xl-ignoring-bit-depth-is-genius
58•Bogdanp•3h ago

Comments

kiicia•2h ago
jpeg xl is fantastic, yet autocratic google wants to force inferior format
homebrewer•2h ago
Mozilla also isn't interested in supporting it, it's not just Google. I also often see these articles that tout jpeg-xl's technical advantages, but in my subjective testing with image sizes you would typically see on the web, avif wins every single time. It not only produces fewer artifacts on medium-to-heavily compressed images, but they're also less annoying: minor detail loss and smoothing compared to jpeg-xl's blocking and ringing (in addition to detail loss; basically the same types of artifacts as with the old jpeg).

Maybe there's a reason they're not bothering with supporting xl besides misplaced priorities or laziness.

Retric•2h ago
JPEG-XL is optimized for the low to zero levels of compression which isn’t as commonly used on the web, but definitely fills a need.

Google citied insufficient improvements which is a rather ambiguous statement. Mozilla seems more concerned with the attack surface.

formerly_proven•1h ago
JPEG XL seems optimally suited for media and archival purposes and of course this is something you’d want to mostly do through webapps nowadays. Even relatively basic uses cases like Wiki Commons is basically stuck on JPEG for these purposes.

For the same reason it would be good if a future revision of PDF/A would include JPEG XL, since it doesn't really have any decent codecs for low-loss (but not losless) compression (e.g. JPEG sucks at color schematics/drawings and losless is impractically big for them). It did get JP2 but support for that is quite uncommon.

OneDeuxTriSeiGo•2h ago
> Mozilla also isn't interested in supporting it

Mozilla is more than willing to adopt it. They just won't adopt the C++ implementation. They've already put into writing that they're considering adopting it when the rust implementation is production ready.

https://github.com/mozilla/standards-positions/pull/1064

masklinn•2h ago
You have a really strange interpretation of the word “consider”.
mistercow•2h ago
Seems like the normal usage to me. The post above lists other criteria that have to be satisfied, beyond just being a Rust implementation. That would be the consideration.
masklinn•1h ago
Mozilla indicates that they are willing to consider it given various prerequisite. GP translates that to being “more than willing to adopt it”. That is very much not a normal interpretation.
OneDeuxTriSeiGo•1h ago
From the link

> To address this concern, the team at Google has agreed to apply their subject matter expertise to build a safe, performant, compact, and compatible JPEG-XL decoder in Rust, and integrate this decoder into Firefox. If they successfully contribute an implementation that satisfies these properties and meets our normal production requirements, we would ship it.

That is a perfectly clear position.

m-schuetz•2h ago
Now I'm feeling a bit less bad for not using Firefox anymore. Not using it because it's C++ is <insert terms that may not be welcome on HN>
mistercow•1h ago
Multiple severe attacks on browsers over the years have targeted image decoders. Requiring an implementation in a memory safe language seems very reasonable to me, and makes me feel better about using FF.
kouteiheika•1h ago
So you think it's silly to not want to introduce new potentially remotely-exploitable CVEs in one of the most important pieces of software (the web browser) on one's computer? Or are you implying those 100k lines of multithreaded C++ code are bug-free and won't introduce any new CVEs?
archerx•1h ago
It’s crazy how people think using Rust will magically make your code bug and vulnerability free and don’t think that the programmer more than the languages contribute to those problems…
OneDeuxTriSeiGo•1h ago
It's not about being completely bug free. Safe rust is going to be reasonably hardened against exploitable decoder bugs which can be converted into RCEs. A bug in safe rust is going to be a hell of a lot harder to turn into an exploit than a bug in bog standard C++.
mistercow•1h ago
> and don’t think that the programmer more than the languages contribute to those problems

This sounds a lot like how I used to think about unit testing and type checking when I was younger and more naive. It also echoes the sentiments of countless craftspeople talking about safety protocols and features before they lost a body part.

Safety features can’t protect you from a bad programmer. But they can go a long way to protect you from the inevitable fallibility of a good programmer.

drob518•1h ago
Straw-man much?
kouteiheika•3m ago
It's crazy how anti-Rust people think that eliminating 70% of your security bugs[1] by construction just by using a memory-safe language (not even necessarily Rust) is somehow a bad thing or not worth doing.

[1] - https://www.chromium.org/Home/chromium-security/memory-safet...

OneDeuxTriSeiGo•1h ago
It's not just "C++ bad". It's "we don't want to deal with memory errors in directly user facing code that parses untrusted contents".

That's a perfectly reasonable stance.

demetris•1h ago
I did some reading recently, for a benchmark I was setting up, to try and understand what the situation is. It seems things have started changing in the last year or so.

Some links from my notes:

https://www.phoronix.com/news/Mozilla-Interest-JPEG-XL-Rust

https://news.ycombinator.com/item?id=41443336 (discussion of the same GitHub comment as in the Phoronix site)

https://github.com/tirr-c/jxl-oxide

https://bugzilla.mozilla.org/show_bug.cgi?id=1986393 (land initial jpegxl rust code pref disabled)

In case anyone is curious, here is the benchmark I did my reading for:

https://op111.net/posts/2025/10/png-and-modern-formats-lossl...

gcr•12m ago
I've had exactly the opposite outcome with AVIF vs JPEG-XL. I've found that jxl outperforms AVIF quite dramatically at low bitrates.
AlienRobot•1h ago
I wish they separated the lossless codec into "WebPNG." WebP is better than PNG, but it's too risky to use (and tell people to use) a lossless format that is lossy if you forget to use a setting.
est•2h ago
> JPEG XL’s Radical Solution: Float32 + Perceptual Intent

So 2^32 bit depth? 4 bytes seems an overkill.

fps-hero•2h ago
Did you miss the point of the article? JPEG-XL encoding doesn't rely on quantisation to achieve its performance goals. Its a bit like how GPU shaders use floating point arithmetic internally but output quantised values for the bit depth of the screen.
est•1h ago
> Did you miss the point of the article?

Sorry I missed. How is the "floating point" stored in .jxl files?

Float32 has to be serialized one way or another per pixel, no?

jstanley•1h ago
No, JPEG is not a bitmap format.
wongarsu•1h ago
The cliff notes version is that JPEG and JPEG XL don't encode pixel values, they encode the discrete cosine transform (like a Fourier transform) of the 2d pixel grid. So what's really stored is more like the frequency and amplitude of change of pixels than individual pixel values, and the compression comes from the insight that some combinations of frequency and amplitude of color change are much more perceptible than others
tetris11•55m ago
The gradient is stored, not the points on the gradient
jlouis•52m ago
In addition to the other comments: you can have an internal memory representation of data be Float32, but on disk, this is encoded through some form of entropy encoding. Typically, some of the earlier steps is preparation for the entropy-encoder: you make the data more amenable to entropy-encoding through rearrangement that's either fully reversible (lossless), or near-reversible (lossy).
diffuse_l•2h ago
I think the article could be better and get the point across with half the length and without the second half of it being full of ai generated list of advantages, or using that space to give some more technical information
evertedsphere•2h ago
the article could be better if it weren't entirely "ai generated"
Gigachad•53m ago
Maybe we can AI summarise it back to the original prompt to save time.
zokier•2h ago
Working with single fixed bit depth is imho different than being bit-depth agnostic. Same argument could be made about color spaces too.
WithinReason•1h ago
Yes, this is great, but why don't we make the same argument for resolution too? I think we should!
shiandow•54m ago
I completely agree. Based on my limited experience with image upscaling, downscaling, and superresolution, saving video at a lower resolution is the second crudest way of reducing the file size.

The crudest is downsampling the chroma channel, which makes no sense whatsoever for digital formats.

colonwqbang•1h ago
So they "ignore" bit depth by using 32 bits for each sample. This may be a good solution but it's not really magic. They just allocated many more bits than other codecs were willing to.

It also seems like a very CPU-centric design choice. If you implement a hardware en/decoder, you will see a stark difference in cost between one which works on 8/10 vs 32 bits. Maybe this is motivated by the intended use cases for JPEG XL? Or maybe I've missed the point of what JPEG XL is?

fleabitdev•51m ago
Interesting approach. It doesn't even introduce an extra rounding error, because converting from 32-bit XYB to RGB should be similar to converting from 8-bit YUV to RGB.

However, when decoding an 8-bit-quality image as 10-bit or 12-bit, won't this strategy just fill the two least significant bits with noise?

shiandow•35m ago
Could be noise, but finding a smooth image that rounds to a good enough approximation of the original is quite useful. If you see a video player talk about debanding it is a exactly that.

I don't know if JPEG XL constrains solutions to be smooth.