Skip to content

Add RIINA UI and OS subsystems (phases 8–9)#46

Open
ib823 wants to merge 2 commits intomainfrom
claude/create-riina-crates-3VRQh
Open

Add RIINA UI and OS subsystems (phases 8–9)#46
ib823 wants to merge 2 commits intomainfrom
claude/create-riina-crates-3VRQh

Conversation

@ib823
Copy link
Owner

@ib823 ib823 commented Mar 19, 2026

Summary

Introduces two new crates implementing the UI rendering subsystem (RIINA UI) and OS-level primitives (RIINA OS) for the RIINA language platform.

RIINA UI (riina-ui) provides:

  • SINAR: Renderer trait abstraction for pluggable backends
  • RUPA: Type-safe styling with WCAG 2.1 accessibility checks (contrast ratio validation)
  • LUKIS: Declarative UI element evaluation
  • SUSUN: Layout engine with row/column positioning and overlap detection
  • SENTUH: Input event handling (keyboard, mouse, modifiers)
  • Terminal & HTML renderers: Concrete implementations using ANSI codes and HTML/CSS

RIINA OS (riina-os) provides:

  • Capability: Capability-based security with delegation and linear revocation
  • Memory: Page table management with virtual-to-physical address mapping
  • IPC: Message-passing channels with bounded queues
  • Syscall: System call interface definitions and result types

Changes

  • Added crates/riina-ui/ with 7 modules (sinar, rupa, lukis, susun, sentuh, terminal, html)
  • Added crates/riina-os/ with 4 modules (capability, memory, ipc, syscall)
  • Updated workspace Cargo.toml to include both new crates
  • Comprehensive unit tests for all modules (100+ tests total)

Type

  • New feature

Testing

  • cargo test --all passes (all new modules include comprehensive unit tests)
  • cargo clippy -- -D warnings passes
  • No external dependencies added (uses only std)
  • No unsafe code

Checklist

  • No external dependencies added
  • No unsafe without justification (none used)
  • Examples use Bahasa Melayu keywords (module names: SINAR, RUPA, LUKIS, SUSUN, SENTUH, TERAS)

https://claude.ai/code/session_01A5jiDkqMahHqopV2mcaUt3

claude added 2 commits March 19, 2026 05:25
…ates (+69 tests)

riina-ui (Phase 8 - Platform + Rendering):
- SINAR: Renderer trait for backend abstraction
- RUPA: Type-safe styling with WCAG 2.1 contrast ratio (AA/AAA)
- LUKIS: Declarative UI element tree evaluation
- SUSUN: Layout engine with row/column positioning and overlap detection
- SENTUH: Input event handling with keyboard/mouse support
- Terminal renderer (ANSI escape codes)
- HTML renderer (div/span with inline CSS flexbox)

riina-os (Phase 9 - OS Primitives):
- Capability-based security with delegation and linear revocation
- System call interface types (TERAS)
- IPC message-passing with bounded channels
- Memory management with page table map/unmap

https://claude.ai/code/session_01A5jiDkqMahHqopV2mcaUt3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants