Changelog
Releases are named after minerals, in alphabetical order.
0.1.0 “Agate” (unreleased)
Section titled “0.1.0 “Agate” (unreleased)”The first release. Agate forms in layers, slowly, inside volcanic rock. That seemed about right.
Compiler
Section titled “Compiler”- A lexer and parser for the grammar in the language reference
- A type checker that resolves every name, call and implicit conversion into a bound
tree, and an IL emitter that compiles that tree with no typing decisions of its own.
Together they cover:
- top-level methods and statements, classes, structs, protocols, mixins (
includeandextend), extension classes, inheritance andsuper, and namespaces property,getterandsetter, constructors, class methods and constants- positional, keyword, default, variadic and double-splat (
**) parameters,outandrefarguments - structural typing: private methods with untyped parameters are compiled once for each set of argument types they’re called with
- generics on classes and methods, with constraints and inference from arguments
- nullable types,
nilchecks that narrow,&.,||defaults andnull_safety off - blocks, lambdas, closures,
yield, and non-localreturnandbreak - arrays, hashes, ranges (including
^indices), tuples, symbols, regular expressions and string interpolation if,unless, ternaries,case/when(value, type and range matching, with exhaustiveness for enums),while,until,loop,for,break,nextraise,begin/rescue/else/ensure/retryand inlinerescue- simple and complex enums, attributes (
@[...]) and attribute classes - destructuring with
deconstructanddeconstruct_keys - calling .NET types, including generic methods, indexers, delegates and
Disposable#use asyncandawait
- top-level methods and statements, classes, structs, protocols, mixins (
- Anything the emitter can’t compile yet is reported as
AM4001, and no assembly is written. It never guesses. - Every example in
examples/with an expected-output block runs as a test.
am checktype-checks one or more files without building themam buildcompiles a single file to a .NET assemblyam runcompiles and runs a single file
Libraries
Section titled “Libraries”Amethyst.Runtime:Symbol,Range, compiler attributes and control-flow exceptionsAmethyst.Core: the Kernel, theEnumerable[T]methods on every .NET collection, and String extensions
Platform
Section titled “Platform”- Targets .NET 10
Known issues
Section titled “Known issues”asyncmethods run synchronously:awaitblocks until the task finishes.- Visibility isn’t enforced: calling a private method from outside its class compiles.
- Including
Enumerable[T]in an Amethyst type isn’t supported yet. - The compiler doesn’t yet apply its own attributes,
such as
AmethystName, to the code it emits. am buildandam runcompile a single file. The project system isn’t implemented.