<<
path:
root/public/gist.git/html/jai/hot_reload/README.md
blob: 9c5a8b6ed80165c0c5f72a77f617973fe341fe38
[raw]
[clear marker]
0# Code Hot Reloading with Context Passing
2This is a demonstration how to achieve hot reloading while passing the context.
4The idea behind this is, that if using hot reloading, the main program uses the context
5and memory allocators from the host, thus preserving state.
10Hot reload demonstration:
12jai build.jai - run silent hotreload
15Then you can edit the `src/main.jai` file and watch the live changes.
18For just compiling & running the main file, without hotreloading:
20jai build.jai - run silent
23Only rebuild the main file as so, without using the host:
25jai build.jai - silent hotreload rebuild