Sorting Wars: Benchmarking Selection, Insertion, Gnome e Bubble Sort em 5 Linguagens
via DEV Community: rust (author: Bernardo Lebron)
via DEV Community: rust (author: Bernardo Lebron)
Telegraph
Sorting Wars: Benchmarking Selection, Insertion, Gnome e Bub…
Algoritmos quadráticos são lentos — isso todo mundo sabe. Mas o quão lentos? E a linguagem escolhida importa mais do que o algoritmo em si? Foi exatamente isso que nossa turma de Algoritmos e Estruturas de Dados I do CEFET-MG decidiu testar empiricamente.…
Data Sanitization is a Design Flaw: How Penta-V Prevents Data Pollution at the Hardware-Software Boundary
via DEV Community: rust (author: Issac Andrew | Protocol Architect)
via DEV Community: rust (author: Issac Andrew | Protocol Architect)
Telegraph
Data Sanitization is a Design Flaw: How Penta-V Prevents Dat…
Go to GitHub, search for "data cleaning library," and you will find thousands of repositories. From Pandas to Pydantic, the entire software engineering industry has been conditioned to treat data sanitization as a reactive, post-facto chore. You ingest data…
How We Built Penta-V: A Rust Kernel That Wipes Out 50% of Technical Debt in AI Pipelines Under 1ns
via DEV Community: rust (author: Issac Andrew | Protocol Architect)
via DEV Community: rust (author: Issac Andrew | Protocol Architect)
Telegraph
How We Built Penta-V: A Rust Kernel That Wipes Out 50% of Te…
Every software architect fears the same ghost: Technical Debt. We’ve all been there—choosing the quick, dirty hack over clean architecture to hit a deadline. We promise ourselves, "We’ll refactor it later." But "later" never comes. Instead, we pay compounding…
🤯1
https://en.liujiacai.net/2026/05/16/bun-rust-port/ great read
My Thoughts on Bun's Rust Rewrite | Jiacai Liu's personal website
Before we discuss Rewrite Bun in Rust, there's something that needs to be said, because no one is saying it. Bun stands where it does today because of Zig. Jarred chose Zig back then not because it was "cool," but because Zig enabled a small team to rapidly prototype a high-performance JS runtime without a GC, without a heavy runtime. Zig's low friction, direct memory manipulation, and straightforward C interop were the core reasons Bun could punch above its weight on performance with an extremely small team in its early days. The architecture, data structures, and low-level design of Bun that you see today – that was shaped by Zig.
en.liujiacai.net
via DEV Community: rust (author: david duymelinck)
My Thoughts on Bun's Rust Rewrite | Jiacai Liu's personal website
Before we discuss Rewrite Bun in Rust, there's something that needs to be said, because no one is saying it. Bun stands where it does today because of Zig. Jarred chose Zig back then not because it was "cool," but because Zig enabled a small team to rapidly prototype a high-performance JS runtime without a GC, without a heavy runtime. Zig's low friction, direct memory manipulation, and straightforward C interop were the core reasons Bun could punch above its weight on performance with an extremely small team in its early days. The architecture, data structures, and low-level design of Bun that you see today – that was shaped by Zig.
en.liujiacai.net
via DEV Community: rust (author: david duymelinck)
👏1
Benefits of Professional Coursework Assistance
https://www.academicwriter.co.uk/termpaper-writing-service/
Improves coursework structure and organization
Helps students manage academic deadlines
Enhances research and referencing quality
Supports better academic writing standards
Reduces stress during heavy coursework periods
Provides guidance for complex assignments and topics
Get Professional Coursework Writing Assistance Today
Whether you need help with coursework research, case studies, reports, editing, or academic formatting, our professional coursework writing service is ready to provide reliable academic support tailored to your educational requirements.
via DEV Community: rust (author: Academic Writer Uk)
https://www.academicwriter.co.uk/termpaper-writing-service/
Improves coursework structure and organization
Helps students manage academic deadlines
Enhances research and referencing quality
Supports better academic writing standards
Reduces stress during heavy coursework periods
Provides guidance for complex assignments and topics
Get Professional Coursework Writing Assistance Today
Whether you need help with coursework research, case studies, reports, editing, or academic formatting, our professional coursework writing service is ready to provide reliable academic support tailored to your educational requirements.
via DEV Community: rust (author: Academic Writer Uk)
Web Developer Travis McCracken on Running Backend Services in a Monorepo
via DEV Community: rust (author: Travis McCracken Web Developer)
via DEV Community: rust (author: Travis McCracken Web Developer)
Telegraph
Web Developer Travis McCracken on Running Backend Services i…
Exploring Backend Development with Rust and Go: Insights from Web Developer Travis McCracken As a passionate web developer diving deep into the world of backend systems, I’ve come to appreciate the immense power and flexibility that languages like Rust and…
Our Term Paper Writing Services
Our professional term paper writing service is designed to provide reliable academic support for students across undergraduate and postgraduate levels. Whether you need help with topic selection, research, writing, editing, formatting, or complete term paper preparation, our experienced academic writers provide customized, well-researched solutions tailored to university requirements. Academic writing platforms commonly emphasize originality, subject expertise, and timely delivery as key features of term paper services. (dissertationonline.co.uk)
https://www.dissertationonline.co.uk/writing-services/term-paper/
Our Term Paper Writing Services
Custom Term Paper Writing
We create fully customized term papers based on your topic, academic level, instructions, and university guidelines.
Research-Based Term Papers
Our writers use credible academic sources, journals, and books to produce well-structured and evidence-based papers.
Analytical & Critical Writing
We help students develop strong arguments, critical evaluation, and structured academic discussion.
Editing & Proofreading
We improve grammar, structure, clarity, referencing, formatting, and overall academic quality.
Referencing & Formatting Support
We follow major citation styles including APA, Harvard, MLA, Chicago, and IEEE as required by universities.
Many academic writing providers commonly include research support, editing, proofreading, and citation assistance as part of their term paper services. (writers.com.pk)
via DEV Community: rust (author: Dissertation Online Uk)
Our professional term paper writing service is designed to provide reliable academic support for students across undergraduate and postgraduate levels. Whether you need help with topic selection, research, writing, editing, formatting, or complete term paper preparation, our experienced academic writers provide customized, well-researched solutions tailored to university requirements. Academic writing platforms commonly emphasize originality, subject expertise, and timely delivery as key features of term paper services. (dissertationonline.co.uk)
https://www.dissertationonline.co.uk/writing-services/term-paper/
Our Term Paper Writing Services
Custom Term Paper Writing
We create fully customized term papers based on your topic, academic level, instructions, and university guidelines.
Research-Based Term Papers
Our writers use credible academic sources, journals, and books to produce well-structured and evidence-based papers.
Analytical & Critical Writing
We help students develop strong arguments, critical evaluation, and structured academic discussion.
Editing & Proofreading
We improve grammar, structure, clarity, referencing, formatting, and overall academic quality.
Referencing & Formatting Support
We follow major citation styles including APA, Harvard, MLA, Chicago, and IEEE as required by universities.
Many academic writing providers commonly include research support, editing, proofreading, and citation assistance as part of their term paper services. (writers.com.pk)
via DEV Community: rust (author: Dissertation Online Uk)
Why We Built a Blockchain That Can't Be Hacked by Quantum Computers — And Why We Did It Before Anyone Else
via DEV Community: rust (author: MUHAMMAD ATTAHIR)
via DEV Community: rust (author: MUHAMMAD ATTAHIR)
Telegraph
Why We Built a Blockchain That Can't Be Hacked by Quantum Co…
There is a specific moment I remember when the decision became obvious. I was reading through the archived transaction records of an early Ethereum wallet — hundreds of signed transactions, every one of them sitting permanently in the public chain. The signatures…
Why your media parsers are a 0-click attack surface (and how to harden them)
via DEV Community: rust (author: Alan West)
via DEV Community: rust (author: Alan West)
Telegraph
Why your media parsers are a 0-click attack surface (and how…
I spent last Tuesday staring at a crash dump from a fuzzing run, watching a perfectly innocent-looking image decoder eat a malformed header and write 16 bytes past the end of a heap buffer. No user interaction. No clicks. Just a file that arrived over the…
Shipping 31 Rust crates in five days: a small-LLM dev stack, in the open
via DEV Community: rust (author: Mukunda Rao Katta)
via DEV Community: rust (author: Mukunda Rao Katta)
Telegraph
Shipping 31 Rust crates in five days: a small-LLM dev stack,…
I spent the last five days publishing 31 Rust crates to crates.io. Most of them are tiny, 150 to 300 lines of code each. None of them are a framework. Each one fixes one specific thing that breaks when you point a smaller open model at a real task. This is…
Building in public, week 9: cross-links, positions going up, and 246 new dev.to followers in 7 days
via DEV Community: rust (author: Serhii Kalyna)
via DEV Community: rust (author: Serhii Kalyna)
Telegraph
Building in public, week 9: cross-links, positions going up,…
tl;dr: Week 9 was infrastructure week. Closed the biggest SEO gap internal cross-links on 100% of pages. Average position improved for the first time in a month. The numbers GA last 7 days: 36 active users (+56.5%), 61 sessions (+38.6%). Traffic sources:…
❤1
Build a Self-Improving AI Agent in Rust with Garudust — Daily Briefing Bot in 10 Minutes
via DEV Community: rust (author: Garudust)
via DEV Community: rust (author: Garudust)
Telegraph
Build a Self-Improving AI Agent in Rust with Garudust — Dail…
Most AI agent frameworks feel like they were designed for Python developers who love ceremony. You write adapters, glue code, orchestrators, memory stores — and by the time your agent actually does something useful, you've got a monorepo and a headache. Garudust…
Indexing Solana Programs in Rust: Notes From a Python Backend Engineer
via DEV Community: rust (author: Brian Ting)
via DEV Community: rust (author: Brian Ting)
Telegraph
Indexing Solana Programs in Rust: Notes From a Python Backen…
TL;DR I built a small Solana program activity indexer in Rust to pressure-test the patterns I rely on every day in Python — cursor-based syncs, idempotent ingestion, mockable I/O — against an unfamiliar language and an unfamiliar chain. The repo is here:…
Securing the Stack: How to Build Zero-Trust Applications with WebAssembly
via DEV Community: rust (author: Alain Airom (Ayrom))
via DEV Community: rust (author: Alain Airom (Ayrom))
Telegraph
Securing the Stack: How to Build Zero-Trust Applications wit…
My firs hands-on experience to learn WASM! Introduction For a while now, I’ve been diving into articles and books on WebAssembly, exploring its mechanics and potential. But as any developer knows, there is a massive gap between reading a specification and…
Clipboard Monitor + Gemini in a Tauri App — Building a Smarter Dev Tool
All tests run on an 8-year-old MacBook Air.
All results from shipping 7 Mac apps as a solo developer. No sponsored opinion.
HiyokoHelper monitors the clipboard and optionally sends content to Gemini for analysis. It sounds simple. The implementation has specific gotchas.
Here's what I learned.
Clipboard monitoring in Tauri
There's no built-in file-watcher equivalent for the clipboard. You poll.
rustuse tauri_plugin_clipboard_manager::ClipboardExt;
use std::time::Duration;
use tokio::time::interval;
async fn watch_clipboard(handle: AppHandle) {
let mut last = String::new();
let mut ticker = interval(Duration::from_millis(500));
}
500ms polling is fast enough to feel responsive. Lower than 200ms and you're burning CPU for no user benefit.
What to do with clipboard content
For HiyokoHelper, clipboard content goes to Gemini for command explanation and danger detection. The flow:
Clipboard changes
Frontend receives clipboard-changed event
User clicks "Analyze" (or auto-analyze is on)
Content sent to Gemini with a structured prompt
Response shown in the UI
Auto-analyze on every clipboard change is too aggressive. Users copy passwords, personal data, sensitive content. Analyze on demand, not automatically.
The dangerous content problem
Terminal error messages and shell commands are the primary use case. But users also copy:
Passwords
API keys
Personal information
Code with secrets in it
Before sending to Gemini: strip obvious secrets. API keys (long alphanumeric strings), password manager output, anything that looks like a credential.
rustfn looks_like_secret(text: &str) -> bool {
// Long random strings
let has_long_random = text.split_whitespace()
.any(|w| w.len() > 30 && w.chars().all(|c| c.is_alphanumeric()));
}
Not perfect. Good enough to avoid the most obvious cases.
The history cache
Store clipboard history in SQLite with timestamps. Let users browse, search, and pin items.
Don't store everything forever. Cap at 100 items. Auto-delete items older than 7 days. Clipboard history that grows unbounded is a privacy and storage problem.
The verdict
Clipboard monitoring is polling. Gemini integration needs explicit user action, not auto-send. History needs a retention policy.
The useful part — AI analysis of terminal errors and commands — is genuinely useful once you get the UX right.
If this was useful, a ❤️ helps more than you'd think — thanks!
Hiyoko PDF Vault → https://hiyokoko.gumroad.com/l/HiyokoPDFVault
X → @hiyoyok
via DEV Community: rust (author: hiyoyo)
All tests run on an 8-year-old MacBook Air.
All results from shipping 7 Mac apps as a solo developer. No sponsored opinion.
HiyokoHelper monitors the clipboard and optionally sends content to Gemini for analysis. It sounds simple. The implementation has specific gotchas.
Here's what I learned.
Clipboard monitoring in Tauri
There's no built-in file-watcher equivalent for the clipboard. You poll.
rustuse tauri_plugin_clipboard_manager::ClipboardExt;
use std::time::Duration;
use tokio::time::interval;
async fn watch_clipboard(handle: AppHandle) {
let mut last = String::new();
let mut ticker = interval(Duration::from_millis(500));
loop {
ticker.tick().await;
if let Ok(current) = handle.clipboard().read_text() {
if current != last && !current.is_empty() {
last = current.clone();
handle.emit("clipboard-changed", current).ok();
}
}
}
}
500ms polling is fast enough to feel responsive. Lower than 200ms and you're burning CPU for no user benefit.
What to do with clipboard content
For HiyokoHelper, clipboard content goes to Gemini for command explanation and danger detection. The flow:
Clipboard changes
Frontend receives clipboard-changed event
User clicks "Analyze" (or auto-analyze is on)
Content sent to Gemini with a structured prompt
Response shown in the UI
Auto-analyze on every clipboard change is too aggressive. Users copy passwords, personal data, sensitive content. Analyze on demand, not automatically.
The dangerous content problem
Terminal error messages and shell commands are the primary use case. But users also copy:
Passwords
API keys
Personal information
Code with secrets in it
Before sending to Gemini: strip obvious secrets. API keys (long alphanumeric strings), password manager output, anything that looks like a credential.
rustfn looks_like_secret(text: &str) -> bool {
// Long random strings
let has_long_random = text.split_whitespace()
.any(|w| w.len() > 30 && w.chars().all(|c| c.is_alphanumeric()));
// Common secret patterns
let has_secret_pattern = text.contains("sk-")
|| text.contains("AIza")
|| text.contains("ghp_");
has_long_random || has_secret_pattern
}
Not perfect. Good enough to avoid the most obvious cases.
The history cache
Store clipboard history in SQLite with timestamps. Let users browse, search, and pin items.
Don't store everything forever. Cap at 100 items. Auto-delete items older than 7 days. Clipboard history that grows unbounded is a privacy and storage problem.
The verdict
Clipboard monitoring is polling. Gemini integration needs explicit user action, not auto-send. History needs a retention policy.
The useful part — AI analysis of terminal errors and commands — is genuinely useful once you get the UX right.
If this was useful, a ❤️ helps more than you'd think — thanks!
Hiyoko PDF Vault → https://hiyokoko.gumroad.com/l/HiyokoPDFVault
X → @hiyoyok
via DEV Community: rust (author: hiyoyo)
Web Developer Travis McCracken on My Favorite VSCode Extensions for Backend Dev
via DEV Community: rust (author: Travis McCracken Web Developer)
via DEV Community: rust (author: Travis McCracken Web Developer)
Telegraph
Web Developer Travis McCracken on My Favorite VSCode Extensi…
Building Robust Backends with Rust and Go: A Perspective from Web Developer Travis McCracken As a passionate web developer specializing in backend technologies, I’ve spent countless hours exploring the capabilities of different programming languages to build…
Five problems every agent loop has. No framework needed.
Most agent failure modes are not interesting. They are boring. They are the same five problems in different costumes. After eighteen months running agent loops in production, I keep meeting these five and only these five.
I do not build agent frameworks. I build small libraries that fix one failure mode each. You install the one you need. The composition emerges from your code, not a framework's architecture diagram.
Here they are in roughly the order you will hit them.
1. The JSON is not JSON
Your model returns
Fix: repair before validate. Strip the fence. Extract the largest balanced JSON object from surrounding prose. Remove trailing commas. Then validate against your schema. If validation fails, send the model back a precise hint, not a generic "invalid JSON, please try again."
The hint is the trick. Smaller models self-correct beautifully on a structural complaint. They do not self-correct on a vague reprimand.
2. The tool args are wrong
The model picks the right tool. It calls it with
Fix: validate every tool call against its schema before running it. Validation issues become the tool's response. Feed them back. The model fixes the call on the next turn.
Always return all validation issues at once, not the first. The model fixes them in one retry, not five.
3. The agent wanders to the wrong network
The minute your agent can pick URLs, you handed it URL-picking power. A confused-deputy bug or a prompt injection sends a fetch to a domain you did not authorize. By the time you notice, an API key is in an attacker's log.
Fix: declarative domain allowlist. List the four hosts your agent legitimately needs. Block everything else with an error message at the HTTP layer.
4. The context budget runs out
You stack five turns of chat history. You drop the system message accidentally during truncation. The agent forgets what it is doing. Or you drop the trailing user turn and the model answers a question you never asked.
Fix: anchored truncation. Preserve the leading
Drop-oldest is the right default for chat. Drop-middle is better when you want both early grounding and recent context. Both keep the load-bearing pieces of the prompt.
5. Regressions sneak in
You tweak a system prompt. The agent now picks tools in a slightly different order. Sometimes that is fine. Sometimes it is a regression that breaks the deployed app and you only notice next Friday.
Fix: snapshot tests for agent traces. Record one run end-to-end. First test run writes the snapshot. Later runs diff and fail with a unified diff if anything changed. Refresh with an env var when the change is intentional.
The framework I did not write
A naive agent loop hitting all five of these:
Ten lines. Five concerns. Each concern is a separate 200-line library that does one thing and ships independently.
The framework version of this is 2000 lines, locks you to one HTTP client, opinionated about which provider, and bundles all five concerns into a single API you cannot pry apart when one of them is wrong.
I have shipped both kinds. The small libraries win every time.
If you are building an agent and have not hit problems 1 or 2 yet, you will. Skip the framework. Pick the small library when the problem actually shows up. Compose.
That is the whole stack.
via DEV Community: rust (author: Mukunda Rao Katta)
Most agent failure modes are not interesting. They are boring. They are the same five problems in different costumes. After eighteen months running agent loops in production, I keep meeting these five and only these five.
I do not build agent frameworks. I build small libraries that fix one failure mode each. You install the one you need. The composition emerges from your code, not a framework's architecture diagram.
Here they are in roughly the order you will hit them.
1. The JSON is not JSON
Your model returns
Sure, here you go:\njson\n{...,}\n``. You parse it. You crash.Fix: repair before validate. Strip the fence. Extract the largest balanced JSON object from surrounding prose. Remove trailing commas. Then validate against your schema. If validation fails, send the model back a precise hint, not a generic "invalid JSON, please try again."
The hint is the trick. Smaller models self-correct beautifully on a structural complaint. They do not self-correct on a vague reprimand.
2. The tool args are wrong
The model picks the right tool. It calls it with
units: "kelvin" against an enum of ["c", "f"]. You run the tool. Bad things happen.Fix: validate every tool call against its schema before running it. Validation issues become the tool's response. Feed them back. The model fixes the call on the next turn.
Always return all validation issues at once, not the first. The model fixes them in one retry, not five.
3. The agent wanders to the wrong network
The minute your agent can pick URLs, you handed it URL-picking power. A confused-deputy bug or a prompt injection sends a fetch to a domain you did not authorize. By the time you notice, an API key is in an attacker's log.
Fix: declarative domain allowlist. List the four hosts your agent legitimately needs. Block everything else with an error message at the HTTP layer.
4. The context budget runs out
You stack five turns of chat history. You drop the system message accidentally during truncation. The agent forgets what it is doing. Or you drop the trailing user turn and the model answers a question you never asked.
Fix: anchored truncation. Preserve the leading
system message and the trailing user turn. Drop from the middle.Drop-oldest is the right default for chat. Drop-middle is better when you want both early grounding and recent context. Both keep the load-bearing pieces of the prompt.
5. Regressions sneak in
You tweak a system prompt. The agent now picks tools in a slightly different order. Sometimes that is fine. Sometimes it is a regression that breaks the deployed app and you only notice next Friday.
Fix: snapshot tests for agent traces. Record one run end-to-end. First test run writes the snapshot. Later runs diff and fail with a unified diff if anything changed. Refresh with an env var when the change is intentional.
The framework I did not write
A naive agent loop hitting all five of these:
`rust
let fitted = Fitter::new(8_000).fit(messages, Strategy::DropOldest);
let raw = call_model(&fitted).await?;
let action = caster.parse(&raw)?;
if action.kind == "tool" {
validator(&action.tool)?.validate(&action.args)
.map_err(|e| anyhow!(e.for_llm()))?;
run_tool(&action).await
} else {
Ok(action.text)
}
`Ten lines. Five concerns. Each concern is a separate 200-line library that does one thing and ships independently.
The framework version of this is 2000 lines, locks you to one HTTP client, opinionated about which provider, and bundles all five concerns into a single API you cannot pry apart when one of them is wrong.
I have shipped both kinds. The small libraries win every time.
If you are building an agent and have not hit problems 1 or 2 yet, you will. Skip the framework. Pick the small library when the problem actually shows up. Compose.
That is the whole stack.
via DEV Community: rust (author: Mukunda Rao Katta)