Spicy take:
Panics aren’t bugs, people are just conditioned to fear stack traces.
Spicy take:
Panics aren’t bugs, people are just conditioned to fear stack traces.
Not C++, learning Rust.
Went through all the basic stuff in the rust book, and now rewriting an existing C serial molecular dynamics simulation code in Rust.
Fun experience. Learning so many things as I am implementing this.
Just released: Findutils 0.8.0!
This update brings new formatting options (-fprint0, -fprintf), improved file handling with -files0-from, and more efficient command execution with exec[dir]+.
Now with 80.87% GNU test suite compatibility - our best yet!
Download: https://github.com/uutils/findutils/releases/tag/0.8.0
Show HN: I built a Rust crate for running unsafe code safely
Link: https://github.com/brannondorsey/mem-isolate
Discussion: https://news.ycombinator.com/item?id=43601301
I finished my first #rust project today. Coding in rust is a ton of fun and not that hard if its running in a single thread. I have not tried async yet.
I practiced some async Rust code today with Tokio. The idea was to download 10 images using async functions and have graceful shutdown, cancellation and timeout.
I tried using tokio select!, channels and my Go knowledge but it's much harder to do what I want than I anticipated.
This is my code:
Sigh, I think I might have to switch away from #VisusalStudioCode. Seems the only stuff they work on is #AI, to the detriment of everything else.
Shall I move back to #vim? Or rather #neovim. Do I still have the patience to configure that just the way I like it?
I could also try out that newfangled #zed editor that is getting all the hype these days.
One must-have feature is it having good vim keybindings though, I'm lost without them.
#SoftwareDevelopment #golang #rustlang #rust
rauthy: OpenID Connect Single Sign-On Identity & Access Management https://lobste.rs/s/p814ia #rust
https://github.com/sebadob/rauthy
It's comforting to see some thing never change. This feature is still not stabilized, after several years:
https://github.com/rust-lang/rust/issues/84908
More bikeshedding:
https://github.com/rust-lang/rfcs/pull/3362
#rust
Not sure if it's really newsworthy, but I'm making progress on my rust/Vulkan game engine.
Here the Sponza scene loaded from a gltf file, with some PBR lighting straight from https://learnopengl.com
1/ Status: of late, I've been learning to write async functional #rust . I do this with every programming language I encounter: try to build a little project, a record of what I learned and how I learned it.
It's served as an insulator from these trying times. I have something to do, something to accomplish, so many things to learn.
Something to distract me.
Every day just gets weirder. I'm hardly alone in fearing for my Social Security, or running afoul of Trump's Stasi.
This week, I was writing #Rust code to parse the From: line in an email. I wanted to use a library, because email header parsing is notoriously difficult to get right. This library clearly was built expecting multiple addresses to be given on the From: line.
"What nonsense is this?"" I thought. And went to the RFCs, and sure enough, that's supported in RFC822, RFC2822, and RFC5322.
And then 2 days later I found a use for it. And it seems to work.
Rust project's official account will no longer be active on X
Would be cool if Rust let you violate the orphan rule for traits so long as your impl is private to your crate. There shouldn’t be any ambiguity caused by that, right?
#Rust
Firing up the live stream for a bit. Working on my static site generator. #rust