Twitter | Pretraživanje | |
Leszek Swirski
hacker. He/Him
110
Tweetovi
23
Pratim
383
Osobe koje vas prate
Tweetovi
Leszek Swirski 2. velj
Odgovor korisniku/ci @ProgramMax
I'm never 100% sure if Fs in chat are sincere. I'm not even sure if the people sending them know if they're being sincere or not.
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 30. sij
Odgovor korisniku/ci @hashseed @camillobruni
Like a particularly deep pimple?
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 25. sij
Odgovor korisniku/ci @hooraybuffer @mathias
I tried Leszek and had no luck, so I optimistically tried Swirski and it's a picture of a fucking mite.
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 25. sij
Odgovor korisniku/ci @ProgramMax
I've got one where I confused MB with KB through the entire talk, and people were like "wow, that's quite a high minimum file size" and I was like "yup" without realising they think it's 1000x larger than what I think I'm saying.
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 10. sij
Odgovor korisniku/ci @tverwaes @mathias @jankrems
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 6. sij
Odgovor korisniku/ci @terrymorse @jacobmparis
Cool sidenote: you can actually have unnamed function declarations too, using export default in a module: export default function() {} I don't think the hoisting behaviour is visible in this case though, since there's no name to hoist :)
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 6. sij
Odgovor korisniku/ci @terrymorse @jacobmparis
The terms you're looking for is "function declarations" (which are hoisted) vs. "function expressions" (which are just expressions, so evaluated when they are reached) that are assigned to a variable, where the function expression can be "named".
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 25. pro
Odgovor korisniku/ci @ProgramMax
I've played around with this a bit, you can get pretty far with force-inlined wrapper functions that set up the registers/stack correctly with inline asm, and more inline asm in the "real" function to read them back out again.
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 21. pro
Odgovor korisniku/ci @bmeurer @treshugart i 2 ostali
At least that will be the case in bytecode execution, optimized code might inline the function and will then be able to escape analyze the object creation away, making them equivalent again.
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 21. pro
Odgovor korisniku/ci @bmeurer @treshugart i 2 ostali
Well, the jumps and throw should be gone by now, so `(({x,y})=>x+y)(p)` will be roughly equivalent to `(p=>p.x+p.y)(p)` or `((x,y)=>x+y)(p.x, p.y)`, but object creation still has overheads so `(({x,y})=>x+y)({x,y})` is slower than `((x,y)=>x+y)(x,y)`
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 20. pro
Odgovor korisniku/ci @mathias @domenic
... and memory savings from pointer compression :)
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 19. pro
Odgovor korisniku/ci @Eramdam @v8js
Fixed, using the age-old approach of "I dunno, add more divs"
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 18. pro
Odgovor korisniku/ci @xiosman @v8js
undefined?.is?.a?.function?.()
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski proslijedio/la je tweet
V8 18. pro
V8 hits its long-awaited v8.0, now with optional chaining, nullish coalescing, faster higher-order builtins — oh and 40% less memory use thanks to pointer compression, no big deal. h8rs gonna h8, V8ers gonna V8 🔥🔥🔥
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 18. pro
Odgovor korisniku/ci @Eramdam @v8js
Uff, guilty, didn't think to test in Firefox. I'll get it fixed (and tested!) tomorrow.
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 17. pro
Odgovor korisniku/ci @ProgramMax
Really it should be showing the difference in bit pattern -- there's like a solid three bits not changing for each of those lowercase ASCII letters...
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 17. pro
I'm looking forward to it!
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 5. pro
Odgovor korisniku/ci @tverwaes @robpalmer2
Obviously I mean `function(x) { return y; }`
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski 5. pro
Odgovor korisniku/ci @tverwaes @robpalmer2
Well, `x=>y` is faster to parse than `function x() { return y; }`, since the non-parens arrow argument can lookahead for => therefore skip the ambiguity, and all the identifiers are < 2 chars so they don't trigger the keyword check -- so I guess "it depends" is still not wrong :)
Reply Retweet Označi sa "sviđa mi se"
Leszek Swirski proslijedio/la je tweet
Cassetteboy 5. pro
New! Cassetteboy vs Boris Johnson
Reply Retweet Označi sa "sviđa mi se"