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.
94 lines
1.0 KiB
Markdown
94 lines
1.0 KiB
Markdown
# Intrinsic Registry (Draft)
|
|
|
|
Intrinsics are verifier-known platform/runtime operations. Each intrinsic requires a formal signature, effects, capabilities, ownership behavior and failure model.
|
|
|
|
## Filesystem
|
|
|
|
```text
|
|
fs.open_read
|
|
fs.open_write
|
|
fs.read
|
|
fs.write
|
|
fs.write_all
|
|
fs.sync
|
|
fs.close
|
|
```
|
|
|
|
## Console / generic I/O
|
|
|
|
```text
|
|
io.stdout_write
|
|
io.stderr_write
|
|
```
|
|
|
|
## Network
|
|
|
|
```text
|
|
net.socket
|
|
net.bind
|
|
net.listen
|
|
net.accept
|
|
net.connect
|
|
net.recv
|
|
net.send
|
|
net.close
|
|
```
|
|
|
|
## Time/random
|
|
|
|
```text
|
|
clock.monotonic
|
|
clock.wall
|
|
random.fill
|
|
```
|
|
|
|
## Task/thread
|
|
|
|
```text
|
|
task.spawn
|
|
task.join
|
|
task.cancel
|
|
thread.spawn
|
|
thread.join
|
|
```
|
|
|
|
## Synchronization
|
|
|
|
```text
|
|
mutex.create
|
|
mutex.lock
|
|
mutex.unlock
|
|
rwlock.create
|
|
rwlock.read
|
|
rwlock.write
|
|
channel.create
|
|
channel.send
|
|
channel.recv
|
|
```
|
|
|
|
## Atomics
|
|
|
|
```text
|
|
atomic.load
|
|
atomic.store
|
|
atomic.exchange
|
|
atomic.fetch_add
|
|
atomic.fetch_sub
|
|
atomic.compare_exchange
|
|
atomic.fence
|
|
```
|
|
|
|
## Memory
|
|
|
|
```text
|
|
heap.alloc
|
|
heap.free
|
|
region.create
|
|
region.alloc
|
|
region.reset
|
|
region.destroy
|
|
island.create
|
|
island.alloc
|
|
island.freeze
|
|
```
|