Commit Graph
300 Commits
Author SHA1 Message Date
Chris Boesch ffde357f30 revival of the async-io functions, #90 2026-04-02 10:38:45 +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
Chris Boesch 8f7a629ffb switched to llvm for the c-exercixes 2026-03-21 20:14:31 +01:00
Chris Boesch 9f6092aea6 Merge branch 'main' into main 2026-03-20 19:13:22 +01:00
MatthijsBlom 04f4c1e32c bump required Zig version 2026-03-20 17:23:11 +01:00
inkeandcor-draconia 2b5a603c43 Added field .skip_hint to show information on why a file has been
skipped.
2026-03-18 13:55:35 +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 88510735e1 Merge branch 'main' into emphasize-for-loop-range 2026-02-27 19:43:31 +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 178fd9cef3 fix zig build error when '.progress.txt' contains newline 2026-02-27 04:12:46 +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
tadakuso 6fe9625899 fix: std.process.RunOptions fields changed (used in build.zig) 2026-02-04 08:16:11 +08: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 639a763044 adjust temp files 2026-01-07 19:57:43 +01:00
Chris Boesch 05b324d697 entered current version number 2026-01-07 15:39:08 +01:00
prasefia a04f945d36 fix build errors in new Zig compiler 2026-01-06 02:55:10 +03:00
Chris Boesch e8f81ddb96 finish new i/o 2025-12-29 12:42:35 +01:00
Chris Boesch b332dc879e build revised 2025-12-28 21:39:32 +01:00
Chris Boesch 21f86f07ad migrated build and test 2025-12-27 23:44:12 +01:00
David Pflug 7d1184a140 Update to new Zig mem trim API
trimRight is now trimEnd
2025-12-13 12:01:10 -05:00
Chris Boesch 757826d45a changed 1 to 42 for better understanding 2025-11-28 14:42:58 +01:00
Chris Boesch 147ff302ec fixed more changes due to new I/O API 2025-11-01 15:46:31 +01:00
Ensar Sarajčić 26fc4fdaaa Update for new zig IO
`test/tests.zig` fails after https://github.com/ziglang/zig/pull/25592 was
merged in. This just ensures that Io is passed, it might not be the
ideal solution.
`build.zig` was also failing due to new color parameter.
2025-11-01 10:34:18 +01:00
Chris Boesch 4346d5f1d8 Fixed error in captureStdErr() 2025-09-24 20:30:54 +02:00
Chris Boesch ed93882b19 Switched to new reader 2025-09-03 10:45:19 +02:00
Simon 'Sze' L. Schlee 02db832677 pass -freference-trace to executed compile command
Currently users executing `zig build` to run the exercises,
may encounter compiler output that tells them to use
`-freference-trace=[num]` to see more of the hidden
reference traces, so we should pass this parameter to
the zigling exercise being compiled, so that the learner
can provide this parameter like they would normally, when
using `zig build` directly in normal Zig programs.
2025-08-24 03:08:17 +02:00
Chris Boesch aeacadb76b Fixed changes in array list 2025-08-15 15:00:53 +02:00
Chris Boesch fd310273a7 Current version set 2025-08-08 20:34:59 +02:00
DoKoB 9bff77a12a fix: initial zig build caused by self.step.evalZigProcess() 2025-08-05 08:11:36 +05:30
Chris Boesch 54f48c75c4 Fixed 82 2025-07-22 10:16:17 +02:00
Chris Boesch b499788606 Corrected the necessary Zig version 2025-07-22 00:40:06 +02:00
Arnold Filip 9ae739c4c9 Fix zig 0.15.0-dev.1149+4e6a04929 build errors 2025-07-21 15:04:57 +02:00
Chris Boesch 761fb1a501 Changed the values for better understanding 2025-05-12 21:36:37 +02:00
Jost Alemann 522b4673a4 fix: typos 2025-03-20 21:24:40 +01:00
mz0 a22f1df0a1 Shuttle weight fixed w.r.t. issue-211 2025-03-03 20:32:41 +04:00
Chris Boesch f285bd59a4 Output from #60 adapted 2025-02-14 09:22:36 +01:00
Alexander Sisco 20596bc290 converted 110 to a quiz (quiz 9) 2025-02-10 21:33:15 -08:00
Chris Boesch 838fb4ab9d Merge branch 'main' into bit_man3 2025-02-09 20:58:41 +00:00
Chris Boesch b3dd04885d Merge pull request 'issue201-adding-progress-tracking' (#203) from zendril/exercises:issue201-adding-progress-tracking into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/203
2025-02-09 20:16:55 +00:00
Chris Boesch b38d70002a Skip 74, the compiler corrects this now. 2025-02-09 16:34:56 +01:00
Zendril a9487c246f cleanup for PR 2025-02-04 22:24:52 -05:00
Zendril 92c7235362 cleanup for PR 2025-02-04 21:29:46 -05:00
Zendril 0903c5927b cleanup for PR 2025-02-04 21:14:41 -05:00