frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Bash-5.3

https://lwn.net/Articles/1029079/
2•thunderbong•12m ago•0 comments

Searching for family history as told by a storied WWII telegram

https://mklyons.com/blog/searching-family-history-telegram
1•mklyons•13m ago•0 comments

Can we believe anything about markups anymore?

https://nicholasdecker.substack.com/p/can-we-believe-anything-about-markups
1•OgsyedIE•14m ago•0 comments

Show HN: Still coding in VC++ 6.0 after losing everything, living in a trailer

3•CodeAndExile•15m ago•2 comments

Discovery of ancient riverbeds suggests Mars once wetter than thought

https://www.theguardian.com/science/2025/jul/10/mars-once-wetter-than-thought-surprise-discovery-10000-miles-ancient-riverbeds
2•pseudolus•20m ago•0 comments

Design Considerations for an Anthropophilic Computer (1979)

https://web.stanford.edu/dept/SUL/sites/mac/primary/docs/bom/anthrophilic.html
1•akkartik•22m ago•0 comments

Offpolicy: Generating offline policy data for RL agent environments

https://github.com/arthurcolle/offpolicy
1•arthurcolle•27m ago•0 comments

JEDEC Releases New LPDDR6 Standard to Enhance Mobile and AI Memory Performance

https://www.businesswire.com/news/home/20250709315796/en/JEDEC-Releases-New-LPDDR6-Standard-to-Enhance-Mobile-and-AI-Memory-Performance
2•transpute•31m ago•0 comments

Why Trump Appointed the Secretary of Transportation to Lead NASA

https://arstechnica.com/space/2025/07/nasa-has-a-new-interim-administrator-the-secretary-of-transportation/
3•LorenDB•33m ago•0 comments

How to trick ChatGPT into revealing Windows keys? Say "I give up"

https://www.theregister.com/2025/07/09/chatgpt_jailbreak_windows_keys/
6•LorenDB•35m ago•0 comments

A Virginia public library is fighting off a takeover by private equity

https://lithub.com/a-virginia-public-library-is-fighting-off-a-threatened-takeover-by-private-equity/
3•sharkweek•36m ago•0 comments

Height, body size, and longevity: is smaller better for the humanbody? (2002)

https://pmc.ncbi.nlm.nih.gov/articles/PMC1071721/
1•sandwichsphinx•38m ago•0 comments

Privilege Escalation on the Playdate

https://www.peterstefek.me/foul-play.html
2•underanalyzer•39m ago•0 comments

Windows BSoD to Watson: The Reliability Journey (2022)

https://hardcoresoftware.learningbyshipping.com/p/061-bsod-to-watson-the-reliability
2•transpute•46m ago•0 comments

Show HN: Google ADK and Vertex AI Memory Bank for Persistent Conversational AI

https://github.com/serkanh/adk-with-memorybank
1•serkanh•46m ago•0 comments

How airports could help aliens spot Earth

https://www.ras.ac.uk/news-and-press/research-highlights/how-airports-heathrow-and-gatwick-could-help-aliens-spot-earth
2•geox•49m ago•0 comments

El Salvador Tells UN That US Has "Exclusive" Jurisdiction over Detainees

https://www.techdirt.com/2025/07/09/el-salvador-throws-doj-under-the-bus-tells-un-that-us-has-exclusive-jurisdiction-over-renditioned-detainees/
4•nadermx•50m ago•0 comments

eBPF: Connecting with Container Runtimes

https://h0x0er.github.io/blog/2025/06/29/ebpf-connecting-with-container-runtimes/
1•tanelpoder•50m ago•0 comments

Why Is LabEx Considered the Best Choice for Linux Beginners?

https://www.indiehackers.com/post/why-is-labex-considered-the-best-choice-for-linux-beginners-bu1XHUGzyK4zqRYvACHK
2•huhuhang•54m ago•1 comments

Bell advances to build phase of secretive DARPA high-speed VTOL contest

https://www.flightglobal.com/defence/bell-advances-to-build-phase-of-secretive-darpa-high-speed-vtol-contest/163727.article
2•bouchard•55m ago•1 comments

The Author and the Assistant

https://zmj.dev/author_assistant.html
1•zmj•56m ago•1 comments

Who Needs Action Items?

https://coops.dev/who-needs-action-items
2•theonething•59m ago•0 comments

Closures for Hare

https://lists.sr.ht/~sircmpwn/hare-rfc/%3CDB54BK1QFAMO.VURD1415NHT3@ddevault.org%3E
1•todsacerdoti•1h ago•0 comments

A lightweight Cloudflare Dynamic DNS shell script

https://github.com/fernvenue/cloudflare-ddns
2•fernvenue•1h ago•0 comments

Menoq – QR Menus for Restaurants with Instant Updates

https://menoq.app
1•whit3hawks•1h ago•0 comments

Humming-Bird is a simple, composable, and performant web-framework

https://github.com/rawleyfowler/Humming-Bird
1•TheWiggles•1h ago•0 comments

Using fs_usage to see what files a process is using

https://til.simonwillison.net/macos/fs-usage
2•Bogdanp•1h ago•0 comments

Bin2Wrong: A fuzzer for uncovering semantic errors in binary-to-C decompilers [pdf]

https://futures.cs.utah.edu/papers/25ATC.pdf
3•jmillikin•1h ago•0 comments

Which Kind of Science Reform

https://elevanth.org/blog/2025/07/09/which-kind-of-science-reform/
1•jeffreyrogers•1h ago•0 comments

FreeTier.fyi – AI-powered database of free tiers of AI and infra services

https://freetier.fyi
1•amareshb•1h ago•1 comments
Open in hackernews

