libera/#commonlisp - IRC Chatlog
Search
4:31:35
pillton
C++ templates have a restricted form of evaluation though. You can't for example open a file or print a message to the terminal during the expansion of the template without implementing that support in the compiler.
10:50:32
scymtym
by now, c++ has real compile-time evaluation for a (growing) subset of the language in addition to templates: https://en.cppreference.com/w/cpp/language/constexpr
11:21:08
younder
C++ also has ambitions to throw away C headers. In 2026 the language might have lambda's ready for generic thread execution. Kinda the same we has had in Lisp with lparelell since 2015 or so.
12:27:34
jiny
in emacs slime debug how can I continue with different value that caused an error? I see it in bactrace 0: ..
12:30:31
beach
... and it is not related to SLIME. It is what the author of the code chose to signal.
12:31:48
decweb
If you're the author of the code, there are some convenenience forms like `check-type` which will signal restartable conditions, and might at least introduce you to the topic and you can look at its code.
12:33:01
beach
jiny: If you replace your BREAK by a CHECK-TYPE as decweb suggests, then you can alter the value in the debugger.
12:35:29
beach
jiny: And notice that the type given to check-type can be very specific, e.g., (NOT (EQL 234)).
12:38:24
jiny
thank you. i'm looking into https://www.lispworks.com/documentation/HyperSpec/Body/m_check_.htm that sounds like far beyond my level.
12:39:41
beach
jiny: It is not hard. If you have a variable FOO that takes on the value 234 and you don't want that, instead of (BREAK), write (CHECK-TYPE FOO (NOT (EQL 234)))
12:44:35
beach
jiny: So if you receive an odd number but you want it to be even, then use the type (SATISFIES EVENP).
12:49:30
scymtym
it is also possible to restart function calls (key r) or force function calls to return (key R) for a subset of all function calls on the stack (not just the top one). calls for which this is possible are highlighted by SLIME (in green by default, i think)
12:52:57
scymtym
(restarting function calls will not undo any side effects so detailed knowledge about the functions in question is required)
15:11:17
nij-
Q. provide, require, *module* are all deprecated. What should I use instead in vanilla CL (e.g. if it doesn't have asdf).