Reading these #JavaScript engine fundamentals has been incredibly insightful. I can see from this how a #TypeScript runtime (#Deno) could aid optimisation by guaranteeing JSObject shapes. Could profiling info be inferred from TS too, or is that only possible at runtime?
@mathiashttps://twitter.com/_jayphelps/status/1192980567660343296 …
-
Show this thread
-
Follow-up question (again, maybe for
@mathias): there is a concept of compiling JS code ahead-of-time, for example in Android app development. Does this effectively produce bytecode equivalent to the maximally-optimised JIT code (e.g. if TurboFan)? Or is it even better optimised?2 replies 0 retweets 0 likesShow this thread
Replying to @LinguaBrowse
The blog post answers that. Bytecode can be generated from JS source code, but runs in the interpreter (i.e. is not optimized). To generate highly-optimized machine code, you need more than just the JS source: you need feedback collected while running in the interpreter.
4:58 AM - 9 Nov 2019
0 replies
0 retweets
1 like
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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.