Rust
/rust20294
Discussions about the Rust programming language
Rust concurrency is like, great you have a Ferrari, but you have to drive it everywhere
Advent of Code Day 2 in Rust: strictly monotonic sequences with dampener https://github.com/hollygrimm/AdventOfCode_WIR/blob/main/day_02/src/main.rs
Rust 1.83 has been released with a bunch of extensions to const functionality, as well as the usual API stabilizations: https://blog.rust-lang.org/2024/11/28/Rust-1.83.0.html
I've been working on CHAI over at @teaprotocol and we just made it public. It's an open-source database that makes exploring crates super easy, and we thought it was pretty interesting. We also added an example to display an SBOM for your rust repo. I'd love to hear what you think - feel free to DM / reply with issues / ideas!
https://github.com/teaxyz/chai
https://github.com/teaxyz/chai
The Tokio project announced a new ORM, Toasty. It has a DSL for defining schemas, and a CLI that generates Rust code from those schemas. Supports NoSQL, too. https://tokio.rs/blog/2024-10-23-announcing-toasty
Rust 1.82 came out yesterday. To my untrained eye the new use<..> bound for capturing lifetimes in return-position impl Traits seems most significant, but there’s a lot in here. https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html
rm! we teach rust + solana development during /school-of-solana and there are three days left to apply, link in the channel! 🫡
Is anybody headed to Eurorust in Vienna? Hit me up if you do! I’ll be at the async workshop tomorrow
Been trying out some bits with xtask today.
Not found any good local scripts, mostly seems to be good for deploying stuff to prod?
ref: https://github.com/matklad/cargo-xtask
Not found any good local scripts, mostly seems to be good for deploying stuff to prod?
ref: https://github.com/matklad/cargo-xtask
Insanely impressive how consistent the API for Polars is between Rust and Python.
Two languages that are worlds apart, but at first glance you could easily be fooled into thinking this is Python.
Two languages that are worlds apart, but at first glance you could easily be fooled into thinking this is Python.
We need more Rustposts on FC!
I'll try to put some content out...but we need some folks actually talented at content to contribute...
I'll try to put some content out...but we need some folks actually talented at content to contribute...
Good to know: the Rust toolchain has built-in tools to catch memory safety issues (courtesy of LLVM). Even though these tools are much less frequently used with Rust than with C/C++, they are still important to have in your toolbox.
https://github.com/japaric/rust-san
https://github.com/japaric/rust-san
Rust 1.81 was released on 9/5: https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html
Highlights include stabilization of the core::error::Error trait and new sort implementations with improved runtime and compile time performance
Highlights include stabilization of the core::error::Error trait and new sort implementations with improved runtime and compile time performance
Speeding up serde_json strings by 20%
https://purplesyringa.moe/blog/i-sped-up-serde-json-strings-by-20-percent/
https://purplesyringa.moe/blog/i-sped-up-serde-json-strings-by-20-percent/
Something like Rust but with a GC and an async runtime to have implicit green threading and cooperative scheduling would be awesome. I know OCaml is very close to this but it's also really close to haskell which I already know pretty well. A strict version of haskell is what I need. Something like purescript
if a Rust/Sol guy was to want to platform a sorta Rogue multi-player term game he'd been working on, is there a route to doing that on FC without having to touch anything remotely tainted by JS?
Rust goals for the rest of 2024: a new edition, better async experience, and Rust for Linux building on stable. https://blog.rust-lang.org/2024/08/12/Project-goals.html
https://elastio.github.io/bon/blog/how-to-do-named-function-arguments-in-rust
This project was heavily inspired by such awesome crates as buildstructor, typed-builder and derive_builder. bon crate was designed with many lessons learned from them.
This project was heavily inspired by such awesome crates as buildstructor, typed-builder and derive_builder. bon crate was designed with many lessons learned from them.