frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Janet Jackson had the power to crash laptop computers (2022)

https://devblogs.microsoft.com/oldnewthing/20220816-00/?p=106994
142•montalbano•2h ago•65 comments

Nvidia's $20B Antitrust Loophole (Not an Acquisition)

https://ossa-ma.github.io/blog/groq
82•ossa-ma•2h ago•25 comments

Gpg.fail

https://gpg.fail
121•todsacerdoti•3h ago•53 comments

Floor796

https://floor796.com/
290•krtkush•6h ago•43 comments

Clock Synchronization Is a Nightmare

https://arpitbhayani.me/blogs/clock-sync-nightmare/
37•grep_it•4d ago•18 comments

Windows 2 for the Apricot PC/Xi

https://www.ninakalinina.com/notes/win2apri/
21•todsacerdoti•1h ago•2 comments

Show HN: Ez FFmpeg – Video editing in plain English

http://npmjs.com/package/ezff
289•josharsh•11h ago•134 comments

OrangePi 6 Plus Review

https://boilingsteam.com/orange-pi-6-plus-review/
81•ekianjo•7h ago•62 comments

How uv got so fast

https://nesbitt.io/2025/12/26/how-uv-got-so-fast.html
1156•zdw•1d ago•394 comments

Reflections and rantings from a system design interviewer

https://www.calvinbarker.com/blog/reflections-and-rantings-from-a-system-design-interviewer
10•calvinbarker•4d ago•0 comments

Ask HN: Resources to get better at outbound sales?

100•sieep•6d ago•29 comments

Show HN: Mysti – Claude, Codex, and Gemini debate your code, then synthesize

https://github.com/DeepMyst/Mysti
123•bahaAbunojaim•4d ago•98 comments

Scientists Edited Genes Inside a Living Person for First Time, Saved His Life

https://www.popularmechanics.com/science/health/a64815804/crispr-therapy/
33•QueensGambit•1h ago•3 comments

NMH BASIC

https://t3x.org/nmhbasic/index.html
27•AlexeyBrin•6h ago•1 comments

Intertapes – collection of found cassette tapes from different locations

https://intertapes.net/
78•wallflower•6d ago•7 comments

Mruby: Ruby for Embedded Systems

https://github.com/mruby/mruby
103•nateb2022•5d ago•27 comments

Splice a Fibre

https://react-networks-lib.rackout.net/fibre
70•matt-p•8h ago•31 comments

Cleartext Signatures Considered Harmful

https://gnupg.org/blog/20251226-cleartext-signatures.html
22•derleyici•2h ago•1 comments

Exe.dev

https://exe.dev/
382•achairapart•20h ago•225 comments

Pre-commit hooks are broken

https://jyn.dev/pre-commit-hooks-are-fundamentally-broken/
104•todsacerdoti•16h ago•90 comments

Detect memory leaks of C extensions with psutil and psleak

https://gmpy.dev/blog/2025/psutil-heap-introspection-apis
47•grodola•3d ago•8 comments

Always bet on text (2014)

https://graydon2.dreamwidth.org/193447.html
311•jesseduffield•20h ago•161 comments

This PNG shows a different version when loaded in Chrome than in Safari

https://lr0.org/blog/p/pngchanges/
48•lr0•3h ago•30 comments

Some Junk Theorems in Lean

https://github.com/James-Hanson/junk-theorems-in-lean
68•saithound•4d ago•51 comments

QNX Self-Hosted Developer Desktop

https://devblog.qnx.com/qnx-self-hosted-developer-desktop-initial-release/
248•transpute•18h ago•137 comments

Langjam-Gamejam Devlog: Making a language, compiler, VM and 5 games in 52 hours

https://github.com/Syn-Nine/gar-lang/blob/main/DEVLOG.md
101•suioir•5d ago•9 comments

Package managers keep using Git as a database, it never works out

https://nesbitt.io/2025/12/24/package-managers-keep-using-git-as-a-database.html
737•birdculture•1d ago•422 comments

Publishing your work increases your luck

https://github.com/readme/guides/publishing-your-work
248•magoghm•19h ago•93 comments

The best things and stuff of 2025

https://blog.fogus.me/2025/12/23/the-best-things-and-stuff-of-2025.html
352•adityaathalye•4d ago•73 comments

Faster practical modular inversion

https://purplesyringa.moe/blog/faster-practical-modular-inversion/
49•todsacerdoti•6d ago•3 comments
Open in hackernews

This PNG shows a different version when loaded in Chrome than in Safari

https://lr0.org/blog/p/pngchanges/
48•lr0•3h ago

Comments

dcrazy•3h ago
Given the Safari team has been the major driving force behind support for wide gamut in web browsers (for the very obvious reason that all Apple devices ship with wide-gamut displays), I am extremely suspicious of the author’s assertion that Safari is ignoring an embedded ICC profile while Chrome and Firefox are doing the right thing.

