Standard Library

Joule ships with 110+ batteries-included modules. No package manager needed for common tasks.

Core Types

These are the fundamental types used in every Joule program.

ModuleDescriptionStatus
StringUTF-8 string typeImplemented
VecDynamic arrayImplemented
OptionOptional valuesImplemented
ResultError handlingImplemented
HashMapKey-value mapsImplemented
PrimitivesNumeric types, bool, charImplemented

Collections

ModuleDescriptionStatus
collectionsOverview of all collection typesImplemented
Vec<T>Dynamic arrayImplemented
HashMap<K,V>Hash mapImplemented
HashSet<T>Hash setImplemented
BTreeMap<K,V>Sorted mapImplemented
BTreeSet<T>Sorted setImplemented
LinkedList<T>Doubly-linked listImplemented
VecDeque<T>Double-ended queueImplemented
BinaryHeap<T>Priority queueImplemented

Mathematics

ModuleDescriptionStatus
mathMathematical functionsImplemented
math::linearLinear algebraImplemented
math::complexComplex numbersImplemented
statisticsStatistical analysisImplemented
montecarloMonte Carlo methodsImplemented

I/O and Networking

ModuleDescriptionStatus
ioFile and stream I/OImplemented
netTCP/UDP networkingImplemented
jsonJSON parsing and serializationImplemented
csvCSV parsingImplemented
tomlTOML parsingImplemented
yamlYAML parsingImplemented

Databases

ModuleDescriptionStatus
db-sqliteSQLiteImplemented
db-postgresPostgreSQLImplemented
db-mysqlMySQLImplemented
db-redisRedisImplemented
db-mongodbMongoDBImplemented
...and 30+ moreSee stdlib/db-*Implemented

Scientific Computing

ModuleDescriptionStatus
odeOrdinary differential equationsImplemented
pdePartial differential equationsImplemented
dspDigital signal processingImplemented
physicsPhysics simulationImplemented
bioBioinformaticsImplemented
chemChemistryImplemented

Machine Learning and AI

ModuleDescriptionStatus
mlMachine learningImplemented
snnSpiking neural networksImplemented
agentAI agent frameworkImplemented

Cryptography and Security

ModuleDescriptionStatus
cryptoCryptographic primitivesImplemented
securitySecurity analysisImplemented
zkpZero-knowledge proofsImplemented
fheFully homomorphic encryptionImplemented

Graphics and Visualization

ModuleDescriptionStatus
graphics2D/3D graphicsImplemented
imageImage processingImplemented
vizData visualizationImplemented
plotPlottingImplemented

Concurrency

ModuleDescriptionStatus
concurrencyConcurrency primitivesImplemented
distributedDistributed computingImplemented

Energy

ModuleDescriptionStatus
energyEnergy measurement APIsImplemented

Platform

ModuleDescriptionStatus
wasmWebAssembly supportImplemented
embeddedEmbedded systemsImplemented
mobileMobile developmentImplemented
desktopDesktop applicationsImplemented

Interoperability

ModuleDescriptionStatus
rust_interopRust FFIImplemented
pythonPython interopImplemented
go_interopGo interopImplemented
typescript_interopTypeScript interopImplemented

For the complete list, see the stdlib/ directory in the distribution.