I just updated nim-vm by @ekarlso with a lot of new functionality and support for older Nim versions.
I added the following functionality:
I am aware of some smaller bugs like folders created for non existing versions. Just add issues if something bugs you. I will watch that place too if @ekarlso is to busy with the playpen :)
P.S.: Linux and Darwin only. Maybe somebody wants to add Windows?
Well it basically creates a folder in your home directory which contains multiple git repos copies which are checked out at the "version".
The active version simply gets symlinked to the name "nim" which then picks upd everything else. At the same time every version gets a symlinked name which includes the version itself.
I modified the script already not use the "build.sh" script but to call koch and bootstrapping itself.
This way I can adapt to 0.9.x and load the older csources and rename nimrod to nim.I
I also prepared it to act on the system on which it runs and added a "pseudo" version named "repo" which can be used as compiler hacker such that it fits into the remaining "switching".
Using it on windows should be possible if one has "git", finds a "timeout" (or removes that) and gets the "koch_build" to build the stuff on windows.