惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hacker News: Ask HN
Hacker News: Ask HN
Last Week in AI
Last Week in AI
G
Google Developers Blog
腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
IT之家
IT之家
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
M
Microsoft Research Blog - Microsoft Research
Blog — PlanetScale
Blog — PlanetScale
D
Docker
F
Fortinet All Blogs
A
About on SuperTechFans
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cyber Attacks, Cyber Crime and Cyber Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
PCI Perspectives
PCI Perspectives
GbyAI
GbyAI
Recorded Future
Recorded Future
E
Exploit-DB.com RSS Feed
V
V2EX - 技术
S
Schneier on Security
S
Security Archives - TechRepublic
I
InfoQ
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
LINUX DO - 最新话题
W
WeLiveSecurity
Security Latest
Security Latest
博客园 - 三生石上(FineUI控件)
T
The Blog of Author Tim Ferriss
Stack Overflow Blog
Stack Overflow Blog
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Secure Thoughts
B
Blog RSS Feed
N
Netflix TechBlog - Medium
C
Comments on: Blog
SecWiki News
SecWiki News
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网
P
Proofpoint News Feed
I
Intezer

DEV Community

The Minimum Viable Test Suite for Working with Agents Why Perplexity Started Citing My Blog: 5 Changes That Actually Worked Sync Supabase via OAuth: No Connection String Needed I asked three AI models the same API question. Only one had it right. Implementing Saga Pattern With Lambda Durable Function Why does AI forget what you said (and how to fix it) I built a daily Wordle-style game for AI tools - Here's how Mapping Polish company structures: querying KRS direct via API Built tmpdrop — a tiny self-hosted ephemeral file drop Running Local LLM - 0$ Personal Agentic AI Assistant - Part 3 LLD Object-Oriented Design: Interfaces & Abstract Classes (Designing Contracts) The Smaller Ship: Vitalik, the Ethereum Foundation's Restructuring, and What It Leaves for Investors Looking for 4 people to build something weird with me Building a Local-Only RAG System with Ollama and TypeScript The False Positive Tax: a 1:1 TP:FP analysis of eslint-plugin-security What's new in Data Preprocessor 1.5.x — R codegen, Robust Scaler, and a deadlock post-mortem How I self-hosted my Flask app on an old laptop for almost free I built a free DSA interview prep site because I was tired of the existing options I built an AI agent that migrates Next.js Pages Router to App Router Prisma Query Logging and PostgreSQL: Where the ORM Ends and the Database Begins Prisma query logging y PostgreSQL: dónde termina el ORM y empieza la base From Browser to Server : The Journey of an HTTP Request (Demystifying the Web’s Infrastructure) Santa Augmentcode Intent Ep.6 I Benchmarked 17 ESLint Security Plugins. Only One Found Every Vulnerability. How to Build a High-Performance Image Optimization Pipeline in 5 Minutes 50 Linux Commands Every DevOps Engineer Must Know Less Toil, More Flow - Automating the Path from Request to Implementation The Code Review Checklist I Actually Use How I run a small blog on Astro 5 + Content Collections Git: Best Practices for Professionals How IBM Bob Became My Everyday Coding Companion Solana Passkey Wallet: Replacing Seed Phrases with SIMD-0075 I built a small browser puzzle game about arrows I wrapped Claude Code in a zsh function. Here's every decision I almost got wrong. Mobile Game Optimization: A Unity Developer's Checklist Git: Best Practices for Beginners Three days I lost chasing a ghost that was already dead on disk Why Too Many Parts Hurt ClickHouse Performance Guardrails for Agent Output: Pluggable Validation Before and After LLM Calls Gemma Forge: Local AI Without the Setup Wall From Half‑dead Prototype to Local‑Only AI Medical Assistant: Rewiring MedClinic with GitHub Copilot Runninig a forkbomb in Jenkins What’s Actually Happening When You Use Git Preventing Recursive Tool Loops in LangChain Agents Building a Rock-Paper-Scissors CLI with TypeScript — Union Types, Conditionals, and Jest Your AI Coding Agent Wastes 80% of Its Context. Fixed That with Graph Theory. Why Flutter Has Become the Go-To Framework for Fintech App Development We built a scripting language just for AI agents. Here's why. Stop building AI inboxes. Build decision layers instead. Meme Monday Why I Built @editora/ui-react? Are AI tools the next level of abstraction in software development? Identity on Solana: Your Wallet Is Your Account One API Call Changed Everything The Internet Career Nobody Talks About Enough: What Is DevRel? Solar Panel Wiring Diagram: Series vs Parallel Hello everyone! Glad to join the dev.to community I Built an AI Agent That Tailors My Resume - Here's How Agents Actually Work I Built a WhatsApp OTP + AI Chatbot Platform for African Businesses MTP Explained — And Why It Matters for Android on Mac Most Beginners Learn Full-Stack Development Backwards GitHub Glow-Up: Open Source, READMEs, Badges, Streaks, Git and gh CLI System Design Cheat Sheet: Concepts Every Developer Should Know Are Junior Developer Roles Actually Dying? A Fresher's Honest Take Using DigitalOcean Droplets as Ephemeral Sandboxes for AI Agents I built a VSCode extension that visualises your code navigation as a call tree — made for legacy codebase pain Vite predev/prebuild: chaining scripts without losing your mind A website to save you from messy browser tabs Dear Web2 Developer... Solana is here calling Postgres JSONB indexes: GIN vs BTREE on the same column The $5 AI That Remembers Everything What are your goals for the week? #180 Zettelkasten for Developers: A Practical Method That Works OpenClaw vs Hermes Agent: Stars, Downloads & Usage 2026 `act` vs. `waitFor` Global Teams Don’t Struggle With Time Zones. They Struggle With Context Python as a JavaScript Dev $5.4 Billion in Damage. 8.5 Million Machines Down. Three YAML Controls Would Have Prevented It. Here's the Structural Analysis. 🚫 Stop Using PN532 V1 for Your NFC Projects (Real Debugging Experience) Probabilistic Graph Neural Inference for smart agriculture microgrid orchestration for extreme data sparsity scenarios Inference Is Becoming the New Steady-State Cost Center Why AI-Generated Code Is Always Good Enough — And Never Great I built a dark admin dashboard template in HTML — no React, no npm, just pure HTML What is the Difference Between Lattice-Based and Hash-Based Signatures? Next.js App Router caching: revalidate, dynamic, and no-store without the folklore Next.js App Router caching: revalidate, dynamic y no-store sin folklore I built Stashly — a full-stack content manager with a rich text editor published: false tags: react, node, mongodb, typescript Why I Started Building React Projects Instead of Just Watching Tutorials ? Every Tool Eventually Becomes Tuesday Nobody Warns You That Real Software Engineering Feels Chaotic Tích hợp VNPay, Stripe trong Odoo 19 BeautifulSoup and Requests for Web Scraping With Python: When Simple Still Works I Was Stuck Debugging React — Then Developer Tools Changed It Buck Converter Ripple: Sizing the Inductor and Capacitor With Confidence AWS Just Made Its MCP Server Generally Available. Here's What It Actually Gives AI Agents. RAMPART Tests Your AI Agents in Dev. What Catches Malicious Tool Calls in Production? Vibe Team Software Engineering: What a Real AI Human Dev Team Workflow Actually Looks Like An npm Package for AI Agent Orchestration Just Shipped With Its Front Door Unlocked. Here's What the CVE Actually Reveals. Microsoft Foundry Just Added CI/CD for AI Agents. Here's What That Actually Changes. The Best Career Insurance Is a Tech Event You Don't Want to Attend
Zero Heap Allocations at 1.18 GB/s: Deep Dive into ForgeZero 4.0.x
BMJ · 2026-05-25 · via DEV Community

