Logo

index : gist

Random things

  • summary
  • about
  • tree
  • log
  • branches
<< path: root/public/gist.git/html/jai/hot_reload/README.md blob: 9c5a8b6ed80165c0c5f72a77f617973fe341fe38 [raw] [clear marker]

        
0# Code Hot Reloading with Context Passing
1
2This is a demonstration how to achieve hot reloading while passing the context.
3
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.
6
7
8## Usage
9
10Hot reload demonstration:
11```
12jai build.jai - run silent hotreload
13```
14
15Then you can edit the `src/main.jai` file and watch the live changes.
16
17
18For just compiling & running the main file, without hotreloading:
19```
20jai build.jai - run silent
21```
22
23Only rebuild the main file as so, without using the host:
24```
25jai build.jai - silent hotreload rebuild
26```
27
28
29
Copyright 2026  E766CB298A6D1E64 | Git-Thing heavily inspired by cgit