TypeScript: your "chicken" can not cross the "road"
"road" can be crossed by "car"
"car" uses "wheels" to move
"chicken" uses "feet" to move
"wheels" and "feet" are not compatible
Fabio Spampinato
8,212 posts
- Replying to @sciencegirlThe ratio of people waiting to cars waiting seems pretty nuts.
- Resizing panes horizontally or vertically feels pretty good, but resizing panes horizontally _and_ vertically at the same time is even better! Idea shamelessly copied from @code, though my implementation doesn't require any extra elements at intersections 😎
00:00 - In this little benchmark rendering 16k squares using the DOM goes at 10fps, and rendering 1M squares using raw WebGL goes at 120fps. I understand the DOM does a lot more here, but surely with enormous effort a faster web renderer that destroys Blink is physically implementable?
00:00 - Replying to @GregSarafianThat's cool-ish, but also, why? If one could delete a million things like that the code would be meaningfully simpler, and you wouldn't really lose anything, nobody expects to the bezels to budge, if they sort of do that's unexpected, hence weird, hence probably bad.
- Apparently the TC39 proposal for Signals is now public! This is a long thread on everything that jumps to my mind when reading it. I haven't assimilated everything yet, so this is more a list of first impressions.
- If you want your @npmjs installations to go roughly 25% faster (sometimes even 90% faster it seems): ```sh echo "audit=false" >> ~/.npmrc ```
- The WebCrypto API is probably the ugliest Web API that I can think of.
- The js-framework-benchmark table ordered by this new "run memory 10k" test seems really interesting, it gives you a picture of how memory usage will scale in real applications beyond tiny things.
- The people have spoken! Very early results, but in this very specific scenario the experimental rewrite I'm working on is: ~2x faster than Prettier if there's no cache. ~10x faster than Prettier if there's a cache. ~4x faster than dprint if there's cache.
00:00There's lot of excitement around faster pretty printers using Rust. The main issue is that none of them match the long tail of formatting logic of prettier. I'm putting up a $10k bounty for any project written in Rust that passes > 95% of the prettier JavaScript tests. - An interesting virtualization strategy: just render some placeholder content and replace it with the actual content once it becomes visible. See how much less lag my EmojiPicker virtualized like this causes. You get most of the performance _and_ most of the simplicity also.
00:00 - Hashing performance is so important, somebody should really try to speed things up in the JS ecosystem. - Node's sha1 function seems 3x slower than Bun's. - The browser with its obsession with making everything async is 40x slower than Bun, and it's not even giving me a string.






