Commit Graph

531 Commits

Author SHA1 Message Date
Chris Boesch
945d9b84b0 Merge branch 'main' into fix_comment 2026-04-21 22:13:57 +02:00
Frost-Phoenix
333ca33e78 fix: move exercise 100 celebration comment to the right file 2026-04-20 17:40:49 +02:00
KercyDing
5eb9a30abe docs: fix wrong prerequisite in 110_files2.zig 2026-04-20 04:22:21 +08:00
MatthijsBlom
e0470c4f45 demonstrate the benefit of the mutex 2026-04-18 23:46:59 +02:00
Gabriele Belluardo
656e1ba1e7 fix: mutex unlock call in async example 2026-04-18 11:55:49 +02:00
Tom
cb0489904e Fix formatting reference link 2026-04-14 21:36:06 -07:00
Chris Boesch
d4a3bad19c fixed merge conflict 2026-04-14 22:23:33 +02:00
Chris Boesch
e412619d88 added cancelation if nothing found 2026-04-14 22:07:57 +02:00
Tom
2afd0f9709 093_async9: small fixes 2026-04-14 08:32:50 -07:00
Chris Boesch
f10c3d4e7a Merge branch 'main' into 95-bug4 2026-04-14 12:43:29 +02:00
Chris Boesch
ab3c498226 new example for concurrency 2026-04-14 11:07:13 +02:00
Chris Boesch
5eadcdc9f9 added result for 12 digits 2026-04-14 08:17:16 +02:00
Tom
b8a639e798 095_quiz_async: Add missing Bug 4 2026-04-13 19:11:39 -07:00
Chris Boesch
7fcfb60cc4 typo 2026-04-13 17:56:05 +02:00
Tom
2472caa183 Replace exercise 074_comptime9
The exercise no longer needed any modifications to pass due to
advancements in Zig.  This new exercise attempts to teach about
@compileError, @compileLog, and some comptime debugging.  It tries to
help prepare users for the "super bonus challenge" in 075_quiz8.
2026-04-12 07:16:33 -07:00
Chris Boesch
7cb7a9948a Merge branch 'main' into fix-060 2026-04-07 09:18:37 +02:00
Chris Boesch
882c6aa0ab improvements for async-io 2026-04-06 19:57:32 +02:00
Chris Boesch
55a4841b07 improvements for async-io 2026-04-06 19:38:19 +02:00
Chris Boesch
09bae6a70e improvements for async-io 2026-04-06 19:30:56 +02:00
Chris Boesch
aeeb18931d improvements for async-io 2026-04-06 18:50:57 +02:00
Chris Boesch
63e506586f improvements for async-io 2026-04-06 16:57:48 +02:00
Chris Boesch
446da3ce5a improvements for async-io 2026-04-06 12:22:41 +02:00
Chris Boesch
5e474ea5d1 improvements for async-io 2026-04-05 16:13:42 +02:00
Chris Boesch
2acf192775 improvements for async-io 2026-04-05 12:42:42 +02:00
Chris Boesch
58f8df66d5 improvements for async-io 2026-04-04 16:05:35 +02:00
Chris Boesch
f6a6798c8b improved report design 2026-04-03 19:28:12 +02:00
Chris Boesch
1c6487c1e7 added async-io quiz 2026-04-03 18:11:00 +02:00
Chris Boesch
2500936153 new async exercise 2026-04-03 14:28:19 +02:00
markuxcu
9f314ce8e6 exercise 60: added hint on correct format 2026-04-03 14:25:44 +02:00
Chris Boesch
903c33cd0a new async exercise 2026-04-03 13:46:35 +02:00
Chris Boesch
e0259f43a7 Insert space for additional async exercises 2026-04-03 13:35:56 +02:00
Chris Boesch
ffde357f30 revival of the async-io functions, #90 2026-04-02 10:38:45 +02:00
Chris Boesch
3b22bfd898 revival of the async-io functions 2026-04-02 10:28:40 +02:00
Chris Boesch
e22748d488 revival of the async-io functions 2026-04-01 23:44:24 +02:00
Chris Boesch
fcfb0e80a0 revival of the async-io functions 2026-04-01 23:34:16 +02:00
Chris Boesch
db1fef8b86 revival of the async-io functions 2026-04-01 22:52:04 +02:00
Chris Boesch
77d3b684cb revival of the async-io functions 2026-04-01 22:28:37 +02:00
Justus Klausecker
16a794fbee 111/112: Add exercises for packed structs/unions
The first exercise introduces the `packed` keyword as an alternative for
bitwise operations. Its main goals are establishing a solid understanding
of field order and conveying the fact that packed containers are basically
integers.
It introduces the concept of container layouts and briefly explains the
default `auto` layout before introducing the `packed` layout (but doesn't
touch `extern` at all).
The exercise also presents a real-world use case for packed containers,
namely LZ4 frame descriptors.
Furthermore it covers equality comparisons between packed containers.

The second exercise talks about switch statements with packed containers
and goes into some more detail on packed unions.
2026-03-13 11:21:03 +01:00
Robert Fry
0385f5d017 fix: oops 2026-03-09 23:24:59 +00:00
Robert Fry
de3c99dddd update description of 050_no_value for clarity 2026-03-09 23:16:30 +00:00
Chris Boesch
1be6fcd7db Merge pull request 'improve grammar in 103_tokenization' (#365) from pebose/exercises:improve-grammar into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/365
2026-02-27 19:54:41 +01:00
Chris Boesch
88510735e1 Merge branch 'main' into emphasize-for-loop-range 2026-02-27 19:43:31 +01:00
Chris Boesch
07031c5daa Merge pull request 'add commas' (#364) from pebose/exercises:add-punctuations into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/364
2026-02-27 19:38:15 +01:00
Chris Boesch
1813c0ded8 Merge pull request 'replace deprecated mem.indexOf with mem.find' (#363) from pebose/exercises:indexof-to-find into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/363
2026-02-27 19:36:00 +01:00
Chris Boesch
908109df2d Merge pull request 'add hint that @field() works differently on types and values' (#367) from pebose/exercises:add-hint-to-exercise-82 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/367
2026-02-27 19:17:59 +01:00
Chris Boesch
c032550633 Merge pull request 'improve comment stating 'Zig 0.10.0' @typeName change' (#370) from pebose/exercises:improve-builtins2-comment-zig-0-10 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/370
2026-02-27 19:09:51 +01:00
Chris Boesch
2e4c7a2310 Merge pull request 'improve comment on continue expression behavior' (#369) from pebose/exercises:improve-013-while3-comment into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/369
2026-02-27 12:49:58 +01:00
Paul Ebose
93aa733d33 improve comment on continue expression behavior 2026-02-27 04:07:06 +01:00
Paul Ebose
686342375e improve comment stating 'Zig 0.10.0' @typeName change 2026-02-27 03:55:37 +01:00
Paul Ebose
46cf5e802c fix 068_comptime3 comment to 'std.Io.Writer.print' 2026-02-27 03:51:12 +01:00