Flight of the reposturgeon!
I haven’t posted a reposurgeon release announcement in some time because there hasn’t been much that is very dramatic to report. But with 3.44 in the can and shipped, I do have an audacious goal for the next release, which may well be 4.0.
We (I and a couple of my closest collaborators) are going to try to move the reposurgeon code to Go.
I’ve been muttering about trying this for a while, because while Python is an excellent tool for a lot of things, speedy it is not. This is particular pain in he ass on really large repository moves; I’m still trying to get GCC over to git and am severely hampered by test cycles that take a minimium of nine hours or so.
Yes, I said nine hours, and that’s on the Great Beast’s semi-custom hardware specifically designed for the workload. I think there’s a realistic prospect that a Go implementation could cut an order of magnitude off that.
Still, until a couple days ago my speculations were wore wishes than plans. We’re talking 14KLOC of algorithmically sense Python, some of which came in from cometary contributors and I don’t necessarily understand very well myself. The labor load of hand translation – and worse, the expected defect rate – made the project impractical.
What changed everything is that Google has the same problem I do on a much larger scale – that is, piles and piles of underperforming Python needing to be moved to a language with compiled speed. Thus, the Go language (of which I am already a fan) and now…grumpy.
Yes, it’s a Python to Go source-code translator. It’s hedged around with warnings about a few unsupported features and many missing pieces of the Python standard libraries. Still…I think it’s a realistic path forward. If I have to write some of the missing library support myself, that’s not a big deal compared to moving a much larger block of deeply interwingled code by hand.
And if I end up improving the translator, where’s the downside?
Eric S. Raymond's Blog
- Eric S. Raymond's profile
- 140 followers
