libera/#clasp - IRC Chatlog
Search
10:48:46
paulapatience
Actually, pybind11 has the keep_alive policy: https://pybind11.readthedocs.io/en/stable/advanced/functions.html#keep-alive
10:49:14
paulapatience
It says it's useful for example when adding an item to a container. You can say that the item added needs to be kept alive while the container is alive.
10:57:48
paulapatience
They also have return_value_policy::reference_internal, which is essentially keep_alive<0,1>, which prevents the parent object from being garbage collected while the returned value is alive; useful for getters
13:18:56
bike
reproduced the ironclad problem. i'm guessing something's gone wrong with ub32 array constants.
15:07:19
bike
it only actually has a problem with i compile a defmethod, not the constants themselves. weird...
16:10:40
bike
"C operation (fwrite) signaled an error. C library explanation: bad address." well that's a new one
16:13:31
bike
ooh, that error happens if you use write-sequence on an mdarray. that's no good at all
16:25:25
bike
well, in any case, i have a fix so now ironclad can be compiled & loaded in a bytecode build.