Hacker News new | ask | show | jobs
by whizzter 14 days ago
I think you should reconcile with Clang and hope that they can work on performance for LSP tasks, because while C++ 26 reflections does a lot of "conservative" things right, it also enabled consteval to create structures with novel shapes, so you need consteval in an indexer.

ie.

auto val = make_named<"x","y">(1, 2.3);

// val is now a struct with an integer field named x and a double field named y

1 comments

For the IDE use case its not clear support for that is worth giving up realtime parsing speeds. Of cource you can try to have your cake and eat it too by compiling a fast but limit parser with clangd but then you are doubling your bug surface.