76
-1
submitted 11 months ago by nyanbinary@lemmy.ml to c/rust@lemmy.ml

I'm a complete beginner in programming with no prior experience, and I want a tutor/mentor to learn Rust for software(GUI, games, software in general) development and, eventually, kernel development(microkernels, IPC, specifically). I pay, of course. (Also, another note, I dislike UNIX (philosophy wise), so I would be looking to get experience in non-UNIX kernel development but also learn UNIX stuff as well.) Furthermore, to note, is I'm interested in game development.

I have a document from my previous tutor in this outlining the stuff I am keen to learn, practically a syllabus, so if you want to see it dm me :3.

77
54
Announcing Rust 1.74.0 (blog.rust-lang.org)
submitted 11 months ago by clot27@lemm.ee to c/rust@lemmy.ml
78
56
Bevy 0.12 (bevyengine.org)
submitted 11 months ago by Shatur@lemmy.ml to c/rust@lemmy.ml
79
19
submitted 11 months ago by KaczuH@lemmy.ml to c/rust@lemmy.ml

Interesting stack

80
32
submitted 11 months ago* (last edited 11 months ago) by KaczuH@lemmy.ml to c/rust@lemmy.ml
81
37
submitted 1 year ago* (last edited 1 year ago) by nyl@lemmy.opensupply.space to c/rust@lemmy.ml

In practical perspectives, I'm mostly concerned about computer resources usage; I have computer resources constraints. So using Rust would benefit on that. But it is for a Web application backend. So, is it worth it having to learn Rust + Tokio + Axum, ... in this specific situation? Also, that this is mostly for initially prototyping an application. Also considering if I add developers in the future, they would most likely not be familiar with Rust, but with more popular frameworks such as Node.

82
32
submitted 1 year ago by Sibbo@sopuli.xyz to c/rust@lemmy.ml

A nice and long read about the history of async Rust. Gives a nice set of reasons for why it is as it is now.

I would still hope though that Rust would be more bold when it comes to making breaking changes that improve the language in the future. Given that the edition system was made exactly for that.

83
13
submitted 1 year ago by Sibbo@sopuli.xyz to c/rust@lemmy.ml
84
14

I'm curious as to how the hashbrown crate can have up to 2x performance on certain operations, even though it looks like the standard library's HashMap is just a wrapper for hashbrown.

I understand that a wrapper could add a small overhead, but 50% of the original performance is a bit silly, especially considering all of the functions in the wrapper are #[inline], so there should be no overhead in calling most functions.

Does anyone know the reason for this?

85
34
submitted 1 year ago by wolf4ood@lemmy.ml to c/rust@lemmy.ml
86
49
submitted 1 year ago by Azadi@lemmy.ml to c/rust@lemmy.ml
87
13
submitted 1 year ago by Xophmeister@lemmy.world to c/rust@lemmy.ml
88
30
submitted 1 year ago by Rustmilian@lemmy.world to c/rust@lemmy.ml
89
35
Open Sourcing Ferrocene (ferrous-systems.com)
submitted 1 year ago by wolf4ood@lemmy.ml to c/rust@lemmy.ml
90
6
.@eurorust is sold out! (cdn.fosstodon.org)
submitted 1 year ago* (last edited 1 year ago) by crabnebula@fosstodon.org to c/rust@lemmy.ml

.@eurorust is sold out!

This is your only chance to win a FREE virtual ticket!🎫👇

@rust @TauriApps

https://fosstodon.org/@crabnebula/111141727642280464

91
30
submitted 1 year ago by zquestz@lemm.ee to c/rust@lemmy.ml
92
49

This is the resource I've been looking for. I'm working my way through the book but it gets in the weeds really early. It's all fun and games and then chapter 4 just hits like a brick wall. Amos does a tremendous job explaining the why behind things, in a more wheels to the pavement way.

93
28
submitted 1 year ago by wolf4ood@lemmy.ml to c/rust@lemmy.ml
94
9
What does criterion measure (discuss.tchncs.de)

I would like to benchmark my rustcode with criterion, but the information it presents to me do not match up. Here is some of the output I get

Benchmarking big/big decoding: Warming up for 1.0000 s
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 306.4s.
big/big decoding    	time:   [632.40 ns 724.40 ns 899.80 ns]
                    	change: [+0.7649% +16.645% +46.889%] (p = 0.04 < 0.05)
                    	Change within noise threshold.
Found 2 outliers among 10 measurements (20.00%)
  1 (10.00%) high mild
  1 (10.00%) high severe

If it took a criterion only 724.40 ns to run the code, why couldn’t it run the code 10 times in 5 seconds. I looked at the outliers in the browser and the one outlier took 1.5 microseconds to run so this could not be the problem.

95
7
submitted 1 year ago* (last edited 1 year ago) by nothingness@lemmy.world to c/rust@lemmy.ml

Is there any library for the queueing mechanism?

What's used by the most - Cron? But a task or rather script executed by Cron won't access to the context of an application. Meaning, a task will have be an independent unit. Whereas I want is a library to use inside a project such that it'll have access to everything.

Anything similar to Sidekiq exist in Rust?

96
14

Spacebar is an already existing, open-source reimplementation of the Discord.com API. Chorus aims to provide tooling to write software for and with Spacebar, using Rust.

Polyphony was born out of my desire to finally learn Rust, and to write a client-application for Spacebar with it. However, things are never as straightforward as they seem. I sadly had to discover, that already existing Discord-libraries did not provide the set of features needed to properly connect to, and interact with a Spacebar instance.

I have learned a lot in the past 4-5 months, in which I basically commited all my spare time to writing Rust and working on this project, and I am still learning a lot, daily. My greater motivation with this project is:

  • Enable Rust Developers to write Software for Spacebar
  • Eventually write my client in pure Rust, and to make it darn good
  • Provide an alternative server implementation to Spacebar-Server in Rust
  • Create tooling that can rival Matrixes Privacy and Security, while being as easy to use as Discord. I truly believe that self-hosted communications Software like Matrix is being held back through endless complexity, making it impossible to convince any layperson to actually give it a fair shot. Also, most of the Matrix clients I have tried so far are simply... not very user friendly. Our end-goal is to create free, open-source and easy-to-use software, which can provide secure communication for the masses.

This library is currently in an early alpha-stage. Most APIs should be stable, but nothing is guaranteed, up until the 1.0 release.

Please check out Chorus and the Polyphony GitHub-org here if you're so inclined, and perhaps leave a star and join our Discord server, if you'd like to follow the project more closely. :)

97
14
submitted 1 year ago by wolf4ood@lemmy.ml to c/rust@lemmy.ml
98
7
submitted 1 year ago by dessalines@lemmy.ml to c/rust@lemmy.ml
99
127
submitted 1 year ago by asal@lemmy.world to c/rust@lemmy.ml
100
8
submitted 1 year ago* (last edited 1 year ago) by calcopiritus@lemmy.world to c/rust@lemmy.ml

I want to do basically this:

struct MyStruct < T> {
    data: T
}

impl < T> for MyStruct < T> {
    fn foo() {
        println!("Generic")
    }
}

impl for MyStruct < u32> {
    fn foo() {
        println!("u32")
    }
}

I have tried doing

impl < T: !u32> for MyStruct < T> {
    ...
}

But it doesn't seem to work. I've also tried various things with traits but none of them seem to work. Is this even possible?

EDIT: Fixed formatting

view more: ‹ prev next ›

Rust Programming

8093 readers
1 users here now

founded 5 years ago
MODERATORS