frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Why I Stopped Arguing with People

https://wangcong.org/2026-06-30-why-i-stopped-arguing-with-people.html
296•backlit4034•1h ago•220 comments

Asahi Linux 7.1 Progress Report

https://asahilinux.org/2026/06/progress-report-7-1/
368•pantalaimon•4h ago•101 comments

Single Dose of Frog-Derived Gut Bacterium Eradicates 100% of Tumors in Mice

https://www.thefocalpoints.com/p/new-study-frog-derived-gut-bacterium
287•mpweiher•5h ago•152 comments

For First Time, a Cell Built from Scratch Grows and Divides

https://www.quantamagazine.org/for-the-first-time-a-cell-built-from-scratch-grows-and-divides-202...
22•defrost•39m ago•0 comments

Launch HN: Parsewise (YC P25) – Reason Across Documents with an API

14•gergelycsegzi•1h ago•6 comments

Announcing Box3D :: Box2D

https://box2d.org/posts/2026/06/announcing-box3d/
49•makepanic•2h ago•5 comments

Nintendo has raised its employees base salary by 10%

https://mynintendonews.com/2026/06/26/nintendo-has-raised-its-employees-base-salary-by-10/
237•_tk_•3h ago•108 comments

Newly discovered spider builds spring loaded snare to catch ants

https://phys.org/news/2026-06-newly-australian-ballista-spider-snare.html
170•chimpanzee•2d ago•31 comments

Manufact (YC S25) Is Hiring a Developer Advocate in SF

https://www.ycombinator.com/companies/manufact/jobs/4cyWd6S-developer-advocate-partnerships-devrel
1•luigipederzani•1h ago

Red Programming Language: Static linking support

https://www.red-lang.org/2026/06/static-linking-support.html
11•em-bee•1d ago•1 comments

Obfuscation: Building the final boss of cryptography (Part I)

https://vitalik.eth.limo/general/2026/06/29/obfuscation1.html
51•fbrusch•1d ago•4 comments

Your Kids' School Bus Is About to Become a Roaming Surveillance Vehicle

https://www.thedrive.com/news/your-kids-school-bus-is-about-to-become-a-roaming-surveillance-vehicle
35•cf100clunk•1h ago•5 comments

Claude Sonnet 5

https://www.anthropic.com/news/claude-sonnet-5
1199•marinesebastian•21h ago•738 comments

Compiler-Assisted Floating-Point Error Analysis and Profiling with FPChecker

https://fpanalysistools.org/ISC26/
17•matt_d•1d ago•2 comments

Godot will no longer accept AI-authored code contributions

https://www.pcgamer.com/gaming-industry/open-source-game-engine-godot-will-no-longer-accept-ai-au...
435•pjmlp•7h ago•279 comments

Sony Deletes 551 Movies PlayStation Owners Paid For

https://reclaimthenet.org/sony-deletes-551-studiocanal-movies-playstation-owners-paid-for
25•bilsbie•34m ago•5 comments

The Internet I Grew Up with Doesn't Exist Anymore

https://cleberg.net/blog/internet.html
191•felixdoerp•4h ago•165 comments

ArXiv's Next Chapter

https://blog.arxiv.org/2026/06/30/arxivs-next-chapter/
202•subset•12h ago•62 comments

A deep dive into SmallVector:push_back

https://maskray.me/blog/2026-06-27-a-deep-dive-into-smallvector-push-back
21•mariuz•1d ago•4 comments

Google copybara: moving code between repositories

https://github.com/google/copybara
264•reconnecting•15h ago•50 comments

Monetization Gateway

https://blog.cloudflare.com/monetization-gateway/
9•soheilpro•1h ago•2 comments

Claude Code is steganographically marking requests

https://thereallo.dev/blog/claude-code-prompt-steganography
2285•kirushik•23h ago•681 comments

Claude Science

https://claude.com/product/claude-science
534•lebovic•21h ago•152 comments

Leanstral 1.5

https://docs.mistral.ai/models/model-cards/leanstral-1-5-26-06
279•vetronauta•18h ago•121 comments

Nano Banana 2 Lite

https://deepmind.google/models/gemini-image/flash-lite/
416•minimaxir•22h ago•171 comments

Swedish court says Google is to pay $1.5B to Klarna in antitrust damages

https://www.reuters.com/business/swedish-court-says-google-is-pay-15-billion-klarna-antitrust-dam...
103•giuliomagnifico•3h ago•77 comments

Show HN: Frond – a frontend runtime for your app's dependency graph

https://frondruntime.dev
7•romanonthego•2h ago•7 comments

How does a pull-back car work? Illustrated teardown

https://mechanical-pencil.com/products/car
251•Muhammad523•2d ago•39 comments

CERN bids farewell to the LHC and enters Long Shutdown 3

https://home.cern/cern-bids-farewell-to-the-lhc-and-enters-long-shutdown-3/
298•HelloUsername•1d ago•94 comments

Department of Commerce has lifted export controls on Claude Fable 5 and Mythos 5

https://twitter.com/AnthropicAI/status/2072106151890809341
820•Pragmata•15h ago•526 comments
Open in hackernews

The Fastest Way yet to Color Graphs

https://www.quantamagazine.org/the-fastest-way-yet-to-color-graphs-20250512/
62•GavCo•1y ago

Comments

tonyarkles•1y ago
In case you haven't looked at the article, this is looking specifically at the Edge Coloring problem and not the more commonly known Vertex Coloring problem. Vertex Coloring is NP-complete unfortunately.
erikvanoosten•1y ago
You can convert edge coloring problems into vertex coloring problems and vice versa through a simple O(n) procedure.
meindnoch•1y ago
Wrong. You can convert edge-coloring problems into vertex-coloring problems of the so-called line graph: https://en.m.wikipedia.org/wiki/Line_graph

But the opposite is not true, because not every graph is a line graph of some other graph.

erikvanoosten•1y ago
Indeed. Thanks, I stand corrected.
tonyarkles•1y ago
Hrm... right. It's been a while. And it looks like both Vertex Coloring and Edge Coloring are both NP-complete (because of the O(n) procedure you're talking about and the ability to reduce both problems down to 3-SAT). I've started looking closer at the actual paper to try to figure out what's going on here. Thanks for the reminder, I miss getting to regularly work on this stuff.

Edit: thanks sibling reply for pointing out that it's not a bidirectional transform.

mauricioc•1y ago
For the edge-coloring problem, the optimal number of colors needed to properly color the edges of G is always either Delta(G) (the maximum degree of G) or Delta(G) + 1, but deciding which one is the true optimum is an NP-complete problem.

Nevertheless, you can always properly edge-color a graph with Delta(G) + 1 colors. Finding such a coloring could in principle be slow, though: the original proof that Delta(G) + 1 colors is always doable amounted to a O(e(G) * v(G)) algorithm, where e(G) and v(G) denote the number of edges and vertices of G, respectively. This is polynomial, but nowhere near linear. What the paper in question shows is how, given any graph G, to find an edge coloring using Delta(G) + 1 colors in O(e(G) * log(Delta(G))) time, which is linear time if the maximum degree is a constant.

Syzygies•1y ago
Yes. The article ran through this point as follows:

"In 1964, a mathematician named Vadim Vizing proved a shocking result: No matter how large a graph is, it’s easy to figure out how many colors you’ll need to color it. Simply look for the maximum number of lines (or edges) connected to a single point (or vertex), and add 1."

I keep wondering why I ever read Quanta Magazine. It takes a pretty generous reading of "need" to make this a correct statement.

JohnKemeny•1y ago
phkahler•1y ago
Is this going to lead to faster compile times? Faster register allocation...
john-h-k•1y ago
Very few compilers actually use vertex coloring for register allocation
isaacimagine•1y ago
Totally. The hard part isn't coloring (you can use simple heuristics to get a decent register assignment), rather, it's figuring out which registers to spill (don't spill registers in hot loops! and a million other things!).
NooneAtAll3•1y ago
and this post isn't even about vertex coloring
DannyBee•1y ago
No.

In SSA, the graphs are chordal, so were already easily colorable (relatively).

Outside of SSA, this is not true, but the coloring is still not the hard part, it's the easy part.

Not really. Coloring a graph is almost always talking about proper coloring, meaning that things that objects that are related receive different colors.

If you read the introduction, you'll also read that the goal is to "color each of your lines and require that for every point, no two lines connected to it have the same color."

Ps. "How many colors a graph needs" is a very well established term in computer science and graph theory.

mockerell•1y ago
I think the comment referred to the phrase „a graph needs X (colors or whatever)“. For me, this can be read two ways: 1. „a graph always needs at least X colors“ or 2. „a graph always needs at most X colors“.

Personally, I would interpret this as option 1 (and so did the comment above I assume). In that case, the statement is wrong. But I’d prefer to specify „at most/ at least“ anyways.

Or even better, use actual vocabulary. „For every graph there exists a coloring with X colors.“ or „any graph can be coloured using X colors“.

PS: I also agree with the sentiment about quanta magazine. It’s hard to get some actual information from their articles if you know the topic.

JohnKemeny•1y ago
What about this statement:

No matter how large a car is, it is easy to figure out how much money you'll need to buy it. Simply look at the price tag.

(From: No matter how large a graph is, it’s easy to figure out how many colors you’ll need to color it. Simply look for the maximum ...)

mauricioc•1y ago
Parent's point is that sometimes (but not always) the store is perfectly fine selling you a car for $1 less than what the "price tag" of Delta(G)+1 dollars asks for, so "need" is a bit inaccurate.