Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 6y ago · link · parent

If it makes you feel better, it's honestly probably faster for a certain number of routes or fewer.

comment 6y ago · link · parent

I assume they mean minute relative to cars or something, not minute in an absolute sense.

Just as a sort of thought about this, if the entire web moved to brotli over gzip, or if we introduced an even better compression algorithm that was widely distributed across the internet, what would that impact me? A 5% reduction in CPU usage for every computer loading every page? I'd be curious to hear what that would actually amount to, power-wise.

comment 6y ago · link · parent

As I said in another post,

> This is a very hard problem. It's a regulation on a quality that is a very fast moving target with weak consensus.

Doing this in a regulatory way just isn't viable today.

> the few effective ways

I disagree that they're effective. I don't think they are. Lots of companies with a SOC2 are breached, no company that people consider 'very secure' has earned that reputation due to SOC2 (or any other compliance for that matter).

comment 6y ago · link · parent

Well I think I do understand SOC2 :)

I am well aware of how controls are defined, it was only just an hour ago that I was reviewing our controls with the feedback from our auditor.

comment 6y ago · link · parent

I'm not saying that no human being has ever derived value from a SOC2. I'm saying that the process around SOC2 is a grift.

The fact that it also causes harm to small companies, and detracts from resources for companies that actually care about security, just makes it a particularly harmful grift.

comment 6y ago · link · parent

I call it a grift because it really feels like it. It's this weird "you have to do this or else" thing that provides 0 additional value (SOC2 is not prescriptive, it is just a forcing function, you could have... just done it).

A bunch of unqualified people coming in to rank the unrankable in a vague, gameable, expensive way is my definition of a grift. Then, on top of that, you have a sort of ring of high status organizations that will audit you and charge a fortune, but they've convinced all of these other orgs that their audits are Definitely Better (companies audited by them get breached all the time too), and now you've got this whole racket on top of the grift.

Agile isn't forced on anyone. People won't skip over your product because you're "not really doing agile" or whatever. You don't get forced into yearly audits where you pay some outsider with an "agile certification" and 0 technical knowledge to take up multiple engineers for months to write reports.

This post explains more: https://news.ycombinator.com/item?id=24505894

comment 6y ago · link · parent

SOC2 is exclusively a forcing function, you could have adopted a NIST framework for risk assessment and controls and gotten that same value, and then had an extra 6 figures of budget to implement high value security work.

comment 6y ago · link · parent

Let's oversimplify things and say there are two types of companies:

1. Those who care about security

2. Those who do not care about security

For the (1), SOC2 provides no value, because any structure it lends (it lends none, but you'll end up choosing some NIST thing or whatever) is something you could have implemented for much less money. Remember, you'll spend ~1 full security engineer worth of money/ time, so you could hire a FTE to just do these things. Except you won't be constrained in nearly the same ways.

2. Companies that don't care will just grift the grifters. It's simple - there are lots of easy checkboxes, and most of it is just documenting processes. Anyone who's gone through a SOC2 should see how easy it is to "game" it. It's tedious, but a large company will just hire their way out of it, and have a compliance team that's almost certainly isolated from security.

Because it's gameable SOC2 is far easier for large companies to push off. They can hire a compliance team, call it 'security', and move on. Small companies, and/ or companies that care about security, are left having to dedicate their much more limited resources to compliance over implementing meaningful controls. A small company isn't going to know the many 'tricks' for doing minimal work to pass, which is a really important quality of SOC2 - you want the least policy to pass, otherwise you're setting yourself up for either stagnation or an even longer report next year, since changes between reports have to be documented and go through the process. Large companies can just get away with way more.

As one simple example, let's say you have 1 FTE seceng. For compliance, they could spend N% of their time setting up logging, documenting that logging, writing docs on their IR policy, etc. Or, without SOC2, they could spend N% of their time setting up logging, writing good detections, understanding and exploring their infrastructure, documenting in a much more natural way at a lower cost, etc. And then that budget could go towards improving infra, tooling, training, new hires, etc, to do that work even more effectively.

How many breaches has SOC2 stopped? Because clearly it hasn't been the deterrent in many cases - how many companies get owned, while being compliant, due to unpatched vulns (something any auditor is guaranteed to ask about)? What if they'd spent the few hundred thousand a year on a few more seceng? The way companies scale security puts ~10-500 employees to every seceng, meaning that even cutting a few would be a massive increase in risk.

In short, the companies that are already ignoring security will have no problem doing so when they're large, and smaller companies, or companies that do care, will only be drained by SOC2.

edit: I will also say that,

* I won't state that SOC2 is universally useless.

* This is a very hard problem. It's a regulation on a quality that is a very fast moving target with weak consensus.

comment 6y ago · link · parent

I wish we could just all reject SOC2, it's such a grift. Bankers come in to read some docs (that they don't understand), look at screenshots (that they don't understand), take up 100s of thousands in cash and time, and then write a document (that they don't understand) that no one will read or care about (except to fuel their own SOC2).

