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.20: native integer functions, decimal literals and tuples

The published prerelease expands the experimental Rust ELF64 emitter, adds exact decimal literal syntax and tuple operations, and hardens nested host string quotas.

v0.0.6-alpha.20 was published on 24 November 2026 from b1a9347f93540fdf95b0ddecba4adc55a3b4bb98. The release continues interpreter development alongside a narrowly scoped experimental systems-programming foundation.

Native integer function subset

The Rust embedding API can emit deterministic Linux x86-64 ELF64 objects targeting the System V ABI for pure functions with one to six integer parameters. The supported subset includes integer and Boolean locals, local assignments, checked arithmetic, short-circuit logic and early integer returns. Existing zero-argument symbols remain; the new scarp_checked_integer_function symbol has a fixed signature for each object. Arithmetic errors return a status and a source-span index.

Loops, calls, contracts, defaults and heap-backed values are excluded. This is a Rust API for emitting objects, not a general compiler CLI, stable ABI, executable generator or Windows/macOS native backend. scarp exec remains interpreter-backed.

Exact decimal literals

A suffixed literal such as 0.1d denotes an exact base-ten decimal rather than an ordinary floating-point value. Unsuffixed floating-point syntax retains its existing behavior. This distinction matters when decimal representation is required; it is not a claim of unlimited precision or unbounded allocation.

Tuple updates and ordering

Mutable tuple bindings support persistent replacement at a constant member index. This does not imply arbitrary dynamic tuple indexing or in-place mutation of shared values. Compatible numeric tuples support lexicographic ordering: comparison considers earlier members before later ones.

Project manifest compatibility

New projects use the lowercase scarp.project filename. Existing Scarp.project projects remain readable. Match the project format as well as its filename when migrating; simply renaming a legacy manifest is not a format conversion.

Nested host payload accounting

Rust host argument admission now counts string payloads inside composites toward cumulative quotas. Shared strings count by logical occurrence. This accounts for logical UTF-8 bytes, not physical heap allocations, process RSS or elapsed time. The earlier alpha.19 host callable APIs remain a separate embedding milestone.

Release evidence

Read the official release notes and archives, the exact source tree, and the version-specific downloads. All features remain experimental and should be evaluated against the relevant version and supported execution mode.