Expand Standard Library Schemas
Priority
P1 (Medium-High) - Developers need standard types
Labels
Estimated Effort
2-3 weeks
Description
The standard library currently has minimal types. We need to add common types and protocols that developers expect in a modern schema system.
Current State
Location : core_stdlib/packages/std/
Only basic std package exists with minimal content.
Acceptance Criteria
Primitive types defined (int8-64, uint8-64, float32/64, bool, string, bytes)
Common data structures (List, Map, Set, Optional/Maybe, Result)
Date/time types (DateTime, Date, Time, Duration, Timestamp)
Standard validators (Email, URL, UUID, Regex patterns)
Common protocols/patterns:
HTTP request/response
WebSocket message patterns
Stream/async iterators
Stdlib documentation complete
Examples using stdlib types
Tasks
Example Types Needed
Primitives
struct List<T> {
items: T[]
}
struct Map<K, V> {
entries: (K, V)[]
}
struct Optional<T> {
value: T?
}
Date/Time
struct DateTime {
timestamp: i64 // Unix timestamp
timezone: str
}
HTTP
protocol HTTP {
function request(method: str, path: str, headers: Map<str, str>, body: bytes?) -> Response
}
struct Response {
status: u16
headers: Map<str, str>
body: bytes?
}
Dependencies
Blocks
None
Expand Standard Library Schemas
Priority
P1 (Medium-High) - Developers need standard types
Labels
stdlibschemasP1Estimated Effort
2-3 weeks
Description
The standard library currently has minimal types. We need to add common types and protocols that developers expect in a modern schema system.
Current State
Location:
core_stdlib/packages/std/Only basic
stdpackage exists with minimal content.Acceptance Criteria
Tasks
Example Types Needed
Primitives
Date/Time
HTTP
Dependencies
Blocks
None