Hacker Newsnew | past | comments | ask | show | jobs | submit | IncreasePosts's commentslogin

Why would we need rust, if the AI can just write really good code in C that doesn't exhibit any of the issues that rust protects you from?

Rust's compile-time checks are actually a nice set of guardrails for LLMs.

Nobody who works with LLM generated code believes that LLMs produce fault-free code.


> if the AI can just write really good code in C that doesn't exhibit any of the issues that rust protects you from?

"if"

If it could you wouldn't need to use Rust. It can't, qed.


'rewrite in C, make sure there are no memory leaks'. You first.

Why is that less realistic than saying 'rewrite in rust, make sure there are no memory leaks'?

My point, which I should have been clearer with, is that we aren't at a state where you can just one shot a rewrite of a complex application into another language and expect some sort of free savings. Once we are at that state, and it's good enough to pull it off, why wouldn't the AI be able to pull it off in C as well?


You don't have to trust the AI to do it with Rust, you just have to ensure certain conventions are followed and you can formally prove you're 'safe' from certain classes of issue, no AI magic dice-roll.

A lot of people are very excited by the idea that now language capabilities (and almost every other technical nuance) somehow don't matter but much like gravity they will continue to assert themselves whether you believe in them or not.

So far humans have proven unable to write large apps in C without those issues, given their work is the training basis for LLMs this creates two problems, one being that they don't 'know' what a safe app looks like either and any humans reviewing the outputted code will be unable to validate that either.


There are classes of bug that are easy to write in C that are impossible to express in Rust.

    let foo = [1, 2, 3];
    unsafe {
        *foo.get_unchecked_mut(4) = 5;
    }
Not sure why Rust evangelists always seem to ignore that unsafe exists.

You can prevent unsafe from being used in a repo with linter rules.

Hmmm... where could the oob access possibly be I can't tell

The Rust ecosystem and build tools are much easier to use than C. The value of a language isn't just syntax.

LLMs are great at C, probably because C is historically the most popular language in the world, by far. It only declined slightly very recently. But there's insane amount of code written in it.

Because it can't?

Have you tried asking Claude 4.6 Opus?