The harm is so significant. Tons of these due diligence terms are driven not by any security engineer, but by a legal or compliance team - I've even had members of the security team outright apologize for having to send it over.

comment 6y ago · link · parent

There should be an optimization pass for this, certainly, but the placement new syntax guarantees it.

comment 6y ago · link · parent

Placement new is just avoiding a copy.

Without placement new allocating an object involves:

a) Constructing the object on the stack

b) Copying it to the heap

With placement new you construct the object directly on the heap, thus avoiding a copy.

It's purely an optimization to avoid a single copy. It's a bit surprising that Rust doesn't have it, given the focus on control over such things, and that it had an experimental 'box' keyword for this at 1.0.

edit: To be clear, the extra copy is not guaranteed - compilers can elide it. In order to help the compiler do this you can look at crates like boxext, which provide extension methods on Box that help the compiler to remove the copy. But placement new guarantees this.

comment 6y ago · link · parent

Very cool, TIL.

comment 6y ago · link · parent

AFAIK the current method for hacking in placement new is to use something like this: https://github.com/glandium/boxext

Some more context. There used to be a `box` keyword too. https://github.com/rust-lang/rust/issues/50047

comment 6y ago · link · parent

Thanks, I hadn't seen this. I'm curious about how they compare - it looks like quick-protobuf uses Cow, but I think pb-jelly doesn't?

comment 6y ago · link · parent

> In Rust, for everything you need to do, there's at least 5 different libraries that implement that, all competing with eachother.

That's interesting. This seems like a good thing to me. I've had no issues with microservices in Rust related to having too many crates.

comment 6y ago · link · parent

This is great. AFAIK this is the only protobuf library in Rust that supports zero copy. Maybe this'll help some of the other libraries implement similar features?

comment 6y ago · link · parent

FWIW 150k is plenty to live comfortably, without a roommate, in SF. SF is expensive but not that expensive. Even a 4k 1br (rounding way up, especially these days where you can get a 1br for < 3k) would be 48k/year, and assuming half your money goes to taxes, you could swing it while still putting money away.

comment 6y ago · link · parent

If you were already bought into and budgeting for 4 years of an employee at price X, it seems opportunistic and irrational to then try to cut them to price Y due to an unexpected factor.

As some other CEOs have chimed in, I'll say that my relatively small startup (6 people, but growing) just pays people what they're valued at, regardless of location or business expenses. I budgeted for those salaries - if someone moved to a cheaper area I wouldn't cut their salaries because their location hasn't changed anything for me. Everyone makes enough to live in the bay area comfortably, which means they'll be just fine elsewhere.

comment 6y ago · link · parent

Do you think Facebook or Twitter are threats to national security?

comment 6y ago · link · parent

I suppose I wasn't clear. You did misinterpret what I said, I intended to convey the exact opposite.

comment 6y ago · link · parent

Yeah, not quite related to the linked slides, which are about scaling in terms of productivity, but still a great talk.

I really found that "isolation" is just a key optimization and one of the most useful properties of a system, which they call out in that talk. I wrote about it a bit more in depth here: https://www.graplsecurity.com/post/architecting-for-performa...

I've written our data processing layer and our event orchestration layer as basically an actor oriented system, with push/pull systems in a couple of key places where it makes sense. It's incredible what you can do with strong isolated infrastructure in terms of performance, security, reliability, and quality.

comment 6y ago · link · parent

This doesn't consider that you can then monitor connections to port 22, and if you see any that's suspicious.

Disagree that port knocking is obscurity. That's a secret.

Security through obscurity would be using a nonstandard SSHD service.

comment 6y ago · link · parent

You aren't forced to handle it well, you are forced to handle it.

comment 6y ago · link · parent

Why would the people who refuse to wear masks take a vaccine? They think the virus is a hoax.

comment 6y ago · link · parent

I live in SF. Between the fires and the quarantine, I'm not out much the last few weeks.

comment 6y ago · link · parent

> My experience is that most cybersecurity firms are only slightly better than other enterprises.

They're often worse. I can't recall the study, but one of them looked across industries at software quality, and security products were statistically worse than others. Of course such studies are hard to really feel confidence in, but it isn't surprising.

comment 6y ago · link · parent

It seems interesting that Vitamin D may be so much more prone to false correlations due to the fact that it's tied to going out in the sun, and going out in the sun is what healthy people do. Since so many illnesses and conditions, from psychological to physical, can keep you indoors, one could conclude that vitamin D is really a miracle pill.

I take 1k iu a day, since I barely go outside anymore, but I'd probably cut that in half if life were normal again. I think of most vitamins as a "cover my bases in cases I eat like shit today", not as a "this is going to keep me from getting cancer".

I also found the commentary on metanalyses interesting - they're touted as being very high quality, but of course there's always the garbage in garbage out.

comment 6y ago · link · parent

That's really interesting. I was trying to learn pretty early on, so I could believe that was part of it. But I tried to play around with it in some off time only just a few months ago and I hit a wall on reference types yet again :\

Funny how that works.

comment 6y ago · link · parent

Pony is an amazing language, but I feel like it burned its entire complexity budget. Reference capabilities are really great, but they have this weird special syntax around them, and they're all termed in a very unique way.

I very much want a language like Pony because, as this talk demonstrates, it's doing some incredibly cool and powerful things. But it's pretty confusing.

Rust types like Arc, Mutex, &, &mut, and affine, have been wayyyy easier to learn for me because they aren't totally new concepts - I know what Arc is, Mutex, references are, moves are new but that's just one thing and it wasn't too crazy coming from C++. I know how to convert between these types because they're regular structures, with methods and documentation like all other structures. This is in really direct contrast to my experience with Pony where I had to learn like 6 new keywords, try to map them back to my own reference model, and, worst of all, trying to remember the strange incantation to map between them. I bet this is a "learn it once" thing, and it would be fine if that were the only new thing, but it's not - there are object capabilities, actors, learning the runtime/GC, learning new libraries, etc - there just isn't enough complexity budget in my brain for all of these things.

I contrast this with Rust, which people consider quite hard to learn, and Pony has just been way, way harder. It's a little "too good" - nothing in Pony is unjustifiable, like not having assertions/ failures, but I really want those things! Division by 0 is a perfectly fine thing to define as returning 0, I seriously don't even care, but it's just one more straw.

All in all, I was so hooked on learning Pony at first, totally enamored, and then I just found that I couldn't justify putting in the time.

I ended up writing an actor library inspired in part by Pony for Rust, using macros, and I've been fairly satisfied - though there's much more Pony offers, by far. I'd really like to see more actor model languages crop up, and incorporating many features that Pony has, but maybe making some 'worse is better' decisions in a few places.

1
111112113
164