ASK HN: How to engineer a JavaScript to Python migration?
I did a reasonably big rewrite from JavaScript (Nashorn, long story) to Kotlin/JVM recently (with 60x speedup and elimination of huge variance in runtime).Keys to success in a larger scale translation:- don't redesign anything, do a port (see also, Typescript compiler to Go port)- leverage LLMs interactively: per chunk (e.g. function), copy the old code into a comment in the new code, then use LLM completion to quickly fill out the translation- get something basic up and running ASAP that you ca...
Read more at news.ycombinator.com