libera/#commonlisp - IRC Chatlog
Search
22:09:19
Mondenkind
(and band problems and to a lesser extent boolean blindness are ... a thing in cl. I don't have a solution though I like cps in some cases. E.G. the low-level interface to my hash table is (lookup table key on-success on-failure), where on-success is a continuation that gets passed the value and a further continuation to update it, and on-failure just gets the update continuation. This isn't
22:09:21
Mondenkind
perfectly safe, since you could escape the update function, or do concurrent updates to the table from within the continuations, but imo it's better than other approaches I've seen on most counts)
2:28:52
prokhor
does anybody have an idea on how to train transformer based models in cl? sth like pytorch would be nice... maybe a ffi?
4:32:32
beach
Renfield: The macro call (USE-PARAM) is expanded at compile-time, and the expansion contains the value of *MY-PARAM* at compile time. The symbol *MY-PARAM* does not appear in the expansion, so it does not appear in the body of the LET.
4:35:25
beach
Renfield: If you just do (MACROEXPAND-1 '(WINDOW::USE-PARAM)) you will see what it expands to.
4:50:30
beach
Renfield: I am not sure what you are trying to do, but if you define USE-PARAM as (DEFMACRO USE-PARAM () '`(,*MY-PARAM*)) you will get *MY-PARAM* in the expansion, rather than its value.
4:51:23
beach
ACTION is now convinced that the real use case is more complicated, and that his suggestions won't work in the real case.