Sunday, 2014-07-13

*** falktx has joined #lv200:24
*** rachidori has quit IRC00:52
*** ricardocrudo has quit IRC02:34
*** falktx has quit IRC07:46
*** grejppi has quit IRC09:08
*** zth has joined #lv209:13
*** grejppi has joined #lv209:18
*** zth has quit IRC10:49
*** rncbc has joined #lv211:04
*** rachidori has joined #lv211:08
*** rachidori has quit IRC11:37
*** falktx has joined #lv213:47
*** rachidori has joined #lv213:56
*** ricardocrudo has joined #lv215:10
*** falktx has quit IRC15:16
*** zth has joined #lv215:48
*** falktx has joined #lv216:01
*** falktx has quit IRC16:23
*** falktx has joined #lv216:47
*** drobilla has joined #lv217:41
*** falktx has quit IRC17:52
*** zth has quit IRC17:57
*** falktx has joined #lv217:59
* drobilla wonders what a const-correct serd would look like18:41
drobillaOne of the more annoying things about C is that the instant you have a pointer in a struct in your API, const-correctness goes right out the window18:42
drobillaI could split the string out and only use a struct for 'metadata' (size and so on), but that would be annoying, and doesn't mesh with the plan of unifying the node types to have serd and sord as one18:43
drobilla(and potentially use the same node type in a lilv successor, as well.  push the numerics all the way down, much simpler overall)18:43
* falktx is missing the context18:45
drobillaThere isn't one, really :)18:45
falktxbtw, I had some patches for lv218:46
drobillae.g. serd can work with user-supplied strings, even static ones18:46
drobillawhich means you're passing a non-const char* to a static const string to a library, or sometimes vice-versa18:46
drobillaWell, you know where I prefer those ;)18:49
drobillaemail will do, too18:49
falktxI think I lost it, I had it nice and ready18:49
drobillaOn that, I guess I could waste the day migrating to git, but I'd much rather do something more... pleasant18:50
falktxfound it, http://kxstudio.sourceforge.net/Paste/repo/eW0J118:52
falktxdrobilla: ignoring the const changes, there is at least 2 things that can be imported18:53
falktx1. clang deprecated support18:53
falktx2. missing extern "C" on some headers18:53
drobillaYeah, already broke things for people with hasty const changes.  Won't be doing that again.18:53
falktxdrobilla: the issue with clang is that it defines __GNUC__ but doesn't support "pragma GCC diagnostic"18:54
falktxoh, also this bit:18:55
falktx-out = (LV2_Atom_Forge_Ref)forge->buf + forge->offset;18:55
drobillaHm, odd.  I guess there are no functions in those headers so it didn't really matter.18:55
falktx+out = (LV2_Atom_Forge_Ref)forge->buf + (LV2_Atom_Forge_Ref)forge->offset;18:55
falktxI had warnings when building with strict c++ rules18:55
drobillaCan't imagine why, equivalent18:55
falktxI'm going to watch the game now, ttyl18:56
* drobilla sighs18:56
drobillaThis would be way less of a PITA if you'd use the standard directory structure instead of wrecking everything18:56
falktxI bundle the lv2 headers in a single dir, easier for me18:57
falktxsorry about that!18:57
falktxanyway, later18:57
*** falktx has quit IRC18:57
drobillaYeah, well.. easier until the names clash18:57
drobillaor you want to build against the stock install18:58
drobillaor 18 million other reasons you don't just assume a bunch of rules on another project, AGAIN18:58
* drobilla moves on to other things18:58
*** rachidori has quit IRC19:26
*** rachidori has joined #lv219:26
*** rachidori has quit IRC19:39
drobillaAnyone know a plugin that writes to a control out off the top of their heads?20:32
* drobilla should write a query tool for this20:32
drobillaOh, right, meters20:34
*** falktx has joined #lv220:58
*** LAbot has joined #lv222:31
*** zth has quit IRC22:35
drobillargareus: State change thing is reproducible in Jalv by saving the same preset twice22:49
drobillaI think maybe unloading everything previously from the bundle might be okay sometimes usually...22:49
rgareusdrobilla: unloading/reloading the whole world may take a few seconds, no?22:51
rgareusdrobilla: is it complicated to invalidate a given subset of the world? ie just force-reload the state?22:52
rgareuse.g. lilv_world_force_load_resource() or similar.22:53
drobillargareus: Yeah, but that might cause even more problems.  Every reference to lilv everything would have to go22:53
drobillargareus: Every triple is annotated with the bundle it came from, so dropping an entire bundle should be doable22:54
drobillaIf any LilvNodes are around that refer to those nodes... I guess they hold a reference so it shouldn't explode...22:54
rgareusdrobilla: sounds like properly cleaning up is more complex than just reloading the world.22:55
drobillargareus: Well, imagine auditing ardour so that every LilvNode or other lilv reference everywhere is deleted and refreshed22:56
drobillargareus: Doesn't sound very fun to me22:56
rgareusdrobilla: could something be missed when reloading the world?22:56
drobillaAt least this way, it's contained to just that bundle22:56
drobillargareus: Well, anything and everything could theoretically change22:57
drobillaSerious changes are bound to screw things up anyway, but you can usually get away with it22:57
rgareusdrobilla: mmh URIs of existing plugins would need to be re-mapped as well..22:57
drobillaIdeally there'd be a bool parameter to lilv_world_load_bundle for this, but there isn't22:58
* drobilla dreams of a world where C had default argument value and appending new parameters with defaults didn't change ABI22:59
rgareusdrobilla: it seems the API under the hood is prepared. there's sord_remove and there's zix_tree_remove as well.22:59
* drobilla wonders if removing is actually done anywhere at present23:00
rgareusthough in this case we'd just need to override,  not actually remove + add.23:00
rgareusdrobilla: only used in test code.23:01
drobillaNope.23:01
drobillargareus: What does "override" mean?23:01
rgareusdrobilla: replace value23:01
drobillaWhich is different from remove and add how? :)23:01
rgareusoverwrite23:01
rgareusdrobilla: the key can stay :)23:02
drobillaWell, this is only tricky with blank nodes23:02
drobillaWith URIs and literals, anyway, triples are values.  Equivalence is real equivalence23:02
drobilla(which is why duplicates don't make sense)23:02
rgareusdrobilla: I wanted to check what happens if I change  lilv's world  zix_tree_new() allow_duplicates to 'true'...23:03
rgareus..but I got distacted by the world-cup final :)23:03
drobillargareus: Definitely nothing good, and those trees aren't the sord ones anyway23:03
drobilla(Though sord uses that tree too, less than ideally.  I need to make a less shit tree for that one of these days and make some look-at-me benchmarks for the store side of things)23:04
drobillaSpent the last many weeks working on a *parallel* high-nary-tree, so I should be able to implement a bloody B+-tree easily enough.  Anyway.23:05
drobillaI will have a go at just making load_bundle drop everything from it first23:06
drobillaLikely it works enough23:06
drobillaThen I need to wade through LV2 itself and see if I can make some releases...23:07
* drobilla needs less packages in his life23:22
*** rncbc has quit IRC23:42

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!