Why? Every time I have asked this people say because you'll search the logs (which I have never done in my life) or because "it's good practice"
-10 karma · joined May 25, 2022
Why? Every time I have asked this people say because you'll search the logs (which I have never done in my life) or because "it's good practice"
1. Why wasn't realloc part of the spec? When I looked at wasm and emscripten it appeared that realloc was essentially malloc+memcpy? That'd be painful when arrays are bigger than L2 or L3 cache. I think I heard arm cpu's all standardized to have virtual memory in 2005 or 2010 so I don't think arm hardware was an issue?
2. It seems like 100% of system calls would have to be implemented through javascript? Why wasn't there some things wasm implemented itself like a way to get time or rdtsc, realloc and other very common operations?
When you said I was wrong I knew right away you either never actually tested or you're talking about outside of the browser. If it wasn't clear I was talking about wasm in chrome/safari/firefox this entire time
This guy found sqlite to be 19x slower. https://ricomariani.medium.com/wasm-sqlite-for-web-products-...
The numbers I seen suggest wasm is 3-5x slower then native which isn't bad IMO. JavaScript is also 3-5x slower than native. Is JS close to native speed? I don't think you can say it about one but not the other
He ran a website. I don't call that a kingpin
Lets say apple engineers all have kids who use tiktok and some of the kids or engineers do something shady and someone gets blackmailed. As a consequence apple launches 3months later and in the meantime someone from china launches a killer phone with the same or almost as good tech specs. Sure the apple fans may wait it out but that could be a billion dollars of sales to china that would have went to USA
That's one of the point of espionage. To get a competitive or monetary advantage. If facebook did this to other companies within the states, at least the country isn't losing money
The other would be things used to jail innocent people but for the most part I don't think thats how tiktok is being used
You mostly need to outlaw all of it or someone will keep doing it. Going after smaller companies won't change anything
Bullshit. What's the tradeoff on using `gets` vs any other function?
Nothing. Absolutely nothing. `gets` is wrong 100% of the time period.
If you're wrong its not a trade and a lot of things in this article and about dry is wrong
I'm still waiting for a flag to disable runtime bound checks
Why would I bother? It's been shown the author says one thing while reality shows another