frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

GPT-OSS

https://ollama.com/library/gpt-oss
1•saikatsg•43s ago•0 comments

Dynamically Update C++ syntax using Next Edit Suggestions

https://devblogs.microsoft.com/cppblog/dynamically-update-c-syntax-using-next-edit-suggestions/
1•ibobev•1m ago•0 comments

Compressing the Wordle Dictionary

https://iamkate.com/code/wordle-dictionary/
1•wonger_•2m ago•0 comments

Godot Foundation Welcomes JetBrains as Platinum Sponsor

https://godotengine.org/article/jetbrains-joins-dev-fund-supports-godot/
1•TheFreim•2m ago•0 comments

Overhauling Figma's Parametrization Architecture

https://www.figma.com/blog/a-tale-of-two-parameter-architectures/
1•jenning•2m ago•0 comments

New Database Reveals 1.5M Pages of Once-Secret Police Use of Force Records

https://journalism.berkeley.edu/police-records-access/
1•Improvement•2m ago•0 comments

The DB Grill

https://db-grill.com/
1•jerrinot•4m ago•0 comments

US Explores Location Trackers for AI Chips

https://www.bloomberg.com/news/articles/2025-08-05/us-explores-better-location-trackers-for-ai-chips-official-says
2•wslh•4m ago•2 comments

OpenAI Just Dropped GPT-OSS and It's a Game Changer (Full Breakdown and Code)

https://algogist.com/openai-just-dropped-gpt-oss-and-its-a-game-changer-full-breakdown-code/
1•jainilprajapati•6m ago•0 comments

Self-contained Python scripts with uv and Coiled for easy cloud execution

https://docs.coiled.io/blog/uv-coiled-cloud-scripts.html
2•scj13•7m ago•1 comments

Florida sues some of the biggest porn platforms(XVideos,BangBros,GirlsGoneWild)

https://www.myfloridalegal.com/newsrelease/attorney-general-james-uthmeier-fights-protect-children-online-pornography-brings
2•Improvement•8m ago•0 comments

Authoritarian Leisure: North Korea's Tourism Project in Comparative Perspective

https://www.38north.org/2025/08/authoritarian-leisure-north-koreas-wonsan-kalma-tourism-project-in-comparative-perspective/
1•EA-3167•10m ago•0 comments

A Zoo in Denmark Wants to Feed Your Pets to Its Predators

https://www.nytimes.com/2025/08/04/science/zoos-denmark-food-pets.html
1•zdw•12m ago•0 comments

Brandolia – Generate a full brand identity with AI (logo, colors, slogan, more)

https://www.brandolia.io/
2•kokau•13m ago•2 comments

Scientific Journals Can't Keep Up with Flood of Fake Papers

https://www.wsj.com/science/scientific-journals-fake-paper-mills-92e42230
1•impish9208•13m ago•1 comments

Nvidia: No Backdoors. No Kill Switches. No Spyware

https://blogs.nvidia.com/blog/no-backdoors-no-kill-switches-no-spyware/
8•robotswantdata•14m ago•1 comments

Speed up unit tests with paralllel GitHub Actions

https://ohdear.app/news-and-updates/running-our-test-suite-in-parallel-on-github-actions
1•Mojah•16m ago•0 comments

Freedom of Information Act and Deteriorating Federal Transparency Infrastructure

https://www.justsecurity.org/118371/foia-federal-transparency-infrastructure/
2•anigbrowl•17m ago•0 comments

I make 3D Games [video]

https://www.youtube.com/watch?v=hAWv6AJ8M-Y
1•todsacerdoti•19m ago•0 comments

Vitest Browser Mode

https://vitest.dev/guide/browser/
1•martpie•20m ago•0 comments

A Python library for extracting structured data from unstructured text

https://thedailyrism.blogspot.com/2025/08/google-ai-releases-langextract-open.html
1•miclys•20m ago•0 comments

For the Culture

https://notbor.ing/words/for-the-culture
1•gregwolanski•21m ago•0 comments

The AI bubble is so big it's propping up the US economy (for now)

https://www.bloodinthemachine.com/p/the-ai-bubble-is-so-big-its-propping
8•mempko•21m ago•1 comments

Python performance myths and fairy tales

https://lwn.net/SubscriberLink/1031707/54efcf7b35fa8da0/
1•Twirrim•23m ago•0 comments

TIL that You can spot base64 encoded JSON, certificates, and private keys

https://ergaster.org/til/base64-encoded-json/
45•jandeboevrie•23m ago•10 comments

Torch.compile and Diffusers: A Hands-On Guide to Peak Performance

