News for hackers. Stuff that matters.

bad-apple

Re:Linux kernel in-tree Rust support on Saturday July 11, 2020 @11:11AM (#23802733)
> 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?

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.

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 argumentation, in the rare cases that there is any, is rather ridiculous. See, for example:

> Leftists protest by lying down in front of vehicles, they intentionally provoke police or racists to abuse them, etc. These tactics may often be effective, but many leftists use them not as a means to an end but because they PREFER masochistic tactics. Self-hatred is a leftist trait.

Of course, this manner of peaceful protest is neither masochistic nor unique to the left, so I'm not sure how he thought that this made any sense. He even acknowledges that it is often effective, and yet he still claims that it is motivated by self-hatred!

If you can highlight anything of value in his manifesto, I'd very much appreciate it.

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...

Nitpick: I'm pretty sure that "11..50" should be a "10..50".
Re:Writing a winning 4K intro in Rust on Monday July 06, 2020 @03:12AM (#23745460)
Does it still elide the bounds check if you replace the first three lines with

    assert_eq!(xs.len(), ys.len());

?
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?
Re:Learn Lua in 15 Minutes (2013) on Wednesday July 01, 2020 @04:50AM (#23699342)
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.