13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 8mo ago · link · parent
The second you throw a novel constraint into the mix things fall apart. But most devs don't even know about novel constraints let alone work with them. So they don't see these limitations.
Ask an LLM to not allocate? To not acquire locks? To ensure reentrancy safety? It'll fail - it isn't trained on how to do that. Ask it to "rank" software by some metric? It ends up just spitting out "community consensus" because domain expertise won't be highly represented in its training set.
I love having an LLM to automate the boring work, to do the "subpar" stuff, but they have routinely failed at doing anything I consider to be within my core competency. Just yesterday I used Opus 4.6 to test it out. I checked out an old version of a codebase that was built in a way that is totally inappropriate for security. I asked it to evaluate the system. It did far better than older models but it still completely failed in this task, radically underestimating the severity of its findings, and giving false justifications. Why? For the very obvious reason that it can't be trained to do that work.
comment 8mo ago · link · parent
You can minimize these problems with TLC but ultimately it just will keep fucking up.
comment 8mo ago · link · parent
comment 8mo ago · link · parent
1. Ancient egyptians ate fucktons of wheat and barley, lentils, chickpeas, etc. They ate massive amounts of fiber lol I mean holy fuck I just can't believe how wrong you are?
2. Fiber is very, very well understood by ALL health organizations to be preventative for colon cancer.
comment 8mo ago · link · parent
Very high.
> But if a person is regular and does not have any gut issues, how would more fiber help?
There is a ton of research about this and it's why WHO and other orgs state explicitly that fiber reduces rates of colon cancer.
comment 8mo ago · link · parent
If it's the former, I'm ambivalent. I don't give advice as a general rule. If it's the latter, I find that totally silly.
comment 8mo ago · link · parent
Well, you said "can't" and I asked "why", which feels very reasonable to me. Your argument seems to be that it wouldn't account properly for the data - specifically, you're saying we would have seen colon cancer rates rise earlier.
> Western diet collapsed its fiber intake well over 80 years ago - it would have shown up already.
I don't really buy this for a lot of reasons. Probably the two most important are (a) ability to screen historically and (b) the timing isn't particularly "off" for the fiber argument. We did see it already, we've been seeing increases in color cancer risks for decades.
Now, I'm not married to it "just" being fiber whatsoever, but if I were to "bet" on the major contributing factor, naively, that's where my money would go. I think it's very reasonable to not place your bet there.
comment 8mo ago · link · parent
It's a bit hard to tell from your post what you're saying. Certainly I can imagine being annoyed by constantly being given health advice from layman. But this is... a forum.
comment 8mo ago · link · parent
> Why would more fiber help?
Because there is an incredible amount of research into high fiber diets being good for your gut, including reduced colon cancer rates. This is the consensus of various organizations such as WHO - high fiber diets have lower risks of colon cancer.
comment 8mo ago · link · parent
comment 8mo ago · link · parent
It's funny how fast it is to just implement a counter and how much people rely on UUIDs to avoid it. If you already use postgres somewhere, just create a "counter" table for your namespace. You can easily count 10K-100k values per second or faster, with room to grow if you outscale that.
What do you get? The most efficient, compressible little integers you could ever want. You unlock data structures like roaring bitmaps/ treemaps. You cut memory to 25% depending on your cardinality (ie: you can use u16 or u32 in memory sometimes). You get insane compression benefits where you can get rows of these integers to take a few bits of data each after compression. You get faster hashmap lookups. It's just insane how this compounds into crazy downstream wins.
It is absolutely insane how little cost it is to do this and how many optimizations you unlock. But people somehow think that id generation will be their bottleneck, or maybe it's just easier to avoid a DB sometimes, or whatever, and so we see UUIDs everywhere. Although, agreed that most of the time you can just generate the unique id for data yourself.
In fairness, UUID is easier, but damn it wrecks performance.
comment 8mo ago · link · parent
There are numerous academics in this area though who I suspect would be quite interested in discussion, and I'd point you towards the Stanford Encyclopedia of Philosophy as the defacto resource for these topics.
I'm actually quite sick with a fever currently so you'll have to excuse me for such a brief response, I'm barely awake as it is.
comment 8mo ago · link · parent
comment 8mo ago · link · parent
I completely agree that LLMs are great when instructed to provide provable, repeatable exploits. I have done this multiple times and uncovered some neat bugs.
> I can't really confirm the part about "local" bugs anymore though, but that might also be a model thing.
I don't think it's a model thing, it's just a sort of basic limitation of the technology. We shouldn't expect LLMs to perform novel tasks so we shouldn't expect LLMs to find novel vulnerabilities.
Agents help, human in the loop is critical for "injecting novelty" as I put it. The LLM becomes great at producing POCs to test out.
comment 8mo ago · link · parent
1. Producing new tests to increase coverage. Migrating you to property testing. Setting up fuzzing. Setting up more static analysis tooling. All of that would normally take "time" but now it's a background task.
2. They can find some vulnerabilities. They are "okay" at this, but if you are willing to burn tokens then it's fine.
3. They are absolutely wrong sometimes about something being safe. I have had Claude very explicitly state that a security boundary existed when it didn't. That is, it appeared to exist in the same way that a chroot appears to confine, and it was intended to be a security boundary, but it was not a sufficient boundary whatsoever. Multiple models not only identified the boundary and stated it exists but referred to it as "extremely safe" or other such things. This has happened to me a number of times and it required a lot of nudging for it to see the problems.
4. They often seem to do better with "local" bugs. Often something that has the very obvious pattern of an unsafe thing. Sort of like "that's a pointer deref" or "that's an array access" or "that's `unsafe {}`" etc. They do far, far worse the less "local" a vulnerability is. Product features that interact in unsafe ways when combined, that's something I have yet to have an AI be able to pick up on. This is unsurprising - if we trivialize agents as "pattern matchers", well, spotting some unsafe patterns and then validating the known properties of that pattern to validate is not so surprising, but "your product has multiple completely unrelated features, bugs, and deployment properties, which all combine into a vulnerability" is not something they'll notice easily.
It's important to remain skeptical of safety claims by models. Finding vulns is huge, but you need to be able to spot the mistakes.
comment 8mo ago · link · parent
I think that's fine. I'm actually sort of agnostic about it myself. I find nothing particularly striking about brute facts or contingencies, certainly it's not magical to me, but I wouldn't say that they're logically necessary. I find it a bit interesting to consider.
> I think contradiction is a category error for primitives of reality. Conservation is the right view.
It may be interesting as a thought exercise to wonder if non-contradiction could be an emergent property. It would certainly make for an interesting model for the beginning of the universe.
> I expect logic to be necessary for us to reason about primitives. But that logic is the wrong way to think of basis elements. Those are very different things.
I think this would probably be contentious, I think most people believe that logical values are basically "necessary". I don't really know though.
I will perhaps spend some time reflecting on the concepts you're referring to with regards to logic and primitives. I'm not really familiar enough with that sort of grounding or reduction.
> Well thanks for pushing me, I am sure I have taken up enough of your time. But, I am now aware of more philosophical viewpoints on the big questions!
I think that's a very good outcome, thank you for pursuing that, it's always interesting to reflect on such topics, to me at least.
comment 8mo ago · link · parent
The reality is that a huge portion of my time is spent doing similar work and what LLMs largely do is pick up the smaller tasks or features that I may not have prioritized otherwise. Revolutionary in one sense, completely banal and a really minor part of my job in many others.
comment 8mo ago · link · parent
If you are relying on the LLM and context, then unless your context is a secret your competitor is only ever one prompt behind you. If you're willing to pursue true novelty, you need a human and you can leap beyond your competition.