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

推荐订阅源

B
Blog
D
Docker
J
Java Code Geeks
腾讯CDC
Blog — PlanetScale
Blog — PlanetScale
G
Google Developers Blog
M
MIT News - Artificial intelligence
L
LangChain Blog
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
博客园 - Franky
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
N
Netflix TechBlog - Medium
B
Blog RSS Feed
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - FrancoisChabot/chirp: A set-centric metaprogramm...
Chabsff · 2026-06-12 · via Hacker News: 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.