13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 9y ago · link · parent
Variables exist in memory, right? But we only need them for some amount of time - then we want our memory back. There are many strategies for this - Java uses a garbage collector to search through memory and reclaim parts no longer in use, C programmers manually call 'free'. Java suffers from its strategy because of the performance impact of that scan/ freeing strategy. C suffers from the complexity of manually managing memory leading to many security vulnerabilities.
Rust takes this concept of how long memory should live - when it should be freed - and encodes it into its type system. Similar to how you can say 'this thing is an int and it can be added to other ints' rust says 'this thing lives this long and it can reference other things that live this long, or shorter'.
Then the compiler can tell you "hey, you're trying to access something that might have been freed" the same way it would say "you're trying to add an integer to a string".
This means you don't have the performance impact of the GC but you also have a compiler watching your back, telling you when you may be doing something unsafe.
The algorithm used to determine how long variables live and when they can / can't be accessed is the subject of the RFC.
comment 9y ago · link · parent
What about the larger upfront investment for hardware, especially over provisioned, relative to a spread out payment? What about the 5000 credits you get upfront from aws for startups, and the free tier?
As for vendor lock in, this isn't a problem most companies face - they're fine buying into AWS, and you're underselling the many, many other services they provide beyond EC2.
comment 9y ago · link · parent
If you want to say "It's marketing" no shit, anything any company publishes ends up going through marketing at some point. Every tech blog a company has is marketing. Who cares?
comment 9y ago · link · parent
If you can not arbitrarily compute on the target machine ASLR is still completely useful. This is the case for tons of vulnerabilities, like basically anything that isn't a web browser with JS execution privileges.
comment 9y ago · link · parent
Where it fails is in distros. AFAIK most linux distros do something similar (based on Grsecurity patches) but it's useless because... they then distribute the binary, with everything necessary to get addresses.
But if you're distributing it internally/ it's a secret, yeah, you're going to benefit from that.
comment 9y ago · link · parent
Rust developers should be aware of this - they're almost always incredibly trivial patterns to avoid, but only if you know about them.
comment 9y ago · link · parent
Given a "perfect network" I think exactly-once-delivery is possible, right?
comment 9y ago · link · parent
Currently the popular Rust concurrency model is Futures. It won't be the only concurrency model used.
comment 9y ago · link · parent
Many would likely still reach for the far left. A human would have to make a call saying "Wow, this is not a compromise we can make, other humans are not going to use this".
That said, it's a moot point - I am in full agreement that the two revolutions are different.
comment 9y ago · link · parent
Yeah, I considered bringing this up in my original post - DNT is garbage for a lot of reasons. One of the big ones being that it actually sucks for privacy, especially if it's not used a ton. It's one more thing that can make you trackable.