13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 4y ago · link · parent
a) I don't think anyone expected people to stay with Rust for a decade or more
b) I don't care about Rust governance that much
c) I don't care about the .net foundation or even know wtf you're talking about
I assume most people are a lot like me with regards to the above. I've been using rust since 2014, I've met many people across these teams, spoken at and attended conferences.
None of this just feels like something I should worry about. If it were 2015, yeah, I'd be worrying. It's 2022, Rust has grown beyond the tiny group of people who had to shepherd it.
They did a wonderful job - that's why I'm not worried. They succeeded in bringing Rust to mainstream, where now there are so, so many people invested in it.
comment 4y ago · link · parent
A shared client-server compression state is really weird. Can someone explain why this approach was chosen? I'm assuming that the idea here is to ensure efficiency for short strings by essentially keeping a synchronized dictionary?
comment 4y ago · link · parent
1. There's so little isolation between processes and very little support for saying something like "I'm a process, please don't fuck with me" - you can only say "I'm a process, don't let me fuck with others". That sucks. There's a bit of work here on Linux with memfd_secret and Windows has a Protected Process thing now that I don't know a ton about.
But basically there's no way as a process to prevent someone injecting into you.
2. Root and Admin are overly powerful as an abstraction. You get root and you're god. The Linux kernel has always treated root -> kernel escalation as a relatively small issue, which means root really is a dangerous thing to provide anyone. Protecting a process from another root process is extremely difficult.
Things are sort of getting better in some ways. Namespaces on Linux are really good - most software should be running in some kind of a namespace since it almost never has any business messing around with global resources like processes, files, etc. With the popularity of Docker things are moving to a bit more of a sane world, but that's more just luck - I don't think people moved to Docker for security but for sanity.
Basically, we went from one global address space to an address space per process, but we left absolutely everything else as global, and this is the result.
comment 4y ago · link · parent
That hasn't been the case for years. The 2018 edition officially stabilized Non-Lexical Lifetimes, allowing tons of valid programs to work. There have been a lot of other improvements since then to address papercuts.
At this point Rust is a pretty easy language to learn imo.
comment 4y ago · link · parent
This isn't a very good motivating example but I suppose it does the job of showing the various hoops one has to jump through when using unsafe.
I think right now the approach is to make unsafe "safe" (ie std::mem::uninitialized -> MaybeUninit) at the cost of complex, and eventually to build out improved helpers and abstractions. Obviously this is still ongoing.
But also, just don't write unsafe? It's very easy to avoid.
comment 4y ago · link · parent
There is no way to add methods to a type in Python that mypy understands. You have to create a new type. This leads to code that is very difficult to extend and pushes you towards inheritance.
I talk a bit about this here: https://insanitybit.github.io/2020/07/19/intersection-types-...
For me, this became a huge problem when I was building a plugin system in Python. I wanted types to only own their own logic, but I also wanted types to be able to tell other types about themselves. For example, we have a Process and a File. I want to be able to go from Process to File with only one of those knowing about the other. Without extensions you are forced to create ugly workarounds.
Also, I've never had a problem with intellij and extension traits. I kind of wonder why you'd stick with a tool that's a bad experience.
comment 4y ago · link · parent
Of course, doing research is hard. Because it isn't really research in the sense of running a legitimate study, it's research in the sense of studying the work of others as an outsider.
Personally, I like Dr Brad Stanfield. https://www.youtube.com/c/DrBradStanfield
He's not afraid to reverse positions, he's articulate, he calls out when research is or is not compelling and explains why.
Again, personally, I expect the number one thing you can do to improve your healthspan is probably focus on what you can stop putting in your body vs what things you can add. If you're 40+ though, might be worth looking at other options.
comment 4y ago · link · parent
I'm glad to hear that it will continue forward open source and I hope that any purchases are to the benefit of the existing community.
comment 4y ago · link · parent
> United Flies World’s First Passenger Flight On 100% Sustainable Aviation Fuel Supplying One Of Its Engines
Third sentence:
> It was the first commercial flight with passengers on board to use 100% drop-in sustainable aviation fuel (SAF) for one of the aircraft’s two engines.
comment 4y ago · link · parent
But attestation can mean a lot of things and isn't inherently in conflict with free software. For example, at my company we validate that laptops follow our corporate policy, which includes a default-deny app installation policy. Free software would only, in theory, need a digital signature so that we could add that to our allowlist.
comment 4y ago · link · parent
I imagine it's not straightforward, just seems like the effort would have started earlier.