closedbit-coding

Coding Studio

The compiler-focused lane for `.cbp`, checked 256-bit programming, `.cb` storage, `.cba` packages, `.cbl` libraries, `.dll` modules, and `.exe` exports.

Compiler workflow

Build source-free ClosedBit artifacts.

Use the web account for licensing, then compile locally through the Windows Studio Console and artifact toolbar.

Programs

Write `.cbp` with functions, control flow, variables, strings, arrays, and 256-bit integers.

Storage

Use `.cb` containers through `CB-Storage` for validated save data.

Libraries

Compile reusable `.cbp` namespaces into `.cbl` packages.

Exports

Build `.cba`, `.exe`, `.dll`, and encrypted `.cbe` outputs.

Studio Console actions
help
check
save
compile cba small compute threaded max_memory 1024
compile exe small fps graphics threaded
compile exe small fps graphics threaded msi
compile dll small compute
compile library small compute
encrypt
encrypt key_file D:\ClosedBit\keys\project.key
decrypt key_file D:\ClosedBit\keys\project.key
256-bit app
library CB-Math
library CB-Storage

fn main() {
    u256 score = (500_000 + 125_000) * 2
    CB-Storage.write_u256("score.cb", "score", score)
    println("score saved")
    save score
}