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

Show HN: Native Mac menu bar app for the Anker Prime 160W (local BLE)

https://github.com/djui/ankered
1•kreisquadratur•2m ago•0 comments

Nipple tattooist 'frustrated' by online censorship

https://www.bbc.com/news/articles/cx2z7ejn891o
1•harry_nutsachs•2m ago•0 comments

Periodic Table of North American Electrical Outlets

https://i.imgur.com/kl6BuTM.jpeg
1•CSMastermind•4m ago•0 comments

Mini-Microsoft Wins at Last

https://molochinations.substack.com/p/mini-microsoft-wins-at-last
1•domhudson•5m ago•0 comments

Warren Buffett is stepping down as chairman of Berkshire Hathaway

https://www.businessinsider.com/warren-buffett-stepping-down-chairman-berkshire-hathaway-2026-9
1•andsoitis•5m ago•0 comments

Prompt Wars – An AI riff on Core Wars to prompt-inject each other

https://promptwars.party
2•ranok•9m ago•1 comments

It's Easy to Dismiss Jev as Just a Classifier

https://sebastianraschka.com/blog/2026/jev-classification-generalization.html
2•paimapi•9m ago•0 comments

Boring Company is working on a Hyperloop tunnel between Austin and San Antonio

https://twitter.com/elonmusk/status/2101732496396439751
1•MrBuddyCasino•11m ago•0 comments

Show HN: Ran Qwen 3.8 27B autonomously(ish) for 3 weeks on single 3090

https://huggingface.co/datasets/skeole/qwen-cpp-agent-0-protocol
1•iamskeole•15m ago•0 comments

Jev is now available to everyone. No waitlist.

https://twitter.com/typesafeai/status/2101786156572823624
3•mfiguiere•15m ago•0 comments

Omarchy Quattro [video]

https://www.youtube.com/watch?v=F7fe9pa8OeE
1•simonebrunozzi•15m ago•0 comments

Palemoon v35.0.0 has been released

http://www.palemoon.org/releasenotes.shtml
2•thisislife2•21m ago•0 comments

Is this website more boring than it used to be, or am I just used to it?

1•rizsyed1•23m ago•1 comments

Ask HN: How have NLP researchers adapted since LLM disrupted their field

1•newtothebay•26m ago•0 comments

Whirlpool Washer Transmission Repair (2007)

https://k0lee.com/2007/01/whirlpool-washer-transmission-repair/
1•userbinator•29m ago•0 comments

Ask HN: In your workplace are non-devs making vibecoded apps?

1•mustafak99•29m ago•0 comments

Show HN: AgentTrace–Observability and runtime self-healing engine for AI agents

https://github.com/mohitkumar188/AgentTrace
1•mohitkumar18•29m ago•0 comments

Locked Out of China's AI Boom, Graduates Turn to Bootcamps

https://www.sixthtone.com/news/1018649
1•paimapi•30m ago•0 comments

The Death and Life of Chinese Civil Society

https://madeinchinajournal.com/2026/07/29/the-death-and-life-of-chinese-civil-society/
2•paimapi•32m ago•0 comments

What It's Like to Work in One of America's Data Centers

https://www.wsj.com/business/what-its-like-to-work-in-one-of-americas-data-centers-b4358003
2•JumpCrisscross•34m ago•0 comments

Moneypenny: Build Grok bot like bots in Claude or codex

https://moneypennyagent.com/
1•KashyapArjun•36m ago•0 comments

I stopped drinking the AI Kool-Aid

https://joshtronic.com/2026/09/20/i-stopped-drinking-the-ai-kool-aid/
14•joshtronic•36m ago•3 comments

Precision Engineering and Dumpster Diving at Worlds Largest Particle Physics Lab [video]

https://www.youtube.com/watch?v=Yibef6nLCv8
1•mulmen•37m ago•0 comments

Show HN: Jevlang: Python with a Smart "If"

https://github.com/sumanmichael/jevlang
2•sumanmichael•39m ago•0 comments

China's 6th-Gen J-36 Fighter-Bomber to Feature Combat Laser

https://en.defence-ua.com/news/chinas_6th_gen_j_36_fighter_bomber_to_feature_combat_laser-19834.html
6•motionlessveloc•40m ago•0 comments

Building a genomic primitives library in Rust: the why and how

https://claymcleod.dev/blog/2026-07-26-why-were-building-omics
1•clmcleod•42m ago•0 comments

Shooter game with every NPC tactical decisions made by Jev

https://coffee.yardsort.sh/
1•joaoh82•42m ago•1 comments

Preschoolers Who Blink More Often Show Stronger Self-Control, Study Finds

https://studyfinds.com/preschoolers-who-blink-more-often-show-stronger-self-control-study-finds/
2•mdp2021•44m ago•0 comments

Named and Optional Arguments Are Awesome

https://botahamec.dev/named-optional-args
2•bluepeter•45m ago•1 comments

Ask HN: How do SaaS companies continue to charge my replaced credit card?

2•sarim•45m ago•1 comments