NeuralRad: Revolutionizing Tumor Tracking with Rust and WebAssembly
Reddit » The Rust Programming Language
by /u/coolwulf
1h ago
NeuralRad is the leading platform for Stereotactic Radiosurgery workflow, using deep-learning based auto-segmentation, auto-labeling to assist neurosurgeon and oncologists to make clinical decisions and build better treatment plan for each patient. submitted by /u/coolwulf [visit reddit] [comments ..read more
Visit website
From C to Rust: Bringing Rust Abstractions to Embedded Linux | Embedded Linux Conference 2024
Reddit » The Rust Programming Language
by /u/joehillen
3h ago
submitted by /u/joehillen [visit reddit] [comments ..read more
Visit website
New release of Journal Viewer a modern log viewer for Systemd logs built with Rust, nice for people getting into Rust looking for the next challenge and for all the ever growing Linux community!
Reddit » The Rust Programming Language
by /u/mingu3
5h ago
submitted by /u/mingu3 [visit reddit] [comments ..read more
Visit website
Combatting over-reliance on `mpsc` channels
Reddit » The Rust Programming Language
by /u/JDBHub
5h ago
I've recently tuned in to one of Jon Gjenset's recent streams where he discusses the occasional over-reliance on mpsc queues in fan-in situations (i.e., multiple workers emitting events through a single consumer). One alternative he mentions is instead relying on Arc<Mutex<Vec<T>>>> as where: Workers can extend the buffer with data Actor can swap the buffer with an empty buffer and process the current buffer, allowing critical zone to be exceptionally small I tried giving this a shot. We have a serial actor/worker with no internal buffering. ```rust pub async fn serial_ ..read more
Visit website
Nunny: a non-empty slice/array/vec library that's no-std and const-friendly
Reddit » The Rust Programming Language
by /u/drymud64
7h ago
I wanted <[T]>::first to be infallible, but to otherwise use other methods like <[_]>::rotate, which existing crates like nonempty can't do (without breaking their API). So I've written nunny, with the following highlights: - I scraped the rustdoc for std to provide a complete API. With few exceptions, for every Vec<T> -> Box<[T]> there is a NonEmpty<Vec<T>> -> Box<NonEmpty<[T]>> - Support for exotic types like Cows and boxed slices. - #[repr(transparent)] gives you flexibility to go from &[u8] -> &NonEmpty<[u8]> - const a ..read more
Visit website
Help me understand tracing span targets
Reddit » The Rust Programming Language
by /u/kemp124
9h ago
I've been using tracing for a while, but today I wanted to configure a specific target on a span for later filtering. Turns out it doesn't seem to work as I expected. use tracing::span; use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; fn main() { init_cli_trace(); let span = span!(target: "span_target", parent: None, tracing::Level::INFO, "internal_block"); tracing::info!("outside"); { let _guard = span.enter(); tracing::info!("inside"); } tracing::info!("outside again"); } pub fn init_cli_trace() { let fmt_layer = tracing_subscriber::fmt::layer().with_target(true); t ..read more
Visit website
Lessons learned after 3 years of fulltime Rust game development, and why we're leaving Rust behind
Reddit » The Rust Programming Language
by /u/progfu
9h ago
submitted by /u/progfu [visit reddit] [comments ..read more
Visit website
Seeking Feedback on My Axum Bookstore API Project
Reddit » The Rust Programming Language
by /u/stkr89
9h ago
Hi everyone, I recently started learning Rust and built a proof-of-concept REST API for a bookstore application using the Axum framework. I would love to get feedback from the friendly rust community on the code structure, Rust practices, and any other suggestions you might have. Here's the link to the project repository: https://github.com/stkr89/axum-book-store submitted by /u/stkr89 [visit reddit] [comments ..read more
Visit website
ClangQL: now supports functions all info, global variables, source locations
Reddit » The Rust Programming Language
by /u/AmrDeveloper
9h ago
submitted by /u/AmrDeveloper [visit reddit] [comments ..read more
Visit website
Confused on What Rust Book Means for Closures "Capturing their environment"
Reddit » The Rust Programming Language
by /u/sideshow_9
11h ago
I am going through the Rust Book and on this chapter, it is discussing closures with the following code example: #[derive(Debug, PartialEq, Copy, Clone)] enum ShirtColor { Red, Blue, } struct Inventory { shirts: Vec<ShirtColor>, } impl Inventory { fn giveaway(&self, user_preference: Option<ShirtColor>) -> ShirtColor { // Book uses this example //user_preference.unwrap_or_else(|| self.most_stocked()) // This presents same result match user_preference { Some(x) => return x, None => return self.most_stocked(), } } fn most_stocked(&self) -> ShirtColor { let mut nu ..read more
Visit website

Follow Reddit » The Rust Programming Language on FeedSpot

Continue with Google
Continue with Apple
OR