# sunbit **Repository Path**: gzcloud/sunbit ## Basic Information - **Project Name**: sunbit - **Description**: AI时代的编程语言 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-02 - **Last Updated**: 2026-02-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sunbit Sunbit is a high-performance, AI-native programming language and JIT compiler designed for tensor operations and GPU acceleration. ## Development & Testing Standards ### Mandatory Regression Testing Policy To ensure system stability across the compiler, runtime, and backends, all developers must adhere to the following testing policy: 1. **Full Workspace Verification**: Before any commit or pull request, you must run the full regression suite: ```bash cargo test --workspace ``` 2. **No Partial Testing**: Passing local tests in a single crate (e.g., `sunbit-jit`) is insufficient. Changes in one component often affect others (e.g., precision mismatches between JIT and WGPU). 3. **Cross-Backend Verification**: Ensure that FFI and GPU-accelerated examples also pass: ```bash cargo run --example test_system -p sunbit-jit ``` 4. **Zero-Regression Goal**: No new feature or bug fix should cause existing test cases to fail. If a test fails, it must be resolved before proceeding. ## Project Structure - `sunbit-core`: AST definitions, Tensor implementations, and type analysis. - `sunbit-jit`: Cranelift-based JIT compiler and runtime management. - `sunbit-parser`: Lexer and parser for the Sunbit language. - `sunbit-wgpu`: WGPU-based GPU acceleration backend. - `sunbit-python`: Python interop and bindings. ### 后续问题 * JIT 类型稳定性补丁:为了解决 Cranelift 校验器的严格限制,我将 JIT 内部的所有整数类型(包括 u8 和 bool)统一标准为 64位 (i64)。这彻底消除了在进行索引计算和位运算时的类型位宽不匹配问题 讨论:sunbit作为原生语言 (Native Language),还有哪些功能未实现?