Reference · 08
Current Limitations
Transparent list of known limitations, experimental boundaries, and planned roadmap items in Ochre v0.1.0-alpha.4.
Ochre is currently at v0.1.0-alpha.4 (Developer Preview). We document current limitations openly so you can evaluate Ochre accurately before adopting it.
Type System Limitations
- No user-defined generics yet: Built-in container types (
List<T>,Map<K, V>,Option,Result,Task<T>,Channel<T>) are generic, and built-in functions (push,map,filter,reduce,send,recv,join) are polymorphically type-checked, but user-defined generic structs/functions (struct Box<T>,fn id<T>(x: T) -> T) are planned for a future release. - No interfaces / traits yet: Methods are attached directly to concrete structs via
impl StructName { ... }. - Homogeneous map literals: Map literals infer a single value type
Map<K, V>. For HTTP responses that mix strings and status codes, use numeric string statuses (#{ "status": "201", "body": "..." }) or status-only maps (#{ "status": 204 }). - Dynamic
json_parse:json_parsereturnsAny!Str; schema validation of parsed JSON is performed at runtime rather than via compile-time derive macros.
Native AOT (ochre build) Limitations
- Subset coverage: Cranelift AOT currently compiles primitives, control flow, loops, functions, recursion, and
print/println. Heap-allocated values (struct,enum,List,Map, closures,Option/Result) and concurrency currently require the bytecode VM (ochre run). - System
ccdependency: Linking executables requires a C compiler (gccorclang) onPATHand links dynamically against systemlibc.
Module & Package Limitations
- Flat import merging:
import "./file.och"merges top-level symbols into a single program namespace; module-qualified names (math::add) andpub/private visibility modifiers are planned. - No package registry yet:
ochre.tomlscaffolds project metadata, but remote dependency resolution is planned for Phase 4.
HTTP Server Limitations
http_serveis an HTTP/1.1 development/lightweight server (127.0.0.1:port) using one OS thread per connection withConnection: close. It does not yet support TLS (place behind a reverse proxy like Caddy/nginx/Cloudflare), chunked transfer encoding, keep-alive pooling, or WebSockets.