logoalt Hacker News

nikcubyesterday at 8:34 PM4 repliesview on HN

It's becoming apparent that it requires more tokens to secure code than it does to write it

May even be an order of magnitude more


Replies

Mtinieyesterday at 8:45 PM

In all seriousness, wasn’t that always the case? Writing bad code is relatively cheap.

Ensuring code isn’t bad is the expensive part.

tptacekyesterday at 9:00 PM

For now, maybe, yes? But the most important targets of this kind of work aren't AI outputs; it's legacy code, particularly (but not exclusively) old memory-unsafe code. In those situations the figure of merit isn't the token cost of recreating the target code; it's the cost of finding the same bugs with humans or preexisting tools.

Those costs can be extremely high.

show 2 replies
windexh8eryesterday at 9:53 PM

Given the slop that's made its way to Github we can see that this is a great profit model. Ship slop and then "fix" slop. What an efficient use of our planet!

bfleschyesterday at 8:56 PM

It's weird because why can't they train the AI to simply output secure code?

The basic security flaws with regards to input validation and overflows should never ever be output by an AI. For "security flaws due to bad design" I'll cut them slack until AGI is achieved.

show 1 reply