snaggen

joined 2 years ago
26
submitted 2 years ago* (last edited 2 years ago) by snaggen@programming.dev to c/rust@programming.dev
 

TL;DR: On Linux, if you have Transparent Huge Pages enabled, you can try to run cargo with the environment variable MALLOC_CONF="thp:always,metadata_thp:always" for a potential ~5% speed boost.

 

Just want to do a shout out to @ljdawson@lemmy.world about the breaking changes in the upcoming Lemmy 19, since I haven't seen any mention about it here.

11
submitted 2 years ago* (last edited 2 years ago) by snaggen@programming.dev to c/rust@programming.dev
 

I have seen posts that the rust project was setting up it's own Mastodon instance, and now it seems to be live. I assume we will se some official Rust news being posted on this account soon. And hopefully there will be other interesting accounts to follow on this instance in a not so far future.

[–] snaggen@programming.dev 6 points 2 years ago

This looks really interesting, and I love the easy to use docker images! So, now I guess I know what I will fiddle with this weekend....

[–] snaggen@programming.dev 4 points 2 years ago

This sounds really great and will probably have quite an impact on a lot of users. So, nice work!

[–] snaggen@programming.dev 6 points 2 years ago (4 children)

Even if it might be fun to see Elon lose money, remember that Starlink is very important to Ukraine to defend themselves against Russia.

[–] snaggen@programming.dev 6 points 2 years ago* (last edited 2 years ago) (1 children)

And don't get me wrong, I think Go is ok and I use it from time to time. When Go and Rust started to get traction, I actually laughed at Rust thinking it was a stupid language. Why would anyone use Rust when you had Go, it sounded so great with its go routines and all. I then started to use it, and it wasn't bad, but it wasn't something that got me all excited either. And it was the horrible error handling and all these simplifications that sacrifices correctness that made me feel it was only an ok language. It is the correctness of Rust and that you have to handle all errors aso, that makes it a bit annoying, but it is also these things that makes it great.

[–] snaggen@programming.dev 13 points 2 years ago (2 children)

I think this old article exemplify the bad design of Go, and why I think Rust is very well designed.

TL;DR Go takes many shortcuts, in the name of simplicity, that ends up with pure lies. Like providing Unix like permissions for Windows and silently ignore it.

https://fasterthanli.me/articles/i-want-off-mr-golangs-wild-ride

[–] snaggen@programming.dev 1 points 2 years ago

Oh, hadn't seen the "Time travel debugging Rust in NeoVim" before, and I'm bad at using the debugger in vim so this is definitely something I must try out.

[–] snaggen@programming.dev 7 points 2 years ago

Well, that is why some prefer a copyleft license, like the MPL.

[–] snaggen@programming.dev 22 points 2 years ago

I guess this answeres my previous question about the lack of updates to the Intellij Rust plugin.

[–] snaggen@programming.dev 1 points 2 years ago (1 children)

I like skimming through these summaries, and especially since there are so many things happening on so different levels. It it everythign from tiny snake, to very advanced games. Good read.

[–] snaggen@programming.dev 1 points 2 years ago (1 children)

What are the benefits of Smol compared to the dominant async framework Tokio?

[–] snaggen@programming.dev 1 points 2 years ago

Cannot both be true?

view more: ‹ prev next ›