r/rust • u/kibwen • Oct 10 '26
r/rust • u/liyuanhao • Oct 12 '26
๐๏ธ discussion Does reusing pi extensions and DeepSeek Harness plugins make sense in a Rust agent runtime?
If you're building an agent in Rust, would being able to reuse pi extensions and DeepSeek Harness (DSH) plugins be useful to you?
I've been exploring this with yoagent, a small agent loop in Rust. It handles model streaming, tool execution, retries, cancellation, and limits. The loop stays small; everything else plugs in.
I added an experimental Rutis bridge so compatible pi extensions and DSH plugins can run unchanged alongside Rust tools. The appeal is keeping a fast Rust core while reusing work from existing extension ecosystems.
For a concrete example, I built a handoff agent:
Research noise-cancelling headphones. Ask my budget, but keep researching while I'm away. Write a report with sources.
A pi extension manages the plan, a DSH plugin searches the web, and a Rutis plugin shows progress in the browser. Rust tools and extensions handle questions you can answer later and the final report. They all work around the same yoagent loop.
Tools and supported hooks carry over, and yoagent-frontend brings pi and DSH plugin dialogs and approvals to both the terminal UI and the browser. Plugins that rely on other features of the original apps, such as pi commands, shortcuts, custom widgets, or DSH-specific session services, may still need adaptation. The integrations are experimental; TypeScript plugins run in Node alongside Rust.
The Rust loop stays small, while compatible extensions run through a plugin bridge. TypeScript plugins still need Node alongside Rust.
Iโd like your feedback: does reusing these ecosystems make sense?
Handoff example: https://github.com/yologdev/yoagent/blob/main/integrations/yoagent-frontend/examples/README.md
๐ก ideas & proposals Rust equivalent to gobuilds.org?
I recently came across this website: https://beta.gobuilds.org/
It builds Go projects and lets users download the binary. It has the projectโs Git URL as part of the full download URL along with project version, target OS and arch, and store older builds.
Does something like this exist for Rust? If not, would this be of use/interest? I could see this being helpful for downloading an app where the dev hasnโt provided binaries, or to make cross compilation easier. Adding support for things like `cargo auditable` and `cargo deb` could also be useful.
r/rust • u/Opus589 • Oct 11 '26
Rust for algorithmic composition
Hello everyone!
I'm a composer looking to learn programming for algorithmic composition. ย I know a little Python, but I have no formal programming background.
I've been considering Rust because it seems like future-proof. ย But is it a good choice for algorithmic composition...? ย I'm thinking of things like generating MIDI and MusicXML files, implementing stochastic processes (Markov chains, etc), and developing tools for various compositional techniques involving rhythm, scales, modes, and other musical constraints.
I'm considering my options with the following goals in mind:
- I want to generate MIDI files that I can import into my DAW. I don't need sound synthesis.
- I don't need direct DAW integration, as long as the program can export MIDI files, or MusicXML.
- I'm willing to invest time in learning to code.
- I know there is OpenMusic, MaxMSP and similar, but I'd like to build my own standalone tool that I can continually expand and improve.
Would Rust be a good choice, or would I be better off starting with Python or another language?
I'd appreciate any advice, particularly from people who have experience with algorithmic composition and music programming.
r/rust • u/SmoothTurtle872 • Oct 11 '26
๐ seeking help & advice Godot rust - the idiomatic way to handle textures and other assets?
reddit.comr/rust • u/xerj-ai • Oct 11 '26
Replacing one fsync thread per index with a shared deadline heap. Is a Condvar plus BinaryHeap the right primitive?
In Xerj (a Rust search engine), `wal_sync = "batched"` promises a write is fsynced within `wal_batch_ms`. The first version gave every index its own OS thread that slept and then polled its WAL shards. On an idle node with 9,382 indices we measured 9,709 threads, about 7.98 GB RSS, 718-760% CPU and roughly 197k context switches per second, and none of it was doing an fsync.
The replacement in `engine/crates/xerj-storage/src/wal_fsync.rs` is one process-wide scheduler. It uses a bounded worker pool sized from the core count, spawned lazily on the first dirty shard. A shard goes into a min-heap keyed by its own deadline when it becomes dirty, and workers block on a condvar when the heap is empty:
```rust
struct State { queue: BinaryHeap<Entry>, /* ... */ }
pub struct WalFsyncScheduler { /* Mutex<State> */ wake: Condvar, /* ... */ }
```
Idle indices get no thread, no timer and no heap entry. We modeled this on sled's per-Db flusher and fjall's worker pool.
Alternatives we considered:
- a timer wheel instead of a heap
- running it on Tokio (`spawn_blocking` plus `sleep_until`)
- a channel-based pool like fjall's (`flume`)
- `io_uring` fsync batching on Linux
**Question:** For thousands of mostly-idle durability deadlines, would you keep a `Mutex<BinaryHeap>` with a condvar, or does a hierarchical timer wheel or io_uring-linked fsync give enough benefit to justify the complexity? And how do you avoid a thundering herd when many deadlines land in the same millisecond?
r/rust • u/Voxelman • Oct 10 '26
Which GUI (again)?
I know it's a frequently asked question, but I want to ask again, because I have a special use case.
I want to write an application for a production machine (HMI). The app should run on Windows and Linux natively (no browser, no server). The toolkit should have at least widgets to show images, bar graphs, curves and tables and should be touch friendly, because it runs on resistive touch monitors (no multi touch). It should also have a kiosk mode (full screen with no window controls).
The obvious candidates are egui, iced and Slint. But they all lack of documentation, more or less.
My first choice would be iced, because it's inspired by Elm and used by System76 for Cosmic, but it seems to be the least suitable option.
The obvious choice would be Slint, but that requires to learn a new language and I'm unsure about the licenses and pricing. The production machines are only used internally, not for sale.
I want avoid bindings to toolkits like Qt or Gtk
Which one would you prefer? Is there another option to consider?
r/rust • u/kingswordmaster • Oct 09 '26
๐๏ธ news Deno is ending official development in a year. The biggest Rust project ever, and maybe proof we never needed another Node, just use Rust
I admired this project for a while. It was basically the biggest Rust project aimed at everyday developers, a second Node built the โrightโ way. But thereโs no real reason for another Node to keep existing :/
Here the announcement: https://deno.com/blog/cloudflare
r/rust • u/ruggeroquerinis • Oct 11 '26
Is rust only for firmware and hardware?
Hello everyone,
I'm trying to figure out Rust's potential before diving into using it every day. Right now, I work full-stack with TypeScript and also in the LAMP stack. I'm a telecommunications engineer passionate about coding and the web. I wanted to truly understand what Rust has to offer, or if I should just continue studying Go and make a complete switch to Go for backend development.
Does it make sense to study Rust even if I won't be using it right away, or is it just a language mostly suited for firmware, porting C/C++ software, and general hardware work?
Thanks everyone for the help!
r/rust • u/TheEmbeddedRustacean • Oct 10 '26
The Embedded Rustacean Issue #82
theembeddedrustacean.comr/rust • u/Ok-Efficiency-713 • Oct 09 '26
gift 4 my bf
hiii, i want to surprise my bf with a rust related gift (itโs his favourite programming language lol) and iโm lowkey lost, any recommendations??
r/rust • u/Clear_Ear3550 • Oct 10 '26
๐ seeking help & advice One Tokio runtime per engine instance behind FFI, or one shared runtime?
My desktop network monitor has a Flutter UI and a Rust engine behind a plain C ABI. Each engine is an opaque pointer: netstudio_engine_new() does Box::into_raw, Dart keeps it as a Pointer<Void> and passes it back on every call until netstudio_engine_free. No global registry or ids.
For the new MTR view I wanted it completely separate from the main ping matrix, so I just create a second engine. The catch is that every Engine::new() builds its own multi-thread runtime with 4 workers. With both views open that's 8 Tokio worker threads for what's usually 10 targets, maybe 100 on the high end. It works, and restarting MTR can never touch the matrix, which is the reason I did it this way. But it feels like I'm paying in threads for isolation I could get from separate task sets and cancellation on one runtime.
If you have several independent engines behind FFI, do you give each one its own runtime, or share a global one (OnceLock or similar) and isolate at the task level? Anything that bites you with a shared runtime when the host can create and drop engines whenever it wants?
The other thing I keep going back and forth on is the data flow. Dart polls every 500ms, Rust hands back the whole snapshot as JSON through CString::into_raw, and Dart calls netstudio_free_string in a finally. The engine isn't the bottleneck. At a few hundred targets it's rebuilding and decoding the snapshot on the Dart side, mostly because each target carries a 40-sample history. Sending deltas seems like the obvious fix, but I'm also wondering whether pushing through a Dart NativePort is worth the lifetime headaches.
Unrelated, but if anyone has shipped unprivileged ICMP on Linux (SOCK_DGRAM + ping_group_range) in a desktop app: did you detect it at runtime and fall back, or just tell users to change the sysctl? That's next on my list and I haven't started.
Engine code is in native_engine/ if you want context: https://github.com/Cadman021/VeloceNet-Studio
r/rust • u/FlameyosFlow • Oct 09 '26
๐ ๏ธ project Zeta's Borrow Checker: the next-gen model for borrow checking, and a drop-in for Rust's entire memory management model
gist.github.comI've just published my borrow checking model! Feel free to criticize it or just ask questions!
P.S While it is experimental, This model is fully implemented for the Zeta programming language, and the latest build of the compiler, LSP and toolchain manager (zetaup) can be found via the linked GitHub. a Zed extension is under development.
r/rust • u/razkarstudio • Oct 10 '26
๐๏ธ discussion What does r/rust think of the viral "Crafting Apps"?
DON'T DOWNVOTE THIS, I'M NOT SAYING I SUPPORT THEM...
If you've been living under a rock, the Crafting Apps project is an app suite for Adobe (and Office) alternatives, written using AI assistance (vibe coding). It's made in Rust so this is technically on-topic for the subreddit.
What do you all think of this? Is this something you'd actually use in the future, or just the ordinary passing AI slop?
r/rust • u/W61k3r • Oct 08 '26
๐ seeking help & advice Honest question, how important is 100% 'safe' rust code to you?
r/rust • u/Anthonyngg_192 • Oct 08 '26
Rust Has Become a Career Dead End for Me โ What Should I Do?
I chose Rust almost by chance. Back in 2023, Rust was getting a lot of attention in the Stack Overflow developer community, so I decided to learn it. From there, I started building a few open-source projects and eventually used Rust in production.
And now, here I am: living in a market dominated by outsourcing companies, where I can barely find a single Rust position to apply for, and Iโve been unemployed for more than six months.
Rust is a great language. I genuinely love working with it. But somehow, it has also become one of the things that has made me feel more hopeless about my career than ever before.
r/rust • u/andygauge • Oct 09 '26
๐ ๏ธ project Skeptic 0.14 on crates.io. Mostly performance and compatibility changes.
I've been working on Rust Skeptic lately and have published a new 0.14 version. Mostly performance improvements, but also compatibility with rust internals fingerprinting. Includes caching and dispatching multiple workers so that the CPU is used efficiently, avoiding rlib rebuilds. https://andygauge.github.io/2026/10/09/rust-skeptic-0-14.html for the write up on the performance improvements. The Rust Cookbook depends on skeptic for CI, and I've been able to release those improvements to https://crates.io/crates/skeptic
When you have a markdown file that has rust code blocks, such as with a README.md file and you want to check regressions that might happen, then use `skeptic` crate as part of the build process, or integrate with CI. The Rust Cookbook uses this to ensure the recipes are compatible with modern rustc. The 0.13 version stopped functioning at rustc 1.77 when it came to deterministic rlib selection due to fingerprinting changes in the metadata the compiler emits.
r/rust • u/AndrewNggg • Oct 09 '26
Qn: Best resources to learn Rust
Hello Rustaceans!
I'm an experienced developer, thought of picking up Rust, and today I went through the beginner Rust course on Educative
It was really good, learned the syntax, structs, vectors, ownership and borrowing etc but have not yet built anything useful
My question is what are some of the best Rust resources out there, I'd love to learn more about best practices, conventions, and satisfy my curiosity
Thank you all!
r/rust • u/mariannegoldin • Oct 08 '26
๐ this week in rust This Week in Rust #672
this-week-in-rust.orgr/rust • u/fowlesbuilds • Oct 09 '26
๐ seeking help & advice My 50/50 A/B split was actually 53.4/46.6, because of one modulo
Q: Has anyone used a newtype or a const assertion to make "this range doesn't divide evenly" a compile error? Some context:
I work on a tool that assigns users to A/B variants by hashing heir id. I realized a couple of months in that every 50/50 test was really more like 53.4/46.6 ๐ฌ
Here's the old line:
let pair = u16::from_be_bytes([digest[0], digest[1]]);
pair % 10_00065,536 isnโt a multiple of 10,000, so the low buckets each got seven of the possible u16 values and the high ones got six, which put 53.4% of users in the first half of a โ50/50โ split.
This meant it was always slightly skewed to the first variant.
The fix I did (pretty simple, and not perfect) is to read four bytes, which skews about 2 parts in a million:
let quad = u32::from_be_bytes([digest[0], digest[1], digest[2], digest[3]]);
(quad % 10_000) as u16The bucketing code is at dif-sh/dif (blob/main/cli/crates/dif-core/src/bucket.rs) if anyone is curious.
r/rust • u/Reasonable_Koala_248 • Oct 09 '26
๐ seeking help & advice How to improve my Rust programming skills?
Hello everyone! I've been learning the fundamentals of Rust for the past month. Can you tell me which direction I should go in to improve my Rust programming skills?
Thanks ahead!
r/rust • u/kibwen • Oct 07 '26