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

推荐订阅源

J
Java Code Geeks
博客园 - 司徒正美
博客园 - 【当耐特】
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
宝玉的分享
宝玉的分享
V
V2EX
S
SegmentFault 最新的问题
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
L
LangChain Blog
D
Docker
腾讯CDC

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
EzLang - a small systems language I built in a month with AI
张一凡 · 2026-06-18 · via DEV Community

张一凡

Repo: https://github.com/ZYF93/EzLang

I spent the last month building a small programming language called EzLang.

It is an expression-oriented systems language with default value semantics, an Arena-style memory model, LLVM IR generation, a small Flow concurrency experiment, a CLI, formatter, LSP, VS Code extension, and bilingual docs.

This is not production-ready. It is a demo compiler and language-design experiment. I am posting it here because I would like sharper feedback from people who care about compilers, runtimes, type systems, and language tooling.

Why I built it

I wanted to explore a specific combination of ideas:

  • Systems-level output without making ownership syntax dominate every small program.
  • Value semantics by default.
  • Compiler-managed Arena allocation for temporary aggregates.
  • Named arguments and expression-first syntax for readability.
  • A small concurrency model that can lower to native runtimes and emcc/Wasm-like targets.
  • Tooling from day one, not after the language is "done".

None of these ideas are new. The interesting part, at least to me, is whether they can fit together in a small language that still feels practical.

What it looks like

from "std/fmt" import { format, toString };
from "std/io" import { println };

struct Data {
    val: I32;
};

const create = (seed: I32): Data => {
    const d = Data(val = seed + 32);
    return d;
};

const main = (): I32 => {
    const created = create(seed = 10);
    const copied = created;
    const args: Str[] = [toString<I32>(value = copied.val)];

    println(msg = format(template = "arena: copied value={}", args = args));
    return copied.val == 42 ? 0 : 1;
};

The implementation is conventional:

.ez source -> ANTLR parser -> semantic analysis -> LLVM IR -> object/executable

The compiler is currently written in Python and uses llvmlite for LLVM IR generation.

What works today

  • Parser and semantic-analysis pipeline.
  • LLVM IR generation for demo programs.
  • Native examples.
  • ez init, ez build, ez run, ez test, ez fmt.
  • Structs, generics, optional types, union types, function types, named calls, type aliases.
  • extern "..." for target plus declare for platform ABI bindings.
  • Early flow {}, parallel {}, and race(pl) runtime hooks.
  • Formatter, LSP, VS Code extension, and docs.

What does not work well yet

  • The language spec is not stable.
  • The Arena model needs much stronger escape analysis and negative tests.
  • Error messages are rough.
  • The runtime is intentionally tiny.
  • Cross-platform behavior is incomplete.
  • The standard library is more of a design map than a mature library.

I used AI heavily while building this. It was useful for boilerplate, tests, docs, and first-pass implementations, but it also made it very easy to generate plausible compiler code that was subtly wrong. The main lesson was that AI speeds up typing, not language design.

What I want feedback on

  • Is the Arena/value-semantics direction worth pursuing?
  • Is flow {} a useful abstraction, or just another async-shaped trap?
  • Are named arguments everywhere a good tradeoff for a systems language?
  • Should this stay Python-based while iterating, or move toward a lower-level/self-hosted compiler later?
  • What small benchmark or test suite would make the project more credible?

Stars are useful because they help me find people interested in pushing the project past demo status. More useful than stars: issues, design criticism, compiler tests, runtime feedback, and small programs that break the current assumptions.