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

What are the practical issues with potentially being wrong for one day by at most one second?

comment 4y ago · link · parent

We change our clocks twice a year by an hour I think we could handle an hour every millenia.

comment 4y ago · link · parent

Got it, yeah so that tracks then, thanks.

comment 4y ago · link · parent

As an adult? For what?

I was born in 1991 and I haven't used one since I was in 9th grade and made a girl a 'mix tape'.

comment 4y ago · link · parent

Right I want to know what the construction step is in this case, but that makes sense that there's multiple approaches.

comment 4y ago · link · parent

> remember those?

Not really tbh. I haven't used a CD in my adult life. I remember "burning a CD" was a thing and that's about it.

comment 4y ago · link · parent

Maybe this is a really dumb question but how does one use a read-only filesystem? Can you mount it as writable temporarily or something?

Or is it that you create a compressed 'file' that you can mount as a file system? Like a zip file kinda I guess?

comment 4y ago · link · parent

It's a bit of a shame that Rust's stdlib doesn't have a "fast but less safe" hasher. It's one of the easiest performance optimizations in my experience because it's very rare that an attacker controls input to your hashmap in a way that can actually lead to a DOS.

Not that it doesn't happen, it's just not something I've run into.

Just today I was testing out the performance difference hashing some Scylla queries and got nearly 2x faster hashing moving to fxhash.

comment 4y ago · link · parent

That's probably the #2 thing for me. The other is that I have a `~/workspace` where I put all of my projects and sometimes I ripgrep through there.

comment 4y ago · link · parent

Have you worked in a monorepo? There can be 100kloc or more, easily, as well as tens or hundreds of gigabytes for build artifacts/ compilation artifacts, etc that you'll want to skip over.

For scripts I'll still use grep sometimes for the portability reason, naturally.

comment 4y ago · link · parent

Defeats the purpose of meeting up with them then

comment 4y ago · link · parent

> Dr. Cacioppo’s research found that being alone and loneliness are different but related. Social isolation is the objective physical separation from other people (living alone), while loneliness is the subjective distressed feeling of being alone or separated. It’s possible to feel lonely while among other people, and you can be alone yet not feel lonely.

Alone but not lonely, life hacked.

comment 4y ago · link · parent

Once again not caring about spending time with people in person turns out to be the ultimate survival life hack.

comment 4y ago · link · parent

> I disagree that the vast majority of commit messages are you describe.

Sorry but I feel like you have to be just in denial then.

> But even if that were the case, I don't think the majority of commit messages being bad would mean they don't matter.

OK but I think if it's the case it's fair to say hte majority of developers don't agree, whereas you stated it was an industry wide opinion that they are. I think commit messages are mostly stupid and the git UX is absolute trush. Theoretically, if the git UX weren't trash, they could matter, but it is so they don't.

comment 4y ago · link · parent

> software development as a whole decided on a pretty stable set of comments that are considered helpful.

I have no idea what you're talking about.

comment 4y ago · link · parent

lol the linux kernel also uses mailing lists

comment 4y ago · link · parent

This assumes that people work in logical, sequential chunks. I don't. I do a little here, a little there, and then it all starts to form the larger picture.

comment 4y ago · link · parent

Does anyone actually review PRs commit by commit?

comment 4y ago · link · parent

Not sure there's evidence there. I bet if you look over the vast majority of commit messages you will find that they're "lol fuck" or "whoops".

The reality is that developers convey intent through pull requests and rarely go through a commit log.

Most people use commits as "ctrl s", which means commit messages are just some dumb shit in the way of me backing up my files.

comment 4y ago · link · parent

It's a computer. That's the impressive bit.

comment 4y ago · link · parent

Yes, this can pop up in any library. But only because developers aren't taught "don't put remote code execution into your code". You'd think that would be something that someone would teach, but it doesn't really come up. Remember that log4j was vulnerable because of a feature - it all worked as designed.

comment 4y ago · link · parent

Yeah, honestly there's probably just a few libraries you're going to have to care about re: keeping up to date. Everything else can get updated opportunistically/ on some cadence. Your exposed attack surface for most software is pretty much your TLS library and network stack. The more mature you become the more of the attack surface you can try to track.

But basically if you just subscribe to a few projects' releases you can pretty easily get things pushed to you when it matters.

comment 4y ago · link · parent

That's exactly right - it's about risk. No one has "perfect" operations/ security. They have a threat model and a risk tolerance.

comment 4y ago · link · parent

Just patch on a cadence and assume you've got some vulnerabilities lying around. When there's something serious like log4j, pull the lever to update asap. I think you're overcomplicating this.

It'd be cool if devs didn't suck ass at writing code but that's the world we live in.

comment 4y ago · link · parent

Do you have a guide for this that you'd recommend?

comment 4y ago · link · parent

All you have to do is do reverse DNS resolution, which an ISP is in an excellent position to do.

comment 4y ago · link · parent

Interesting, I'd never considered such a scenario. Thank you.

comment 4y ago · link · parent

Yes, I should not have said the certificate, I'd meant SNI. Thank you for correcting.

comment 4y ago · link · parent

If you're doing that DoH doesn't change anything
1
343536
164