Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Diggsey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
Diggsey
4y ago
Well, also Firefox is making an excessive number of calls to that slow system call compared to other browsers (Chrome, Edge).
92.
▲
by
Diggsey
4y ago
Manifest V3 is a perfect example of "great idea but terrible execution". The ability to have extension pages be suspended when not in use is great. Improving (and having finer grained) permissions is great. It should have stopped
93.
▲
by
Diggsey
4y ago
It's hard to give concrete examples because the problem is inherent to large, "real" codebases - toy examples can't really do it justice. That said, there are some general themes: - The lack of implicit magic in the lang
94.
▲
by
Diggsey
4y ago
I built my own that does this :) Just working on improving the UX now... It has some cool features too, like not injecting anything into pages until you activate it (so no performance cost or risk of breaking sites) being less reliant on pe
95.
▲
by
Diggsey
4y ago
This doesn't actually happen though. First, VS Code asks you if you trust the workspace, and only when you answer "yes" does it run rust-analyzer.
96.
▲
by
Diggsey
4y ago
All of the new documentation is horribly laggy in Firefox and all of the code sections are broken (eg. the visible cursor position does not match the actual cursor position...) This is latest stable Firefox on a high spec Windows 10 laptop.
97.
▲
by
Diggsey
4y ago
I think they're probably right about the AI-sharpening using specific knowledge about the moon... However, they are wrong about the detail being gone in the gaussian-blurred image. If they applied a perfect digital gaussian-blur, then
98.
▲
by
Diggsey
4y ago
It doesn't really work like that: a second is a second anywhere in the universe, but time at different places in the universe doesn't progress at the same rate. ie. the issue is not with how we define the second. The issue is expe
99.
▲
by
Diggsey
4y ago
Not sure what you're referring to? As far as I can tell the national grid operates on a 30 minute settlement period. > For each half hour, known as a Settlement Period, companies can trade up to 1 hour beforehand that time period is
100.
▲
by
Diggsey
4y ago
Fake meat is still a form of deception; it's something that's not meat pretending to be meat. If lab grown meat gets good enough to be indistinguishable from "real" meat, then it would no longer be fake, it would just be
101.
▲
by
Diggsey
4y ago
"Artificial" is not synonymous with "fake". "Fake" implies a level of deception.
102.
▲
by
Diggsey
4y ago
You generally can't actually check the government databases directly, but you can still determine this. First, companies can catch most fraudulent documents simply by looking at the document (eg. are the fonts all correct, does the che
103.
▲
by
Diggsey
4y ago
So the table lists "USB 40Gbps" as supporting an 8k display at 60hz, then "Thunderbolt 3" is listed as supporting that transfer speed, but not an 8k display at 60 hz? Which is it?
104.
▲
by
Diggsey
4y ago
Another fun technique similar to hazard pointers is epoch-based memory reclamation (implemented here https://docs.rs/crossbeam-epoch/0.9.13/crossbeam_epoch/ ). One advantage of these kinds of "localised&
105.
▲
by
Diggsey
4y ago
One neat thing here is that the compiler is aware of which types are `Copy` and not internally mutable (not contianing an `UnsafeCell`). For these types, passing `&T` and `T` are equivalent, so the compiler could just choose the faster
106.
▲
by
Diggsey
4y ago
Not really. If you imagine a supply chain with raw materials at one end and finished products at the other, if every step along the chain is taxed even a small amount on their total revenue, the cumulative effect would completely dwarf the
107.
▲
by
Diggsey
4y ago
Slightly ironic that Rust is criticized for having multiple string types, and yet the solution to simplify string handling in C is to introduce the exact same types (str_t == &str, strbuf_t == String) albeit without the safety guarantee
108.
▲
by
Diggsey
4y ago
Because it's like cavemen pondering the safety of nuclear fusion after discovering fire. Yes: nuclear fusion could be dangerous. No: there is nothing useful that can come out of such "research". You know what would be useful
109.
▲
by
Diggsey
4y ago
Yeah... Especially as it's not actually a JIT compiler (yet).
110.
▲
by
Diggsey
4y ago
It's not backwards: you run the fuzzer, you look at the code coverage, and you compare that against what you expect to be tested. Then you update the fuzzing harness to allow it to find missing code paths. It's far more doable tha
111.
▲
by
Diggsey
4y ago
Fuzz testing has a very high chance of detecting bugs, especially these kind, but you do need to at least check that the fuzzer is reaching the relevant code!
112.
▲
by
Diggsey
4y ago
They're saying don't write such a parser in C. Use something else (memory safe language, parser generator, whatever).
113.
▲
by
Diggsey
4y ago
It also has higher energy density. Which is important for some applications.
114.
▲
by
Diggsey
4y ago
> The best way to prevent a divergent representation is to avoid including undefined behavior in a program. That’s not particularly actionable advice, though. I mean... It is pretty actionable TBH. There are sanitizers you can use to det
115.
▲
by
Diggsey
4y ago
Yeah, arena allocators are a great tool, but they are not a magic bullet either. Also the author's condescension about automatic memory management is... telling. Remembering to call "free" is only one small part of why tools
116.
▲
by
Diggsey
4y ago
Yeah a raw pointer makes sense but is equally unhelpful for the caller, since there's still no safe way to access the data. It sounds to me like the Python buffer protocol is under-specified, which can lead to data races in native code
117.
▲
by
Diggsey
4y ago
Only if you assert that the other worlds are in some way "real". See https://en.wikipedia.org/wiki/Many-worlds_interpretation#Deb... The MWI is a simpler theory than other interpretations because it does not
118.
▲
by
Diggsey
4y ago
> and the Wayland devs are clueless about it That certainly wasn't my impression from the mailing list. There are certainly some challenges with incorporating colour management into Wayland's model, but they also seem quite sol
119.
▲
by
Diggsey
4y ago
Of course we can - an ISP is paid for by the customer, whereas Microsoft in this case is paid by the advertiser. As soon as you are paid by the entity producing the content you are no longer a "dumb pipe", and are de-facto curatin
120.
▲
by
Diggsey
4y ago
> Coding it in Rust does not, in fact, guarantee it is correct. Of course. > Coding C++, you need only choose known-correct primitives to get the same level of assurance. C++ does not even have the means to express "known-correct
More ›