r_rust🦀
59 subscribers
593 photos
65 videos
36.4K links
Posts top submissions from the rust subreddit every hour.

Powered by: @reddit2telegram
Chat: @r_channels
Download Telegram
Mods Need Input: Dealing with AI Spam in This Sub

Hey everyone, your mod team here wanting to get some feedback on something that's been bugging us for a while now


We've all noticed the uptick in AI-generated posts flooding the sub and yeah, it's getting pretty annoying. Our team is split on how to handle this mess - some of us think AI might have its place while others want to nuke it from orbit


We've been going back and forth on this for like 6 months now and can't seem to land on a solid approach that works for everyone


Look, we want to keep this place focused on actual Rust discussion and learning, but we also don't want to accidentally ban someone's legitimate question just because it might look AI-generated. Plus we're all doing this in our spare time and don't have bandwidth to review every single post manually


Right now we're just winging it case by case. You probably don't see most of our work since we've been quietly nuking the obvious spam posts, but trust me we're dealing with way more of this stuff than you realize


Here's the thing though - we're not sitting here refreshing /new all day long. We browse this sub just like you do, we all have day jobs and other stuff going on. Nobody's paying us to babysit Reddit 24/7


So what do you think? How should we tackle this without making life harder for genuine newcomers or burning ourselves out in the process


Drop your thoughts below or hit us up in modmail if you want to chat about it privately

https://redd.it/1rzkonk
@r_rust
I have a confusion about slicing with String

Hello! I am learning Rust from a Packt course and from what I learned, &str is a variable stored in the byte code of the program after compiling while String is a variable which is stored in the heap when the program runs. I was doing an exercise where I had to run following command:

let cookie_crisp: &String = &cereals[0];

let cookie: &str = &cookie_crisp[..6];

Now cereals is an array of variables of String type and cookie_crisp is a reference to the String type value stored at index 0. So, when I slice it into cookie, why is it &str instead of String. And how is this possible since &str is stored in byte code after compiling. If this data is entered by user at runtime, how is Rust handling this? I am confused. Can someone please help me understand this concept?

https://redd.it/1rzktn9
@r_rust
Strong Portfolio Project

Hii, I am a self-taught developer,and I want to break into the industry. I need project suggestions. I want to make good projects, and it's okay if the difficulty level is hard.

I use Rust for systems programming and Golang for backend. I have created CHIP-8 emulator and a NES emulator (half done, on going), and for backend, I’ve built an e-commerce app, chat app, redis clone and some small tools.

Please suggest some very good projects. Its time for me to get a job. my communication is very poor, and I am very introverted, so I want my projects to speak more for me.



thank u

https://redd.it/1rzlzmk
@r_rust
This media is not supported in your browser
VIEW IN TELEGRAM
I built fv – a zero-config terminal file browser in Rust (2.3ms startup, 8MB memory)
https://redd.it/1rzo4zl
@r_rust
Courier-http: Rust based POSTMAN alternate. Fully Local. Need suggestions and review.

Hi.
While learning and practicing Rust, I created a POSTMAN alternate as a desktop App in Rust and Tauri.
at https://github.com/Suhird/courier-http
Let me know what you guys think about it.
Would also appreciate any kind of suggestions and reviews.

https://redd.it/1rzmepa
@r_rust
Is every project AI Slop?

I’ve noticed for every project that is shared in this subreddit lately, people always comment “AI Slop”.

Maybe they are AI slop (often the OP is a dead giveaway). But now I fear there’s no avenue to share genuinely useful projects or expand the community, since every post I’ve seen sharing something is typically met with negative reaction.

How do you judge / evaluate what people are sharing? Do you immediately assume it’s AI slop? Do you read the repo or readme? What can we do as a community to promote genuine projects and discourage the slop?

I honestly want to know, because I used to enjoy finding gems in this sub but now it feels pretty negative and hostile, but for reasons with which I somewhat sympathize.

https://redd.it/1rzv09q
@r_rust
Storing data in my Logitech MX Vertical DPI register because why not

tldr; You can store 2 bytes in the DPI register of Logitech MX Vertical

The plan was to use the mouse's built-in flash memory as a small, constant storage device. The mouse moves between computers all the time, so it could technically carry data with it. Well, technically lol

I spent a while trying to find what looked like a nonvolatile storage feature (0x1c00) that had six slots and read/write flags. It seemed like it could be useful, but it's not very practical because macOS's IOHIDManager blocks the long HID++ reports you need to actually talk to it. I guess there are other ways to avoid the IOHIDManager, but yea...

What actually worked was the DPI register. The mouse saves your DPI setting in flash, and it's happy to take any u16 values without any quantisation. I can write any 2-byte value I want, and it'll still be there when I unplug, power cycle, move it to a different computer, and so on

I know 2 bytes are nothing but was still a funny thing to do

Code: https://github.com/timwehrle/mouse-fs

https://redd.it/1rzvvhk
@r_rust
My First Rust project: A Verilog to Factorio Compiler and Simulator (Working RISC-V CPU)
https://redd.it/1s03w2o
@r_rust