-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
As I was trying to reduce a compiler error that only triggers in my full project and is hard/tedious to minimize manually, it occurred to me we could try to develop a source code minimization tool to automate that.
in D, that tool exists, see https://github.com/CyberShadow/DustMite and docs https://github.com/CyberShadow/DustMite/wiki ; developped by @CyberShadow
It's used extensively by the community for investigating bugs; it's especially invaluable for those that trigger in your whole project but are hard to isolate to a minimal bug (which is the 1st step to solving it). I've used it myself a lot for great benefit.
It turns out dustmite is not super tied to D language (doesn't need to know about D's semantics) ; in fact it can reduce C++ code too as it only operates at much shallower level.
- First step could be adapting/forking dustmite to work with Nim code
@CyberShadow any help / pointers in this thread would be most welcome!
- second step (optional, not needed for that purpose...) could be porting that forked dustmite to nim