3 ms·
All of this is easy in Common Lisp, which includes interactive compile-time debugging. You can use #., EVAL-WHEN, LOAD-TIME-VALUE, and other things to control e
by reikonomusha 9y ago
All of this is easy in Common Lisp, which includes interactive compile-time debugging. You can use #., EVAL-WHEN, LOAD-TIME-VALUE, and other things to control evaluation time, and use the same, usual, interactive debugger that you use for runtime code, without any extra infrastructure or scaffolding.
In C++, to debug failed constexpr’s, often, you have to make it a non-constexpr and debug at runtime.
- jcelerier 9y agoor you can just use a C++ repl like Cling ?
- reikonomusha 9y agoI’m not sure that’s even close to equivalent in execution-time debugging, and doesn’t work well with large, existing code bases with crafted build steps. These are transparent, non-issues in Common Lisp.
- HelloNurse 9y agoWhat the C++ repl does with constexpr functions would be unrelated to the code generated by the actual C++ compiler.
- marmaduke 9y agosince Cling is just Clang in a REPL, it seems like it would be good idea
- alexeiz 9y agoIs there anything not easy in Common Lisp?
- deleted 9y ago[deleted]