HyAB k-means for color quantization

https://30fps.net/pages/hyab-kmeans/
27•ibobev•6h ago

Comments

refulgentis•5h ago
Highly recommend Celebi's K-Means, weighted square means.

It feeds the results from a box cutting quantizer (Wu) into K-Means, giving you deterministic initial clusters and deterministic results. It leverages CIELAB distance to avoid a bunch of computation. I used it for Material 3's dynamic color and it was awesome as it enabled higher cluster counts.

mattdesl•5h ago
Surely this would be even faster and potentially better with OKLab? Especially in the context of CIELab based distance metrics like CIEDE2000 which are a bit heavy.

My own gripe with box cutting is that perceptual color spaces tend not to have cube shaped volumes. But they are very fast algorithms.

refulgentis•4h ago
I am very strongly opinionated on this, but am aware this isn't a very serious matter most of the time. Imagine my tongue in cheek, and a smile, i.e. I'm open to discussion:

Oklab is a nightmare in practice - it's not linked to any perceptual color space, but it has the sheen of such in colloquial discussion. It's a singular matmul that is supposed to emulate CAM16 as best as it can.

It reminds me of the initial state of color extraction I walked into at Google, where they were using HSL -- that is more obviously wrong, but I submit they suffer from the same exact issue: their verbiage is close enough to actual verbiage that they obfuscate discussion, and prevent people from working with the actual perceptual spaces, where all of a sudden a ton of problems just...go away.

</end rant>

In practice, quantizers are all slow enough at multimegapixel that I downscale - significantly, IIRC I used 96x96 or 112x112. IIRC you could convert all 16M of RGB to CAM16 and L* in 6 seconds, in debug mode, in Dart, transpiled to Javascript in 2021, so I try to advocate for doing things with a proper color space as much as possible, the perf just doesn't matter.

EDIT: Also, I should point out that my goal was to get a completely dynamic color system built, which required mathematically guaranteeing a given contrast ratio for two given lightness values, no matter hue and chroma, so trying to use pseudo-perceptual-lightness would have been enough to completely prevent that.

I do still think it's bad in general, i.e. if it was people doing effects on images in realtime, a couple weeks ago I finally got past what I had internally at Google, and was able to use appearance modeling (i.e. the AM in CAM-16) to do an exquisite UI whose colors change based on the lighting naturally. https://x.com/jpohhhh/status/1937698857879515450

mattdesl•4h ago
It does a pretty good job at emulating CAM16 with a fraction of the parameters, computational complexity, and processing; it’s no wonder it was adopted by CSS.

I don’t know what you mean by “not being linked to any perceptual color space” - it is derived from CAM16 & CIEDE2000, pretty similar in ethos to other spaces like ITP and the more recently published sUCS.

There’s also tons of discussion on w3c GitHub about OKLab, and it’s evolved in many ways since the original blog post such as improved matrices, new lightness estimate and OKHSV/OKHSL, and very useful cusp & gamut approximations.

I have a hard time seeing how it’s a nightmare in practice!

refulgentis•4h ago
Because it is a matmul best-effort approximation of a perceptual color space, not a perceptual one, and in my experience that's a significant difference when deployed and for design. YMMV. :)

I cringe myself, it sounds like a nitpick, but it's an extremely significant upgrade in every case.

Most concretely, if I use actual L*, design can use palettes linked to L* and vary hue / colorfulness while meeting any contrast standard.

jcelerier•3h ago
> IIRC you could convert all 16M of RGB to CAM16 and L* in 6 seconds, in debug mode, in Dart, transpiled to Javascript in 2021, so I try to advocate for doing things with a proper color space as much as possible, the perf just doesn't matter.

Coming from the "real-time graphics" world, if I read that something which is going to be a minor part of your whole pipeline would take 6 seconds (or even 600 or 60 ms) it would be instantly disqualified so I don't really understand why you'd say "the perf just doesn't matter" ?

refulgentis•3h ago
> I don't understand how "the perf just doesn't matter"

Ah, apologies, I don't mean to imply color perf never matters :)

The paragraph is discussing a color quantization algorithm to extract colors from an image, not color conversion in general. It's very hard in that situation

> "a minor part of your whole pipeline would take 6 seconds (or even 600 or 60 ms"

Ah, apologies for the lack of clarity: you don't need to ever convert the entirety of RGB to CAM16 and L*. :) That's just a rough instructive benchmark I can remember.

If I'm worried about realtime, say, I know I want to convert an 6K* wallpaper with realtime appearance modelling, at 120 fps on 2022 Android, I use a shader. 0 perf issues so far. (knock on wood)

* now that I think about it...it's probably at display res, not the original 6K. Maybe 2 megapixel? shrugs

mattdesl•4h ago
I’ve done some color quantization tests with HyAB and OKLab on this same image. A couple notes:

- what works well for this image might not work well for other images! I learned the hard way after lots of testing on this image, only to find things that did not generalize well.

- parametrizing the AB plane weight is pretty useful for color quantization; I’ve found some images will be best with more weight given to colour, and other images need more weight given to tone. OKLab creator suggests a factor of 2 in deltaEOK[1] but again this is something that should be adjustable IMHO..

- there’s another interesting and efficient color space (poorly named) sUCS and sCAM[2] that boasts impressive results in their paper for tasks like this. Although I’ve found it not much better for my needs than OKLab in my brief tests[3] (and note, both color spaces are derived using CIEDE2000)

[1] https://github.com/color-js/color.js/blob/9d812464aa318a9b47...

[2] https://opg.optica.org/oe/fulltext.cfm?uri=oe-32-3-3100&id=5...

[3] https://x.com/mattdesl/status/1902699888057446670