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

推荐订阅源

博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
爱范儿
爱范儿
月光博客
月光博客
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog
T
Tailwind CSS Blog
美团技术团队
D
Docker
V
Visual Studio Blog
Martin Fowler
Martin Fowler
博客园 - 聂微东
The Cloudflare Blog

Show HN

Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code.
GitHub - studiohaze/topaz: A small, closed, Unicode-first...
yo_tafo · 2026-06-16 · via Show HN

A small, closed language for application intent — it reads like Python or TypeScript, and it compiles to a self-contained native binary.

You write the intent. The compiler writes the Rust.

Topaz is written by people and by agents and checked by the toolchain. For each intent there is exactly one canonical form, locked in the Topaz v5.2 specification. The canonical documentation lives at topaz.ooo; this repository is the compiler, runtime, and conformance corpus behind it.

Four pillars

  • A small, closed surface. One way to say each thing. The language decides policy — Result for recoverable failure, optionals for absence, defer for cleanup — so people and agents don't re-decide it per file.
  • Unicode-first identity. Identifiers are Unicode from the lexer up; domain words stay in your language instead of becoming romanized approximations. No silent normalization — what you wrote is what compares equal.
  • Agent-ready by design. A specification small enough to hold in full, machine-checkable profiles, and documentation that is itself verified against the toolchain.
  • Templates with intent. sql, sh, and path strings are structured templates whose parts and interpolations stay separate — safety as grammar, not discipline.
function greet(name: string, language: string) -> string {
    return match language {
        case "한국어" => "안녕하세요, {name}님!"
        case "Русский" => "Привет, {name}!"
        case _ => "Hello, {name}!"
    }
}

let 사용자 = "김토파즈"
print(greet(사용자, "한국어"))
print(greet("Topaz", "Русский"))

사용자 is an ordinary variable.

Reaching Rust without writing it

Rust is the substrate; Topaz is the surface. topaz run executes a program through the reference interpreter, and topaz build lowers it to Rust and compiles a self-contained native binary — offline, from a runtime closure the compiler carries itself, with no Topaz runtime to install on the target:

topaz run   examples/hello.tpz          # execute via the interpreter
topaz build examples/hello.tpz \        # lower to Rust, build a native binary,
      --out-dir out --run               #   and run it — prints "Hello, Topaz!"

The emitter is held to the interpreter by a differential harness: every fixture runs through both engines and must agree, so the binary behaves exactly as the reference does.

Status

The Topaz v5.2 language is locked, and this toolchain implements it end to end — a Unicode-first front end and module resolver, a whole-unit static type checker (topaz check), the reference interpreter (topaz run), and native code generation (topaz emit / topaz build). The toolchain is pure Rust with zero external (crates.io) dependencies and forbid(unsafe_code) across the workspace.

v5.2.0 is the first public release. It is an early release — there are no API-stability or performance promises yet, only that the toolchain does what the locked specification says. topaz.ooo is the source of truth for what runs today and the gates that prove it.

Install

Prebuilt binary. Download topaz for your platform from the GitHub Releases page and put it on your PATH.

From source. With a Rust toolchain installed:

git clone https://github.com/studiohaze/topaz
cd topaz
cargo build --release          # the driver lands at target/release/topaz

topaz run, check, and emit work from the standalone binary; topaz build shells out to cargo through rustup, so that one command needs a Rust toolchain present.

Commands

Command What it does
topaz run <entry> Execute a program through the reference interpreter (--root <dir> for a multi-file unit).
topaz check <entry> Parse, resolve, and type-check a whole compilation unit.
topaz build <entry> --out-dir <dir> Lower to Rust and build a native binary (--release to optimize; --run to execute it).
topaz emit <entry> Lower a single-module program to Rust source — to stdout, or with --out-dir <dir> a cargo run-able crate.
topaz parse <file> / topaz dump-ast <file> Parse and report diagnostics, or print the AST.
topaz version [--verbose] Print the toolchain version.

The language version defaults to 5.2; pass --language-version 5.1 for the frozen single-file mode.

More

  • topaz.ooo — the canonical, verified documentation (introduction, guides, language reference) in English, Korean, and Russian.
  • examples/ — small runnable programs (each parses, type-checks, runs, and topaz builds).
  • docs/PHILOSOPHY.md — why Topaz exists and where it does not compete.
  • spec/ — the vendored, read-only language specification (v5.1 frozen, v5.2 locked).
  • docs/design/ — the Compiler Design Record ledger.

Building from source — the gates

This compiler is developed by AI agents under an adversarial, dialectic review protocol against the locked specification (see docs/design/CDR-005.md). The CI gates are the contract; run them locally with:

cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace               # 635 tests, including the corpus + differential harnesses
cargo run -p topaz_cli -- check-corpus   # the golden parse/exec gates

Community

Contributing, security, conduct

License

Topaz is licensed under the Apache License 2.0. It includes data derived from the Unicode Character Database; the required attribution is in NOTICE.