Keep in mind ocamlopt is *full* native. There is no VM, no bytecode to load/parse at app startup time. The generated assembly code resembles the structure of your program - like when you disassemble a compiled C program.
-
-
This is really tempting to bite on it. Pardon me for not understanding anything about ocamlopt, but does this run cross plat seamlessly or is there some targets concerns?
1 reply 0 retweets 0 likes -
It’s okay people often don’t know this about ocamlopt. It runs on every major processor architecture, compiles full Native binaries for every major OS. Like any full native compiler it means you distribute binaries per platform. This is what Flow does for their releases.
1 reply 0 retweets 3 likes -
Replying to @jordwalke @TheLarkInn and
That means you can’t pick up a Mac binary and run it on windows just like you can’t pick up a Chrome/V8 binary for Linux and run it on Windows. Instead you distribute binaries for all popular OS’s.
1 reply 0 retweets 0 likes -
Replying to @jordwalke @TheLarkInn and
The tooling for *easily* generating those binaries for Windows is still under development but it’s definitely possible and Flow does it for every release.
1 reply 0 retweets 0 likes -
Replying to @jordwalke @TheLarkInn and
But you can just implement stuff in Reason today, targeting JS, while knowing that when you finally port the whole thing you can flip on native compilation.
1 reply 0 retweets 1 like -
Replying to @jordwalke @TheLarkInn and
Problem is for webpack (which you mentioned before) - everyone still runs all these tools in JS (parsers etc) so you are stuck blocking on them. Even if you speed up web pack all the plugins might still slow you down.
3 replies 0 retweets 1 like -
Replying to @jordwalke @TheLarkInn and
JS tooling needs vertical integration. Any solution that does it is going to be inherently more optimised and performant than Webpack so it seems disingenuous to blame it on JS. JS is just capable of so much dynamism that horizontal integration is natural.
2 replies 0 retweets 6 likes -
Replying to @sebmck @jordwalke and
Yup. Truth. I mean but what's the margins we are talking here on gains in perf? 11% 20% 50% 90%?
1 reply 0 retweets 0 likes -
Replying to @TheLarkInn @jordwalke and
It's hard because whatever benchmarking is done is always against really slow unoptimised JS tools. Babel is super slow so of course anything you build in another language will be faster. Hell, anything new you build in JS will be faster.
1 reply 0 retweets 2 likes
Rebuild your thing in JS with the same architecture, that's the real comparison.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 