Hacker News new | past | comments | ask | show | jobs | submit login

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.




Is there anything not easy in Common Lisp?


or you can just use a C++ repl like Cling ?


What the C++ repl does with constexpr functions would be unrelated to the code generated by the actual C++ compiler.


since Cling is just Clang in a REPL, it seems like it would be good idea


I’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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: