libera/#shirakumo - IRC Chatlog
Search
6:07:43
Colleen
<shinmera> I'm interested in more formats, though for obj I also already wrote a library
6:09:34
Colleen
<shinmera> As for the GC question... there's no way to "keep it under wraps", I'm afraid. The lack of GC will leak somehow. In all my wrapper libs there is a manual FREE call to dealloc stuff, and in Trial I frequently complain about how much I hate my loader system that is supposed to manage that part.
6:10:29
Colleen
<shinmera> For the cells in particular, I assume there is some kind of delimited extent to their lifetime, though, right?
6:11:25
Colleen
<shinmera> For instance, I don't see it really happening that you keep a ref to a cell, but not also the mesh
6:12:34
Colleen
<shinmera> You could lock the cell access behind a macro that forces a reference around the block. Eg: (defmacro with-cells ((mesh) &body body) `(let ((,meshg ,mesh)) (flet ((get-cell (..) ..)) ,@body)))
6:13:43
Colleen
<shinmera> Feel free to submit PRs to extend manifolds, since it's a toolkit it would be nice to just have, well, more stuff in it
9:03:18
paulapatience
Where did you put the OBJ library? I was wondering for my own parsers if it would make more sense to have a single library for all the formats, or one library for each.
9:05:21
paulapatience
My parsers I actually wrote to be as fast as I could possibly get them, so the code is actually not very nice to look at, but I could just make them conform to however you wrote them when submitting PRs.
9:09:10
paulapatience
(For example, my first STL parser was slower than meshio's, which is written in Python, and I couldn't believe it... until I looked at the Python code and saw that they just skipped parts of each line and treated it as something like a CSV file. So basically I parse only what's absolutely necessary for my mesh objects and ignore the rest, so my parsers will gleefully accept invalid
9:13:11
paulapatience
For calling free at the end of your wrappers, what is wrong with adding a finalizer for it? Unless the libraries also initialize other resources than memory, like file handles, etc.?
15:04:27
SAL9000
Shinmera: re last night's hackery; if you want to see what it looks like, note that the time-override for it is in the URL instead e.g. https://european-lisp-symposium.org/2024/stream-calendar.html#2024-05-06T14:36
17:30:08
bike
sorry for being kind of slow in that area. feel free to pawn things off on me. and for what it's worth, i don't have any issue with your bans, obviously.