I think it’s far more likely that whatever chain of open-source image modification tools the author is using has written out pixel values in a different colorspace than the one named in the embedded ICC profile.

But if the author is absolutely confident in their analysis, they are welcome to file a bug report: https://bugs.webkit.org/

lr0•2h ago
You can try. I'm on Safari Version 18.6 (20621.3.11.11.3) [Seqouia 15.6.1] on my Mac, unsure of the version in my iPhone and iPad, but all of them ignore the ICC profile.
dcrazy•2h ago
Again, my suspicion is that you are actually seeing the ICC profile being applied correctly, and it is the pixel values in your image that are incorrect.

A good test would be to run a single 100% sRGB red pixel through your image processing pipeline, and then inspecting the resulting PNG file in a hex editor to see what value is encoded.

You can also visit this web page to actively test each web browser’s respect for embedded ICC profiles: https://www.gballard.net/psd/go_live_page_profile/embeddedJP...

mirashii•2h ago
Another good test page for the browser: https://www.color.org/version4html.xalter
danaris•1h ago
Where, for reference, Safari shows an image that matches the first one listed—meaning, at least in theory, that it fully supports ICC profiles.
leptons•1h ago
To paraphrase Steve Jobs, "you're pixeling it wrong".
alwillis•1h ago
Apple essentially invented color matching on personal computers back in the classic Mac OS days; it's hard to believe after all this time, they're not dealing with color correctly.

The WebKit blog from 2016:

WebKit color-matches all images on both iOS and macOS. This means that if the image has a color profile, we will make sure the colors in the image are accurately represented on the display, whether it is normal or wide gamut. This is useful since many digital cameras don’t use sRGB in their raw format, so simply interpreting the red, green and blue values as such is unlikely to produce the correct color. Typically, you won’t have to do anything to get this color-matching. Nearly all image processing software allows you to tag an image with a color profile, and many do it by default.

[1]: https://webkit.org/blog/6682/improving-color-on-the-web/

culi•2h ago
This might be true but I would hope the web standard is defined enough that browsers can also fail in the same way. Regardless of which browser is the most "correct" here
dylan604•2h ago
"correct" in fail, in the same way across browsers? that's hilarious. I forget that throughout the history of the internet the one thing we've been able to depend on is different browsers behaving the same way
culi•1h ago
interoperability of web features has never been this good and it's only getting better

https://wpt.fyi/interop-2025

other than the Manifest v3 fiasco, we're probably living in the golden age of web interop

dylan604•32m ago
Ugh, I hate toggle switches like the Stable/Experimental one. Which one is selected? I can’t tell. Which one of them has the better results?
PaulHoule•1h ago
I seem to recall Safari doing the right thing for JPEGs when I was experimenting with publishing red-cyan stereograms [1] where an sRGB (255,0,0) becomes something like (187, 16, 17) on a high gamut display because the sRGB is less saturated than the P3 red. It looks right for a normal photo but for the anaglyph that little bit of blue and green leaks through and makes ghosts. Emedding a P3 profile in JPEG solves the problem. You run into the same problem with print and I ended up addressing those by applying the color profile to the R and L images, doing the anaglyph blend, then attaching the native color profile of the printer -- it probably isn't quite right but the colors are always going to be off for an anaglyph anyway and if I go back to that project I'll design a color grade that pushes the scene away from pure-red and pure-cyan-spectrum colors.

What gets me is that the image he's publishing is not really a PNG kind of image.

[1] https://cybereality.com/rendepth-red-cyan-anaglyph-filter-op... is a write up that didn't go as deep as my research

hinkley•21m ago
Another reader is claiming the gamma correction value is inverted and Firefox is ignoring it. Which seems plausible. I know when I implemented png I had some issues wrapping my head around the gamma correction function.
garciansmith•2h ago
Image looks the same to me in Firefox (Linux) and Falkon as it does in image viewers (Gwenview and GIMP). Which in all cases seems kind of washed out, so I think that's the "smoky," not "normal" image but I'm not sure.
kaelwd•2h ago
GIMP asks if I want to keep or convert the color profile but both options look washed out. The only thing that opens it "correctly" for me is MPV.
meonkeys•41m ago
Try eog, if you have it. The colors look bright for me in that viewer.
brokensegue•2h ago
you can also do this with JPEGs. se my repo https://github.com/derenrich/hdr-steganography
msla•2h ago
Ah, so we're back to koolefant:

https://x42.com/koolefant/

> If you are using Netscape(*) you will probably see the happy cow above. Internet Explorer-users on Windows and Mac, however, will see a dead flat elephant. And this is due to a strange browser-feature.

> (*) or MSIE for Solaris

Yes, Netscape and MSIE on Solaris. This goes back to the 1990s:

https://web.archive.org/web/19990222144857/http://x42.com/ko...

dylan604•2h ago
"Chrome was not wrong. it's doing proper color management by respecting the embedded ICC profile"

