Skip to content
View nodecoda's full-sized avatar

Highlights

  • Pro

Block or report nodecoda

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
nodecoda/README.md

ncoda

编译器 / LLVM 后端 / DSL 工程师 · 求职中

我把 LLVM 里靠约定维持的东西,拆成可验证的语言、工具和差分测试。

GitHub handle: @nodecoda

Open to Work Zhihu Email

求职意向

  • 方向:编译器工程师 / LLVM 后端 / DSL 与开发者工具
  • 地点:深圳/上海 · 可远程
  • 到岗:随时

一句话:我不是在简历里写“熟悉 LLVM”,而是把 TableGen、GlobalISel、调度模型拆开,用可复现的差分测试证明实现等价。

代表项目

By the numbers:3014 条 x86 legalizer 查询 · 14 个 RISC-V 调度模型记录级等价 · 330 个 JSON 输出与 llvm-tblgen 字节级一致。

项目 是什么 / 硬证据
gisel GlobalISel legalizer 规则 DSL + 工具链,不依赖 llvm-tblgen(Python / C++)
9 个 corpus · x86 3014 条查询 · X86/AArch64/RISC-V 双向 A/B
ssdl 调度与子目标描述 DSL,records 是一等产物(Python)
14 个 RISC-V 调度模型记录级等价 · 164/164 checks
tablegen-go 零依赖 Go 重写 LLVM TableGen 语言核心与 record 后端(Go)
385 个在范围用例 · 330 个 JSON 输出与 llvm-tblgen 字节级一致 · AArch64/ARM/X86 的 records/JSON 均一致
ncoda 可运行 DSL:前端 → ncoda-ir/v1 → 无平台运行时(Go)
L1/L2 分层 · 174 个 capability headers · 插件 JSON-RPC
ph-dsl 浏览器抽取 DSL:编译到验证 IR,Playwright 执行(Python)
解析 / 名称解析 / 类型检查 / IR · check / fmt / run

以上均为个人开源项目,不是 LLVM 官方项目。

5 分钟验证

docker run --rm ghcr.io/nodecoda/gisel:latest gisel demo
岗位匹配 — LLVM 后端 / 编译器前端 / DSL / 测试
岗位关注点 对应证据
LLVM 后端 gisel(GlobalISel legalizer)、ssdl(调度模型)、tablegen-go(TableGen 语言核心)
编译器前端 gisel(parser / 类型 / 规则)、ncoda(lexer → parser → binding → types → passes)、ph-dsl(parser → 类型检查 → IR)
DSL 设计 ssdl(surface + semantic IR)、ncoda(L1/L2 分层)、gisel(规则语言)
正确性与测试 以 LLVM 为 oracle 的差分测试、字节级对拍、A/B harness、golden / frozen artifacts、CI gate
工程落地 Go / Python / C++、CLI、Docker、插件协议、可复现构建与文档

项目细节

gisel — GlobalISel legalizer 规则 DSL + 工具链
  • 输入 .gisel,输出 LLVM legalizer 规则(.inc / JSON),整条链路不依赖 llvm-tblgen。
  • 子命令覆盖 gen / check / lint / cases / domain / graph;graph 用三色 DFS 检查 legalizer 规则是否会形成环。
  • 9 个 corpus;x86 可生成 3014 条 answerless queries;X86 / AArch64 / RISC-V 的官方实现与生成实现双向 A/B 闭环。
  • 设计论证(中文):知乎文章。
  • A/B 与 import 工具在 gisel-ab / gisel-anchor,不在 gisel 本体;这是刻意划的边界。

仓库:nodecoda/gisel · 主张与证据:docs/CLAIMS.md · docs/CORPORA.md

ssdl — 调度与子目标描述语言
  • 不描述指令本身,只描述指令与微架构之间的运行时契约:资源、延迟、读写推进、变体、特性、行程。
  • 以 llvm-tblgen -print-records 为唯一 oracle,逐字段证明等价;RISC-V 14 个调度模型全部记录级等价,check.py 164/164 通过。
  • v2 表面语法 + semantic IR;6 个平级顶层关键字;records 是一等产物,TD 只是 records 的一种打印机。
  • 明确是学习项目,不是上游提案;价值在于把 TableGen 的领域模型从 foreach / defm / multiclass 里抽出来。

仓库:nodecoda/ssdl

