Recently, I attempted to generate Python glue code based on the WebGPU header. After exploring libclang and generating correct results, I wanted something more generic, more 'built into C++'. Initially, I thought using constexpr compile-time tricks would be straightforward, but I found the compile-time 'runtime' to be very restrictive. Eventually, I solved these challenges with YCETL. Project link: YCETL GitHub. This is not a toy project but the result of several months of effort fighting against the challenges of compile-time runtime. If you notice any issues that could make it production-ready, please share your thoughts.
Blogger's Review: This project showcases the powerful potential of compile-time programming. The design philosophy of YCETL offers new options for C++ developers in terms of performance and flexibility. With continuous improvements in compiler optimizations, we may see more similar libraries emerge, pushing the boundaries of C++ applications.