snaggen

joined 2 years ago
 

This is a listening session on the topic of rust governance. The prompt was "What item should be the #1 priority on the council's backlog?". This video covers Nick's perspective on this issue and my understanding thereof.

 

fjärrinlägg från: https://mstdn.social/users/stux/statuses/110582137637837383

Huh. In the list with "fastest growing #Lemmy instances" are only spam instances now

I'm currently creating an instance ban list for Geddit to block those instances if they don't take action.. This is a disaster waiting to happen :lemmy:

https://fedidb.org/current-events/threadiverse

@lemmy

 

I work for a company mostly using Java, but I choose to rewrite a preformance critical part of the system in Rust. Before this rewrite I had only written some smaller thing in Rust, so i was familiar with the language, but not very experienced. When I did the re-write I expected the performance increase, I was also impressed by the concurrency and the safety around that. It is of course still possible to deadlock, but most other issues around concurrency just goes away. I found that rust really lives up to the credo "fearless concurrency". However, all of these things were expected.

One of the things I had a hard time adjusting to was all this Error handling that was required, and getting used to the ? operator, learning to use the thiserror crate. I initially thought that this was the weak point of Rust. After a while I learned to use it and realized that it was quite the opposite. When I learned how to do the error handling, I suddenly found that the result is that there are no surprise errors left in production.

The unexpected benefit I saw was that the logfiles have shrunk with a factor 100 from Java to Rust. In java there are so many things that might go wrong in so many ways, that you need to log the internal state all over the place to be able to understand why something blew up. In the rust version, I get a clean and handled error in my log stating exactly what went wrong. Being forced to handle errors, combined with great mechanisms to do it, is a under appreciated side of Rust.

What is your most surprising benefit of using Rust?

 

A short but interesting background to Linen, a slack alternative written with Tauri/Rust, with some thoughts about the experience of using Tauri.

 

orz is an optimized ROLZ (reduced offset Lempel-Ziv) general purpose data compressor. input data is encoded as ROLZ-matches (reduced-offsets and match lengths), 2-byte words, and single bytes. then all encoded symbols are processed with a symbol ranking (aka Move-to-Front) transformer and a static huffman coder.

 

Powered by Rust, the video codec stack on ARCVM is now bringing faster and more reliable video decoding on ChromeOS. Here's how Collabora has been helping shape video virtualization for Chromebooks, and what it means for end users.

 

Cargo comes with quite a lot of nifty things pre-packaged, like fmt, clippy and so on. But there are a lot of addons out there, and it is a bit hard to discover these, so I thought it would be interesting to hear what everybody is using. The things I have installed is:

  • cargo-outdated - Find outdated dependencies
  • cargo-udeps - Find unused dependencies
  • cargo-flamegraph - Performance analysis
  • cargo-about - I use it to list licenses

Of these, it is cargo-outdated I use frequently. So, what is your cargo addon you cannot live without.

 

The full list of changes is found in this mail thread https://lore.kernel.org/lkml/20230618161558.1051269-1-ojeda@kernel.org/T/#u

view more: ‹ prev next ›