I had been experimenting with using Apple's swift-llbuild2 for Pterodactyl's inc...
Jon Sterling @jonmsterling@mathstodon.xyz
I had been experimenting with using Apple's swift-llbuild2 for Pterodactyl's incremental build system. I ended up ripping it out and replacing it with my own home-grown and very naïve memoisation engine.
I might revisit this in the future, but there's a few issues with llbuild2 that make it (in my possibly ignorant opinion) unsuitable for my particular use-cases.
One issue is that the default mode of use seems to involve serialising and hashing enormous amounts of data all the time. I have no doubt there is a way to customise this functionality to give more efficient content identities, but the library is so complex that it was difficult to figure out where to start.
Another issue is that it is changing very quickly (good!) and I don't have the bandwidth to keep up with the API changes.
My own incremental engine takes a few ideas from llbuild2: for example, it is observationally stateless (i.e. nothing more than a function cache), and the action graph is organised carefully to narrow each query as far as possible to ensure maximal cache hits.
I don't currently deal with things like writing the cache to disk, which I'll want in the future. That will require versioning, etc., and the good thing is that there is a lot of good work on versioning already done by those folks which I can steal.
But anyway, right now I think it is a better trade-off for me to have something extremely naïve but easy to change and evolve.