How insomnius/somnix works
Somnix is a design-stage compiled language, not an implemented compiler or runtime. The graph summarizes the README’s proposed source-to-execution workflow and its native, concurrency, and GPU capabilities. Component paths point only to the existing enclosing directories; the available evidence does not establish finer implementation boundaries or runtime call wiring.
Main entry points: runtime C runtime · compiler Type checker
Components 15
Compiler and execution
- Lexer
compiler - Parser
compiler - Type checker
compiler - Reference interpreter
compiler - C generator
compiler - Native executable
Concurrency runtime
- C runtime
runtime - Thread-backed tasks
runtime - Typed channels
runtime - Wait groups
runtime
GPU programming
- GPU operations
compiler - CUDA kernels
compiler - GPU execution
Other components
- Language user
- Somnix source
Connections 13
- Language user → Somnix source: writes
- Somnix source → Lexer: lexes
- Lexer → Parser: tokens
- Parser → Type checker: checks
- Type checker → Reference interpreter: interprets
- Type checker → C generator: generates C
- Reference interpreter → Native executable: validates against
- C generator → Native executable: generates
- C runtime → Thread-backed tasks: provides
- C runtime → Typed channels: provides
- C runtime → Wait groups: provides
- GPU operations → GPU execution: allocates, transfers, launches, synchronizes
- CUDA kernels → GPU execution: generates kernels for