snaggen

joined 2 years ago
 

Always good to read about how you can speed up compile times. I mean, sword fighting on office chairs are all fun, but still....

40
submitted 1 year ago* (last edited 1 year ago) by snaggen@programming.dev to c/rust@programming.dev
 

The Sovereign Tech Fund announced, in their latest news letter, that they are investing โ‚ฌ99,060.00 in uutils coreutils which is a Rust rewrite of GNU coreutils. And here is a link to github https://github.com/uutils/coreutils

 

It is time for pre-release testing....

 

A saw this on Mastodon, and found it interesting. Rust already prevents a lot of race conditions, but deadlocks when using a mutex is still possible (and I have actually had one myself, though I caught it during testing). So, it would be nice if it would be possible to catch these cases at compile time. Now, seems to be just a proof of concept, but it is always nice to see the direction people are going and what areas are explored.

 

I found this review very interesting. It goes quite deep into the different problems. The author have done the research and does s good job of presenting it in a clear and understandable way.

137
submitted 1 year ago* (last edited 1 year ago) by snaggen@programming.dev to c/rust@programming.dev
 

TIL: Sweden had February 30 in 1712 https://en.wikipedia.org/wiki/1712_in_Sweden , so I decided to see how chrono handled that.

use chrono::TimeZone;
use chrono_tz::Europe::Stockholm;

fn main() {
    let feb30 =  Stockholm.ymd(1712,2,30);
    println!("Date: {:?}", feb30);
}
 target/debug/feb30
thread 'main' panicked at /home/snaggen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chrono-0.4.34/src/offset/mod.rs:252:40:
No such local time
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Result (as expected): Not well! ๐Ÿ˜„

I also tested Java with

ZonedDateTime feb30 = ZonedDateTime.of(1712,2,30, 0,0,0,0, ZoneId.of("Europe/Stockholm"));

with simmilar result

java.time.DateTimeException: Invalid date 'FEBRUARY 30'

So, lets take a minute of silence for all the programmers of history related software, may the spagetti monster have mercy on their souls.

 

Great to see FIPS support for Rustls, will probably help for government related projects and such.

[โ€“] snaggen@programming.dev 1 points 1 year ago (1 children)

Good that this gets some visibility, looks like a frustrating thing to debug.

[โ€“] snaggen@programming.dev 2 points 1 year ago

My use for rust at work have been to avoid C when using third party libraries. Rust bindgen is very nice to use. This way I get to use a modern language instead of C. Also replaced some java for a performance critical media monitor and xfer engine. On my spare time I have been doing some minor hacking for fun on Cosmic Term

[โ€“] snaggen@programming.dev 2 points 1 year ago (4 children)

But do we really want this community to be a global RSS feed? I already think we should try to add more life to the community, a global RSS feed means even less life. Bot posts may add content, but it discourage interaction.

[โ€“] snaggen@programming.dev 9 points 1 year ago

I have been in this community from the start and seen it grow from nothing to almost 5000 members, so I think this community have done pretty good. We are one of the top communities on programming.dev.

I have tried to post news, blog posts and updates that I find interesting and relevant for others to read. And while that provides some content to the community, it gives the community a bit of a Rust News Outlet kind of feel. So, what is missing from this community is a feeling of being alive. The only way to do that is for people to start posting more informal posts, and at this point I think that we should be very generous about what to accept. Other communities like /r/rust might not allow memes, and self promotion is generally frowned upon. But at the point where this community is, I would be happy to see all kinds of content. So go ahead, Ask questions, Post about your projects (even if it might be a bit of self promotion), re-post that funny meme you have seen somewhere (as long as this doesn't turn in to a programmer humor place). Then if we get to the point were things starts to be problematic with a to loose attitude, we can address that when we get there. But that probably means we have gotten to the point were this place feels alive.

[โ€“] snaggen@programming.dev 4 points 1 year ago

This community really lacks more personal questions and thoughts, so it not just fits it is desired!

[โ€“] snaggen@programming.dev 11 points 1 year ago

Yes, they are not very upfront with this requirement, almost like they have understood that people doesn't like it, but instead of fixing it they just try to hide it from their marketing material. And that doesn't feel shady at all...

[โ€“] snaggen@programming.dev 33 points 1 year ago* (last edited 1 year ago) (1 children)

From their documentation

Unlike classic terminals, Warp requires you to sign up and log in to get started with the app.

So, yeah, it might be that people are not very impressed by a terminal that requires a cloud account.

But, if you don't type anything sensitive on to your terminal, like passwords and such, then you should be fine....

[โ€“] snaggen@programming.dev 16 points 1 year ago (7 children)

Well, if the only thing you need from reflection is the name of a type, so then yes. But I wouldn't really call this reflection since it is very limited.

[โ€“] snaggen@programming.dev 16 points 1 year ago

It starts by presenting it self as an Comedy AI, that implies more than deep fake.

[โ€“] snaggen@programming.dev 6 points 1 year ago

Librsvg did the rewrite incrementally, so you can choose to only use rust for new code in an existing codebase.

[โ€“] snaggen@programming.dev 3 points 1 year ago

I say that you should find some interesting project, possibly something related to some desktop environment like Gnome, KDE, sway, cosmic and so on. There are multiple fun/interesting projects around them. Then pick a small and manageable task, use that to learn the language that project uses.

I find Cosmic to be a very interesting desktop project, and they use Rust if that would be of interest.

[โ€“] snaggen@programming.dev 5 points 1 year ago* (last edited 1 year ago) (14 children)

If you avoid Nvidia, it have been ready for many years. And to be honset, not sure X11 was really stable with Nvidia either. My main issue with Wayland, is that X doesn't have multi dpi support... and for that I really cannot blame Wayland. Also, Skype doesn't have screensharing, well, they actually had for a while, but then removed it... still, hard to blame on Wayland.

But as a general rule, if you have Nvidia, then you are not allowed to complain about anything... that was your choice, and with Nvidia under Linux, all bets are off. I thought that was clear a long time a go, especially after Linus not so subtle outburst.

view more: โ€น prev next โ€บ