Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bad-apple
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
bad-apple
6y ago
> RAII-based memory management without GC, and the concept of ownership vs. borrowing are very C++-inspired concepts. Why are you crediting C++ for an idea that is probably much older than it?
2.
▲
by
bad-apple
6y ago
You seem to have it backwards. The goal is to discourage future manifesto-publishers from murdering. Just as school shootings used to be a good way to get your face on TV, murder is a good way to market your manifesto. We can fix that.
3.
▲
by
bad-apple
6y ago
This manifesto is just the expression of one man's fringe political views. There is a lot of rubbish in it. For example, he spends pages insinuating that leftism is rooted in masochistic, self-hating, chauvinistic tendencies. His a
4.
▲
by
bad-apple
6y ago
If you'd used 50.. instead of _, Rust would've caught this error for you. ;) https://play.rust-lang.org/?version=nightly&mode=release&edi...
5.
▲
by
bad-apple
6y ago
Nitpick: I'm pretty sure that "11..50" should be a "10..50".
6.
▲
by
bad-apple
6y ago
Does it still elide the bounds check if you replace the first three lines with assert_eq!(xs.len(), ys.len()); ?
7.
▲
by
bad-apple
6y ago
What would a browser even need a backend for? The only valid use that I can think of is Google's Safe Browsing list, but if ad blocking can be implemented totally on-device, surely that can, too?
8.
▲
by
bad-apple
6y ago
I think Rust has another good alternative to this, although it might be cheating a little: you can just write (lo..hi).rev(). That way, the common case of going forwards is nice, and the case of going backward isn't much worse.