Official website

Quick search

Search pages in English or हिंदी. Detailed language reference is in Scarp Docs.

Top 6 website pages

Language prerelease · Published source

Scarp alpha.10: interactive input, fixed arrays and exact BigInt

Scarp v0.0.6-alpha.10 adds opt-in interactive prompts, immutable fixed arrays, exact stdout/stderr test fixtures and bounded BigInt tools.

v0.0.6-alpha.10 was published on 14 November 2026. This is an experimental interpreter prerelease, not a stable compiler.

Interactive input is explicitly opt-in

Enable prompts using scarp exec --interactive app.srp. The impure input(prompt), ask(prompt),ask_or(prompt, fallback), input_integer,input_float and input_bigint functions read bounded input. Prompts flush before input; run andlaunch also accept the interactive flag.

app.srp
bind name = ask_or("Name: ", "Guest");
print("Hello", name);
Terminal
scarp exec --interactive app.srp

For repeatable input use scarp exec --input-file DATA.txt app.srp.try_read_line() distinguishes end of file from an empty line. Invalid UTF-8, I/O failures and input quota exhaustion report diagnostics. Projects can compare exact UTF-8 output with sibling .stdoutand .stderr fixtures; JSON reports omit stream contents.

Typed immutable fixed-size arrays

array<integer, 2> declares a homogeneous array of two integers. The [array: 10, 20] literal and [array: <integer>]typed empty form are distinct from existing vector notation. Indexing is bounds-checked; equality, nested values and typed imports are available.

array.srp
bind values: array<integer, 2> = [array: 10, 20];
print(values[1]);
Expected stdout
20

Arrays are limited by shape, work and allocation quotas. Module inspection uses schema 3 if a serialized type includes an array; earlier primitive and tuple inventories retain schema 1 or 2. Native emitters reject arrays. Read the tagged array reference.

Exact BigInt and compiler tooling

BigInt gains powers, GCD/LCM, square roots, bit lengths, radix conversion, signed bitwise operations, shifts, modular exponentiation andbigint_divmod. All retain resource budgets. Modular exponentiation uses variable-time arithmetic, unsuitable for secrets.

Rust hosts can opt into bounded scalar-constant and editor-snapshot caches. Experimental Decimal foundations are Rust-only. Filesystem read/write, a dependency registry, integrated LSP, general native compile CLI and stable Rust embedding ABI are not included.

See the published release, source input reference, testing reference and checksummed platform downloads.