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

> Results in mice will probably not track to humans,

In this case I don't know if that's true. Total layman, but this sounds like autophagy triggered through an immune response. Autophagy is already promising fro human life extension. This feels like an approach that could be generalizable, even if perhaps the specific antibody might not apply.

comment 4y ago · link · parent

I still think it would be unnecessary to do anything more than what I described, but just at a larger scale. But not the scale of emulating a whole human being. For the most part you're going to be looking for "does this bind with X but not Y" and expanding your set of X and Y is what makes things safer.

I think you could get to human trials using just a computer if you had a sufficiently sized set of emulated X's and Y's.

comment 4y ago · link · parent

> Everyone gets cancer if they live long enough.

Every human. Not all mammals get cancer though. Whales live a very, very long time, and to my knowledge there's no incidence of cancer. In general (and somewhat paradoxically) the larger the animal the less likely they are to get cancer.

comment 4y ago · link · parent

"aging" is a complex set of a number of different issues. Cell senescence is generally considered to be an age related issue.

comment 4y ago · link · parent

Unfortunately when money is an incentive, and money is also a requirement for life, you're not far from threatening to kill people if they don't take your experimental drugs. This is already an ethical concern with human drug testing.

Also, one benefit of mice is, morbidly, that you can immediately kill and autopsy them after treatment. I hope we can all agree that this would probably not be the right call for humans.

comment 4y ago · link · parent

I really doubt you'd start with "Let's emulate every atom of the human body". That's a huge waste of time. The atoms in my toenail are not relevant to most models you'd care about.

You'd probably start off instead by emulating specific proteins. That's already really hard, but obviously a trillion times easier than what you're suggesting.

Once you can emulate a number of proteins you can start to emulate interactions of drugs with those proteins. That's probably going to get you to a good enough heuristic where you can say "ok let's try this on something alive" or "this clearly doesn't work".

This is, to my knowledge, the existing approach being taken. It's just that a single protein is extremely complex. A single protein is a series of amino acids linked by peptides - each amino acid is itself a pairing of numerous atoms.

As you go from atom -> amino acid -> poly peptide -> protein you get a massive increase in complexity.

comment 4y ago · link · parent

Perhaps to discourage 'covid parties' or other purposeful contractions of the virus.

comment 4y ago · link · parent

The legal owner and the Tesla customer don't have to be the same person.

comment 4y ago · link · parent

I agree that relying on companies to be advocates out of good will is not a good strategy.

comment 4y ago · link · parent

I agree, though I think that ideally companies are advocates for their customers. For example, companies have to turn information over to courts, but they can push back on some, and publish transparency reports for others. Yes, they have to comply with the law, but imo a company has an obligation to advocate for their customers.

comment 4y ago · link · parent

I'm losing your point. So, you wanted to patch it, and you couldn't, so how is it bad then that a compiled binary would make patching more difficult?

comment 4y ago · link · parent

In no way is manually writing a patch and then live patching the common situation.

The vast majority of cases, and this has been the case for decades, will be that you take responsibility for your own dependencies, and you let your vendors take responsibility for theirs.

comment 4y ago · link · parent

Presumably it's the same incentive that pushed you to write it the first time.

If you don't want to work on it anymore that's OK too. Open source libraries are generally not held to particularly stringent requirements by the vast majority of people - perhaps accepting an obvious patch in a critical situation, at most.

You obviously can pay people. They're called employees. The thing about employees is that your money translates to business value, which is much broader than a single library. This means that when a single library is done the developer doesn't have to think "ok but what's next for this library" and start adding more code. They can stop and move on to other tasks.

Paying for a single library is nice. I support multiple open source developers because I appreciate their work. I recommend everyone does so.

I don't at all believe it's going to help security though.

comment 4y ago · link · parent

Yes, some places suck. They're going to suck either way. If their system is so backwards that they need to manually patch services because everything is EOL, and compiled code will break their workflow, they have plenty of other shit to deal with.

I don't think we should optimize for garbage companies with garbage practices.