tablegen-go — 用 Go 重写 LLVM TableGen 的语言核心
  • 实现 lexer / preprocessor / parser / record graph,以及 --dump-json、--print-records、--print-detailed-records。
  • 以真实 llvm-tblgen 为 oracle 做差分测试,而不是手写期望值。
  • llvm/test/TableGen:392 个顶层测试,385 个在范围内;330 个 --dump-json 字节级一致,0 差异;62/62 诊断信息一致(含 caret)。
  • 真实 target:AArch64 / ARM / X86 的 --print-records 与 JSON 均字节一致;RISC-V 266,768 条记录的名称、字段、类型、父类一致,仅 !locs 有已知偏差。
  • v1.0.1;Go 1.22+;零第三方依赖;Apache-2.0 WITH LLVM-exception。

仓库:nodecoda/tablegen-go · 一致性报告:docs/CONFORMANCE.md

ncoda — 可运行 DSL,从语言前端到无平台运行时
  • L1:lexer → parser → binding → types → passes,输出规范的 ncoda-ir/v1。
  • L2:pkg/runtime 把 spec.v1 变成可执行图(节点语义、循环状态、错误策略、trace),不依赖任何平台。
  • 174 个 capability headers;插件可脱离主进程,用任意语言通过 stdio JSON-RPC 实现。
  • Open core:平台 adapter 在商业仓库,开源模块从不 import 它们;语言判定与平台能力严格分层。
  • Go 1.26.5+;Apache-2.0。

仓库:nodecoda/ncoda · 插件规范:docs/PLUGIN-AUTHORING-SPEC.md

ph-dsl — 浏览器抽取 DSL + Playwright 运行时
  • .ph 程序经过解析、名称解析、类型检查、验证 IR 后执行,不是“边跑边解释”的脚本。
  • 运行在 Playwright 上,支持参数、profile / session / environment、结构化输出与运行时产物。
  • CLI 提供 parsehub run / check / fmt,可无浏览器做静态校验与格式化。
  • Python;MIT。

仓库:nodecoda/ph-dsl · 语法参考:docs/DSL_SYNTAX_REFERENCE.md

写作与分享

  • gisel 设计论证:为什么要把 GlobalISel legalizer 规则从 C++ 构造器里抽出来,做成可检查的 DSL。知乎
  • SSDL 设计文档:surface v2、semantic IR、IR → v2 迁移、AArch64 覆盖普查,全部在仓库 docs/dsl/ 下。
  • Learning-with-Claude:AI 编译器 / LLVM 后端 / 系统方向的中文课程库,持续整理中。

我在找什么

  • 编译器 / LLVM 后端团队:真实 target、legalizer、调度模型、代码生成、工具链。
  • DSL / 开发者工具团队:需要语言设计 + 编译器前端 + 工程落地的人。
  • 全职;也接受先以开源贡献或试用项目开始。
  • 地点 深圳/上海,可远程。

联系

如果你们的团队在做 LLVM 后端、DSL 或开发者工具,欢迎通过邮件、GitHub 或知乎联系。


English

Compiler engineer focused on LLVM backends and DSLs. I build small, verifiable tools around TableGen, GlobalISel, and scheduling models, and validate them with differential testing against LLVM.

  • gisel — DSL and toolchain for GlobalISel legalizer rules without llvm-tblgen; 9 corpora, 3014 x86 queries, two-way A/B on X86/AArch64/RISC-V.
  • ssdl — records-first DSL for LLVM scheduling/subtarget models; 14 RISC-V models verified record-equivalent.
  • tablegen-go — zero-dependency Go implementation of LLVM TableGen's language core; byte-identical JSON/records against llvm-tblgen on the LLVM test corpus.
  • ncoda — runnable DSL with a platform-free IR and runtime.
  • ph-dsl — compiler and Playwright runtime for declarative browser extraction.

Open to compiler / LLVM backend / DSL roles. Reach me at jemapam939@gmail.com.

Last updated: 2026-12 · 项目均为个人开源项目,非 LLVM 官方项目。

Pinned Loading

  1. ncoda ncoda Public

    ncoda language compiler — open core (Apache-2.0)

    Go

  2. gisel gisel Public

    A DSL and toolchain for LLVM GlobalISel legalizer rules — no llvm-tblgen. 9 corpora, 3014 x86 queries, two-way A/B on X86/AArch64/RISC-V.

    Python

  3. tablegen-go tablegen-go Public

    A zero-dependency Go implementation of LLVM TableGen's language core and record-level backends

    Go

  4. ssdl ssdl Public

    SSDL: Scheduling and Subtarget Description Language — a records-first DSL for LLVM scheduling models (RISC-V, 14 models verified)

    Python

  5. ph-dsl ph-dsl Public

    A compiler and Playwright runtime for declarative browser extraction programs (.ph) — parsing, type checking, verified IR.

    Python