What happens when you migrate a system tool from pure Node.js to Go, strip out the standard GC-heavy paths, and force a file system engine to hit 0 allocs/op?

You get ForgeZero (fz) — an open-source bare-metal system software builder created by @AlexVoste. Designed to eliminate bloated Makefiles for low-level developers, it orchestrates NASM, GAS, FASM, GCC, and Clang concurrently under a single unified .fz.yaml configuration.

With the recent launch of version 4.0 and its subsequent 4.0.1 patch, the project underwent a radical low-level optimization sprint targeting Go's runtime overhead.

Here's a technical breakdown of how it achieves near-native bare-metal execution speeds.


⚡ The Benchmark Reality Check

Running on an Arch Linux testbed (Intel i5-10310U), the updated engine delivers striking performance metrics:

Metric Result
Data throughput ~1.18 GB/s steady state
File hashing (100 MB payload) ~78–84 ms
Memory footprint 0 allocs/op across all hot-path runs
goos: linux
goarch: amd64
BenchmarkHadesEngine/Process100MB-8   14   78411200 ns/op   0 B/op   0 allocs/op

Enter fullscreen mode Exit fullscreen mode

By completely avoiding heap allocations on critical execution paths, the application bypasses Go's Garbage Collector entirely — achieving deterministic latency similar to C or Rust.