https://pytorch.org/blog/torch-compile-and-diffusers-a-hands-on-guide-to-peak-performance/
2•andrewstetsenko•23m ago•0 comments

Tailscale's visual policy editor is in beta

https://tailscale.com/blog/visual-editor-beta
1•toomuchtodo•24m ago•0 comments

Palantir CEO Alex Karp Criticizes Elite Colleges in Earnings Call

https://www.businessinsider.com/palantir-ceo-alex-karp-criticizes-elite-colleges-earnings-call-2025-8
4•TMWNN•24m ago•4 comments

The George Eastman Suicide Note

https://www.oddthingsiveseen.com/2018/02/rest-in-photography-george-eastman.html
2•joebig•25m ago•0 comments

How to Live Forever and Get Rich Doing It

https://www.newyorker.com/magazine/2025/08/11/how-to-live-forever-and-get-rich-doing-it
2•bookofjoe•26m ago•1 comments
Open in hackernews

Consider using Zstandard and/or LZ4 instead of Deflate

https://github.com/w3c/png/issues/39
60•marklit•2h ago

Comments

zX41ZdbW•1h ago
Very reasonable.

I've recently experimented with the methods of serving bitmaps out of the database in my project[1]. One option was to generate PNG on the fly, but simply outputting an array of pixel color values over HTTP with Content-Encoding: zstd has won over PNG.

Combined with the 2D-delta-encoding as in PNG, it will be even better.

[1] https://adsb.exposed/

privatelypublic•1h ago
Does deflate lead the pack in any metric at all anymore? Only one I can think of is extreme low spec compression (microcontrollers).
adgjlsfhk1•1h ago
Even there, LZ4 is probably better.
JoshTriplett•1h ago
The only metric deflate leads on is widespread support. By any other metric, it has been superseded.
atiedebee•1h ago
I'd assume memory usage as well, because it has a tiny context window compared to zstd
JoshTriplett•28m ago
You can change the context window of zstd if you want. But yes, the default context window size for zstd is 8MB, versus 32k.
arp242•1h ago
Comparison of "zpng" (PNG wth zstd) and WebP lossless, with current PNG. From https://github.com/WangXuan95/Image-Compression-Benchmark :

  Compressed format    Compressed size (bytes)  Compress Time  Decompress Time
  WEBP (lossless m5)   1,475,908,700           1,112          49
  WEBP (lossless m1)   1,496,478,650             720          37
  ZPNG (-19)           1,703,197,687           1,529          20
  ZPNG                 1,755,786,378              26          24

  PNG (optipng -o5)    1,899,273,578           27,680         26
  PNG (optipng -o2)    1,905,215,734            4,395         27
  PNG (optimize=True)  1,935,713,540            1,120         29
  PNG (optimize=False) 2,003,016,524              335         34
Doesn't really seem worth it? It doesn't compress better, and only slightly faster in decompression time.
bobmcnamara•1h ago
Am I reading those numbers right? That's like 25x faster compression than WEBP-M1, there's probably a use case for that.
arp242•1h ago
The numbers seem small enough that it will rarely matter, but I suppose there might be a use case somewhere?

But lets be real here: this is basically just a new image format. With more code to maintain, fresh new exciting zero-days, and all of that. You need a strong use case to justify that, and "already fast encode is now faster" is probably not it.

stephencanon•1h ago
"Only slightly faster in decompression time."

m5 vs -19 is nearly 2.5x faster to decompress; given that most image data is decompressed many many more times (often thousands or millions of times more, often by devices running on small batteries) than it is compressed, that's an enormous win, not "only slightly faster".

The way in which it might not be worth it is the larger size, which is a real drawback.

arp242•1h ago
The difference is barely noticeable in real-world cases, in terms of performance or battery. Decoding images is a small part of loading an entire webpage from the internet. And transferring data isn't free either, so any benefits need to be offset against the larger file size and increased network usage.
fmbb•45m ago
Win how?

More efficiency will inevitably only lead to increased usage of the CPU and in turn batteries draining faster.

https://en.wikipedia.org/wiki/Jevons_paradox

hcs•39m ago
So someone is going to load 2.5x as many images because it can be decoded 2.5x faster? The paradox isn't a law of physics, it's an interesting observation about markets. (If this was a joke it was too subtle for me)
snickerdoodle12•35m ago
Might as well just shoot yourself if that's how you look at improvements. The only way to do something good it to stop existing. (this is a general statement, not aimed at you or anyone in particular)
e-topy•1h ago
Instead of using a new PNG standard, I'd still rather use JPEG XL just because it has progressive decoding. And you know, whilst looking like png, being as small as webp, supporting HDR and animations, and having even faster decoding speed.

