Commit Graph

1379 Commits

Author SHA1 Message Date
Chris Boesch
95ad73013a Merge pull request 'Added field .skip_hint to show information on why a file has been' (#375) from cor-draconia/exercises:skip_hints into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/375
2026-03-20 19:08:46 +01:00
MatthijsBlom
04f4c1e32c bump required Zig version 2026-03-20 17:23:11 +01:00
inke
2b5a603c43 Added field .skip_hint to show information on why a file has been
skipped.
2026-03-18 13:55:35 +01:00
Chris Boesch
e6d93d731a Merge pull request 'Add exercises for packed structs/unions' (#374) from justusk/ziglings:packed into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/374
2026-03-13 18:18:50 +01: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
Justus Klausecker
973ec41097 build.zig: replace deprecated GeneralPurposeAllocator alias with DebugAllocator 2026-03-13 09:50:58 +01:00
Chris Boesch
1de4e14096 Merge pull request 'update description of 050_no_value for clarity' (#373) from robertefry/ziglings_exercises:fix/050-clarity into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/373
2026-03-11 00:03:12 +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
d5fdfe708c Merge pull request 'emphasize that the end number of a for-loop range is exclusive' (#366) from pebose/exercises:emphasize-for-loop-range into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/366
2026-02-27 19:44:35 +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
Paul Ebose
8c119bebdc update output for exercise 095_for3 to include full range of numbers 2026-02-27 19:35:10 +01:00
Paul Ebose
dc71c2cd06 update patch file for 095_for3 2026-02-27 19:34:53 +01:00
Paul Ebose
7d03b8464d update patch file for 103_tokenization 2026-02-27 19:27:04 +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
a83a42528e Merge pull request 'fix zig build error when '.progress.txt' contains newline' (#368) from pebose/exercises:fix-zig-build-error into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/368
2026-02-27 19:05:06 +01:00
Chris Boesch
4500fba8b3 Merge branch 'main' into fix-zig-build-error 2026-02-27 18:56:08 +01:00
Paul Ebose
9db32388e3 update patch file 2026-02-27 13:11:03 +01:00
Paul Ebose
53f7e015cb update patch file 2026-02-27 13:09:54 +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
Chris Boesch
0785c71532 Merge pull request 'fix 068_comptime3 comment to 'std.Io.Writer.print'' (#371) from pebose/exercises:correct-comptime3-comment into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/371
2026-02-27 12:25:13 +01:00
Paul Ebose
178fd9cef3 fix zig build error when '.progress.txt' contains newline 2026-02-27 04:12:46 +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
Chris Boesch
3ecaa34271 Merge pull request 'use Io interface for enabling ansi escape codes' (#361) from sno2/exercises:main into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/361
2026-02-08 21:41:30 +01:00
Carter Snook
df3f2df50b use Io interface for enabling ansi escape codes 2026-02-08 18:53:27 -06:00
Chris Boesch
7d4162e388 Merge pull request 'changed to zig-dev version 2471' (#359) from i357 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/359
2026-02-04 11:44:04 +01:00
Chris Boesch
8840f201d5 changed to zig-dev version 2471 2026-02-04 10:37:03 +01:00
Chris Boesch
bfc57ca6bb Merge pull request 'fix: std.process.RunOptions fields changed (used in build.zig)' (#358) from tadakuso/ziglings:main into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/358
2026-02-04 10:28:34 +01:00
tadakuso
6fe9625899 fix: std.process.RunOptions fields changed (used in build.zig) 2026-02-04 08:16:11 +08:00
Chris Boesch
0ceb0df875 Merge pull request 'fix: 071 update TypeInfo field case to .int' (#356) from arthursolomiac/exercises:fix-071-typeinfo-case into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/356
2026-01-10 13:53:39 +01:00
Arthur Solomiac
3f9e390bcc fix: 071 update TypeInfo field case to .int 2026-01-10 10:50:37 +01:00
Chris Boesch
07583db582 Merge pull request 'I/O improvements' (#355) from io_improvements into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/355
2026-01-09 23:07:31 +01:00
Chris Boesch
1e552a1dd6 I/O improvements 2026-01-09 22:56:23 +01:00
Chris Boesch
6972af2178 Merge pull request 'fix: use new randomness api' (#354) from itsnoctural/exercises:main into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/354
2026-01-09 10:26:28 +01:00
itsnoctural
91f484ed47 bump required zig version 2026-01-09 00:37:33 +02:00
itsnoctural
551008ac19 fix: use new randomness api 2026-01-09 00:19:24 +02:00
Chris Boesch
335aaafcff Merge pull request 'Change link to documentation' (#351) from BartShoot/exercises:main into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/351
2026-01-08 13:34:03 +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
9b18647fd2 Merge pull request 'adjust temp files' (#350) from i348 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/350
2026-01-07 20:05:10 +01:00