logoalt Hacker News

feverzsjyesterday at 11:26 AM9 repliesview on HN

It's a transpile. And not even a good one. The generated code is far from idiomatic rust. Some may consider it an abomination.


Replies

daishi55yesterday at 12:30 PM

Seems to be working just fine though?

And like, this is just the beginning of the port. They did a mechanical port basically line by line, next step is to make it idiomatic rust.

I thought by now people would’ve learned to stop betting against this rewrite.

show 2 replies
variadixyesterday at 1:38 PM

Yeah I don’t understand this port at all other than as a big marketing stunt.

It would have made far more sense, for reliability, efficiency, cost, etc., every metric really, to use or write a source to source translator that preserves as much structure from the original code as possible. Typically if you do a rewrite there are lessons learned from the existing code base that you want to take into account when doing the rewrite; using a bunch of agents to do the porting file-by-file buys you none of that. In either case the code will be an unidiomatic translation, just with LLMs you get an added source of indeterminism and a huge bill at the end of the month.

brabelyesterday at 11:54 AM

Can you show some examples of abominable Rust code they have?

ameliusyesterday at 12:04 PM

Why not transpile directly into LLVM IR?

show 2 replies
brown9-2yesterday at 12:43 PM

Is it important to be idiomatic if the project meets its goals around memory safety?

show 2 replies
alexandra_auyesterday at 11:41 AM

grep -nr 'unsafe' .

Is all you need to know to consider how much of an abomination it is

show 2 replies
luckydatayesterday at 5:41 PM

given enough time and tokens, it will become that. I really don't understand how that is a problem in any way.

vips7Lyesterday at 7:19 PM

LLM code has always been an abomination.