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

> The edge cases and quirky impl detail questions are what src is for.

Literally the most important thing you can document.

comment 4y ago · link · parent

This is pretty incredible. These aren't just good practices, they're the fairly bleeding edge best practices.

1. No more SMS and TOTP. FIDO2 tokens only.

2. No more unencrypted network traffic - including DNS, which is such a recent development and they're mandating it. Incredible.

3. Context aware authorization. So not just "can this user access this?" but attestation about device state! That's extremely cutting edge - almost no one does that today.

My hope is that this makes things more accessible. We do all of this today at my company, except where we can't - for example, a lot of our vendors don't offer FIDO2 2FA or webauthn, so we're stuck with TOTP.

comment 4y ago · link · parent

> What is missing is a way forward for getting secret types and the corresponding semantics into LLVM.

Seems crazy that this hasn't happened already given how prevalent and old this issue is.

comment 4y ago · link · parent

Good docs generally make guarantees and pitfalls clear.

comment 4y ago · link · parent

Not who you're asking but... why have documentation at all? So that we don't have to read source code.

comment 4y ago · link · parent

Or moved into its own microservice and then RPC'd to from those other services. But yeah.

comment 4y ago · link · parent

Oh, sure. People are wrong a lot.

comment 4y ago · link · parent

ISBN-13: 978-1491950357 ISBN-10: 1491950358

Here you go, you can read this book and it explains.

comment 4y ago · link · parent

> It's almost as if in order to succeed these days you need to discredit and disparage your competition rather than simply having a better product, and that's why I don't buy into buzz words at all.

Meh. In order to sound smart on HN it's easiest to point at something and call it "hype".

> Microservices are relatively new and unproven

SOA is old as fuck. Microservices are also fairly old, but especially when you consider they're really just SOA + dogma.

> Microservice architecture is also inherently designed to lock a customer into very specific tools that make future migration to any other platform a very costly decision in most cases...

No? Not at all.

> Instead of being charged for one single server annually, on microservices you can be charged for many individual components that run your app independently, and when usage skyrockets, it's a sticker shock that you can only stop by going offline.

Alternatively phrased: If you only use one service you only pay for it, not for the whole suite of features you don't need or want.

> We have also seen enough failures and pain points within microservice and even cloud architectures over the past two years alone to raise questions about whether or not it it indeed a better solution.

And plenty of success stories.

> We need to stop disparaging traditional (non-cloud) hosting and solutions that aren't obsolete at all in this manner, and focus on what works, what is secure, and what is cost effective in order to stay sustainable into the future.

Microservices work, are secure, and are cost effective.

Honestly your post contains no useful information and is satirically close to a "return to traditional family values!" speech.

comment 4y ago · link · parent

POC (tweet + direct link)

https://twitter.com/bl4sty/status/1486092552755466242

https://haxx.in/files/blasty-vs-pkexec.c

comment 4y ago · link · parent

You've never seen partial rollouts of a feature?

comment 4y ago · link · parent

> and they are legit.

How do you know? Do they have a lab certification/ is there a regulating body?

comment 4y ago · link · parent

https://docs.github.com/en/actions/security-guides/security-...

Probably worth checking out this guide. GHA can be a pretty scary thing.

comment 4y ago · link · parent

All A/B testing really implies to me is, at most, crash reporting, which shouldn't be much of a privacy concern.

comment 4y ago · link · parent

It seems pretty straightforward to see what's a keyword vs not tbh

comment 4y ago · link · parent

I don't think many problems are ever "every single person stop everything now". The problem is it should be "those people who are disproportionately responsible, stop them right now, and start funding solutions".

comment 4y ago · link · parent

quickcheck was initially a haskell project, but it's a little absurd to reduce proeprty testing down like that.

I also wouldn't call it overkill. It's trivial to do generated tests.

comment 4y ago · link · parent

Compared to languages without inheritance and with types, primarily. Dynamic typing + inheritance leads + a lot of one liners leads to really hard to read code.

comment 4y ago · link · parent

All that means is that you get more exceptions raised when you use ==. It doesn't help performance at all, it doesn't even really confer anything about types, only that __eq__ is implemented between fewer types.

comment 4y ago · link · parent

Dropbox has some projects around this. I think the idea is totally silly tbh and it flies in the face of Python's type annotations being just that - annotations.

The generated code is pretty hilarious since you end up with HashMaps and dynamic dispatch everywhere.

Much better gains can be made by simply not using Python.

comment 4y ago · link · parent

> Isn't that what attracts so many people to Python in the first place - that it does have strong opinions, and often enforces them on how people should structure their code.

I seriously doubt it. What attracts people to Python is that:

1. It has a big standard library and until the last ~10 years installing 3rd party packages was beyond the capabilities of your average CS student.

2. It is easy to write relative to C++. If you're in data science, those are your two options, so you choose Python.

Python is an extremely loose language - it's not restrictive at all in ways that matter. Is "you can't use two lines (unless you use a \)" restrictive when your language lets you arbitrarily replace functions at runtime?

It's not at all a readable language imo. It is very much write-optimized. It has tons of code golfing and one liners.

comment 4y ago · link · parent

I had one conversation with Guido at Dropbox where I wanted to get a dependency updated so that I could write quickcheck tests.

It was like pulling teeth - he didn't know what property testing was ("some haskell thing?" - his words) and so he wouldn't update it ("are you implying that how Dropbox writes tests today isn't good enough?" - his words), so I couldn't write generated tests.

Sort of ironically, property testing was used elsewhere in the company to great success, and in fact we were all told the scary story of the 1 hour where empty passwords let anyone log into any account - a bug that a proeprty test is very well designed for.

I walked away pretty embarrassed for him and decided I wasn't interested in further interaction.

comment 4y ago · link · parent

It's more that Linus:

1. Didn't understand the attack

2. Doesn't understand security

3. Doesn't care

He's shown this repeatedly for decades.

comment 4y ago · link · parent

Yes. He chose to design his system with no ability to migrate and use a hash algorithm that was already known to be flawed.

https://www.metzdowd.com/pipermail/cryptography/2017-Februar...

comment 4y ago · link · parent

Gotcha, I wasn't sure if it was the parallelism or the reduced rounds that made the bigger difference.

comment 4y ago · link · parent

And Linus was told of this and, in typical Linus fashion, he dismissed it.

comment 4y ago · link · parent

There shouldn't be any meaningful reduction in security afaik. Most of the performance comes from reducing the number of rounds used because it was shown that it was unnecessary iirc.

comment 4y ago · link · parent

Is this a typical definition of idempotency? One where you have to be idempotent even when another system is in play? I wouldn't expect anything to be idempotent if something else can come along and change arbitrary state.

comment 4y ago · link · parent

Oh gotcha, yeah I don't really know. I've only ever prepared it myself and I've only eaten A4 (once) or A5. Wagyu is definitely broader and therefor a more abusable term, but I haven't had issues since I order it directly and prepare it personally.

I do, however, definitely eat whole ribeyes of A5 lol

comment 4y ago · link · parent

If you buy the 15lb Wagyu ribeye it'll be 40/lb. I do not recommend buying wagyu by the ounce.
1
626364
164