Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
loonyphoenix
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
loonyphoenix
7y ago
The parent comment literally says > You can have data races in Python, Javascript and Rust as easily as you can in C. Don't use "race conditions" and "data races" interchangeably if you understand the difference.
2.
▲
by
loonyphoenix
7y ago
You cannot have data races in safe Rust.
3.
▲
by
loonyphoenix
7y ago
How do you get that C# is way behind Go on this one? If anything, those benchmarks show these groups of languages performing at roughly the same level: 1. C/Rust 2. Go/C# 3. Java/OCaml/Haskell 4. JavaScript/Swift 5.
4.
▲
by
loonyphoenix
7y ago
Yep. Rust has a PathBuf[1] type for dealing with paths in a platform-native manner. You can convert it to a Rust string type, but it's a conversion that can fail[2] or may be lossy[3]. [1] https://doc.rust-lang.org/std&
5.
▲
by
loonyphoenix
7y ago
> the GC and runtime make it impossible to leak, double-free, or access out-of-bounds This is false. Neither C# nor Rust protect from memory leaks. There are actually some gotchas in C# that can cause memory leaks - for example, you have
6.
▲
by
loonyphoenix
7y ago
Yes, it's quite possible to cause tearing in C#. It does not cause undefined behavior, but it can, for example, break invariants (supposedly enforced by privacy) in large enough structs. See this example where I break encapsulation in
7.
▲
by
loonyphoenix
7y ago
How would protecting a single website help? If the password is shared among different sites, and one of the sites turns out to be malicious, I'll be able to access your single website just fine by typing the sniffed password into your
8.
▲
by
loonyphoenix
7y ago
That relies on every website implementing this solution, and I don't think such coordination is possible. Also I don't see the advantage over just server-side hashing. Client-side hashing (without a password manager) is public, so
9.
▲
by
loonyphoenix
8y ago
Rayon[1] is artificial silk. [1]: https://en.wikipedia.org/wiki/Rayon
10.
▲
by
loonyphoenix
9y ago
Doesn't this process break when, e.g., master + A passes tests, master + A + B fails, but master + A + B + C + D passes again (having been fixed by C + D accidentally)? I mean, it's pretty unlikely to happen, but it's possibl