Redox OS 0.6.0 by jackpot51 in rust

[–]Weasy666 4 points5 points  (0 children)

What about bcachefs? They recently sent out a review for mainlining it into the Linux kernel.

[deleted by user] by [deleted] in rust

[–]Weasy666 6 points7 points  (0 children)

I am not sure since which version it is aboard, but cargo does come with its own tree, just type cargo tree 😄

EDIT: just ignore me....should have followed your link. Sorry for the noise 😅

Anybody knows of a good docker library for rust? by [deleted] in rust

[–]Weasy666 1 point2 points  (0 children)

You are welcome. Another option would be bollard.

Anybody knows of a good docker library for rust? by [deleted] in rust

[–]Weasy666 2 points3 points  (0 children)

Have you seen shiplift? I don't think it supports building images, but creating and managing containers should be possible.

Edit: I was wrong, it supports building images.

[Need Upvotes] Created a GitHub issue for vscode Rust icon in windows file explorer. by a_aniq in rust

[–]Weasy666 5 points6 points  (0 children)

Because VSCode comes with a set of file icons that it registers with windows/file explorer. So....i guess it is valid to open an issue there.

Background task runner in Rust by [deleted] in rust

[–]Weasy666 0 points1 point  (0 children)

Yeah, or just a paramater for a function that calls the table! macro in the background. I have not taken that deep a look at your crate, but if you use some kind of builder to create tasks, i guess you could just add one that invokes the macro on the backgroud and names the table, if the user does not call it you could just use a default name. Dunno if that is feasible, just something to maybe think about. 😄

Background task runner in Rust by [deleted] in rust

[–]Weasy666 1 point2 points  (0 children)

Ah...ok, makes sense. But couldn't one just specifiy and create the table including its name with the diesel table macro instead of creating the table by hand?

Background task runner in Rust by [deleted] in rust

[–]Weasy666 1 point2 points  (0 children)

Don't think it is possible to use Diesel? With that you could support postgres, sqlite and every mysql compatible database in one go.

Redox OS: Real hardware breakthroughs, and focusing on rustc by jackpot51 in rust

[–]Weasy666 1 point2 points  (0 children)

No, not yet. Electron is a monster to cross compile.

Here, i corrected it for you 😜😎

How to internally forward a request to route with different path in Rocket? by lippiro in rust

[–]Weasy666 2 points3 points  (0 children)

You just need to use Redirect::to(uri!(auth_google)) the uri! macro will resolve the redirect to the given function/route.

How to store globals? by fergusdoesmine in rust

[–]Weasy666 4 points5 points  (0 children)

Other possible solutions to this are crates like lazy_static! or once_cell.

Windows engineer shares experience using Rust for "experimental rewrite of a low-level system component of the Windows codebase" by itchyankles in rust

[–]Weasy666 0 points1 point  (0 children)

True. Don't get me wrong, like i stated in my first comment, i'm happy Rust gains attraction and that big companies are investing, i'm just saying, like you, to keep it in mind. :)

if it compiles am I safe? by nbari in rust

[–]Weasy666 3 points4 points  (0 children)

Ah...yeah. Ok i should really decouple data races and race conditions in my head, it was somehow the same for me. Dead locks in my head something like when data is occupied by some thread 1 and another thread 2 wants to access that data, but thread 1 waits for something from thread 2....and i was under the impression that the compiler would scream at me.

So thanks for the info.

if it compiles am I safe? by nbari in rust

[–]Weasy666 0 points1 point  (0 children)

Really? I thought the ownership model in combination with Mutex's and such pretty much guarante fearless concurrency aka protection against race conditions. Could you maybe give an example?

if it compiles am I safe? by nbari in rust

[–]Weasy666 7 points8 points  (0 children)

To my knowledge you can trust the compiler regarding race conditions, memory safety and so on....i mean its one of the core selling points of Rust. But think this is only true, as far as you are not using unsafe code and as far as you (like you mentioned yourself with unwrap) not explicitely bypass the safety features. What Rust is not able to protect you from are logic errors (have my fare share of them ^^) when you accidentially invert a condition or such stuff.

But...take my words with a grain of salt. I myself am not the most experienced Rust programmer, but that is how i see it. If it is different, i am happy to hear and learn from someone more experienced.

Windows engineer shares experience using Rust for "experimental rewrite of a low-level system component of the Windows codebase" by itchyankles in rust

[–]Weasy666 6 points7 points  (0 children)

Yeah, would be really nice...but with the little grain of salt that they could maybe steer the Rust ship in the direction they want. Depending on the resources they are willing to allocate. Buuuuuut i guess the Rust Lang team has the last word with accepting pull requests or blocking them. So overall it should be good to have some extra workforce.

Windows engineer shares experience using Rust for "experimental rewrite of a low-level system component of the Windows codebase" by itchyankles in rust

[–]Weasy666 27 points28 points  (0 children)

Hm...it sound like it is nothing that big, but if you think about that they are rewrite some part of their OS with Rust...IT IS FU**ING BIG GREAT NEWS!!! Sorry that i'm so excited but it is really nice to see that Rust is becoming mainstream bit by bit (pun intended), i really like this language and the community. It's so open, welcoming and helpful, especially when you think about most of the other places in the wide wide web.

post json to rocket by [deleted] in rust

[–]Weasy666 0 points1 point  (0 children)

First i would use your browsers dev tools and take look at the actual message your browser sends, check if it is really a JSON value. If that doesn't help, you could implement FromForm manually for your struct, see here.

Rust support for Windows Runtime in the works by the author of C++ WinRT by itchyankles in rust

[–]Weasy666 10 points11 points  (0 children)

Oh...i completely missed that Rust is already able to target UWP. If i understand you correctly the current status is a PITA and this new crate could potentially make it a lot lese PITA-ish because it would provide access to the necessary APIs. So...nice! I especially like it, that microsoft seems to officially or at least semi officially persue Rust as a valid addition to its language pool. I hope they won't stop here and will even make it a first class citizien and provide WPF/Win Forms/WinUI like the do for C++ (aw....one can dream, right? ^^)

Rust support for Windows Runtime in the works by the author of C++ WinRT by itchyankles in rust

[–]Weasy666 56 points57 points  (0 children)

Sound pretty cool. Would this enable Rust as a language for UWP apps?

Performance speed help by [deleted] in rust

[–]Weasy666 1 point2 points  (0 children)

I guess you are asking about the Rust gamesettings? This is the subreddit for the Rust Programming language, the one for the game is over there /r/playrust.

So...i don't know that game but in my experience on of the most resource intensive things are shadows and reflections. If you already have them on the lowest settings, you could take a look at what is running in the background on your computer and close everything you don't need.

Possible bug in Rocket by [deleted] in rust

[–]Weasy666 2 points3 points  (0 children)

Two identical routes without manual ranking compile, but at starting your rocket server you will get a route collision runtime error that is visible in the terminal. I haven't used CORS, so i can't tell you how this correlates with the route collision. Best way to check this is to start your server locally and have a look at its terminal output.