libera/#commonlisp - IRC Chatlog
Search
11:56:00
foxfromabyss
there seems to be a multitude of different opengl CL bindings and i am not entirely sure which one to pick. Would appreciate some directions :)
11:57:59
jackdaniel
as far as I can tell cl-opengl is the canonical one (and the most faithful to the underlying api)
13:08:37
jackdaniel
say that I have a tree-like structure built on back references from children i.e a class child has a slot parent (but not the other way around). I can programmatically compute each parent's children
13:10:26
scymtym
beach: the client i'm using as Brucio-61 was originally derived from Beirc but there is very little left of that code. Brucio-61 is online more than this account because the CL client is better at reconnecting than ERC (at least for my networking circumstances)
13:15:04
jackdaniel
create the root and its children (with children having the parent initialized to the root)
13:17:53
Bike
when you dump a parent, do you want to dump its children as well, even though they're just computable from the parent rather than stored ini t?
13:18:53
jackdaniel
this is really baked by a database, that's why the parent doesn't have points to its children (only the other way around)
13:21:26
Bike
if you have a database object including both parentss and children, would it make more sense to dump that?
13:22:09
Bike
i'm just not sure how the children are accessible from the parent at all, i guess. if you compute them more than once does that make new children each time? or are they cached in the database or something?
13:22:51
jackdaniel
I have an access to the database via postmodern. I can do sql queries etc, regarding caching it is rather irrelevant here (I'm not that interested in identity either way)
13:23:15
jackdaniel
generally I can do (find-instances 'children :parent my-parent) and that will magically return all of them
13:24:15
jackdaniel
I could potentially make an initarg that doesn't save the slot but rather fixes the parent in children in initialize-instance