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

推荐订阅源

D
Docker
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
B
Blog RSS Feed
H
Help Net Security
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
L
LangChain Blog
Vercel News
Vercel News

Show HN

GitHub - astefanutti/shaderbang: Shebang for Shaders Show HN: Generate Claude Code Workflows using Spec Driven Development approach 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).
GitHub - FrancoisChabot/chirp: A set-centric metaprogramm...
Chabsff · 2026-06-12 · via Show HN

Chirp is being built as a systems programming language. Two things make its design unusual:

  • Chirp code is a script that defines the program to be compiled, using the same machinery for metaprogramming as the code being built.
  • It uses a powerful and extensible set-theoretic constraint system in which guarantees are garden-variety values.

These two things play off of each other to create an unusually expressive and (I think) harmonious way to define compiled programs using surprisingly few building blocks.

For the whole story behind the what/why, have a look at motivation.md.

Note

Chirp is very much a work-in-progress. As of today, it's a workable scripting language. Albeit one with a very limited standard library. Compilation is not implemented yet.

Getting started

Requirements: CMake 3.20+, a C++20 compiler and a network connection for FetchContent() to be able to do its thing for googletest.

cmake -B build
cmake --build build && ctest --test-dir build

build/interpreter/chirp script.chirp

Here's a sample script you can try:

let fizz = { x:int | x % 3 == 0 };
let buzz = { x:int | x % 5 == 0 };

for (v ∈ 1..100) do {
    let out = match v {
        fizz ∩ buzz => "fizzbuzz",
        fizz => "fizz",
        buzz => "buzz",
        `any => v
    };

    `print(out);
};

Note

Don't let the Unicode and scare you. You can write `in and `and instead and use chirp --format to swap it out for you. I have it hooked up as my format-on-save in VSCode.

Misleading intuition warning

If you are a seasoned developer and, as I suspect will likely be the case, you go have a look at some code samples before reading the spec, you will find yourself in almost familiar territory, and there's a real risk of misinterpreting what's going on.

                This
                 |
                 v
let some_var : int64 = 3;

Is NOT the variable's type in Chirp. Thinking about it this way is not the end of the world and won't prevent you from using the language, but it shackles you in a way where you'd miss out on a lot of what the language has to offer. The full explanation is in the motivation.md file.

After that, the user guide will cover the basics.

State of the project

How stable is Chirp?

  • The syntax and grammar are quite stable at this point. They aren't formally locked down yet though.
  • The semantics are "mostly" stable, but there's a few points that are still a bit shaky
    • Set enumerability, finiteness and coextensiveness are likely to undergo tweaking.
    • Call signature checks are still a bit too loose for my liking.
    • Supersets and subsets are intentionally not dealt with right now, but we need to reckon with them eventually.
    • Function purity is not enforced quite as hard as it should be yet.
    • Mixed-typed binary operators are currently not supported, but will be.
  • The standard library is not to be trusted at all for the time being.

Current objectives

  • Develop an IR-based interpreter, so that the static solver has something to manipulate.
  • Start populating the standard library.

Roadmap

Chirp is interpreter-first, but not interpreter-only. It's ultimately meant to be a metaprogramming systems-level tool. But at the same time, the dynamic interpreter meta-language makes a suitable scripting tool in its own right, as a sort of "dynamically enforced TypeScript".

Because of this, the roadmap is split up in two:

Part 1: Dynamic Chirp

MILESTONE: Start publishing Dynamic Chirp v0.1 (DONE!)

  1. Populate the standard library
  2. Implement the IR-based interpreter

MILESTONE: Evaluate the road to a Dynamic Chirp v1.0

Part 2: Static Chirp

  1. Implement the static solver, the target should be TypeScript-ish level of provability
  2. Implement the Calcification process to narrow bindings down to representable types.
  3. Implement low-level code emission

MILESTONE: Start publishing Static Chirp v0.1

How far we can take it from there is unclear. I am reasonably confident that it will work for straightforward single-threaded computations (which is already something!). But where will the framework hit a hard wall? I have no idea at the moment.

Repo map:

examples/ : A collection of non-trivial examples of chirp code.

interpreter/ : A work-in-progress C++ interpreter. It can run Chirp scripts, load boot sources, dump ASTs, and do in-place ASCII->unicode operator replacement.

lib/chirp/boot : Chirp tries to define itself via its own language as much as possible. This is the Chirp-specified bridge between the raw interpreter and user code.

lib/chirp/std : This is where the standard library lives.

docs/spec/ : It's not trying to be a legalese-style spec at the moment. Formalism will happen once the dust settles a bit.

scripts/ : Developer utilities, including the conformance test runner.

tests/ : A chirp-based test/conformance suite. Run via scripts/test_conformance.py.

Contributing

If you are looking at contributing to chirp itself, here's a few things to know.

Running the test suite

The tests/ directory contains a bunch of chirp-written tests.

It's hooked up to run automatically when invoking ctest. But you can also run it manually, passing it the chirp executable as a parameter.

python scripts/test_conformance.py -j auto path/to/chirp

Areas of (dis) interest

I wouldn't bother trying too hard to improve the current interpreter. It's the most naive of implementations to make the language work enough to poke it with a stick. A better designed one is already in the works.