User contributions for PC
Appearance
17 November 2025
- 08:0008:00, 17 November 2025 diff hist +17 Building AI & Machine Learning Apps with Rust No edit summary current
- 07:5907:59, 17 November 2025 diff hist +27,109 N Building AI & Machine Learning Apps with Rust Created page with "From ChatBots to Neural Networks — Making AI Fast and Safe! 🤖✨ Python dominates AI/ML, but Rust is catching up fast! If you want to build AI applications that are blazing fast, memory-efficient, and production-ready, Rust is your secret weapon. Whether you’re building chatbots, recommendation systems, or running neural networks, let’s explore how Rust makes AI development exciting! 🚀 🤔 Why Use Rust for AI/ML? The AI Challenge: * 🐌 Python is slow..."
- 07:5607:56, 17 November 2025 diff hist +9,152 N THE JOURNEY TO BECOMING A WORLD-CLASS RUSTACEAN-1 Created page with "I went the route of ignoring Rust, while being vocal about the EVM being sufficient, and even got into fiery arguments regarding EVM vs SVM and CosmWasm. Despite the inherent flaws the Ethereum Virtual Machine possesses, I believe — and still do — that a system built specifically for an ecosystem will remain the top platform in the long run, the platform of choice for any tangible protocol built in the space. Given how intensely I defended the EVM and Solidity, its p..." current
- 07:5307:53, 17 November 2025 diff hist +1 I Re-wrote One Spring Boot Microservice in Rust and Measured Everything for 30 Days No edit summary current
- 07:5307:53, 17 November 2025 diff hist +3,881 N I Re-wrote One Spring Boot Microservice in Rust and Measured Everything for 30 Days Created page with "1. Why I even considered mutiny against Spring Boot I’ve shipped Spring Boot code since 2.0. I like the ergonomics, I like @Transactional, and I really like the ecosystem. But at 03:14 on Black Friday our user-auth service cold-started in 14.2 s on a t3.medium. The ELB threw 502s for 38 seconds. We lost ~4 k sign-ups. Post-mortem showed the JVM was 180 MB at idle and the container image cracked 420 MB. I asked myself: “Is the JVM the only culprit, or can a c..."
- 07:5207:52, 17 November 2025 diff hist +14,669 N My Python Comfort Zone Shattered: Embracing Rust for Blazing-Fast, Bug-Free Code Created page with "You know that feeling, don’t you? That cozy, familiar hum you get from a tool that just fits? For the longest time, honestly, that was Python for me. It was my trusty sidekick, my go-to for pretty much everything. I’m talking about those quick little scripts I’d whip up before my first coffee, all the way to massive web apps and super intricate data pipelines. Seriously, if there was a job that needed doing, Python was usually the very first language that popped..." current
- 07:5107:51, 17 November 2025 diff hist +35 Bare-Metal Rust: Safety Below the OS No edit summary current
- 07:4907:49, 17 November 2025 diff hist +13,075 N Bare-Metal Rust: Safety Below the OS Created page with "I spent six hours fighting the borrow checker over an interrupt handler. Six hours. The compiler kept rejecting my code, insisting I couldn’t share mutable state between the main loop and the ISR. I was convinced Rust was being pedantic about something that worked fine in C for decades. When I finally compiled a workaround using unsafe, I stress-tested it. Race condition at 847 interrupts per second. The borrow checker had been right. The bug would’ve shipped. In C,..."
- 07:4807:48, 17 November 2025 diff hist +13,742 N Rust HashMap Interactions Made Simple: The Entry API Created page with "Rust’s entry API is something that isn’t often talked about, but it makes maps easier to use without risking panics, and it helps eliminate redundant lookups. If you’ve ever written code like if map.contains_key(k) { … } else { … }, then you’ve been doing two lookups when one would do, and adding another layer of nesting. The entry API solves those problems and provides an idiomatic and safe alternative to working with maps. In this article I’m going to..." current
- 07:4707:47, 17 November 2025 diff hist +6,313 N Rust’s Tokio vs. Go’s M:N Scheduler: A Deep Dive into Async I/O Thread Contention Created page with "We added more workers to the Tokio pool expecting faster throughput. Instead, tail latencies doubled and CPU utilization dropped. The problem wasn’t the scheduler or our code logic — it was the runtime and OS kernel competing for the same file descriptors during parallel async I/O. Understanding how Tokio’s work-stealing differs from Go’s cooperative M:N model explains why identical workloads can show wildly different contention patterns. How Tokio’s Work-Stea..." current
- 07:4507:45, 17 November 2025 diff hist +29 Rust vs DPDK: I Rewrote Our Network Stack and the Borrow Checker Won No edit summary current
- 07:4407:44, 17 November 2025 diff hist +10,046 N Rust vs DPDK: I Rewrote Our Network Stack and the Borrow Checker Won Created page with "I spent six hours fighting the borrow checker on a Tuesday night. My packet parser kept failing with lifetime errors I couldn’t understand. The compiler rejected every fix. I was convinced Rust was being pedantic about something that didn’t matter. Then I stress-tested my original C implementation — segfault at 12 million packets per second. The borrow checker hadn’t been pedantic. It had been right. Why I Even Attempted This Migration Our team was running a DPDK..."
- 07:4207:42, 17 November 2025 diff hist +6,486 N Introducing flutter tantivy: Bringing Rust-Powered Full-Text Search to Flutter Created page with "Search is everywhere. From finding the right email in your inbox to discovering products in an e-commerce app, full-text search has become an essential feature in modern applications. But implementing high-performance search on mobile devices? That’s a different challenge altogether. Today, I’m excited to share flutter_tantivy — a Flutter plugin that brings the blazing-fast Tantivy search engine, written in Rust, directly to your Flutter applications. The Proble..." current
- 07:4107:41, 17 November 2025 diff hist +18 Rust Macros Tutorial That Stops the Boilerplate No edit summary current
- 07:4007:40, 17 November 2025 diff hist +8,919 N Rust Macros Tutorial That Stops the Boilerplate Created page with "The struct definition spreads across 80 lines. Field by field, you type the same pattern: name, type, a derive attribute, a builder method, a validation check. Copy, paste, adjust. The code works but maintaining it feels like punishment. Change one field and suddenly you’re updating six different places, hoping you caught them all. We write boilerplate because we have to, but nobody actually enjoys maintaining code that’s 70% identical patterns with tiny variations...."
- 07:3907:39, 17 November 2025 diff hist +34 Rust in Space: Why NASA Trusts It for Mission-Critical Flight Software No edit summary current
- 07:3807:38, 17 November 2025 diff hist +15,335 N Rust in Space: Why NASA Trusts It for Mission-Critical Flight Software Created page with "The telemetry buffer crashed after 47 hours of continuous testing. Three threads racing to write sensor data — textbook race condition. In C, this would’ve reached Mars before we found it. Rust caught it at compile time. I wasn’t expecting that. I’d rewritten the module specifically to test Rust’s safety claims, half-expecting the hype to fall apart under real spacecraft constraints. Instead, the compiler pointed at line 47 and said “you’re trying to mutabl..."
- 07:3507:35, 17 November 2025 diff hist +19 Why This Python Dev Switched to Rust (and What I Gained!) No edit summary current
- 07:3407:34, 17 November 2025 diff hist +14,940 N Why This Python Dev Switched to Rust (and What I Gained!) Created page with "You know that feeling, right? That moment when you finally find the one? The programming language that just gets you, speaking your coding love language, you know? For the longest, longest time, that was absolutely Python for me. It was my trusty sidekick, my go-to for pretty much everything-from those super quick little scripts you bash out before breakfast, all the way to huge, sprawling web apps. I even used it for my sneaky automation tools and, like, anything wit..."
- 07:3307:33, 17 November 2025 diff hist +7,941 N Why One in Six Go Developers Are Switching to Rust in 2025 — And What It Means for Your Career Created page with "Why teams are trading garbage collectors for guard rails — and how to stay valuable either way. A lot of Go teams love their speed — until unsafety, tail-latency, or infra cost knocks. In 2025, more of them are reaching for Rust not as a fad, but as a seatbelt. If your stack speaks Go today, your career plan should speak Rust tomorrow. The Pattern You’re Seeing (and Why It Feels Sudden) A payments platform replaces a hot Go path with a Rust crate, and the p95..." current
16 November 2025
- 08:2308:23, 16 November 2025 diff hist +9,496 N How Rust Guarantees Memory Safety (and Why You Rarely See Segfaults) Created page with "If you’re eyeing Rust because it’s “fast like C++ but safe like Java,” you’re not alone. The two big promises that draw people in are memory safety and no segmentation faults in safe code. What’s surprising is how Rust achieves this: not with a garbage collector or a runtime nanny, but with a few powerful compile-time rules. Here’s the short version: Summary: Rust prevents entire classes of memory bugs at compile time with an ownership system and..." current
- 08:2208:22, 16 November 2025 diff hist +29 Rust’s Firmware Revolution: How Memory Safety Stopped Our $2M Hardware Recall No edit summary current
- 08:2008:20, 16 November 2025 diff hist +14,854 N Rust’s Firmware Revolution: How Memory Safety Stopped Our $2M Hardware Recall Created page with "The email arrived, Production line down. Two hundred server boards refusing POST. I pulled up the logs from our test lab, still half-asleep, expecting the usual suspects — bad solder joints, maybe a silicon stepping issue with the new CPU batch. Instead, I found something worse. Our BIOS update from the previous week had a bug in the memory initialization code. Classic buffer overflow during RAM timing calibration. The overflow corrupted ACPI tables. Those tables told..."
- 08:1908:19, 16 November 2025 diff hist +41 An idea for a GPU programming language feature: polysemous function type checking — Rust No edit summary current
- 08:1608:16, 16 November 2025 diff hist +30,230 N An idea for a GPU programming language feature: polysemous function type checking — Rust Created page with "In languages like Rust with powerful type systems, developers are able to encode a lot about their program’s behavior in the type system. This makes it possible to validate a large number of your program’s assumptions at compile time, which is very favorable for a number of reasons. My experience with GPU programming has been that this is harder to achieve. A primary reason for this is that GPU programming is SIMT (Single Instruction, Multiple Threads), meaning that..."
- 08:1308:13, 16 November 2025 diff hist +7,937 N What Does Rust Use Instead of a Garbage Collector? Created page with "Summary: Rust frees memory deterministically using ownership + RAII (drop on scope exit). The compiler proves who owns what, inserts “drop glue” to run destructors at the right time, and forbids use-after-free. No background GC thread, no tracing pauses. When you opt in, you can also use reference counting (Rc/Arc)—which is GC-like in spirit but explicit, local, and non-tracing. The mental model: Ownership, not collection Rust doesn’t periodically “..." current
- 08:1208:12, 16 November 2025 diff hist +5,667 N Rust Won’t Kill C++ — But Here’s the Real Threat Nobody’s Talking About Created page with "Every time a new programming language pops up, someone dramatically declares: “THIS is the end of C++!” Meanwhile, C++ is sitting in a rocking chair, sipping a bit of malloc() tea, whispering, “I’ve survived Java, Python, Go, and even JavaScript. Nice try, kid.” Rust, though — Rust felt different. It showed up wearing a leather jacket, talking about “safety” and “ownership,” and everyone started swooning. Devs whispered, “Finally! A systems lang..." current
- 08:0908:09, 16 November 2025 diff hist +14,061 N Rust’s Borrow Error : Why You Can’t Store a Value and a Reference to It in the Same Struct Created page with "You write what feels like perfectly reasonable Rust: struct Thing { count: u32, } struct Combined<'a>(Thing, &'a u32); fn make_combined<'a>() -> Combined<'a> { let thing = Thing { count: 42 }; Combined(thing, &thing.count) } …and the compiler very kindly replies: error: cannot return value referencing local variable 'thing' error: 'thing' does not live long enough You stare at it. But the struct owns the Thing. The reference is to a field inside that..." current
- 08:0708:07, 16 November 2025 diff hist +4,303 N 5 Concurrency Mistakes in Go, Rust, and Node That Kill Throughput Created page with "Your app is not slow because of your database. It is slow because your threads, goroutines, and event loops are fighting each other for air. Every engineer hits this wall once. The system “works,” but throughput drops as soon as real traffic hits. You scale horizontally. You blame latency. But deep down, you know something else is bleeding CPU cycles quietly. 1. Shared State Without Boundaries The deadliest concurrency bug is invisible — shared state mutation...." current
- 08:0508:05, 16 November 2025 diff hist +10,422 N Building a Rust Compiler: Understanding the Magic Behind the Curtain Created page with "The terminal cursor blinks. You type cargo build and press enter. Lines of text scroll past—dependencies resolving, crates compiling, optimizations running. Two minutes later, a binary appears. Executable. Ready to run. You trust this process completely without understanding any of it. You’re not alone in that blind spot. A 2024 developer survey found that 71% of programmers have never looked at compiler internals, even though they interact with compilers dozens o..." current
- 08:0308:03, 16 November 2025 diff hist +5,806 N How to Completely Uninstall Rust (installed via rustup) — The Friendly, No-Gotchas Guide Created page with "So you installed Rust on Ubuntu with the classic one-liner: curl https://sh.rustup.rs -sSf | sh …and now you want it gone, cleanly. Maybe you’re freeing space, switching machines, or just doing a fresh setup. Whatever the reason, here’s a crisp, battle-tested way to remove rustup, rustc, cargo, toolchains, and caches — without leaving PATH gremlins behind. Summary (Optimal Fast Path) If you installed Rust using rustup (the curl script above), run: # 1) U..." current
- 08:0108:01, 16 November 2025 diff hist +6,039 N Rust Error : “lifetime may not live long enough” — why &static fn(T) - T doesn’t mean what you think Created page with "You’ve got a tidy little generic: pub struct Test<T> { f: &'static fn(T) -> T, } …and Rust fires back: the parameter type T may not live long enough help: consider adding a bound T: 'static Why is the lifetime of a reference to a function pointer tangled up with the lifetime of T? After all, code lives forever, right? Let’s unpack what the compiler is protecting you from, and then fix it in a few idiomatic ways. The core intuition * &'static fn(T)..." current
- 07:5907:59, 16 November 2025 diff hist +7,551 N If StackOverflow Had Feelings, It Would Be Written in Rust Created page with "If StackOverflow were a person, it would be that relentlessly helpful friend who corrects your grammar and your runtime errors. You show up at 3 a.m., eyes glazed, whispering “segfault,” and they slide over a mug of coffee and a page of code comments. They’re blunt, a little pedantic, but they keep you from setting your production hair on fire. Now imagine that friend was a programming language. That language is Rust. It’s StackOverflow’s vibe distilled into..." current
- 07:5707:57, 16 November 2025 diff hist +17 Why Google, Microsoft, and the White House Chose Rust? No edit summary current
- 07:5607:56, 16 November 2025 diff hist +7,416 N Why Google, Microsoft, and the White House Chose Rust? Created page with "The Language Nobody Expected to Win Something strange happened in the programming world. A systems language — one designed for low-level, nerdy work — became the darling of startups, cloud companies, and even governments. That language is Rust. And if you haven’t paid attention yet, the gap between you and the opportunity is closing fast. In 2010, Mozilla was stuck. They had a browser filled with C and C++, and those languages had a problem. Memory safety vulner..."
- 07:5407:54, 16 November 2025 diff hist +12,936 N Bridging Two Worlds: Integrating Rust with Go Using CGo Created page with "Combining Rust’s Safety with Go’s Simplicity ⚡ Have you ever wondered how to leverage Rust’s blazing-fast performance and memory safety in your Go applications? The answer lies in CGo, Go’s powerful foreign function interface. In this guide, we’ll explore how to seamlessly integrate Rust code into your Go projects, combining the best of both worlds! 🚀 🤔 Why Integrate Rust with Go? Before diving into the technical details, let’s understand why this..." current
- 07:5207:52, 16 November 2025 diff hist +16 Binary Diet: Shrinking Rust Releases Without Sorcery No edit summary current
- 07:5207:52, 16 November 2025 diff hist +6,392 N Binary Diet: Shrinking Rust Releases Without Sorcery Created page with "“It’s just printing text,” he said. Fair point. A C version would’ve been what, 20KB? I muttered something about static linking and moved on. But that number kept bugging me. Four megabytes for twelve lines of code felt wrong. The Thing Nobody Tells You Here’s what happened: I built with cargo build --release and assumed that meant "optimized." Turns out, Rust's idea of optimized means "fast to execute" not "small to ship." The default release profile optimiz..."
- 07:5007:50, 16 November 2025 diff hist +9,317 N I Built My Own AI Girlfriend in Rust — And She Actually Remembers Me Created page with "Why I chose privacy over convenience, and how you can build your own AI companion that never forgets 🤔 The Problem That Started It All Let’s be honest — we’ve all tried ChatGPT, Claude, or other AI assistants. They’re impressive, sure, but there’s something fundamentally broken about the experience. Every conversation starts from scratch. They don’t remember that you told them your name yesterday, your favorite programming language, or that inside joke..." current
- 07:4907:49, 16 November 2025 diff hist −10 Profiling Rust Made Easy: cargo-flamegraph, perf & Instruments No edit summary current
- 07:4807:48, 16 November 2025 diff hist +7,224 N Profiling Rust Made Easy: cargo-flamegraph, perf & Instruments Created page with "Think of your Rust program like a busy playground. Some kids (functions) are calmly swinging; others are hogging the slide. Profiling is how you watch the playground to learn where time is really being spent — so you can fix the bottlenecks instead of guessing. Below is a practical guide that borrows the best tips from the Rust community forum, a hands‑on blog tutorial, and a short case study showing how one team cut CPU usage by ~70% after reading a flamegraph t..."
- 07:4607:46, 16 November 2025 diff hist +8,392 N Rust — 7 Essential Crate That Will Instantly Elevate Your Project in Rust Created page with "In Rust development, choosing the right third-party libraries (Crate) can significantly improve project quality and development efficiency. This article introduces 7 Crates that can greatly enhance Rust projects in key areas like error handling, serialization, asynchronous programming, HTTP requests, parallel computation, logging, and database access. Each Crate is paired with practical code examples and performance comparison data to help you quickly understand its valu..." current
- 07:4407:44, 16 November 2025 diff hist +5,231 N Meet Puhu: A Fast Python Image Library (with a Secret Rust Core) Created page with "Let me start with “Why I built Puhu?” If you’re a Python developer who has ever worked with images, you’ve probably used Pillow. It’s the reliable, go-to library for tasks such as resizing profile pictures and generating thumbnails. Pillow is legendary, but it’s also over two decades old. In the tech world, that’s ancient. As a Python developer who was starting to learn Rust, I found myself staring at Pillow and thinking… “I wonder if I can make that ..." current
- 07:4207:42, 16 November 2025 diff hist +17,230 N Rust in the Backend: When (and When Not) to Replace Your Node/Python Services Created page with "Rust in the Backend: When (and When Not) to Replace Your Node/Python Services The Significance of Rust in Backend Development As the landscape of backend development continues to evolve, Rust emerges as a compelling alternative to traditional programming languages like Node.js and Python. Its unique combination of performance, safety, and concurrency makes it an attractive option for developers looking to build robust and efficient server-side applications. Why Cons..." current
- 07:4107:41, 16 November 2025 diff hist +5,785 N Fixing Rust’s “linker cc not found” on Debian (WSL on Windows 10): A Clear, No-Nonsense Guide Created page with "You’ve installed Rust on Debian inside Windows Subsystem for Linux (WSL), ran your first rustc or cargo build, and—boom—got hit with: error: linker `cc` not found Good news: nothing’s wrong with Rust. You’re just missing the system C toolchain that Rust uses to link your final binary. On Linux, Rust typically invokes a system linker via a driver called cc (usually provided by GCC). On a fresh Debian/WSL install, that toolchain often isn’t there yet. Th..." current
- 07:4007:40, 16 November 2025 diff hist +17,384 N Rust Data Structures: Vec T, & T , Box T. Do You Really Understand Collection Containers? Created page with "Now that we have encountered more and more data structures, I have organized the main data structures in Rust from the dimensions of primitive types, container types, and system-related types. You can count how many you have mastered. As you can see, containers occupy half of the data structure landscape. When mentioning containers, you may first think of arrays and lists — containers that can be iterated. But in fact, as long as some specific data is wrapped inside..." current
- 07:3507:35, 16 November 2025 diff hist +7,721 N Finally Understanding Rust Ownership: A Visual Guide Created page with "You’re staring at your screen. The code looks completely normal. You’ve written this exact pattern in three other languages this week. But the Rust compiler is throwing “value borrowed here after move” and you’re just… stuck. It’s not that you don’t understand the words. It’s that the ground rules changed and nobody mentioned it. Variables don’t work the way they used to. Memory feels suddenly fragile, like you’re handling something that might break..." current
- 07:3307:33, 16 November 2025 diff hist +7,141 N Rust’s “cannot move out of borrowed content” (a.k.a. “behind a shared reference”) — what it really means and how to fix it without Created page with " Ever hit this? error[E0507]: cannot move out of `*line` which is behind a shared reference …and then you slap a .clone() on it, the code compiles, you ship it—and you’re still not sure why it failed in the first place? Let’s demystify this error, understand exactly what’s going on, and then walk through the most idiomatic, zero-allocation fixes. We’ll use your example and expand it into a general mental model you can reuse anywhere. The setup You ha..." current
- 07:3107:31, 16 November 2025 diff hist +9,314 N 7 Hard Security Wins Rust Guarantees — And 9 Traps It Won’t Save You From Created page with "Pull Quote #1: Rust deletes memory-unsafe classes of bugs; Rust does not delete misuse. Rust’s pitch is paradoxical and powerful. Safe Rust makes entire categories of memory corruption impossible, yet exploitable systems still ship when logic, concurrency, or supply-chain decisions are wrong. That tension is the real story. Not language wars. Risk accounting. Below is a precise map: what safe Rust kills outright, what Rust narrows, and what you must still def..." current
- 07:3007:30, 16 November 2025 diff hist +7,193 N Is it possible to cause a memory leak in Rust? Created page with "Short answer: yes. Rust guarantees memory safety, not “no leaks ever.” It’s entirely possible — sometimes even desirable — to leak memory on purpose. The important bit is understanding how leaks happen in Rust, why they don’t violate memory safety, and how to avoid them when you don’t want them. This post walks through the most common leak patterns — Rc cycles, std::mem::forget, Box::leak, and Box::into_raw—and shows how to design your type..." current