Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 4y ago · link · parent

Is there no compression on that sort of data?

comment 4y ago · link · parent

If you start thinking about birthday attack scenarios 128 bits might start to feel uncomfortably small.

comment 4y ago · link · parent

> also it is very sketchy that some people here want to hide/minimize the story as much as possible

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

> the very fact that threading isn't fully covered by the core wasm programming model

Does any assembly language have a concept of threading?

comment 4y ago · link · parent

> Now, I guess, we just need to learn how to properly isolate simple binaries.

I think unikernels are appealing as a solution. Every program is "the operating system" running in something like Firecracker on a baremetal host.

comment 4y ago · link · parent

RFC for HPAC here. https://datatracker.ietf.org/doc/html/rfc7541

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

Yes. Super equals was inappropriate imo.

comment 4y ago · link · parent

I seriously doubt that encryption/decryption is going to bottleneck a large download as opposed to network overhead.

comment 4y ago · link · parent

If it were orders of magnitude less work to get the same results in a terminal that you get in a browser we wouldn't have browsers.

comment 4y ago · link · parent

Sort of. It's definitely better than not initializing it.

comment 4y ago · link · parent

Operating systems could do a way better job in a million ways.

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

It's because, for some reason, the rust community is extremely, overly aggressive about downvoting. I think we can all just admit that - I've been using Rust since 2014 and it's always been an issue and it needs to be called out.

comment 4y ago · link · parent

I think the compiler will now give you a hint that they may be from different versions. If not, next time you see it you should open up a bug in rustc.

To anyone who gets a cryptic error message - that's a bug, report it.

comment 4y ago · link · parent

Rust initially was much harder to learn. The compiler was considerably more strict - rejecting a lot of programs that were entirely valid. That earned rust a very negative "hard language" reputation early on.

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

It's not problematic, it's just not work that's been done yet. Rust isn't finished. I bet you could get an RFC pushed through and implement it if you wanted to, it certainly is a promising idea.

comment 4y ago · link · parent

I think that the premise here is correct - writing unsafe Rust is too hard. There are lots of footguns.

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

That's how 99.99% of the population interacts with computers. They load a web page and then view it.

comment 4y ago · link · parent

The problem with your code is that it won't type check. It runs just fine because CPython doesn't care about type checking. But if you run mypy on it it will not understand.

comment 4y ago · link · parent

Honestly, I hadn't considered that (and I've upvoted) because I just use "search" in the rust docs. But I can see some value in grep'ability of docs, even if for me it has never really come up.

I suppose it would be nice if rust's docs supported a full text search.

comment 4y ago · link · parent

I'll take almost any cost for extension traits. Going back to Python this is part of what I miss most.

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

TBH it's really hard to care about the "I need my docs to render in a terminal" use case.

comment 4y ago · link · parent

First and foremost I would suggest doing research. A recent study showed that in healthy individuals Metformin had no impact on all-cause mortality and there are potential side effects.

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

Sorry to hear about this Manish. I've been using DGraph for years and I can say that it's an excellent database with great people working on it.

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

Maybe, but my hope is that this pushes external vendors that have government contracts to support these workflows.

comment 4y ago · link · parent

My company is built on GSuite. We use APP and CAA for everything.

comment 4y ago · link · parent

I hope native apps die. Most companies won't put in the level of effort into their engineering that the Chrome/Firefox teams do - specifically, they're not going to take security as seriously.

comment 4y ago · link · parent

Article headline:

> 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

I wish I had responded earlier, because now this entire thread is full of nonsense and I can't really respond to everything.

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

That's true - we're definitely working with much more complex compilation pipelines now.

comment 4y ago · link · parent

The thing is that this issue predates LLVM. It just feels like the sort of thing that would have been brought up really really early in the process, like as soon as anyone used it for any real world project.

I imagine it's not straightforward, just seems like the effort would have started earlier.

1
616263
164