plum
git clone https://git.pyrossh.dev/plum
A statically typed, imperative programming language inspired by rust, python
plum-examples/io.plum
import std/Str
import std/Bool
# `printLn` mirrors `libs/std/os.plum`'s declaration; redeclared locally
# (rather than `import std/os`) so this stays the SMALLEST possible example
# — `import std/os` pulls in every other filesystem extern os.plum declares
# too, which the Rust-level `ioExampleCompilesAndRunsCorrectly` test (which
# actually RUNS this module under wasmtime, providing real host imports)
# would then all need stubs for.
extern fun printLn(s: Str)
fun main() =
printLn("hello from plum")
name := "world"
printLn("hello, {name}!")