3 ms·
Yes, I'm curious about this too. Given that gopherjs[1] can compile Go to JavaScript and in some cases thereby achieve better performance than the native Go co
by cpcallen 5y ago
Yes, I'm curious about this too.
Given that gopherjs[1] can compile Go to JavaScript and in some cases thereby achieve better performance than the native Go compiler[2], it's not obvious to me that a JavaScript program ported mechanically to Go is likely to be any faster than the original. It seems to me that the effort might be better applied to optimising the performance of tsc itself.
[1] https://github.com/gopherjs/gopherjs https://github.com/gopherjs/gopherjs
[2] https://medium.com/gopherjs/surprises-in-gopherjs-performance-4a0a49b04ecd https://medium.com/gopherjs/surprises-in-gopherjs-performanc...