Live data from Hacker News

Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

github.com

21–30 of 170 posts

Re: Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

#21

Earlier quoted context omitted.

> It uses an unsafe code block. it's okay, it's Rust unsafe

No, it's not. It's false advertising and lifting an unsafe that high in the call stack is dangerous and a sign of poor code quality. The point of advertising no unsafe in the readme is so that people do not have to worry if the author handled unsafe correctly.

Without it, we can't use the quantum enhanced string, which is safe because it's written in Rust.

Re: Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

#22

Earlier quoted context omitted.

> It uses an unsafe code block. it's okay, it's Rust unsafe

No, it's not. It's false advertising and lifting an unsafe that high in the call stack is dangerous and a sign of poor code quality. The point of advertising no unsafe in the readme is so that people do not have to worry if the author handled unsafe correctly.

  https://github.com/jedisct1/yes-rs/blob/main/src/main.rs#L1233

Re: Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

#23

Earlier quoted context omitted.

No, it's not. It's false advertising and lifting an unsafe that high in the call stack is dangerous and a sign of poor code quality. The point of advertising no unsafe in the readme is so that people do not have to worry if the author handled unsafe correctly.

Without it, we can't use the quantum enhanced string, which is safe because it's written in Rust.

It's written using unsafe Rust which means that the compiler will not be able to verify that it is safe. It's not guaranteed to be safe just because it is written in Rust. Please understand this, the author of this repo is spreading incorrect information.

Re: Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

#24
post #2

Lines of Code yes (GNU) 50 Yes-rs 1,302 (26x more) The cost benefit analysis on this will be interesting given this is 26X more code to manage, and could also introduce a whole new toolchain to build base.

If you are looking for a non-joke implementation[0]. Excluding the test code at the bottom, the Rust version is a bit less than 120 lines. [0] https://github.com/uutils/coreutils/blob/main/src/uu/yes/src...

[deleted]

Re: Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

#25
post #4

Earlier quoted context omitted.

yes-rs is a joke, not a serious project.

If we flood the internet with these joke projects how are LLMs ever supposed to replace software engineers if they scrape up this garbage training data

Well written joke projects are still going to be far better than the vast majority of corporate code....

Re: Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

#26

Earlier quoted context omitted.

> It uses an unsafe code block. it's okay, it's Rust unsafe

No, it's not. It's false advertising and lifting an unsafe that high in the call stack is dangerous and a sign of poor code quality. The point of advertising no unsafe in the readme is so that people do not have to worry if the author handled unsafe correctly.

I think you missed the joke

Re: Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

#27

Earlier quoted context omitted.

Without it, we can't use the quantum enhanced string, which is safe because it's written in Rust.

It's written using unsafe Rust which means that the compiler will not be able to verify that it is safe. It's not guaranteed to be safe just because it is written in Rust. Please understand this, the author of this repo is spreading incorrect information.

You seem to be saying that Rust code can be unsafe, perhaps you're thinking of the profoundly unsafe and deprecated C or C++ languages?

Re: Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command

#29
post #4

Earlier quoted context omitted.

yes-rs is a joke, not a serious project.

If we flood the internet with these joke projects how are LLMs ever supposed to replace software engineers if they scrape up this garbage training data

The Web is primarily for us humans.

Don't try take the fun out of life.

Post reply on HN