That's not how color management is meant to work. The color profile tells you how the data is saved. If you are displaying it using a different color profile, then it needs to be converted. Displaying P3 in sRGB is doing it wrong. How can you conclude Chrome "was not wrong"?

alwillis•1h ago
> If you are displaying it using a different color profile, then it needs to be converted. Displaying P3 in sRGB is doing it wrong.

Correct. What's supposed to happen is P3 colors get converted on the fly to the their closest sRGB colors.

firefax•2h ago
>If you are using Firefox or a Chromium browser (for me Google Chrome 143.0.7499.170), it's very likely that you are seeing a very foggy version of the painting, however, if you download the image and open it with your default image viewer (or open it in the Safari browser), you will see the image normally.

Why does the page 404 when opening the image? Bandwidth issue? Firefox issue? (Yes, the username is a joke - I don't work for Firefox I just use it and thought this would be a funny name)

they wayback machine doesn't have a copy of https://lr0.org/i/2025-12-27_18-21-51_screenshot.png or i was going to link to it in the post here usually, i'd try to balance a blunt reply like this with they wayback version

cheers!

Edit: https://web.archive.org/web/20251227181428if_/https://lr0.or...

lr0•2h ago
It was a typo in the url, should have pointed to https://lr0.org/blog/i/2025-12-27_18-21-51_screenshot.png instead. I fixed it, thanks!
firefax•1h ago
that was quick, i edited the wayback cache of the image in like i lamented i couldn't in the orginal, i'm such a pessimist :-)

https://web.archive.org/web/20251227181428if_/https://lr0.or...

black3r•1h ago
this picture does show differently in Chrome and Safari, but if I analyze it using the methods you did I arrive at a different result - I don't see an iHDR chunk there, instead I see a gAMA chunk and if I remove it with pngcrush it shows normally in Chrome.

maybe you linked a different picture?

perching_aix•1h ago
Something is off about this.

> Plot twist; here was never a gAMA chunk to begin with!

But I do see a gAMA chunk in the file?

> 00 00 00 04 67 41 4d 41 00 03 5b 5e 5c ff 26 78

Which decodes to a value of 2.19998. Conversely, I don't see any bundled ICC profiles (iCCP chunks).

Mind you, I am able to reproduce the different colors, so something is indeed wrong. Chrome (Windows) and the Photos app (MS Store) both present it as a washed out, ghostly image (I wouldn't describe it as foggy, as that to me suggests a blur as well, but alas). In contrast, when I open it in MS Paint (the modern, MS Store app version), I do get saturated colors.

UPDATE:

The gAMA chunk not only exists, its value is wrong! That's the author's issue. Either they authored the image incorrectly, or their authoring software is getting it wrong.

> Aha! Surely this is a gamma correction issue. Chrome must be applying gamma math differently than desktop apps.

And so the author was actually correct here, just the wrong way around. The actual gAMA value stored in the picture is ~2.2, while 0.4545 would be the correct value for a typical sRGB gAMA chunk (1÷2.2). Gamma is 1÷display_exponent, and so the usual "~2.2 gamma" you hear is actually that display_exponent in this context; see: https://www.w3.org/TR/2003/REC-PNG-20031110/#12Encoder-gamma...

After hex editing the gAMA chunk to actually feature the "default" 0.4545 instead, the image now renders correctly everywhere for me.

For those looking to repro, these are the bytes I substituted in:

> 00 00 00 04 67 41 4D 41 00 00 B1 8F 0B FC 61 05

The actual difference then is that apparently some apps simply ignore this chunk and just force 0.4545 anyways.

hinkley•24m ago
By definition any chunk beginning with a lowercase is optional. I’m just surprised gamma is considered optional.
perching_aix•12m ago
Right, I guess that's our full story then. I further found some quibbles about that chunk being historically fraught specifically, so many decoders would intentionally ignore it under specific circumstances. I guess this file met the criteria.
hinkley•18m ago
> This is an arbitrary picked image, hashed internally and mapped to this page. You will have to see it as long as you in my website. hash: eb46e097… → idx 29/166

What is this nonsense about? I’m on a tablet and over 1/3rd of my screen is basically telling me to go fuck myself?

ccgus•16m ago
> What's Really Happening

> (1) The PNG contains an embedded ICC color profile* (likely Display-P3 or another wide-gamut color space),

Why didn't you check? From what I can tell when I did, there is no color profile in the original image so it'll default to sRGB. This really looks like a gamma issue of some sort (see @perching_aix's comment).

regenschutz•4m ago
Very interesting! I tried holding down on the image to open the context menu and open it in a new tab. In the context menu, I could see a bright and vivid thumbnail of the image, but when I clicked "Press image in a new tab" it showed the same washed out image as on the web page. Interesting!

(I'm running Brave Mobile if that matters. I'm curious if the thumbnail is rendered differently on other mobile web browsers as well?)