I was wondering how come Haxe output is that bigger than TS and I see it includes the typed array polyfills:
|
var js_html_compat_ArrayBuffer = function(a) { |
which is quite some code and it brings runtime type checking code with itself, which is also not super small. Would be nice to compile without it and I think if you just use Haxe 4 RC 3 it will be gone.
Also, a lot of generated code comes from the method inlining which is not the case for TS/Dart, so I'm not sure if it even makes sense to have a code size metric here.
I was wondering how come Haxe output is that bigger than TS and I see it includes the typed array polyfills:
HaxeBench/www/js/haxe.js
Line 1005 in fb40948
Also, a lot of generated code comes from the method inlining which is not the case for TS/Dart, so I'm not sure if it even makes sense to have a code size metric here.