Edit on future work

This commit is contained in:
David 2021-09-16 16:17:57 +02:00
commit 12c4d5ff6f

View file

@ -327,7 +327,7 @@ I pushed a [GitHub repo](https://github.com/Phireh/runtime-git) with the complet
Libgit is a bit verbose and there is quite a bit of error handling code, so I just posted this as soon as I had a minimal runnable example. There's a ton of sugar you can add to this cake, though:
- Add C++ support. C++ implemented overloading via name mangling, so we'd need to ask for the mangled name in our `dlsym` calls.
- ~Add C++ support. C++ implemented overloading via name mangling, so we'd need to ask for the mangled name in our `dlsym` calls.~ Edit: C++'s name mangling is platform-specific, so it's better to simply use `extern "C"` to avoid dealing with it. We're only loading a few non-overloaded symbols, anyhow.
- Auto-detect new commits _while the game is running_.
- Support for git submodules and more compilation units for different subsystems could be a boon for projects with big compile times.
- Dealing with git delta representations of tree objects. Maybe test it with git lfs too.