v0.0.6-alpha.5 was published on 9 November 2026. It expands the experimental scientific and AI-oriented numerical toolbox without adding a model runtime, sampling randomness, or stable native compilation. The compiler is still a prerelease.
Deterministic Top-P (nucleus) selection
top_p(probabilities, mass) returns original zero-based candidate indices in descending probability order, stopping when their combined probability first reaches the requested mass.top_p_values returns the corresponding values. Equal probabilities retain their original-index order. Inputs must be finite, nonnegative and normalized to one within the documented tolerance; mass must be greater than zero and at most one. Exactly 1.0 retains all candidates, including zero-valued tails. Neither operation performs random sampling.
bind probabilities = [0.5, 0.25, 0.25];
print(top_p(probabilities, 0.75));
print(top_p_values(probabilities, 0.75));
print(top_p(probabilities, 1.0));[integer: 0, 1]
[0.5, 0.25]
[integer: 0, 1, 2]Tagged example source · Exact stdout fixture. The full pinned example also demonstrates composition withsoftmax_temp.
Centered Pearson correlation
pearson_correlation(left, right) measures the centered relationship between two equally sized finite numerical vectors. At least two observations and nonconstant values in each vector are required. This differs from cosine_similarity: the two axes are centered before correlation is computed. Numerical work remains bounded by the interpreter's resource contracts.
bind x = [1.0, 2.0, 3.0];
print(pearson_correlation(x, [10.0, 20.0, 30.0]));
print(pearson_correlation(x, [30.0, 20.0, 10.0]));1.0
-1.0Tagged example source · Exact stdout fixture. Both numerical examples are included in this website's published-only Linux CI fixture suite, with execution, static verification and symbol/reference schema checks.
A narrow native-object milestone, not an executable compiler
The experimental Rust APIscarp::native_object::emit_elf64_integer_kernel now accepts a bounded series of integer bindings that can refer to previous bindings. It produces an x86-64 ELF64 relocatable object exporting a restricted integer kernel; it does not link an executable, accept general Scarp programs, or introduce ascarp compile CLI. Windows and macOS native executable generation, generalized tensors, GPU acceleration, stochastic sampling, LSP integration and stable ABI remain unsupported.
Verify and explore
Review the published release record, exact source commit, platform archives and SHA-256 hashes, bounded website test evidence, or the earlier Top-K release overview.
