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

Capture the Flag

https://unik.cx/ctf/index.html
1•eyberg•1m ago•0 comments

One of China's workhorse rockets just exploded in flight

https://arstechnica.com/space/2026/08/one-of-chinas-workhorse-rockets-just-exploded-in-flight/
1•pseudolus•1m ago•0 comments

Musk's Daily Starship Problem

https://tmfassociates.com/blog/2026/08/10/musks-daily-starship-problem/
1•TheAlchemist•3m ago•0 comments

Ambulance defibrillators removed from sale, still on the road

https://www.theage.com.au/national/confusion-and-concern-nsw-ambulance-defibrillators-removed-fro...
1•Alien1Being•5m ago•0 comments

How to Keep Thinking

https://www.seangoedecke.com/how-to-keep-thinking/
2•vismit2000•6m ago•0 comments

Gulf States Accept a New Normal in Hormuz: Iran Is in Control

https://www.wsj.com/world/middle-east/gulf-states-accept-a-new-normal-in-hormuz-iran-is-in-contro...
14•petethomas•17m ago•1 comments

Portail – Sovereign Rust AI Gateway and BitNet B1.58 SIMD Tensor Engine

https://portail-vaked-dev.pages.dev/showcase
1•pocok0xRE•19m ago•0 comments

Chvostek Sign

https://en.wikipedia.org/wiki/Chvostek_sign
1•petethomas•22m ago•0 comments

See How a Tesla-SpaceX Merger Gives Musk a Shortcut to His $1T Payday

https://www.wsj.com/business/see-how-a-tesla-spacex-merger-gives-musk-a-shortcut-to-his-1-trillio...
1•spenvo•23m ago•0 comments

Attention-Only Transformers

https://arxiv.org/abs/2607.18363
1•MediaSquirrel•24m ago•1 comments

Ontario Teachers' pension plan posts 9.5% return through SpaceX stake

https://financialpost.com/fp-finance/ontario-teachers-pension-return-2026-spacex-stake
3•cuoder•26m ago•0 comments

100 Kodiak driverless trucks are headed for public roads

https://www.foxnews.com/tech/100-kodiak-driverless-trucks-headed-public-roads
1•RickJWagner•27m ago•0 comments

'I felt Tourette's would ruin my life, now I teach at Cambridge'

https://www.bbc.com/news/articles/c7944gv359jo
1•RickJWagner•29m ago•0 comments

CapShip – Mobile Starter Kit

https://capship.org/
1•yousefbustamiii•31m ago•1 comments

Unified.nvim

https://github.com/axkirillov/unified.nvim
1•dboon•38m ago•0 comments

A C++ toolchain from 357 bytes, in Bazel

https://fzakaria.com/2026/08/01/a-c++-toolchain-from-357-bytes-in-bazel
1•signa11•42m ago•0 comments

Old.reddit.com Stops Working

https://old.reddit.com/r/emacs
2•snfernandez•45m ago•6 comments

They don't make 'em like Sublime Text anymore

https://dbushell.com/2026/08/07/sublime-text/
2•Curiositry•45m ago•0 comments

Propaganda of the deed

https://en.wikipedia.org/wiki/Propaganda_of_the_deed
1•petethomas•48m ago•0 comments

Hyperspace

https://hypercritical.co/hyperspace/
2•swyx•54m ago•0 comments

I wrote my book by hand

https://augustlamm.substack.com/p/i-wrote-my-book-by-hand
3•herbertl•55m ago•1 comments

Claude will watermark AI-generated text and images

https://tokenstead.ai/
3•cdnsteve•55m ago•0 comments

In Arizona, it may be easier to steal a home than a TV as deed fraud grows

https://www.usatoday.com/
4•rawgabbit•57m ago•1 comments

Recycle – Floppydisks

https://www.floppydisk.com/recycle
4•calvinmorrison•58m ago•0 comments

Another August

https://kellykeene.blog/2026/08/01/another-august/
1•wawayanda•1h ago•0 comments

Chinese rocket explodes shortly after liftoff

https://www.space.com/space-exploration/launches-spacecraft/chinese-rocket-explodes-less-than-90-...
3•glimshe•1h ago•0 comments

Japanese government announces measures against mega-solar projects

https://twitter.com/takaichi_sanae/status/2086977599130194229
1•anigbrowl•1h ago•1 comments

ChatGPT to Markdown: export any chat [video]

https://www.youtube.com/watch?v=TXPMnpUxab4
2•quysala147258•1h ago•2 comments

eBay scammer took $600 from me; eBay suggests cotton-candy flavor energy drinks

https://www.reddit.com/r/Wellthatsucks/s/si0ksx7ceI
1•rogerrogerr•1h ago•0 comments

Attackers Can Steal Enterprise Data with One Click Through Atlassian Rovo Flaw

https://www.kobaran.com/attackers-can-steal-enterprise-data-with-one-click-through-atlassian-rovo...
1•supportm•1h ago•0 comments