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

It pretty much addresses your core thesis and shows it to be based on a fictional retelling of history.

comment 4y ago · link · parent

I don't think this paints an accurate picture. This sort of presupposes that C/C++ were a first iteration, but that's not true.

People chose C and C++ for bad reasons, even with historic context. Languages used to be more correct. Algol2 used to validate array subscribting and not have null etc. It was C programmers who pushed languages to be worse because it made it easier to write code.

They very much created this problem and we regressed because of their choices. Things could have been a lot better.

comment 4y ago · link · parent

Obviously the controversy is not regarding any sort of changes made to improve fire safety.

comment 4y ago · link · parent

But that's a scam. Square isn't a scam. They're seemingly very successful...

comment 4y ago · link · parent

It's so strange. Square has good branding. Why would you just drop that completely? Crypto stuff aside, changing the name of your company like this just feels insane to me.

comment 4y ago · link · parent

OpenSSL's use of uninitialized memory to seed entropy was always a terrible idea. The PRNG was fundamentally flawed to begin with.

> Really, it kind of proved the opposite.

Not really. Exploited bugs in cryptographic protocols are extremely rare. Exploited memory safety bugs are extremely common.

> Valgrind and other tools can tell you about memory safety bugs.

Not really.

> Understanding that the fix would result in a crypto bug was harder.

Like I said, OpenSSL's PRNG was brutally flawed already and could have been broken on a ton of machines already without anyone knowing it. A compiler update, an OS update, or just unluckiness could have just as easily broken the PRNG.

Building memory unsafety into the prng was the issue.

Memory safety issues are exploited orders of magnitude more often than crypto bugs.

edit: Also, memory safety bugs typically have higher impact than crypto bugs. An attacker who can read arbitrary memory of a service doesn't need a crypto bug, they can just extract the private key, or take over the system.

Crypto bugs are bad. Memory safety bugs are way, way worse.

comment 4y ago · link · parent

> for example, that something intentionally reads from uninitialized memory.

Sounds terrible. This should never happen in any program, so any behavior relying on it is already broken.

I'm way more concerned by memory safety issues than cryptographic issues. Frankly, history has shown that cryptographic bugs are far easier to shake out and manage than memory safety bugs.

comment 4y ago · link · parent

It only matters if rust runs everywhere that Firefox runs, which it does.

comment 4y ago · link · parent

> Suggesting a tabula rasa rewrite of NSS would more likely be met with genuine concern for your mental well-being, than by incredulity or skepticism.

Why? I don't get it. Maintenance of NSS has to be seriously expensive.

comment 4y ago · link · parent

What's the story like for migrating from Kafka to Pulsar?

comment 4y ago · link · parent

I think in some cases this would effectively mitigate a vulnerability entirely. If you require control over the return address you're basically shit out of luck. A buffer overflow at that point is going to have to target some other function pointer or data, which may not be feasible in a given function.

comment 4y ago · link · parent

Wonderful, thank you.

comment 4y ago · link · parent

That might make sense for Lambdas, but I don't see how that's the case with EC2, or how that's specific to Graviton vs x86 etc.

comment 4y ago · link · parent

The post I was responding to said:

