Browse independently executed SS projects by level and subject. Every entry includes complete source or its packaged dependencies, accepted output, a free project download, and a local-browser SS Lab handoff.
All levels
5 verified examples
Essentials · Language foundations
Arrays, continuation, and control flow
Complete executable V1 source from the authoritative language specification.
Problem and formulation
Sum a finite force vector and branch on the exact scalar result.
Verification
Executed with SS 1.0.0; observed output matched expected.out.txt.
Complete executable main.ss
let forces = [10, 20, 30]
let area = 200let total = (
forces[0]
+ forces[1]
+ forces[2]
)
if total == 60 {
printLine("Solved", total)
}
Dimensioned literals, derived quantities, and a user-defined multiplicative unit.
Problem and formulation
Stress is evaluated as force divided by area while dimensional units remain part of each value.
Verification
Executed with SS 1.0.0; all three observed quantity outputs matched expected.out.txt.
Complete executable main.ss
let force = 20 kN
let area = 200 mm^2let stress = force / area
unit furlong = 201.168 m
let distance = 3 furlong
printLine(force)
printLine(stress)
printLine(distance)
Summarize a measured sample using the verified SS.Statistics package example.
Problem and formulation
For five observations, compute count, arithmetic mean, and unbiased sample variance.
Verification
Qualified SS.Statistics example; observed count, mean, and sample variance match the accepted output.
Executable entry point; dependencies included in project download
module Main
import Statistics
let result = Statistics.summarize([12.0, 15.0, 13.0, 10.0, 15.0])
printLine("count", result.count, "mean", result.mean, "sample variance", result.sampleVariance)
Browser-local rendition
This dependency-free program evaluates the same accepted formulation and result when opened in SS Lab; the download retains the qualified package project.
Compute position and velocity with the verified SS.Mechanics beginner example.
Problem and formulation
x(t) = x0 + v0 t + 1/2 a t² and v(t) = v0 + a t for a = 9.81 m/s² and t = 2 s.
Verification
Qualified SS.Mechanics example; observed position and velocity both equal 19.62.
Executable entry point; dependencies included in project download
module Main
import Mechanics
let motion = Mechanics.constantAcceleration(0.0, 0.0, 9.81, 2.0)
printLine("position_m", motion.position, "velocity_m_per_s", motion.velocity)
Browser-local rendition
This dependency-free program evaluates the same accepted formulation and result when opened in SS Lab; the download retains the qualified package project.
Complete executable SS Lab source
let initialPosition = 0.0let initialVelocity = 0.0let acceleration = 9.81let time = 2.0let position = initialPosition + initialVelocity * time + 0.5 * acceleration * time * time
let velocity = initialVelocity + acceleration * time
printLine("position_m", position, "velocity_m_per_s", velocity)