🛠️ The Architecture: Under the Hood of HADES

To pull off 0 allocs/op while scanning deeply nested directory structures and executing multiple sub-processes, the compiler architecture leans on three internal layers.

1. The HADES Engine & Memory Re-use

The file system sub-engine (fs, seal, and the linker/assembler modules) was fully overhauled. Instead of spawning new byte slices or strings during recursive scans, ForgeZero:

  • Pre-allocates localized memory arenas and sliding ring buffers
  • Handles path strings via direct string-to-[]byte headers (unsafe.Pointer), dodging the typical heap allocation penalty associated with dynamic string manipulation in Go

2. Multi-Engine Concurrency & Automated Fallbacks

ForgeZero dynamically parallelizes multi-file assembly:

  • Single file: matches input files directly to object targets (fz -asm boot.asm)
  • Directory: parses whole structures recursively (fz -dir ./src)

The engine also implements an aggressive link-level degradation system:

  1. Try gcc compilation
  2. Fallback to gcc -no-pie if position-independent execution fails
  3. Degrade cleanly to a bare ld link for completely naked environments

3. Explicit Mode Switches

For strict bare-metal control, devs can override automated link behaviors via targeted CLI flags:

  • -mode c — explicitly lock execution strictly through GCC
  • -mode raw — bypass safety overrides and link unmanaged binaries directly with raw ld

🚀 What's New in Patch 4.0.1?

While 4.0 laid the groundwork for memory optimization, the 4.0.1 hotfix secures edge cases in bare-metal pipeline execution.

Silent-by-Default Pipeline
Hides external noise from standard tooling (like nasm or gcc), displaying a clean single-line state block: Built: program.out. Errors are trapped and viewable in full via the -verbose flag.

Collision Resolution
Fixes namespace collisions on identical file names using distinct low-level syntax extensions — e.g., main.asm and main.s now map correctly to independent main_asm.o and main_s.o components without cross-contamination.

Garbage Cleanup
Refined -clean runtime structures to ensure all cross-compilation objects (.fz_objs temporary workspaces) are recursively pruned using zero-allocation OS system calls.


💻 Getting Started

For system engineers moving away from manually typed, multi-stage assembly toolchains:

# Pull the latest bare-metal builder package directly via Go
go install github.com/forgezero-cli/forgezero@latest

Enter fullscreen mode Exit fullscreen mode

Make sure your underlying assembly tools (nasm, fasm, ld, etc.) are globally mapped within your system $PATH.

Check out the fully-tested source tree, architecture specs, and documentation over at the official ForgeZero GitHub Repository.