Commit Graph

499 Commits

Author SHA1 Message Date
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
Paul Ebose
2e981d408f add hint that @field() works differently on types and values 2026-02-27 03:48:11 +01:00
Paul Ebose
9fb6d21ce6 emphasize that the end number of a for-loop range is exclusive 2026-02-27 03:45:09 +01:00
Paul Ebose
9798e80deb improve grammar in 103_tokenization 2026-02-27 03:41:27 +01:00
Paul Ebose
4aeb7b83b9 add commas 2026-02-27 03:38:59 +01:00
Paul Ebose
8a2e40040b replace deprecated mem.indexOf with mem.find 2026-02-27 03:38:26 +01:00
Arthur Solomiac
3f9e390bcc fix: 071 update TypeInfo field case to .int 2026-01-10 10:50:37 +01:00
Chris Boesch
1e552a1dd6 I/O improvements 2026-01-09 22:56:23 +01:00
BartShoot
b98fb4d9fb Change link to documentation
It's pointing to pre-writergate documentation
2026-01-08 01:38:18 +01:00
Chris Boesch
f87097ae54 minor typos 2026-01-04 14:17:27 +01:00
Chris Boesch
af2a30e6da change io explanation 2025-12-30 13:40:24 +01:00
Chris Boesch
3a645ac9db exc. 107 migrated 2025-12-28 21:19:31 +01:00
Chris Boesch
4340642f3c exc. 106 migrated 2025-12-28 20:40:31 +01:00
Chris Boesch
8f9daa12b2 exc. 34 migrated 2025-12-28 14:46:23 +01:00
Chris Boesch
8e30debc6a improved i/o explanation for exc. 26 2025-12-28 02:01:19 +01:00
Chris Boesch
b33fd5a744 exc. 26 migrated 2025-12-28 01:55:06 +01:00
Chris Boesch
21f86f07ad migrated build and test 2025-12-27 23:44:12 +01:00
gregorh
1c552813d9 Formatting 2025-12-24 01:10:39 +01:00
Gregor Hartmann
acf8c483ef change back to original 'format()' sentence 2025-12-24 01:08:19 +01:00
gregorh
8cbce258a6 Update to correct line number
Line 537 is the actual start of the documenting comment.
2025-12-19 17:56:02 +01:00
Gregor Hartmann
0010cb2a68 Update URL to, and function name of, fmt string documentation/comment 2025-12-19 15:46:02 +01:00
Nikhil
82d5dda273 Update zig homepage example in 103 2025-12-14 18:12:51 -08:00
Castanearie
0c9d5abccd restrict parameter type in 'maximumNarcissism' 2025-12-07 23:15:42 +01:00
Chris Boesch
274a49aa53 Added art description 2025-12-07 22:53:34 +01:00
Chris Boesch
757826d45a changed 1 to 42 for better understanding 2025-11-28 14:42:58 +01:00
Chris Boesch
dc416b6c5a changed 'sleep' to async I/O 2025-11-28 14:22:51 +01:00
Chris Boesch
6c8f4ef507 pause slightly extended for faster computers 2025-11-01 15:57:29 +01:00
Chris Boesch
147ff302ec fixed more changes due to new I/O API 2025-11-01 15:46:31 +01:00
Adam Wheeler
87358c610b Wrap comment at 80 chars in 102.
Some of the inline comments in 102 are wrapped into very short lines. This
rewraps the shortest ones for readability.
2025-10-24 11:54:25 -04:00
Chris Boesch
837e6aba3b Fixed description to decimal and scientific notation 2025-10-17 17:59:57 +02:00
Chris Boesch
c7e59864ca Fixed conversion from kg to tons 2025-10-03 13:30:14 +02:00
Chris Boesch
e422e24215 fixes some minor typos 2025-08-24 19:26:30 +02:00
Chris Boesch
a46db7e0e8 Merge branch 'main' into test-expect 2025-08-24 14:59:26 +02:00