Hot Reload API Reference

Hot reloading support for rapid development iteration

Status: Stub implementation (not yet functional)

Import

U std/hot

Functions

Structures

HotReloadContext

S HotReloadContext { internal: i64 }

Functions

FunctionSignatureDescription
hot_initF hot_init(path: i64) -> i64Initialize hot reload for source file
hot_checkF hot_check() -> i64Check for file changes
hot_reloadF hot_reload() -> i64Force reload
hot_versionF hot_version() -> i64Get current version number
hot_on_reloadF hot_on_reload(callback: fn(i64) -> void) -> i64Set reload callback
hot_cleanupF hot_cleanup() -> i64Cleanup hot reload system
hot_startF hot_start(path: i64) -> i64Start with default config
hot_loopF hot_loop(update_fn: fn() -> i64) -> i64Main hot reload loop

Overview

Functions marked with #[hot] can be reloaded at runtime without restarting the program. The hot reload system watches source files for changes and recompiles/reloads modified functions.

Usage

U std/hot

#[hot]
F game_update(state: i64) -> i64 { 0 }

F main() -> i64 {
    hot_init("./game.vais")
    L 1 {
        hot_check()
        game_update(state)
    }
    0
}