snaggen

joined 2 years ago
[–] snaggen 4 points 9 hours ago

Ahhh... Sorry, of course there was the 2021 edition in between.... Ignore me... 🤣

[–] snaggen 5 points 11 hours ago (2 children)

That refers to the Edition, and all development up to January 2024 (rust 1.84) was edition 2018. With rust 1.85, Edition 2024 came out. Here is the news in Rust Edition 2024 https://doc.rust-lang.org/edition-guide/rust-2024/index.html , mostly details, so for effective rust everything for Rust 2018 should still be relevant.

[–] snaggen 21 points 5 days ago (1 children)

Hey, there is a long tradition of banning evil math... even Pythagoras did it... But, I guess he at least had good reasons, irrational numbers are super creepy and deserved to be banned.

[–] snaggen 3 points 1 week ago (1 children)

For a more user friendly tiling desktop environment, you should have a look at COSMIC. It is still im alpha, but I use it as a daily driver...

307
submitted 1 week ago* (last edited 1 week ago) by snaggen to c/rust
 

So let me be very clear: if you as a maintainer feel that you control who or what can use your code, YOU ARE WRONG.

88
submitted 1 week ago by snaggen to c/rust
[–] snaggen 7 points 1 week ago (2 children)

Yes, but then you wouldn't find the comment section there to read all the insightful comments.... /s

[–] snaggen 32 points 1 week ago (2 children)
33
submitted 1 week ago by snaggen to c/rust
 

The phoronix title is a bit click bait, but the LKML thread that is linked in the article is worth reading.

[–] snaggen 7 points 2 weeks ago (1 children)

And yes, date time handling is one of the most confusing areas on computer science. https://xkcd.com/2867/

[–] snaggen 6 points 2 weeks ago

I personally think Jiff is based on a very solid design, as it is inspired by Temporal, which is a TC39 proposal to improve datetime handling in JavaScript. I have done some date time handling with chrono, but I find jiff much easier to work with. So, I can recommend you take a serious look, and see if it makes your life easier for your use case. Now, it is only version 0.2, so the API might change before 1.0, but it seems to respect semver, so there shouldn't be any surprise breakage at least.

28
submitted 2 weeks ago* (last edited 2 weeks ago) by snaggen to c/rust
 

It seems like @[email protected] have added some optimizations to the Jiff date time library... so now it should generally be faster than 'chrono' and 'time'. Jiff is quite impressive, the 0.2.1 version number really doen't reflect its quality.

16
submitted 2 weeks ago by snaggen to c/rust
 

Jiff is a datetime library for Rust that encourages you to jump into the pit of success. The focus of this library is providing high level datetime primitives that are difficult to misuse and have reasonable performance.

And as a user of Jiff, I must say that it is very nice to use. Well thought out API, making date time handling less of a pain. So, nice work @[email protected]

30
crates.io: development update (blog.rust-lang.org)
submitted 3 weeks ago by snaggen to c/rust
22
Rust Analyzer Changelog #269 (rust-analyzer.github.io)
submitted 1 month ago by snaggen to c/rust
[–] snaggen 11 points 2 months ago* (last edited 2 months ago) (2 children)

When I was in my 20:ies, I had my alarm clock at the other side of the room and still managed to oversleep. I ended up having it under my bed close to the wall, so I had to crawl in under my bed (quite narrow space) pressing my body to the cold floor to turn off the alarm... and I never managed to turn that off in my sleep. But I would have preferred a wake up call... so, even though I have never used the service when staying at a hotel, I can see why some people use it.

[–] snaggen 17 points 2 months ago

Not the creator, just posting

[–] snaggen 5 points 2 months ago

I think this would be a nice improvement to reduce boiler plate.

[–] snaggen 9 points 2 months ago

On an unrelated note, don't forget to sanitize your input.

31
submitted 3 months ago by snaggen to c/rust
 

fjärrinlägg från: https://lemmy.world/post/22673996

This mod is written in an unconventional way: it is written in Rust. The Rust code is here. It uses JNI and JVMTI to interact with Java objects. The only Java code in this mod is for loading the compiled native binary into memory.

63
Announcing Rust 1.83.0 (blog.rust-lang.org)
submitted 3 months ago by snaggen to c/rust
49
submitted 3 months ago by snaggen to c/rust
view more: next ›