Bock is a feature-declarative programming language designed to compile source code to multiple target languages, including JavaScript, TypeScript, Python, Rust, and Go. It emphasizes explicit function signatures, making types, effects, and the relationship between inputs and outputs visible before examining the function body. This approach aims to provide clarity in code contracts and behavior, with effects defined as named interfaces containing operations that are explicitly declared in the function signature. Handlers for these effects are injected at the call site, rather than imported as global dependencies.
The language is structured so that the body of a function is expressed as a pipeline, and functions that use specific effects must declare them. Bock's compilation process outputs plain code in the chosen target language, with no additional runtime, virtual machine, or translation layer required at execution. This means the generated code can be integrated directly into existing projects for Node, browser environments, Python packages, Rust binaries, or Go services, depending on the selected target.
Bock incorporates AI within its compilation toolchain at specific stages where rule-based translation is insufficient or where idiomatic target code requires nuanced decisions. The compiler uses an AI model in these cases, but only accepts its output if it passes verification. All AI decisions are logged, auditable, and can be overridden. In production builds, these decisions are pinned and replayed for reproducibility, ensuring that the developer maintains control over the build process. Strictness levels allow for different degrees of AI involvement, from sketch mode (where AI fills in incomplete source) to production mode (where only recorded decisions are used).
The tool is distributed under the MIT License, as indicated in its documentation. Bock is suitable for developers who require cross-language codebases without the overhead of a custom runtime, and who value explicitness in function contracts and effect handling.
In the Frameworks & SDKs space, Bock takes a focused approach. It focuses on simplifying cross-platform development by allowing code to be written once and compiled to multiple languages. It is built as an open-source project for programming language enthusiasts and developers. Bock is open source under the MIT license. The product ships for the web and the command line.
Bock first shipped in 2026. Development happens publicly on GitHub with 404 commits in the last 90 days. Key capabilities include multi-target compilation, declarative signatures, and no runtime.
Latest indexed changes and source events
Other apps tracked under the same category.