Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 5y ago · link · parent

I'm a lot less concerned with adding a version number and much more concerned with the additional complexity of having to fetch a dictionary.

comment 5y ago · link · parent

I've wanted to use zstandard with a dictionary, but how do people manage their dictionaries? What if I want to update a dictionary, will that break old compressed data? Do I need to 'tag' the data so I know which dictionary to fetch?

comment 5y ago · link · parent

That's not surprising - lots of the time you want to write what he impact is up front.

It was pretty easy to just click "Documentation" and see more: https://vercel.com/docs

> Vercel is a cloud platform for static sites and Serverless Functions that fits perfectly with your workflow. It enables developers to host Jamstack websites and web services that deploy instantly, scale automatically, and requires no supervision, all with no configuration.

Seems fairly clear what it does.

comment 5y ago · link · parent

We use GSuite SSO with Context Aware Access and other such policies to gate access to the browser. So that means that we could give out access via CloudShell, and now those commands are gated by those same policies. That's really nice from a security perspective.

In our case, since we do development in a ChromeOS environment, and the browser is relatively isolated from the Linux VM, it also likely prevents classic SSH-hijacking.

comment 5y ago · link · parent

You can SSH via AWS Systems Manager.

https://docs.aws.amazon.com/systems-manager/latest/userguide...

comment 5y ago · link · parent

As someone who uses Rust, "more features" is not a win. Most of the time it rarely impacts me - especially in Rust it seems that a "Box" here or there can fix code at the potential cost of performance.

But there are cases, often for libraries, where features can be quite helpful and make me faster. If a feature is basically "make code that should have already worked actually work", that's a huge win.

A lot of Rust features tend to be that. It's like "OK, we have 'impl trait', but it only works in some places. Let's let it work in more places." So,yeah, sure, that's a new feature - impl trait in new positions - but it's really just supporting code that many people would have expected to work.

I see this GAT feature similarly. It wouldn't be hard to "accidentally" try to have a generic associated type - in fact, I have probably run into this myself. And so GAT isn't really adding more complexity to me, it's just unlocking code that I would have already written.

Similarly, with GAT, we can unlock 'async' in traits. I already know 'async', I know it on functions and methods. So this is, again, just making an existing feature more consistent.

comment 5y ago · link · parent

What incentive would they have to lie, given they're losing their business? Besides, I've known them for years.

I'm not sure what you mean with regards to a person or agency. There are multiple people and agencies that failed drastically here.

comment 5y ago · link · parent

Honestly, for a severe finding like this in their product I think they should have:

a) Paid out a bonus anyways for the finding (bug bounties do this often, certainly we did at Dropbox)

b) Made this scoping issue more explicit somewhere

comment 5y ago · link · parent

I mean I literally talked to them about it.

comment 5y ago · link · parent

Townsend just closed, and I'm pretty upset about it. 40 years. The waiter was there for nearly 20 - an amazing guy. They had no intent to close, I used to see the owners bringing food to people, they'd talk to me, clearly loved their jobs.

Just so sad to see it go. Restaurants make a city. They're critical to its culture and the lifestyle of those who live there.

I don't know that this is the right or wrong decision, but it's just awful that this is happening, and we need to acknowledge how fucking terribly this has been handled.

comment 5y ago · link · parent

Lock-In is dead simple to avoid with AWS. Even with Lambda, which people tend to point to and say "lock-in!". Even now we've got lambdas running Docker containers.

It's a total boogeyman and I've never heard anyone care about it except on HN, where it comes up constantly.

comment 5y ago · link · parent

Going off of memory, happy to be corrected.

So something like pbkdf2 is intended to be "CPU hard" ie: it bottlenecks you on CPU. Then people started using GPUs for pbkdf2.

So we got bcrypt, which is CPU hard and uses enough memory that a GPU stops being particularly practical.

And then people build ASICs to bruteforce bcrypt faster. So we got scrypt and argon2, which are memory hard.

But the thing is that even PBKDF2 is pretty good. You can always just bump up the iteration count for PBKDF2 to increase security. I use a combination of PBKDF2 and bcrypt myself (pbkdf2 on the frontend, bcrypt on the backend).

comment 5y ago · link · parent

Seems weird. We have MDM at my company and there's no way I can "spy" on your phone or otherwise perform rootkit like work. It all goes through a work profile, which is isolated from your personal apps/ information.

comment 5y ago · link · parent

Pretty cool, but not quite the model I want.

comment 5y ago · link · parent

Like RedShift? AWS uses S3 as a database, seems reasonable that their customers would.

comment 5y ago · link · parent

Instead of processing 10 messages off of SQS per lambda we process 10, then start polling for more using the same lambda, and don't stop until the lambda is just about to die.

comment 5y ago · link · parent

If you want to compare two things that are different in a ton of ways, don't be mad when someone points it out.

comment 5y ago · link · parent

Yep, but I prefer to care about manually fetching data from SQS. It's a weird system, but due to our data model there are many benefits to processing as many messages in a given lambda as possible.

comment 5y ago · link · parent

Yeah, I'd be curious to see how much money we'd save with Fargate.

comment 5y ago · link · parent

My lambdas run indefinitely. It's a bit silly, but basically every lambda spins up a bunch of threads, pulls messages, and then pushes them into internal buffers to be processed. There are reasons for this.

What I care about is: * Scale to 0, and automatic scaling up without configuring it

* Automatic patching of the OS

* Fault isolation

Lambda gives me that. So each one runs for 15 minutes, processing all data in an SQS queue.

I do wonder if Fargate would be cheaper per millisecond? Dunno.

comment 5y ago · link · parent

I think everyone is already aware of the fact that AWS is a company.

comment 5y ago · link · parent

My lambdas run for 15 minutes. I feel that they're still a great choice :)

comment 5y ago · link · parent

This is awesome. As the CEO of a startup, holy crap, the legal and financial garbage I have to sit through is godawful. And lawyers are expensive. And it's something you want to "get right".

Bookmarking this.

comment 6y ago · link · parent

There's a lot of inertia at Google with regards to Rust. Things are happening slowly there, but they're happening. I'm sure it'll be more public soon, but they didn't miss out on the Rust-grab after Mozilla let the project go, even if they haven't been as public about it.

The fact that both Microsoft and Amazon, Google's major competitors, are investing in Rust means that Google would be quite foolish to not be looking as well.

comment 6y ago · link · parent

a) Don't deploy prod to us-east-1

b) Don't stick to a single region/ AZ. Cross-region/AZ failures are quite rare

c) If AWS goes down a huge portion of the internet is fucked. Customer expectations are totally different. When 90% of the internet isn't loading images no one's coming to you to complain.

d) The fire is elsewhere. Someone else is on it. At worst we spend some time trying to work around it, at best we work on other things while we wait.

comment 6y ago · link · parent

You can't "run" C, or Go, or Javascript, etc.

comment 6y ago · link · parent

I honestly find it so annoying when return types aren't annotated. It's considerably less overhead for me when I can look at the signature and see the return type, even if a few characters are added.

comment 6y ago · link · parent

A nice method I've found (and seems popular) is to use unsafe but use a debug_assert!. That way your tests will fail loudly if you hit the assertion, but you won't take a hit in production.
1
107108109
164