feat: lifetime elision, tooling CI, registry, and LSP locals

Ship the QUALITY_PLAN stretch from ownership through ecosystem: C.1
lifetime elision (bootstrap + selfhost), bux fmt/test/doc CI hooks,
stdlib goldens, package registry (bux search/add), and LSP 0.4
position-sensitive locals with inferred let types. Full-tree format
pass plus Map/Set remove double-free fix.
This commit is contained in:
2026-07-19 16:35:08 +03:00
parent 3eb1ad3a82
commit 53b43b0f79
130 changed files with 20494 additions and 16738 deletions
+31 -31
View File
@@ -1,43 +1,43 @@
module Std::Task {
extern func bux_task_init(num_workers: int);
extern func bux_task_spawn(fn: *void, arg: *void) -> *void;
extern func bux_task_join(handle: *void);
extern func bux_task_sleep(ms: int64);
extern func bux_task_yield();
extern func bux_task_current_id() -> int;
extern func bux_task_shutdown();
extern func bux_task_init(num_workers: int);
extern func bux_task_spawn(fn: *void, arg: *void) -> *void;
extern func bux_task_join(handle: *void);
extern func bux_task_sleep(ms: int64);
extern func bux_task_yield();
extern func bux_task_current_id() -> int;
extern func bux_task_shutdown();
struct TaskHandle {
handle: *void;
}
struct TaskHandle {
handle: *void;
}
func Task_Init(num_workers: int) {
bux_task_init(num_workers);
}
func Task_Init(num_workers: int) {
bux_task_init(num_workers);
}
func Task_Spawn(fn: *void, arg: *void) -> TaskHandle {
return TaskHandle { handle: bux_task_spawn(fn, arg) };
}
func Task_Spawn(fn: *void, arg: *void) -> TaskHandle {
return TaskHandle { handle: bux_task_spawn(fn, arg) };
}
func Task_Wait(t: TaskHandle) {
bux_task_join(t.handle);
}
func Task_Wait(t: TaskHandle) {
bux_task_join(t.handle);
}
func Task_Sleep(ms: int64) {
bux_task_sleep(ms);
}
func Task_Sleep(ms: int64) {
bux_task_sleep(ms);
}
func Task_Yield() {
bux_task_yield();
}
func Task_Yield() {
bux_task_yield();
}
func Task_CurrentId() -> int {
return bux_task_current_id();
}
func Task_CurrentId() -> int {
return bux_task_current_id();
}
func Task_Shutdown() {
bux_task_shutdown();
}
func Task_Shutdown() {
bux_task_shutdown();
}
}