|
1 | 1 | <img src="https://raw.githubusercontent.com/rtoal/ple/main/docs/resources/zig-logo-64.png"> |
2 | 2 |
|
3 | | -# Zig |
| 3 | +# Zig Explorations |
4 | 4 |
|
5 | | -## Zig Examples: |
| 5 | +To build and run Zig programs on your local machine, download and install Zig from the [Zig Download](https://ziglang.org/download/) or use your favorite package manager, e.g. `brew install zig` on macOS. |
6 | 6 |
|
7 | | -To get Zig: |
8 | | -<details><summary><b>MacOS</b></summary> |
9 | | - |
10 | | -<br />In your terminal (Mac Terminal): <br /> |
| 7 | +Once installed, programs in this folder can be run from the command line like so: |
11 | 8 |
|
12 | | -After installing homebrew: |
| 9 | +``` |
| 10 | +zig run triple.zig |
| 11 | +``` |
13 | 12 |
|
14 | | - ```sh |
15 | | - $ brew install zig |
16 | | - ``` |
17 | | - </details> |
18 | | -<details><summary><b>Windows/Linux</b></summary> |
19 | | - |
20 | | -Download zig from the website: |
21 | | -- [Zig Download](https://ziglang.org/download/) |
| 13 | +``` |
| 14 | +zig run permutations.zig -- I like carrots |
| 15 | +``` |
22 | 16 |
|
23 | | -</details> |
| 17 | +``` |
| 18 | +zig run top_ten_scorers.zig < ../test/wnba_input |
| 19 | +``` |
24 | 20 |
|
25 | | -## About Zig: |
| 21 | +## About Zig |
26 | 22 |
|
27 | | -The Zig language was founded by Andrew Kelley in 2016. It was created to replace the <a href="https://github.com/rtoal/ple/tree/main/c">C</a> programming language and be more pragmatic. Zig offers many advancements such as features to improve safety, simple syntax, and a testing framework built into the language. The language also provides strong compile-time guarantees and aims to eliminate common programming errors. While it is a newer language, many developers approve of its capabilities. |
| 23 | +The Zig language was created by Andrew Kelley in 2016, as a pragmatic alternative to the venerable <a href="https://github.com/rtoal/ple/tree/main/c">C</a> programming language. Zig offers many safety features and a comprehensive ecosystem for building and testing. It is known for having “no surprises”: there are no hidden function calls and no hidden memory allocations. |
28 | 24 |
|
29 | | -## Zig Resources: |
| 25 | +## Zig Resources |
30 | 26 |
|
31 | 27 | Continue your exploration of Zig via: |
32 | 28 |
|
33 | 29 | - [Zig Home Page](https://ziglang.org) |
34 | | -- [Zig Docs](https://ziglang.org/documentation/0.10.1/) |
| 30 | +- [Zig Docs](https://ziglang.org/documentation/master/) |
35 | 31 | - [Intro to Zig](https://www.youtube.com/watch?v=YXrb-DqsBNU) |
36 | | -- [ZigLearn](https://ziglearn.org/chapter-1/) |
37 | | -- [Zig Wiki](https://en.wikipedia.org/wiki/Zig_(programming_language)) |
| 32 | +- [ZigLearn](https://ziglearn.org/learn/) |
| 33 | +- [Wikipedia](<https://en.wikipedia.org/wiki/Zig_(programming_language)>) |
38 | 34 |
|
39 | 35 | ## Zig Open Source Projects |
40 | 36 |
|
41 | | -Studying, and contributing to, open source projects is an excellent way to improve your proficiency in any language. You may enjoy: |
| 37 | +Studying, and contributing to, open source projects is an excellent way to improve your proficiency in any language. Of the many projects using Lua, you may enjoy: |
42 | 38 |
|
43 | | -- [Zig Open Source](https://github.com/kennethreitz/requests) |
| 39 | +- [Trending Lua Repositories on GitHub](https://github.com/trending/zig) |
| 40 | +- [tigerbeetle](https://github.com/tigerbeetle/tigerbeetle) |
| 41 | +- [asciigen](https://github.com/seatedro/asciigen) |
| 42 | + |
| 43 | +You can contribute to Zig itself: |
| 44 | + |
| 45 | +- [Zig](https://github.com/ziglang/zig) |
0 commit comments