frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The hidden compile-time cost of C++26 reflection

https://vittorioromeo.com/index/blog/refl_compiletime.html
17•SuperV1234•3d ago

Comments

SuperV1234•3d ago
I ran some more measurements using import std; with a properly built module that includes reflection.

I first created the module via:

  g++ -std=c++26 -fmodules -freflection -fsearch-include-path -fmodule-only -c bits/std.cc 
And then benchmarked with:

  hyperfine "g++ -std=c++26 -fmodules -freflection ./main.cpp"
The only "include" was import std;, nothing else.

These are the results:

- Basic struct reflection: 352.8 ms

- Barry's AoS -> SoA example: 1.077 s

Compare that with PCH:

- Basic struct reflection: 208.7 ms

- Barry's AoS -> SoA example: 1.261 s

So PCH actually wins for just <meta>, and modules are not that much better than PCH for the larger example. Very disappointing.

jstimpfle•32m ago
The hidden compile-time cost of <insert almost any C++ feature>
leni536•22m ago
libstdc++'s <print> is very heavy, reflection or not. AFAIK there is no inherent reason for it to be that heavy, fmtlib compiles faster.

<meta> is another question, it depends on string_view, vector, and possibly other parts. Maybe it's possible to make it leaner with more selective internal deps.

Redox OS has adopted a Certificate of Origin policy and a strict no-LLM policy

https://gitlab.redox-os.org/redox-os/redox/-/blob/master/CONTRIBUTING.md
102•pjmlp•1h ago•75 comments

Lotus 1-2-3 on the PC with DOS

https://stonetools.ghost.io/lotus123-dos/
92•TMWNN•3d ago•30 comments

Two Years of Emacs Solo

https://www.rahuljuliato.com/posts/emacs-solo-two-years
259•celadevra_•10h ago•78 comments

LoGeR – 3D reconstruction from extremely long videos (DeepMind, UC Berkeley)

https://loger-project.github.io
39•helloplanets•4h ago•14 comments

Building a Procedural Hex Map with Wave Function Collapse

https://felixturner.github.io/hex-map-wfc/article/
496•imadr•17h ago•72 comments

Optimizing Top K in Postgres

https://www.paradedb.com/blog/optimizing-top-k
79•philippemnoel•1d ago•12 comments

macOS Tahoe windows have different corner radiuses

https://lapcatsoftware.com/articles/2026/3/1.html
154•robenkleene•3d ago•101 comments

A useless infinite scroll experiment

https://futile.ch/en/
63•dolin_ch•3d ago•35 comments

Show HN: Remotely use my guitar tuner

https://realtuner.online/
197•smith-kyle•3d ago•43 comments

JSLinux Now Supports x86_64

https://bellard.org/jslinux/
324•TechTechTech•17h ago•98 comments

The Gervais Principle, or the Office According to "The Office"

https://www.ribbonfarm.com/2009/10/07/the-gervais-principle-or-the-office-according-to-the-office/
16•janandonly•2d ago•5 comments

Is legal the same as legitimate: AI reimplementation and the erosion of copyleft

https://writings.hongminhee.org/2026/03/legal-vs-legitimate/
467•dahlia•19h ago•491 comments

No, it doesn't cost Anthropic $5k per Claude Code user

https://martinalderson.com/posts/no-it-doesnt-cost-anthropic-5k-per-claude-code-user/
227•jnord•11h ago•161 comments

The hidden compile-time cost of C++26 reflection

https://vittorioromeo.com/index/blog/refl_compiletime.html
18•SuperV1234•3d ago•3 comments

Show HN: I Was Here – Draw on street view, others can find your drawings

https://washere.live
28•mrktsm__•5h ago•19 comments

Darkrealms BBS

http://www.darkrealms.ca/
102•TigerUniversity•3d ago•23 comments

The “JVG algorithm” only wins on tiny numbers

https://scottaaronson.blog/?p=9615
68•jhalderm•9h ago•38 comments

Learnings from paying artists royalties for AI-generated art

https://www.kapwing.com/blog/learnings-from-paying-artists-royalties-for-ai-generated-art/
134•jenthoven•8h ago•109 comments

Show HN: DenchClaw – Local CRM on Top of OpenClaw

https://github.com/DenchHQ/DenchClaw
119•kumar_abhirup•19h ago•96 comments

Graphing how the 10k* most common English words define each other

https://wyattsell.com/experiments/word-graph/
64•wyattsell•2d ago•17 comments

DARPA’s new X-76

https://www.darpa.mil/news/2026/darpa-new-x-76-speed-of-jet-freedom-of-helicopter
202•newer_vienna•17h ago•182 comments

Launch HN: Terminal Use (YC W26) – Vercel for filesystem-based agents

101•filipbalucha•17h ago•74 comments

Getting Started in Common Lisp

https://lisp-stat.dev/blog/2026/03/09/getting-started/
47•oumua_don17•10h ago•9 comments

An opinionated take on how to do important research that matters

https://nicholas.carlini.com/writing/2026/how-to-win-a-best-paper-award.html
130•mad•18h ago•32 comments

Notes on Baking at the South Pole

https://www.newyorker.com/culture/the-weekend-essay/the-most-beautiful-freezer-in-the-world
61•mitchbob•15h ago•22 comments

Florida judge rules red light camera tickets are unconstitutional

https://cbs12.com/news/local/florida-news-judge-rules-red-light-camera-tickets-unconstitutional
429•1970-01-01•17h ago•550 comments

No leap second will be introduced at the end of June 2026

https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/P6D36VZSZBUSSTSMZKFXKF4T4IXWN23P/
114•speckx•22h ago•126 comments

OpenAI is walking away from expanding its Stargate data center with Oracle

https://www.cnbc.com/2026/03/09/oracle-is-building-yesterdays-data-centers-with-tomorrows-debt.html
356•spenvo•13h ago•210 comments

Ireland shuts last coal plant, becomes 15th coal-free country in Europe (2025)

https://www.pv-magazine.com/2025/06/20/ireland-coal-free-ends-coal-power-generation-moneypoint/
966•robin_reala•1d ago•605 comments

Baochip-1x: A Mostly-Open, 22nm SoC for High Assurance Applications

https://www.bunniestudios.com/blog/2026/baochip-1x-a-mostly-open-22nm-soc-for-high-assurance-appl...
9•sohkamyung•5h ago•2 comments