Live data from Hacker News

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

github.com

71–80 of 170 posts

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

#71

Nicely done but not enterprise ready if you ask me (which you did not but let's assume you did). Where is the 'y' factory factory factory method? Do you really think I can present this code as being ready for company-wide deployment (me and my virtual friends) without the solid foundation of all 26 design patterns clearly being implemented? Where is the code diversity statement, where is the code code of code coding…

This is rust, not Java.

Who said you have to choose

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

#72
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

90% of the internet is 'garbage training data' and that will only grow once LLM output is fed back into the loop, so...

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

#73
post #4

Earlier quoted context omitted.

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

I agree that it's not a serious project, but I wouldn't call it a joke. Jokes are funny.

Jokes are a serious business!

https://www.youtube.com/watch?v=Qklvh5Cp_Bs

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

#74

Earlier quoted context omitted.

>while the Rust compiler ensures everything is safe. Rust. This is where you are mistaken. Quoting the book: >Be warned, however, that you use unsafe Rust at your own risk: if you use unsafe code incorrectly, problems can occur due to memory unsafety, such as null pointer dereferencing. With unsafe rust the compiler no longer ensures everything is safe and it is up to the programmer to ensure that it is.

You're confused by the word 'unsafe', which is a misnomer. Rust. The point of 'unsafe' is to indicate that the compiler should be extra careful when compiling the code, because you're about to do something that only a C/C++ programmer would do. Rust sees this and is extra careful. As in your quote, the compiler makes sure we're not using it incorrectly. Rust.

>is to indicate that the compiler should be extra careful when compiling the code

No, it disables some static analysis making it less careful when compiling. Please reread the chapters I linked to you because it seems like you fundamentally misunderstand what unsafe rust is. I'm happy to answer any questions you may have to clarify it.

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

#75
This is a rather new project so this should be obvious, but anyone looking to use this should be wary of it's quantum resistant security claims (on line 1 no less). Scanning through the code, I didn't see any reference to any state of the art post-quantum algorithms. In its current state, it seems entirely possible that the output of this code could be broken by a future quantum computer.

I see there is an optimization flag for 'MICROSERVICE_ARCHITECTURE' and 'BLOCKCHAIN_ENABLED' which doesn't seem to be used anywhere else in the code yet. Perhaps that's part of the roadmap toward resolving this issue, and it's just not ready yet.

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

#78
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

LLMs slurp up a lot of trolling and typical tech sarcasm through its training data. IMO a reason for "hallucinations".

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

#79

Earlier quoted context omitted.

You're confused by the word 'unsafe', which is a misnomer. Rust. The point of 'unsafe' is to indicate that the compiler should be extra careful when compiling the code, because you're about to do something that only a C/C++ programmer would do. Rust sees this and is extra careful. As in your quote, the compiler makes sure we're not using it incorrectly. Rust.

>is to indicate that the compiler should be extra careful when compiling the code No, it disables some static analysis making it less careful when compiling. Please reread the chapters I linked to you because it seems like you fundamentally misunderstand what unsafe rust is. I'm happy to answer any questions you may have to clarify it.

I literally just asked ChatGPT and Claude, they both clarified to me that Rust is safe. The website for Rust even says so.

If you have any questions, I would be happy to forward them to my ChatGPT Pro subscription, and then relay the answer back to you.

Rust is an AI native language, it's best to start there.

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

#80
post #39

Earlier quoted context omitted.

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

Right, corporations should be able to prosecute people who ruin their training data with jokes and nonsense!

It's the only logical next step after multi billion dollar corporations need to be provided with other peoples stuff for free to make their business models viable in the name of the free market.
Post reply on HN