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

We've Seen This Before Right Before Russia Invaded Ukraine [video]

https://www.youtube.com/watch?v=BsFx3ZZh91U
1•Bender•9s ago•0 comments

El Niño Is Flooding California's Coasts with the Highest Tides to Come

https://gizmodo.com/el-nino-is-already-flooding-californias-coasts-and-the-years-highest-tides-ha...
1•gumby•38s ago•0 comments

LessWrong Sans AI

https://jimrandomh.github.io/LesswrongSansAI/
1•mudil•3m ago•0 comments

For my 80th birthday, I bought myself a new brain

https://bjsm.bmj.com/content/60/9/677
1•convict•4m ago•1 comments

DAO DE JING

https://factsanddetails.com/china/cat3/sub10/entry-5577.html
1•Bluestein•5m ago•0 comments

We ran AI agent swarms in Minecraft and Mindustry

https://labs.ycombinator.com/projects/games/index.html
5•sandslash•8m ago•0 comments

Show HN: KernelCash – Privacy First Budgeting

2•LoftyHobbitMan•9m ago•0 comments

Binance-hacker-1029 – $5.6B stolen from Binance

https://arkm.com/explorer/entity/21a94755-f604-45e5-9501-6542e23005e8
19•Tiberium•10m ago•3 comments

Binance Hacked

https://twitter.com/officer_secret/status/2115906754328383521
2•dinoqqq•11m ago•0 comments

Show HN: Artificer by Nua: Frontier robotics task evaluation in 4B parameters

https://usenua.com/blog/artificer
3•SunnyWan•12m ago•2 comments

Cross-Model LLM Pricing API

https://www.metergraph.dev/pricing-api/
2•alexray•13m ago•0 comments

Is Binance Being Hacked? $2B Outflow Puts Customer Funds in Question

https://beincrypto.com/is-binance-being-hacked-customer-funds/
3•pr0zac•13m ago•0 comments

Show HN: SiteSpin – Build and update business websites through chat

https://sitespin.app/
1•adamhsn•13m ago•0 comments

The Wayback Machine Labs

https://wayback-labs.sf.archive.org/
2•sans_souse•17m ago•0 comments

The Origin Story of Candy Corn

https://www.wsj.com/lifestyle/travel/candy-corn-halloween-traditions-history-0d487ec0
1•bookofjoe•17m ago•1 comments

Ask HN: Opus 5.5 suddenly dumb as rocks?

5•jahala•17m ago•1 comments

Show HN: SortSage – Automatic rules-based file organizer

https://enlightpixel.com/products/sortsage
5•enlightpixel•18m ago•0 comments

The End of Consensus Research?

https://arxiv.org/abs/2610.30114
1•chriscbr•19m ago•0 comments

Polymarket Halted International Trading After Hackers Drained Accounts

https://www.wired.com/story/polymarket-flagship-platform-hack-traders-lose-money/
7•vinyl7•20m ago•3 comments

Show HN: AI Knows Us – see who ChatGPT and Perplexity recommend instead of you

https://www.aiknowsus.com
2•goeladityx•22m ago•0 comments

Over $5B drained from Binance in apparent hack

http://twitter.com/emmettgallic/status/2115916025774723210
21•int32_64•24m ago•0 comments

Binance hot wallet drained of about $2.5B in tokens on Ethereum

https://etherscan.io/address/0x5227f603c1ee34ce3c06efe6477003bdfccb2f8c
17•vagabund•26m ago•3 comments

Accidentally exposing repo files on Vanilla JavaScript Vercel sites?

https://github.com/dirkjbosman/vanilla_next
1•DrDizzle•26m ago•0 comments

Fax API – Faxette

https://www.faxette.com/api
2•yakkomajuri•27m ago•0 comments

A Beer Brewer's Noise Estimation

https://chillphysicsenjoyer.substack.com/p/a-beer-brewers-noise-estimation
1•crescit_eundo•28m ago•0 comments

Programming at Light Speed: Building the Gravity Query Engine

https://malisper.me/programming-at-light-speed/
1•andreaja•28m ago•0 comments

Undisclosed Patch Vulnerability Caused HTTP2Shell via If-Statement

https://www.bugsink.com/blog/brotli-stale-table-read/
1•birdculture•28m ago•0 comments

If we stop, we lose: can developer education come back?

https://piccalil.li/blog/if-we-stop-we-lose/
2•tanvibhakta•28m ago•1 comments

DebugBear Security Incident

https://twitter.com/DebugBear/status/2115866496643535293
3•vldszn•29m ago•1 comments

Polymarket Got Hacked. Here's What Their Post Didn't Tell You

https://twitter.com/brianskellenger/status/2115890675237392452
3•Bluestein•29m ago•0 comments