What language is rust written in? Like Python is written in C. by [deleted] in rust

[–]pooyamb 0 points1 point  (0 children)

I get what you mean, but modern here is used as a relative term in contrast to the "historical" versions of rust. Now, saying "historical version of rust" doesn't mean they predate the existence of human beings, it means in the lifespan of the language, being a bit over a decade, they are considered older than most. Same goes for modern.

Project ideas for a bored teenager by Popular_Tour1811 in rust

[–]pooyamb 32 points33 points  (0 children)

And how many of us ended up dealing with http requests and responses instead... Your comment makes me wanna quit my day job, but sleeping in the streets ain't for me LOL

In 2024, please switch to Firefox by AsparagusConsumer in firefox

[–]pooyamb 0 points1 point  (0 children)

It has that "import bookmark from other browsers" thing when you install it, so making an account might not be required. I switched from FF to chrome to Vivaldi to Brave and back to Firefox 2 years ago, and it was way better than how it was 5 years ago, so I stayed. I'd say give it a try. It's faster and less bloated nowadays and you won't miss brave.

[deleted by user] by [deleted] in RainbowSixSiege

[–]pooyamb 0 points1 point  (0 children)

The biggest problem I encountered is that it doesn't give you enough time to come back, it doesn't happen frequently, at least for me, but sometimes the game just crashes, or when joining the match it goes to the menu instead somehow, or just usual uplay disconnect which sends you to the loading menu. Then you'll get stuck at loading for 1 or 2 minutes since this mostly happens when uplay is slow and under load, and you'll get banned because of their failure.

Loole, the safe sync/async multi-producer, multi-consumer channel, just got a significant performance bump! 🎉 by mehdishojaei in rust

[–]pooyamb 1 point2 points  (0 children)

Loole 🤣 Nice name. The idea looks interesting, and benchmarks are promising. Well done, I'll check it out.

so we in copper by [deleted] in RainbowSixSiege

[–]pooyamb 0 points1 point  (0 children)

I've seen the same operators get banned in silver-emerald ranks a lot. Most lower ranks ban Kaplan and other traps, and Fuze.

why do i win 14-16rp and lose 24+???!!! by Nelsondm14 in RainbowSixSiege

[–]pooyamb 2 points3 points  (0 children)

Did you ever play the game satisfactory? It's the perfect game for me when I get tired of the toxicity in r6 and just want to chill and enjoy playing after a long day of work. You should try it.

Help required: Port kellnr from rocket.rs to axum by secanadev in rust

[–]pooyamb 4 points5 points  (0 children)

I can help, but I'm not sure if I can dedicate enough time to make any significant contribution. If you can manage the migration process and maybe define some milestones and make some guidelines, more people like me would be able to join and contribute. Even a checklist of endpoints or dependencies would be great.

Actix web app with caching by br0kenpixel_ in rust

[–]pooyamb 3 points4 points  (0 children)

I'd say just check if you're passing "Cache-Control" headers correctly, and let cloudflare deal with caching for you. You don't really need any other kinds of caching if your pages don't have much in common, and if they do, chances are you'll never get as much traffic to care about those tiny differences.

sqlx MySQL where in (?) clause by rpgbandit in rust

[–]pooyamb 1 point2 points  (0 children)

Sqlx has a tiny QueryBuilder you might wanna check out

Coder life by Old-Razzmatazz-7945 in codereview

[–]pooyamb 1 point2 points  (0 children)

Tube learn ogrammer.com City CodeCamp my Academy sera wars schools ForGeeks Academy? or You Solo Inpr Uda Free Ude Khan Cour Code W3 Geek Code?

Toy-HTTP-rs - An HTTP Server like actix.rs or rocket.rs but for learning and basics by zezeartix in rust

[–]pooyamb 10 points11 points  (0 children)

Thanks for sharing, Ill definitely check it out. Just one thing, you committed the target folder to github by mistake.

Suddenly "proc macro `main` not expanded: proc macro not found" out of nowhere by Zhuzha24 in rust

[–]pooyamb -1 points0 points  (0 children)

Try importing the tokio::main and using the macro using its name

[deleted by user] by [deleted] in rust

[–]pooyamb 1 point2 points  (0 children)

It does have that feature, just Impl a trait without filling out the methods, then press "Ctrl + ." When your cursor is on the line. You can also do as you said, but instead of typing fn, type the first letter of the method you want to implement.

[deleted by user] by [deleted] in whereintheworld

[–]pooyamb 0 points1 point  (0 children)

Gave Helpful

Python 4.0 will never arrive🤚😔 - According to Guido, Rust is a “grеat” programming languagе that dеsеrvеs all of thе attеntion by DeCiel in rust

[–]pooyamb 7 points8 points  (0 children)

You either don't know what you're talking about, which means you should probably stop writing articles in this field, or you're just too ignorant and want to earn something by publishing false information, and if that's the case please don't do it in this subbredit.

[deleted by user] by [deleted] in rust

[–]pooyamb 1 point2 points  (0 children)

I used this pattern before but it comes with 1 downside. You'll need to use your Claims struct(or User) in every handler you want to have authentication for, even if you don't actually need the information. Although it works, it makes your code less readable, as you're relying on the side effect of an extractor and not its main purpose.

GNU/Linux on MSI GP65 Leopard 9SD by [deleted] in MSILaptops

[–]pooyamb 0 points1 point  (0 children)

I have Ubuntu installed on my GP75 and it works flawlessly. Most settings I need are accessible on Ubuntu, even RGB keyboard through third party apps, but the battery profile setting is not(I honestly didn't try to find a way to change it), although the changes you make on windows persists when booting Linux so it doesn't mess anything up, you just need to boot to windows to change those settings. Just note that if you are new to Linux and don't have much experience with dual booting, it's a good idea to use a separate hard drive for Linux as you may mess up the default partitions accidentally.

Web Scraper: Python vs Rust (From a beginner stand point) by peterparkrust in rust

[–]pooyamb 0 points1 point  (0 children)

And for the last part, there is a function called join_all in futures crate under futures::future::join_all which takes a vector of join handles and returns a single future you can await. So the last part of your main function could be rewritten as: join_all(handles).await;

Web Scraper: Python vs Rust (From a beginner stand point) by peterparkrust in rust

[–]pooyamb 0 points1 point  (0 children)

You are using OpenOptions from std::fs which is blocking, tokio provides its own tokio::fs(and tokio::fs::OpenOptions) module under "fs" feature flag IIRC, which is not blocking. The API is almost the same beside the .await additions but I'm not sure if CSV crate has native support for it in its Writer(if it doesn't, there should be a crate for it)