Implement EndorObject runtime operations and managed lifetimes without language types
Verify databases and deploy Aster VM / verify-and-deploy (push) Successful in 14m4s

This commit is contained in:
2026-10-18 18:14:22 +08:00
parent d394f07fc2
commit 534c2a3b2c
13 changed files with 1251 additions and 520 deletions
+4 -8
View File
@@ -22,8 +22,8 @@ struct Health {
#[derive(Serialize)]
struct BootstrapInfo {
root_class: String,
root_has_parent: bool,
object_model: &'static str,
type_system: bool,
heap_objects: usize,
}
@@ -81,13 +81,9 @@ async fn health(State(state): State<AppState>) -> (StatusCode, Json<Health>) {
}
async fn bootstrap(State(state): State<AppState>) -> Json<BootstrapInfo> {
let root = state
.vm
.class(state.vm.root_class())
.expect("VM construction guarantees a root class");
Json(BootstrapInfo {
root_class: root.name().into(),
root_has_parent: root.parent().is_some(),
object_model: "EndorObject",
type_system: false,
heap_objects: state.vm.object_count(),
})
}