2 points chunpulee | 2 comments | | HN request time: 0.404s | source

[main.ht] {}{ linux = loadlib("lib/hlinux/hlinux.so");

    old = {
        "abc": 100
    }{
        printf("%d\n", this.abc);
        this.abc += 1;
    };

    while true {
        if old.abc == 105 {
            new = loadht("src/a.ht");
            codecpy(old, new);
        }
        old();
        linux.sleep(1);
        if old.abc > 120 {
            break;
        }
    }
}

[a.ht] { "abc": 100 }{ printf("%d\n", this.abc); this.abc += 2; }

result: 100 101 102 103 104 105 107 109 111 113 115 117 119

https://github.com/chunpulee/hh.ht

1. lioeters ◴[] No.46094394[source]
Looks interesting but there's only a single binary file in the Git repo, no source code.