YesCC(Yes Compiler Collection)
The compiler that never says no. 语法是可选的,编译是必然的。
YesCC 是一个「永不扫兴」的 AI 编译器:正确代码交给原生工具链,错误 C 代码尽力修复;自然语言或胡言乱语也可以变成 C 程序,或者明确标注的创意兜底。
- Python、C、JavaScript 原生直通。原生构建成功就结束,不改源码、不调用模型。
- C 修复依次尝试有限规则和受限模型候选,每份候选都交真实工具链验证。
- 模型创意、固定梗和原文回显分别记录;编译或运行通过不代表实现了意图,也不保证作品有趣。
- 支持模型推理设置、输出额度、费用与请求上限、缓存及 JSON/explain 报告。推理正文不写入报告。
安装
以下命令针对正式 PyPI 版本 0.1.0;版本与资产状态以 PyPI 和 GitHub Releases 为准。
需要 Python ≥3.11,推荐使用独立工具环境:
pipx install yescc==0.1.0
# 或者:uv tool install yescc==0.1.0
yescc --version
C 程序需要 PATH 中的 GCC,JavaScript 需要 Node.js;Python 程序使用安装环境的解释器。Linux/Windows x86_64 免安装归档见 0.1.0 Release:解压后保留整个目录,包括 _internal、licenses 和 MANIFEST.json;其用户程序仍需要外部工具链,冻结版 Python 从 PATH 选择外部 Python 3。
快速体验
解压原生归档时,将下列yescc换成Linux的./yescc或Windows的.\yescc.exe;归档自带examples/三例,START-HERE.txt给出直接运行命令。
把下面的 C 程序保存为 hello.c:
#include <stdio.h>
int main(void) { puts("hello"); return 0; }
yescc run hello.c --offline
yescc hello.c --explain --offline
第一条输出 hello;第二条读取报告,正常代码应为 native_ok,没有模型请求。把 return 0; 中的分号改成全角 ; 后再运行,可以体验有限规则修复;源文件保持用户保存的内容。
同一目录下的hello.py与hello.c等同stem文件共用最近一次报告。查询--explain时若报告已属于另一文件,会明确返回100并提示重新构建,避免展示错对象;它仍可读取同一文件的历史结果。
把一句自然语言保存为 UTF-8 的 idea.txt:
yescc run idea.txt --offline
yescc idea.txt --explain --offline
没有模型时,普通未知文本只会进入明确标注的 print_input 回显,不会实现自然语言意图。配置模型后可用 yescc run idea.txt --play --budget 0.005 体验模型创意;预算单位为 USD,云端必须先配置单价。配置与推理参数见 使用与隐私指南 和 完整 README。
边界
- AI 修复/生成目标仅 C;Python/JavaScript 只做原生直通。只支持单文件 UTF-8 输入,没有跨文件构建、macOS 或 MSVC 支持。
--strict关闭修复和兜底;--no-fallback禁止创意兜底。原命令使用--play时先移除它,再选这两项之一。- AI 运行使用尽力隔离:它不是阻止所有文件系统访问、联网或进程逃逸的安全边界。原生用户程序保留自身行为;
--offline只控制 YesCC 的模型请求。 - 模型创意
run检查有限的输出、退出状态和超时。--check-undefined默认关闭,显式启用时用当前 GCC 检查部分运行期错误,不保证内存安全或语义正确;build不偷偷运行作品。 - Linux 归档在 Ubuntu 24.04 构建,不保证旧 glibc、musl/Alpine 或其他架构;Windows 归档内置 Python 3.14,要求 Windows 10+,验证范围以原生 CI 记录为准。
真实模型效果与安装证据见 评测入口。自动回归、独立 AI 测试和维护者验收分别标注,历史模型成绩绑定采样版本。
问题请附版本、平台、命令、最小脱敏输入和报告,提交到 Issues;不要上传密钥或私密源码。YesCC 使用 MIT,二进制捆绑组件分别适用其原许可证。
Metadata
Release files for yescc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yescc-0.1.0.tar.gz | 23.3 MB | Without provenance | Details for yescc-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yescc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for yescc-0.1.0-py3-none-any.whl |
Total release size: 23.4 MB
Release files / yescc-0.1.0.tar.gz
| Download URL | yescc-0.1.0.tar.gz |
|---|---|
| Size | 23.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
833fccf7614ec6f7fae6c25a91cd2c612e13f58ad1bdbe68dae6cd0dbab6f5b9
|
|
BLAKE2b-256 checksum How to use checksums |
cd3abc095800fdff1bd33bccb523541c6c60c6650d952eb9817e5838783c5186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / yescc-0.1.0-py3-none-any.whl
| Download URL | yescc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 78.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42bb3960df4bf6dfd0a7aa860b6837a01293e0de7f6fd3ec06e00eea1ee3f03e
|
|
BLAKE2b-256 checksum How to use checksums |
6a79470056a5ede3881b6f0aae12c7ef17f0bb4ba0e90340a523a821e32cb043
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for yescc 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.