Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think this is the problem, really.

The article rehashes the same arguments the skeptics (I among them) have heard before and expects what, for us to change our opinions..?

I just sat inside a larger code base and tried a simplistic rewrite (using an LLM, so maybe that disqualifies it for you) a C component of ~8k lines to Rust. My first attempt left most of the hard bits in C and some 40 unsafe blocks, the second attempt was finer-grained but with some 100 unsafe blocks - for various other components (subsystems if you will) that it needed to interact with.

That is to say, I look on occasion, I personally would value a better safety net, but it is far from as simple as you imply to actually reap much of that benefit without extensive work on “fat bindings” or progressively rewriting more and more subsystems.

With ~100 unsafe blocks, what have I gained except the complexity of two languages over an FFI boundary? I don’t think much safety was gained.

I accept it can be done better, but in most codebases, like this one, I don’t own all the subsystems, I can’t rewrite the flow to make it more amenable to Rust code and it certainly wasn’t so trivial that an LLM could just translate it into semi-idiomatic Rust.

 help



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

Search: