Initial import: Aji 0.1 draft spec and Zig scaffolding
Draft specification, RFCs, reference registries and examples, plus the reference-implementation skeleton: build.zig, diagnostic envelope with error-code registry synced to docs, aji CLI, conformance runner with seed tests, CI and contributor docs.
This commit is contained in:
commit
17a55a7fef
67 files changed
+4197
No files matched your search
@@ -0,0 +1,37 @@
|
||||
# Type Properties
|
||||
|
||||
Aji 0.1 uses compiler-known structural properties rather than a user-defined trait system.
|
||||
|
||||
## Copy
|
||||
|
||||
A `Copy` value may be duplicated without changing ownership semantics.
|
||||
|
||||
Typical examples: integers, booleans, small aggregates containing only `Copy` fields.
|
||||
|
||||
Not `Copy`: `Own<T>`, `Region`, `Island<T>`, `File`, `Socket`, task/thread handles.
|
||||
|
||||
## Send
|
||||
|
||||
A `Send` value may move to another concurrent execution context.
|
||||
|
||||
A type becomes non-`Send` if it contains thread-affine/local state.
|
||||
|
||||
## Share
|
||||
|
||||
A `Share` value may be observed concurrently through immutable access.
|
||||
|
||||
Deeply immutable values are normally `Share`.
|
||||
|
||||
Interior-mutability wrappers must establish their own synchronization semantics to qualify.
|
||||
|
||||
## Freeze
|
||||
|
||||
A `Freeze` type may participate in deep immutable conversion.
|
||||
|
||||
External resources that remain operational/mutable may prevent `Freeze`.
|
||||
|
||||
## Local
|
||||
|
||||
A `Local` value is tied to its current execution context and prevents migration/transfer.
|
||||
|
||||
Examples may include thread-local handles, event-loop-local registrations or platform UI objects.
|
||||
Reference in new issue
Block a user