Wrote a new post about wormholes in JavaScript. How to make things go faster by understanding how computers work
https://www.nearform.com/blog/wormholes-in-javascript …
-
-
Replying to @mafintosh
Nice write-up! We should talk about the chicken-egg problem here: ``` // when BigInts are optimised in JavaScript, we could use a BigInt64Array. ``` IMHO it’s the other way around.
1 reply 0 retweets 2 likes -
Replying to @mathias @mafintosh
Ideally, JS engines optimize for real-world coding patterns. By using modern features in an idiomatic way, you force JS engines to improve their performance for those patterns.
2 replies 3 retweets 15 likes -
Replying to @mathias @mafintosh
"idiomatic way" is code for "write like everyone else"? how does everyone else code? Or, does it mean "like engine developers intend you to write it"? Is there a convention (like those for airbnb eslint)? A checklist?
1 reply 0 retweets 0 likes
It means (or at least, I meant) write code that makes sense to you. Optimize for readability. Don’t try to outsmart JavaScript engines — they’re constantly changing and improving.
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.