Based on a FIDO2 spec I used it to write a reasonably compliant security token implementation that runs on top of Linux USB gadget subsystem (xcept for attestation, because that's completely useless anyway). It also extracted tests from an messy proprietary electron based compliance testsuite that FIDO alliance uses and rewrote them in clean and much more understandable C without a shitton of dependencies that electron mess uses. Without any dependencies but openssl libcrypto, for that matter.

In like 4 hours. (and most of that was me copy pasting things around to feed it reasonable chunks of information, feature by feature)

It also wrote a real-time passive DTLS-SRTP decryptor in C in like 1 hour total based on just the DTLS-SRTP RFC and a sample code of how I write suckless things in C.

I mean people can believe whatever they want. But I believe LLMs can write a reasonably fine C.

I believe that coding LLMs are particularly nice for people who are into C and suckless.


It can't, because there is no really good code to train off of.

I think that's perfectly fair. The same way everyone knows that chimps are monkeys, it's just brainy losers who insist they're just apes

Yes I agree. All the moreso because the word fish is very ancient and was used to mean any aquatic animal long before Linnaeus came along and decided to "well ackshully" the word.

This is a reach, but do you know where to find the essay I read about someone explaining to King David that a whale isn't a fish and the King laughs at him because his modern mammal explanations are useless and impractical compared to the ones he uses?

I've been trying to re-find it for ages.



Thank you, a refreshingly interesting read

That's like asking why people who shovel shit all day started using backhoes to do their shit shoveling

Trying to protect the strait is a fools errand. Instead, you give them an ultimatum, like trump has done (twice now?). You don't just try to blow up the things that are attacking the strait, you blow up things that let the Iranians build and launch the stuff attacking the strait. Power plants, railroads, airports, highways, industrial sites, etc.

The company was run by someone on the board of directors for ok cupid so it likely was just given

I get the idea that the OkCupid founders & investors did as well as they could with their dating business, and as a "byproduct" they built up a valuable representative database along the way.

Money was already being made off the dating alone, and the accumulating facial data was a no-cost item from the beginning.

Even though the data is mainly just a working foundation for the dating service, eventually the database got so big that lots of value could be extracted in other ways.

It would be difficult to put an exact dollar figure on the value of a database like that itself for sure.

And selling it could be considered unethical in some peoples' eyes, so those in control could very well have decided to start that adjacent facial recognition company in response. After all, regardless of an inaccurately valued asset, OkCupid is not passing the data on to a different company for good. The dating company is not losing anything nor getting any compensation for it. OkCupid just keeps on going like normal while the new face-recognition company springs up.

This is AI. This "limited" facial recognition approach doesn't require ownership of the data, they just needed to "borrow" it for a while.


Well, his amanuenses and slave-daughters wrote them, he just spoke the words

What are you referring to with his "slave daughters"?

If we agree that women statistically have different preferences with regards to video games than men, wouldn't it also be reasonable to think that women might have difference preferences towards careers and hobbies than men?

The past 40 years we went from pinball and arcade machines, to most men playing some sort of game on a personal device (phone, console, computer etc). I could see the next 40 years capturing women in the same capacity given the right infrastructure and content.

I imagine most of that is cultural.

It would be convenient if it's cultural because it would explain why transfeminine nerds retain "masculine" nerdy interests while avoiding a faux pas.

Calling it a faux pas implies that being treated as women is a tiny, inconsequential thing for trans women. It means the world to me.

If I "retained" masculine interests, it's because I still enjoyed them, even after I no longer felt pressure to act like a man.

I played Harvest Moon, Animal Crossing, and preferred beautiful/cute games before I realized I was trans. I probably would have played more if I didn't care about my friends calling me a f--. I also like plenty of "guy" things but so do plenty of cis women. I had this exciting period of trying all sorts of new things when I came out and I'm only just starting to see what I truly enjoy when I don't worry about the opinions of others.


Why? They get a severance which is going to be multiple months salary, as well as approximately $2000/mo unemployment from the state (assuming in California).

Personally, I'd rather just get the money and not have to work, rather than be forced to come into the office knowing I was getting canned in 3 months or whatever


I did not know they got severance. In any case, I'm still not sure I'd prefer that scenario --- coming into your work to suddenly find you've been terminated and subsequently sitting on your ass for a couple months while looking for another job seems pretty emotionally damaging to me, but to each their own.

I got laid off at a previous job and they asked me to stay on six months to train my replacement(s) and finish my project(s). In return I'd get my normal severance and a significant bonus for staying the whole time. I did so and worked hard for the entire time. A few months later I got lunch with my former manager and they informed me they would have absolutely coasted the entire time. In hindsight, I'm not sure why I put the effort in. Live and learn, I guess.

Can you add 3, which only returns content flagged as NSFW?

So I can make sure I know what sites to stay away from, of course


Wouldn't work very well, in that you'd get awful recall.

The way the filter is implemented, it runs after the query has been executed. I'd have to run it at document processing time, code in a pseudo-keyword for the label, and then add that to the query.

It's doable, but I question whether the juice is worth the squeeze.


Asking the real questions.

Or perhaps -2

That's why I never understood sci Fi nerds obsession with outer space, as opposed to inner space. Humans sit about half way between the biggest and smallest things in the universe. Instead of exploring the cosmos, which takes tons of energy and is almost entirely empty, we could be exploring the space between atoms and building worlds without our own world. It is also almost entirely empty, but the energy costs to construct anything would be close to zero.

> That's why I never understood sci Fi nerds obsession with outer space

I'm sure you do understand it. I mean, sure, the other things you mention are also interesting, but mankind has been awed by a starry night's sky since we were able to look up. We gave names to the arrangements of bright things in the skies and imagined gods in them, and navigated by them. The are awe-inspiring.

It's really a human thing, not a scifi nerd's. It's impossible not to look at the stars and wonder. It's human nature.


> It's really a human thing, not a scifi nerd's. It's impossible not to look at the stars and wonder. It's human nature.

Judging by social media, half the population has an unhealthy obsession about travel and tourism. It's not hard to connect dreams of space to interests of most people here: most stars you look at have planets around them, now imagine some of those are like Earth, and now suddenly this is a place to on a cruise to, to have new pictures to post to Instagram.


Observe that ~all sci-fi stories happening in outer space actually don't happen in deep space - there's always a warp drive or a stargate or such used to skip the boring, empty parts, and jump straight to habitable planets and peculiar space phenomena.

It's the same as with sailing stories and reality - the interesting parts are everything that isn't the open blue sea.


~all is ambitious.

Dark Star is one film that directly addresses the long voyage insanity of deep space;

* https://en.wikipedia.org/wiki/Dark_Star_(film)

Similarly with sailing films, particularly documentaries, there are films that focus more on the journey than the endpoints. eg: (IIRC) the Kon-Tiki (1950) doco had a lot of mid ocean time.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: