logoalt Hacker News

kikimorayesterday at 12:09 PM3 repliesview on HN

Original RSL library is 36k LoC. And this is C++. Rust should be like 50% smaller, that is, 18k LoC. This library is so big that I bet the author has no idea if it works or not. 1300 test generated by AI say nothing about actual quality.

In the end it is just a lot of unmaintainable code quickly generated by AI.


Replies

pjmlptoday at 6:13 AM

I see no reason for Rust to be shorter than C++,. when using latest standards.

ndryesterday at 1:24 PM

This is uncharitable, but makes a prediction. I imagine you'd bet the author won't be successfully using this, at MS/Uber or wherever they are, in a year time?

Rust makes no promise of being terser than C++, and RSL does less than this considering the optimization.

Also it's only 45/50k LOC so not so very from the 36k LOC.

show 1 reply
zahlmanyesterday at 1:35 PM

Has Rust code generally been found shorter than C++ in practice? I don't see an obvious reason for it.