frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Using C++ type aliasing to avoid the ODR problem with conditional compilation

https://devblogs.microsoft.com/oldnewthing/20250501-00/?p=111134
5•signa11•1y ago

Comments

cherryteastain•1y ago
Cool trick but why wouldn't you just put the Log method without the ifdef in the header, and put the conditionally compiled bits in a .cpp file? The method in the article already puts both Widget<true> and Widget<false> in a .cpp file.
stop50•1y ago
The thing that is complained on by the linker is not the method, its the m_logger attribute. because of that the two structs mismatch. But since Widget<true> and Widget<false> are two different structs in the typing system they don't interfere with each other

Trump terminates Election Assistance Commission members

https://www.reuters.com/legal/government/trump-terminates-election-assistance-commission-members-...
1•petethomas•57s ago•0 comments

Claude Basecamp

https://github.com/graybyrd13/claude-basecamp
1•graybird13•1m ago•0 comments

Introducing Plan A

https://www.astralcodexten.com/p/introducing-plan-a
1•JDEW•3m ago•1 comments

What's Coming in Git 2.55

https://lwn.net/Articles/1079596/
1•signa11•6m ago•0 comments

Hardening the kernel with allocation tokens and bootpatch-SLR

https://lwn.net/Articles/1078699/
1•signa11•8m ago•0 comments

Internews, Backed by $400M USAID War Chest, Pushes Ad Blacklists

https://foundationforfreedomonline.com/internews-backed-by-400m-usaid-war-chest-pushes-ad-blackli...
1•iamnothere•10m ago•0 comments

Microsoft's early AI lead has become a test of faith

https://www.ft.com/content/753bd818-524a-46f3-9026-e2fae74c2167
1•JumpCrisscross•11m ago•0 comments

John Carmack reacts to layoffs at id Software

https://www.pcgamer.com/gaming-industry/john-carmack-reacts-to-massive-layoffs-at-id-software-my-...
2•evo_9•13m ago•0 comments

I benchmarked every model that fits on an iPhone

https://digital-foundry-eight.vercel.app/benchmarks/
2•aligutierrez•15m ago•0 comments

European Alternatives to Mainstream Software

https://madeineurope.dk/
2•tjek•15m ago•0 comments

Build your own vulnerability harness

https://blog.cloudflare.com/build-your-own-vulnerability-harness/
5•ianrahman•18m ago•0 comments

Django in TypeScript. Thanks Fable

https://github.com/bryanhoulton/tango
4•m0hit•23m ago•0 comments

OpenAI discontinues standalone browser ChatGPT Atlas in favor of new ChatGPT app

https://help.openai.com/en/articles/20001275-chatgpt-work-and-codex
3•thoughtpeddler•25m ago•1 comments

Star Just Ate a Planet, and It's Not Done Yet

https://www.nytimes.com/2026/07/09/science/space/planetary-engulfment-hungry-star.html
5•wglb•27m ago•1 comments

Why Do Some Soccer Players Cut the Heels Off Their Cleats?

https://www.wired.com/story/why-do-some-soccer-players-cut-the-heels-off-their-cleats/
2•littlexsparkee•31m ago•0 comments

Unveiling the Mysteries of Chimichurri: The Ultimate Guide to a Culinary Delight

https://churrascos.com/unveiling-the-mysteries-of-chimichurri/
2•Cider9986•31m ago•0 comments

Fidji Simo Leaves OpenAI

https://twitter.com/fidjissimo/status/2075353170927304861
4•doppp•33m ago•0 comments

Ask HN: Thoughts on AI in Personal Finance?

2•foxtrot8672•35m ago•1 comments

Show HN: Selvedge – long-term memory for AI-coded codebases

https://selvedge.sh/
2•masondelan•36m ago•0 comments

Russia bans diesel exports after Ukrainian attacks, straining global market

https://www.cnn.com/2026/07/09/business/russia-diesel-ban-ukrainian-strikes-intl
3•breve•43m ago•0 comments

What Happens When the Public Record Shrinks

https://www.theatlantic.com/newsletters/2026/07/trump-administration-public-record-data-holes/687...
2•paulpauper•44m ago•0 comments

Childhood and Education #20: Phones and Screens

https://thezvi.substack.com/p/childhood-and-education-20-phones
2•paulpauper•46m ago•0 comments

AI #176 Part 1: Doing It Live

https://thezvi.substack.com/p/ai-176-part-1-doing-it-live
2•paulpauper•47m ago•0 comments

Show HN: Fortress – Give your agents unlimited access to the web

9•armanluthra_•50m ago•2 comments

Ambient Website Background Clouds

https://github.com/paradise-runner/background-clouds
2•dividedcomet•57m ago•0 comments

I Made a JavaScript Obfuscater

https://potassiumv1.netlify.app/
2•ImOnHere•1h ago•0 comments

Command and Conquer: Red Alert Mac/Android/iOS ported using Codex

https://github.com/dk8827/ra-port
2•bananaboy•1h ago•1 comments

UST is bringing Claude to physical AI

https://www.anthropic.com/news/ust-claude
2•surprisetalk•1h ago•0 comments

China's giant Gobi solar plant runs after dark on salt, not batteries

https://electrek.co/2026/07/09/china-hami-solar-molten-salt-storage/
2•Bender•1h ago•0 comments

LibreOffice 26.8 Beta Released for Improving This Free Software Office Suite

https://www.phoronix.com/news/LibreOffice-26.8-Beta-1
4•Bender•1h ago•1 comments