> but assume AWS will price their own stuff lower to win customers and create further lock-in opportunities (

Implying that by pricing Graviton lower users will be 'locked in' to AWS.

comment 4y ago · link · parent

How does Graviton create lock-in? It's ARM.

comment 4y ago · link · parent

> but what crypto scheme can perform encryption of a signature both securely and fast enough

XOR, I assume.

https://pure.tugraz.at/ws/portalfiles/portal/37604654/ind_br...

> On average, encoding addresses and verifying them at each indirect branch using the dedicated blraaz and braaz instructions yields a performance overhead of 1.50%. The protection of the link between indirect control-flow transfers induces a runtime overhead of 0.83% on average. For the combination of both protection mechanism, we measured an average performance overhead of 2.34%.

comment 4y ago · link · parent

I've heard very promising things about pointer authentication.

comment 4y ago · link · parent

I'm not sure I buy that Arc vs Rc won't make a different tbh. I'd have to see some compelling benchmarks, including under contention. I've seen atomics cause cache thrashing, but maybe things have changed? That was also on AMD hardware.

comment 4y ago · link · parent

So the major reason to not use this is... that no one does this. Right?

I wrote up an implementation of this and it was fairly trivial. The properties all make sense - the main change here is swapping poly1305 for blake3. But BLAKE3 promises (and we seem to trust this!) everything Poly1305 does and collision resistance.

comment 4y ago · link · parent

I'm not discounting the side effects, I'm saying they're very rare and don't personally impact me so I don't spend a lot of time harping on research.

comment 5y ago · link · parent

I don't read that as them not being safe. They're trying to explain why there's an increase in some symptoms, symptoms we already know about, post vaccine.

Sadly I can't dig too much into that paper because the page is being really buggy.

But having had three shots now and no symptoms I've stopped really caring much to hear any fear mongering. I'm a lot more concerned by new variants.

comment 5y ago · link · parent

> Yes, and in many of them there are call-out fees and overtime.

Why is that any better than just getting paid overall more? Lots of companies also have internal policies like "if you get called in on a weekend take a long weekend next week" etc in my experience.

comment 5y ago · link · parent

> You're making the assumption that being on-call made some kind of difference to your career progression

Two things.

1) I didn't just put in on-call overtime. I put in "free" hours in general.

2) I'm not really making a big assumption. Unsurprisingly working a lot of hours gave a very positive impression of me and I was able to easily justify raises and promotions when I asked.

Calling on-call hazing or bitch work is stupid, I'm not engaging with this.

comment 5y ago · link · parent

I meant more collectively. But of course, yes, it's sweeping. It'll change regionally, or based on experience, or company culture, etc.

But I don't think it's unfair to say, especially in the US, that software engineers are highly compensated.

comment 5y ago · link · parent

> Congratulations, you are now a $40/hr employee!

Another way of thinking about this is that you've invested 10 dollars of your paycheck into your career. I worked way more than 50 hours a week when I started my career. Subsequently, I was able to drop out of school early (by 2 years, saving 10s of thousands of dollars), get a full time job, increase my compensation by 50% within 2 years, and then by 200% the following year when I changed companies.

By your math I'm sure I was getting paid 1/3rd of my actual compensation. But that has more than paid off in terms of the investment.

comment 5y ago · link · parent

Lots of other fields have on calls or out of work expectations. That's part of the job, and you're compensated highly.

It's not like on call is a shock or something, it's not "whatever they throw at me", it's just... part of the job. My sister is a dentist, she has to be on call sometimes, it's not a shocker or something you don't know when you're signing up for the job.

You're implying that people aren't negotiating, but that's baseless. Software engineers are highly compensated because of these expectations, and we all negotiate accordingly.

comment 5y ago · link · parent

There's a lot of examples of this sort of thing.

1. C++ uses the equivalent of an Arc in Rust, because it can't tell if that reference will be shared across threads. In Rust you can use an Rc and, if you ever need an Arc, it will tell you.

2. Rust's `&str[..]` is safe, C++'s string_view causes tons of UAFs, so string_view is used much less frequently whereas &str is ubiquitous in rust code. In general you can share stack space in Rust easily, even across threads, which is incredibly powerful.

comment 5y ago · link · parent

Did you run into any issues? I've been nervous about taking this approach in our codebase because it doesn't feel totally well worn yet, but anecdotes are exactly the sort of thing that change my mind about that.

comment 5y ago · link · parent

I'm curious about any rough edges.

1. What happens if the Rust code is misbehaving, panicking, etc?

2. What's build support like for this?

I'd love to gut what little Python code I have left and use Rust.

1
737475
164