Repository navigation
Conversation
…the Rust registry is gone (#5786) - testing: gate leaves on a global semaphore, and call untimed bodies directly - testing: drop registry helpers nothing calls - testing: a file's tests are a global, and the registry is built in BAML - testing: count duplicate test names in BAML, and delete the Rust counters - testing: count duplicate names on the collector - testing: the semaphore belongs to the run, not to a package global - testing: delete `$invoke_collector` and the IDE category it alone filled - cli: `baml test --list` asks BAML every time, and Rust filters nothing - testing: a package lists its test files in one compiler-written global - testing: a failed verdict with no failed leaf counts as a failure in BAML
- mir: self of a generic class's method is declared with the class's type parameters - mir: await and system-operation temporaries are declared with their own types - mir: an inlined callee's locals are declared in the caller's type parameters - mir: the verifier checks the types locals are declared with
…dia.Media (#5797) - compiler: image, audio, video and pdf name the baml.media classes - stdlib: media is an interface the four media classes implement - sdks: host media values have no base64 accessor - mir: the media classes are ordinary classes to MIR - bridge: a host PDF built from a URL defaults to application/pdf - compiler: a class records whether it implements baml.media.Media - vm: the interpreter knows media by the class, not by a media type - stdlib: the media classes give their own JSON form - compiler: the media classes reach the interpreter as classes
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
…IME type says what it is (#5797) - compiler: media leaves the compiler and runtime type families - stdlib: the MIME type tells the ai package and providers what media is - vm: delete the media code nothing reaches any more
…5798, #5799, #5800, #5801) - mir: a value is read at the type the checker narrowed it to, and self has the checker's type (#5798) - cli: baml mir prints the MIR of a project, file, package or snippet - mir: the verifier counts contract rule sites, and baml mir --verify - mir: run-time signatures and impl rules are queries beside MIR
…urning calls, intrinsics, typed operators (#5804 to #5817, #5829) - mir: calls the checker can resolve are direct, unions call per member - mir: for loops run the iterator protocol, with no array special case - mir: a call that cannot return writes never and stops - mir: intrinsics have one signature table and the verifier asserts it - mir: a call to an I/O function is a call, sys_op is gone - mir: a defaulted parameter is read through is_omitted and take - mir: global initializers and $init are MIR functions - mir: a compiler temporary is unknown only when the program says so - mir: a copy keeps its type, narrow and widen change it - mir: operators are typed instructions, decided once in lowering - hir: package functions and package order are shared functions
- baml: use const for top-level client values - docs: refresh the vision client annotations - Remove remaining legacy client declarations from examples
- cache: remove bex_cache and CLI disk bytecode/diagnostics cache - cache: prune remaining dead cache counters, test helpers, and stale comments
2kai2kai2
force-pushed
the
kai/mir-stack-rebased
branch
from
December 3, 2026 04:47
8fff684 to
4e4a42f
Compare
Move BuiltinKind into baml_type (re-exported by baml_compiler2_ast), create the pure Salsa-free baml_bcu crate with BcuMeta and PackageInterface<N> (preserving exact Borsh wire layout), add artifact encode/decode, payload digest, and sigil-free text formatter, enforce baml_bcu boundaries in stow.toml (forbidding salsa and baml_linker*), and re-export from baml_compiler2_hir_ty while renaming WireInterface to BcuMeta across callers.
hellovai
force-pushed
the
claude/bcu-meta-rebased
branch
from
December 3, 2026 05:55
e8cf595 to
e424b52
Compare
2kai2kai2
force-pushed
the
kai/mir-stack-rebased
branch
from
December 3, 2026 07:07
4e4a42f to
766ac8e
Compare
2kai2kai2
force-pushed
the
kai/mir-stack-rebased
branch
4 times, most recently
from
December 4, 2026 00:20
840fc5a to
eacca1f
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack (on top of
kai/mir-stack-rebased)claude/bcu-meta-rebased): baml_bcu crate + .bmeta (replaces bcu: add baml_bcu crate and move PackageInterface/BcuMeta out of TIR #5827) (this PR)claude/bcu-module-rebased): BcuModule (.bcu) + parallel baml_mir_linker + Salsa-free emit (replaces bcu: add BcuModule (.bcu), parallel baml_mir_linker, and Salsa-free emit pipeline #5830)claude/cranelift-vendor-rebased): Vendor cranelift-codegen 0.138 + LSE2/AVX 128-bit atomics (from feat(cranelift): vendor cranelift-codegen 0.138 and add AArch64 LSE2 + x86_64 AVX 128-bit atomics #5844)claude/cranelift-bex2-rebased): Cranelift AOT backend + bex2 M:N runtime + baml pack --native (squashes feat(cranelift): add clean-room Cranelift AOT backend, runtime, andbaml pack --native#5839, perf(cranelift): pinned mutator register, CallConv::Tail, TCO, scalar call ABI, and can_throw elision #5842, feat(cranelift): native 128-bit atomic Value slots across ABI, runtime, and Cranelift (no BUSY_BIT, unvendored) #5843, feat(cranelift): vendor cranelift-codegen 0.138 and add AArch64 LSE2 + x86_64 AVX 128-bit atomics #5844, feat(bex2): M:N work-stealing runtime, shared-heap GC, wait-free containers, direct-poll Tokio I/O, and two-tier package init #5847)Why
baml_bcu) for BAML package artifacts (.bmetanow,.bcunext), decoupled from compiler internals (baml_compiler*,salsa,bex_*,baml_linker*)..bmetasurface (PackageInterface<N>andWireInterface, renamedBcuMeta) out ofbaml_compiler2_hir_tywithout changing Borsh wire layout.What changes
Creates
baml_language/crates/baml_bcu, movesBuiltinKindintobaml_type, movesPackageInterface<N>+BcuMeta(formerlyWireInterface) and all pure interface export structs (includingExportedClassBody) intobaml_bcu, adds a deterministic sigil-free.bmetatext printer, and enforcesbaml_bcudependency purity inbaml_language/stow.toml.The situation
Downstream compilation, runtime mounting, precompiled stdlib seeding, and future native backends all consume a package's typed export surface (
.bmeta). Previously, those wire structs lived insidebaml_compiler2_hir_ty/src/package_interface.rs, forcing any consumer of.bmetato depend on the entire Salsa-backed TIR crate.Before
.bmeta, andstow.tomlhad nosalsaorbaml_linker*guardrails for wire crates..bmetablobs.After
The concept this changes:
.bmetais owned by a pure wire cratebaml_bcuBcuMeta,PackageInterface<N>, andExportedClassBody<N>(byte-identical Borsh layout)baml_typeBuiltinKindBuiltinKind(re-exported bybaml_compiler2_ast)baml_language/stow.tomlbcusuffix orsalsa/baml_linker*rules"bcu"suffix and forbidsbaml_bcufrom depending onsalsa,baml_compiler*,baml_linker*, orbex_*hir_ty,baml_db,bex_project,baml_ide,baml_tests)WireInterfacefrombaml_compiler2_hir_tyBcuMeta(re-exported frombaml_compiler2_hir_tyor directly frombaml_bcu)What a reader should take away
BcuMeta/PackageInterface/ExportedClassBody/BuiltinKindis preserved verbatim.cargo stow --checkguaranteesbaml_bcustays free of Salsa, compiler crates, linker crates, and VM crates as.bcuMIR types are added next.Observable changes
cargo run --profile fasttest -p cargo-stow -- stow --check: 0 violations.cargo test --profile fasttest -p baml_bcu: 3/3 passed.cargo test --profile fasttest -p baml_tests --test hir_ty_package_interface --test mounted_package_parity --test runtime_mount_parity: 37/37 + 13/13 + 2/2 passed.cargo clippy --profile fasttest --no-deps --tests -p baml_bcu -p baml_type -p baml_compiler2_hir_ty -p baml_db -p bex_project -p baml_ide -p baml_cli -- -D warnings: 0 warnings.