https://dennisforbes.ca/articles/jpegxl_just_won_the_image_w...

jchw•1h ago
JPEG XL definitely has advantages over PNG but there is one serious seemingly insurmountable obstacle:

https://caniuse.com/jpegxl

Nothing really supports it. Latest Safari at least has support for it not feature-flagged or anything, but it doesn't support JPEG XL animations.

To be fair, nothing supports a theoretical PNG with Zstandard compression either. While that would be an obstacle to using PNG with Zstandard for a while, I kinda suspect it wouldn't be that long of a wait because many things that support PNG today also support Zstandard anyways, so it's not a huge leap for them to add Zstandard support to their PNG codecs. Adding JPEG-XL support is a relatively bigger ticket that has struggled to cross the finish line.

The thing I'm really surprised about is that you still can't use arithmetic coding with JPEG. I think the original reason is due to patents, but I don't think there have been active patents around that in years now.

bawolff•52m ago
> The thing I'm really surprised about is that you still can't use arithmetic coding with JPEG.

I was under the impression libjpeg added support in 2009 (in v7). I'd assume most things support it by now.

jchw•42m ago
Believe it or not, last I checked, many browsers and some other software (file managers, etc.) still couldn't do anything with JPEG files that have arithmetic coding. Apparently, although I haven't tried this myself, Adobe Photoshop also specifically doesn't support it.
superjan•14m ago
Arithmetic coding decodes 1 bit at a time, usually in such a way that you can’t do two bits or more with SIMD instructions. So it will be slow and energy inefficient.
kps•44m ago
> Nothing really supports it.

Everything supports it, except web browsers.

jchw•31m ago
JPEG-XL is supported by a lot of the most important parts of the ecosystem (image editors and the major desktop operating systems) but it is a long way away from "everything". Browsers are the most major omission, but given their relative importance here it is not a small one. JPEG-XL is dead in the water until that problem can be resolved.

If Firefox is anything to go off of, the most rational explanation here seems to just be that adding a >100,000 line multi-threaded C++ codebase as a dependency for something that parses untrusted user inputs in a critical context like a web browser is undesirable at this point in the game (other codecs remain a liability but at least have seen extensive battle-testing and fuzzing over the years.) I reckon this is probably the main reason why there has been limited adoption so far. Apple seems not to mind too much, but I am guessing they've just put so much into sandboxing Webkit and image codecs already that they are relatively less concerned with whether or not there are memory safety issues in the codec... but that's just a guess.

swiftcoder•7m ago
Apple also adopted JPEG-XL across their entire software stack. It's supported throughout the OS, and by pretty much every application they develop, so I'm guessing they sunk a fair bit of time/money into hardening their codec
Zardoz84•16m ago
You can use a polyfill.
bawolff•56m ago
Doesn't PNG have progressive decoding? I.e. adam7 algorithm
layer8•49m ago
It does, using Adam7: https://en.wikipedia.org/wiki/Adam7_algorithm

The recently released PNG 3 also supports HDR and animations: https://www.w3.org/TR/png-3/

bawolff•44m ago
> The recently released PNG 3 also supports HDR and animations: https://www.w3.org/TR/png-3/

APNG isn't recent so much as the specs were merged together. APNG will be 21 years old in a few weeks.

layer8•40m ago
True, but https://news.ycombinator.com/item?id=44802079 presumably holds the opinion that APNG != PNG, so I mentioned PNG 3 to counteract that. Animated PNGs being officially PNG is recent.
duskwuff•9m ago
Adam7 is interlacing, not progressive decoding (i.e. it cannot be used to selectively decode a part of the image). It also interacts extremely poorly with compression; there is no good reason to ever use it.
adzm•2m ago
Web browsers already have code in place for webp (lossless,vp8) and avif (av1, which also supports animation), as well as classic jpeg and png, and maybe also HEIC (hevc/h265)... what benefit do we have by adding yet another file format if all the use cases are already covered by the existing formats?
bawolff•48m ago
I think there is a benefit to knowing that if you have a png file it works everywhere that supports png.

Better to make the back compat breaks be entirely new formats.

encom•46m ago
(2021)

In my opinion PNG doesn't need fixing. Being ancient is a feature. Everything supports it. As much as I appreciate the nerdy exercise, PNG is fine as it is. My only gripe is that some software writes needlessly bloated files (like adding a useless alpha channel, when it's not needed). I wish we didn't need tools like OptiPNG etc.