comment 4y ago · link · parent

That's not relevant? The original premise here is "compiled languages will make things worse because they're harder to patch" except:

a) It's very rare to patch things manually

b) It's very rare to develop patches yourself (for 3rd party software)

I'm sure some companies out there with many decades old deployments have to do stupid shit like that, but it's hardly the standard.

comment 4y ago · link · parent

My point is that patching third party binaries is generally not something companies take responsibility for. They wait for vendors to patch the binaries and ship them.

comment 4y ago · link · parent

Presumably you would go ask Oracle, and then patch it when they provide a patch.

comment 4y ago · link · parent

Agreed. In a capabilities system you'd see that, for some reason, your logger requires all sorts of absurd capabilities for no reason.

comment 4y ago · link · parent

Yes, some organizations have so much technical debt that any security work is going to take extraordinarily large amounts of work.

That's a bummer, but I suspect many on HN can in fact build software that isn't total garbage.

comment 4y ago · link · parent

That sounds like it would make debugging very hard for 0 benefit to anyone not using log4j.

comment 4y ago · link · parent

I don't know anything about it but I will say that people tend to audit crypto libraries and tend not to audit logging libraries.

comment 4y ago · link · parent

Code auditing is extremely expensive. I recently did some napkin math and my estimate is that for our relatively small project (a company of ~10) it would cost between 2 and 12 million dollars to have our rust dependencies audited, with Rust making up ~60% of our codebase.

And that's a point in time audit. To maintain that value we'd have to redo the audit periodically.

It's just not gonna happen.

comment 4y ago · link · parent

Honestly, absolutely not, and I think money would be harmful. Lots of software doesn't need a lot of work. It can be simple. When people get paid to solve problems there's an incentive to add more code, to add new domains, etc.

Use the standard java logger and move on, it's that easy.

comment 4y ago · link · parent

This sounds like an ops problem. It shouldn't be hard to tell what's running in your production environment and tie that back to a specific commit.

comment 4y ago · link · parent

I think you could take this further. There's another "log4j" vulnerability out there right now, I guarantee it. It might be exploited, it might not be. But there's no patch.

What are you doing about it?

With log4j you have a brutal combination of:

1. RCE

2. Exposure

RCE happens frequently but often attackers don't have an easy time getting to the exploitable code. With log4j it's trivial - every app can be owned.

But here are some questions:

1. Why do those apps have the ability to make network requests?

2. For the apps that need to make those requests internally, why aren't those over mTLS?

3. For the apps that need to make them externally, why isn't that going through egress proxying?

4. Why are there credentials spewed all over your environment variables across your services? Are they short lived?

It's actually not super hard to have a worst-case scenario vulnerability like log4j be not that bad for your organization. A bit of hardening and even if something like this happens you're in a good position to wait, monitor, and patch.

comment 4y ago · link · parent

A single partition is intended to be processed, more or less, in by a single worker. If one of those messages, for whatever reason, ends up being really expensive, or flaky, you can't move on until you've handled it.

That's head of line blocking.

comment 4y ago · link · parent

> Postgres implicitly creates a transaction for any query modifying data outside of one.

I should clarify. I meant holding a transaction for the duration of the message.

comment 4y ago · link · parent

This assumes that you're creating a transaction per message, which I think is not advisable.

comment 4y ago · link · parent

So SKIP LOCKED is a pretty well worn optimization at this point. People have been doing this for a while.

What kind of TPS are people seeing on queues based on psql?

edit: https://gist.github.com/chanks/7585810

10k/s here, but that was on a postgres from years ago - there have been like 4 or 5 major versions since then I think.

That's a good amount and I'm betting you can push it forward. Further, a queue is trivially sharded since messages are entirely isolated.

That said, Kafka can do hundreds of thousands if not millions of messages per second, so clearly there's room for optimizations.

comment 4y ago · link · parent

Kafka is not a queue. Kafka's parallelism is limited by the number of partitions you allocate, and you have to be sure to avoid head of line blocking.

Not the case with a queue.

1
697071
164