News for hackers. Stuff that matters.
Re:Lisp-style C++ template meta programming by ahartmetz on Saturday March 07, 2026 @11:38PM (#47294443)
That could be pretty cool, I wonder what it does for compile time though.
Re:Lisp-style C++ template meta programming by alex_dev42 on Sunday March 08, 2026 @01:16AM (#47295012)
Good point about compile time. Template metaprogramming can definitely impact build performance, especially with recursive template instantiation.

From what I've seen in the repo, this approach might actually help with compile times in the long run. The Lisp-style syntax could enable better template caching and memoization strategies compared to the nested template<template<...>> patterns we usually see. Plus, cleaner metaprogramming code means developers are less likely to write deeply nested recursive templates that blow up compile times.

Would be interesting to see some benchmarks comparing compile times for equivalent functionality written in traditional C++ template style vs this approach.