159 Commits (main)

Author SHA1 Message Date
Chris Boesch 67f87a76c2
Nobody wants the long version of finding out if a variable is set.
So switched to the short version with 'orelse'. ;)
4 months ago
Chris Boesch 165cc199ca
Fix patches for 106 and 107 4 months ago
Chris Boesch ba2a9622c4
Additional timer in thread start added 5 months ago
Chris Boesch 7732cd7716
Greater gradation of timers built into the threads 5 months ago
Alan CHUNG 05589f8ba1 added format parameter {d} 6 months ago
Alan CHUNG 223fc79e44 106 & 107 6 months ago
Alan CHUNG 69bc9a0723 Pass CI test locally 6 months ago
Alan CHUNG 5f74c7f911 specify directory on patch file 106 6 months ago
Alan CHUNG 2c44f3e4ff specify directory on patch file 106 6 months ago
Alan CHUNG 92ea6718b2 remove header of patch files of 106 6 months ago
Alan CHUNG 9bf7a84e56 106_files.patches actual 6 months ago
Alan CHUNG 74a6e60e17 add patch files for 106_files.zig 6 months ago
Chris Boesch d65e3f3f9a
Added second threading exercise. 6 months ago
Chris Boesch 9844123dd1 Improved the explanation about passing arguments and added an example. 6 months ago
Chris Boesch 6984345d0a Added threading exercise 7 months ago
Chris Boesch 9e48c9a339 Added notes to exercise 94 c_math. 7 months ago
Chris Boesch b0511bb3c7 Fixed patch hunk 10 months ago
Chris Boesch 7679f93f68 Converted var to const if there is no mutation in var.
This is checked from compiler version 0.12.0-dev.1664
10 months ago
Chris Boesch 55b58fea56 Change the task so that the exercise contains two errors again. 11 months ago
Chris Boesch 2feeb282a9 fixed typos 11 months ago
Chris Boesch 5d3ff86a42 changed tokenize to tokenizeAny 12 months ago
Chris Boesch e6e78d3f80 fixed broken patch 103 12 months ago
Chris Boesch 7491e3df91 changed the patch files that we can also use them with busybox for testing in Woodpecker 12 months ago
Chris Boesch afee8d9c7a added woodpecker integration 12 months ago
Chris Boesch b749cba652 Fixed some broken patches 1 year ago
Juergen Hoetzel 8c2202c73d Add example for Unicode Code point literal > 255
Only Basic Latin and Latin-1 Supplement code points fit into a single
byte.
1 year ago
Chris Boesch 4eb949759b changed struct name 'class' into 'role' 1 year ago
Chris Boesch 5a0681948b changed struct name 'class' into 'role' 1 year ago
Chris Boesch a5a36337e8 Revised exercises due to the changes of Zig version 0.11.0-dev.3853 1 year ago
Chris Boesch a2b0b976a6 First tokenization exerice. 1 year ago
lording 3e502fe69b Merge branch 'main' into refactor-var-to-const 1 year ago
lording d2d3dfa277 var to const when posssible 1 year ago
lording 39952817b3 Fix broken builtin name in exercise 36 1 year ago
Chris Boesch 33d3cc1647 Fixed description of @addWithOverflow 1 year ago
Chris Boesch c3a73b8e2b Added testing exercise. 1 year ago
Dave Gauer e2f3a5e519 Added Ex 101 "for loops part 5" (Closes #271)
Also gave a shot at explaining data-oriented design, a Zig "hot
topic" ever since the red Hawaiian shirt talk(s).
1 year ago
Dave Gauer 2e2924abdb Added Ex. 100 fourth for (as foretold in #261) 1 year ago
Dave Gauer bef099fee6 Renamed 095 to "for3" to match feature sequence
So 100 will be the next in line.
1 year ago
Dave Gauer fd10ff8bb3 Updating 095 patch to match, natch! 1 year ago
Manlio Perillo 0dc6b45770 eowyn.sh: remove checking formatting one file at a time
This avoids unnecessary output.
Also remove the comment, since the message to stdout makes it
unnecessary.
1 year ago
Chris Boesch f69cfc3b88 Version number added. 1 year ago
Chris Boesch 0ac3646e9c Added a loop for the formatting test, so we can see where errors happen. 1 year ago
Manlio Perillo fd6f3eebbb eowyn.sh: set the -e option
Currently, `zig fmt` exit status is ignored, making it useless.
Ensure that the script terminates early if there is an error.

Print a message to stdout before executing `zig fmt`, in order to make
the possible error more visible.
1 year ago
Manlio Perillo 4b58de26d3 eowyn: always quote variables
Quote all the variables, even though we know that it is safe.

Fix coding style.
1 year ago
Dave Gauer 42c430a0c0 Ex 099 format instructions to 65 columns, wording, examples 1 year ago
Chris Boesch 4435cebe7a Merge pull request #247 from chrboesch/formatting
added first formatting exercise
1 year ago
Chris Boesch d6d30934db added first formatting exercise 1 year ago
Manlio Perillo c7697a4282 Ensure the patches are up-to-date and consistent
Add the update-patches.py tool.

Update all the patches, so that the files are up-to-date and use the
same patch file format.
1 year ago
Manlio Perillo 7d7be0482c eowyn: run `zig fmt --check` before `zig build`
Update the eowyn.sh script to check the healed exercises formatting,
before running `zig build`.
1 year ago
Manlio Perillo 6b17a18893 Ensure the exercises use the canonical format
Add the check-exercises.py tool in the new tools directory.  It is used
to check that the exercises are correctly formatted, printing on stderr
the invalid ones and the diff in the unified format.

Update the exercises that don't use the canonical zig fmt format.

Update some patches that cause the generated zig file to be incorrectly
formatted.
1 year ago