It was for kind of a weird project .. a new shell called Oil. It was originally written in python, which turned out to be too slow (obviously), so the author decided to transpile python -> c++ and compile that with a custom python runtime .. which surprisingly worked pretty well. There were sharp edges, but even a really braindead cpp translation was like 200x faster than python iirc
I implemented a copying collector a while ago while working on a python runtime and this is the article I wish I had then. Great read
Oh? Which python runtime?
It was for kind of a weird project .. a new shell called Oil. It was originally written in python, which turned out to be too slow (obviously), so the author decided to transpile python -> c++ and compile that with a custom python runtime .. which surprisingly worked pretty well. There were sharp edges, but even a really braindead cpp translation was like 200x faster than python iirc