| ... | @@ -7,7 +7,10 @@ personal project. Here are some great examples: | ... | @@ -7,7 +7,10 @@ personal project. Here are some great examples: |
| 7 | | 7 | |
| 8 | * [Oxid](https://github.com/dbandstra/oxid) - arcade style game | 8 | * [Oxid](https://github.com/dbandstra/oxid) - arcade style game |
| 9 | * [TM35-Metronome](https://github.com/TM35-Metronome) - tools for modifying and randomizing Pokémon games | 9 | * [TM35-Metronome](https://github.com/TM35-Metronome) - tools for modifying and randomizing Pokémon games |
| 10 | * [trOS](https://github.com/sjdh02/trOS) - tiny aarch64 baremetal OS thingy | 10 | * [River](https://github.com/ifreund/river/) - a dynamic tiling wayland compositor |
| | 11 | |
| | 12 | More examples can be found on the |
| | 13 | [Community Projects Wiki](https://github.com/ziglang/zig/wiki/Community-Projects). |
| 11 | | 14 | |
| 12 | Without fail, these projects lead to discovering bugs and helping flesh out use | 15 | Without fail, these projects lead to discovering bugs and helping flesh out use |
| 13 | cases, which lead to further design iterations of Zig. Importantly, each issue | 16 | cases, which lead to further design iterations of Zig. Importantly, each issue |
| ... | @@ -51,7 +54,8 @@ knowledge of Zig internals.** | ... | @@ -51,7 +54,8 @@ knowledge of Zig internals.** |
| 51 | | 54 | |
| 52 | ### Editing Source Code | 55 | ### Editing Source Code |
| 53 | | 56 | |
| 54 | First, build the Stage 1 compiler as described in [Building from Source](README.md#Building-from-Source). | 57 | First, build the Stage 1 compiler as described in |
| | 58 | [Building Zig From Source](https://github.com/ziglang/zig/wiki/Building-Zig-From-Source). |
| 55 | | 59 | |
| 56 | Zig locates lib files relative to executable path by searching up the | 60 | Zig locates lib files relative to executable path by searching up the |
| 57 | filesystem tree for a sub-path of `lib/zig/std/std.zig` or `lib/std/std.zig`. | 61 | filesystem tree for a sub-path of `lib/zig/std/std.zig` or `lib/std/std.zig`. |
| ... | @@ -129,6 +133,14 @@ This will enable running behavior tests and std lib tests with Wine. It's | ... | @@ -129,6 +133,14 @@ This will enable running behavior tests and std lib tests with Wine. It's |
| 129 | recommended for Linux users to install Wine and enable this testing option | 133 | recommended for Linux users to install Wine and enable this testing option |
| 130 | when editing the standard library or anything Windows-related. | 134 | when editing the standard library or anything Windows-related. |
| 131 | | 135 | |
| | 136 | #### Testing WebAssembly using wasmtime |
| | 137 | |
| | 138 | If you have [wasmtime](https://wasmtime.dev/) installed, take advantage of the |
| | 139 | `-Denable-wasmtime` flag which will enable running WASI behavior tests and std |
| | 140 | lib tests. It's recommended for all users to install wasmtime and enable this |
| | 141 | testing option when editing the standard library and especially anything |
| | 142 | WebAssembly-related. |
| | 143 | |
| 132 | #### Improving Translate-C | 144 | #### Improving Translate-C |
| 133 | | 145 | |
| 134 | Please read the [Editing Source Code](#editing-source-code) section as a | 146 | Please read the [Editing Source Code](#editing-source-code) section as a |