Skip to content
APMH

ash-stdlib

v0.1.0MIT

The optional standard library for Ash: collections, I/O, JSON, math, time, CLI and test helpers, plus pure-Ash models of networking, web, game and desktop APIs

Linked from github.com/lennoxrose/ash-stdlib

README from GitHub (main)

ash-stdlib

The optional standard library for Ash, written in Ash. The compiler itself only contains the types it cannot work without (ash.lang, the functional interfaces and ash.util.Iterator); everything else lives here:

PackageContents
ash.utilList, ArrayList, Map, HashMap, Set, HashSet, Optional, Result, Stream, Collector(s)
ash.ioFiles, Path
ash.jsonJson
ash.mathNumbers
ash.timeDuration
ash.cliArgs
ash.testAssert, AssertionError
ash.concurrentExecutor, Future, Thread (run on the caller; the VM has no threads)
ash.netUrl, Http (parsing only; no sockets)
ash.webRequest, Response, Handler, Router (no server socket)
ash.gameVec2, GameLoop (fixed-step, no clock)
ash.desktopWidget, Label, Button (text rendering, no window)

License

MIT, see LICENSE. Made by lennoxrose.

Use

With apm, from your project directory:

apm init
apm add github:lennoxrose/ash-stdlib     # recorded in ash.pkg, installed into ./@ash-modules/ash-stdlib
apm install                              # restores everything listed in ash.pkg
ashvm run src/main/ash/Main.ash

Without it, point the compiler at a checkout:

ASH_PATH=/path/to/ash-stdlib/src/main/ash ashvm run Main.ash

Native methods carry @Lower("...") templates that name operations of the compiler's internal IR (hearth/front/src/jlower). Changing a template means changing the compiler too.

Install

$ apm add github:lennoxrose/ash-stdlib

Recorded in ash.pkg and installed into ./@ash-modules/ash-stdlib.

Repository
github.com/lennoxrose/ash-stdlib
Homepage
github.com/lennoxrose/ash-stdlib
Report a bug
github.com/lennoxrose/ash-stdlib/issues
License
MIT
Version (from ash.pkg)
0.1.0
Author
lennoxrose
GitHub stars
0
Open issues
0
Last pushed
Oct 18, 2026
Keywords
ashstdlibstandard-librarycollectionsjsonio

This page is a hub entry

APMH shows data from GitHub. The code is never copied or hosted here.