From 4044b93dd210cb3eb8c1993f2be0e286c4383f2f Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Tue, 22 Jul 2025 10:45:09 +0200 Subject: Added Readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index a6e760f..b497666 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,8 @@ that if you update one, you may need to also update the other. ### Version Changes -Version-0.14.0-dev.1573 +Version-0.15.0-dev.1092 +* *2025-07-22* zig 0.15.0-dev.1092 - various changes due to new I/O API, see [#24488](https://github.com/ziglang/zig/pull/24488) * *2024-09-16* zig 0.14.0-dev.1573 - introduction of labeled switch, see [#21257](https://github.com/ziglang/zig/pull/21257) * *2024-09-02* zig 0.14.0-dev.1409 - several changes in std.builtin, see [#21225](https://github.com/ziglang/zig/pull/21225) * *2024-08-04* zig 0.14.0-dev.1224 - several changes in build system, see [#21115](https://github.com/ziglang/zig/pull/21115) -- cgit v1.2.3 From fd310273a7aeecbf877057a62c3f32bc1405c926 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Fri, 8 Aug 2025 20:34:59 +0200 Subject: Current version set --- README.md | 1 + build.zig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index b497666..c3fc8a0 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ that if you update one, you may need to also update the other. ### Version Changes Version-0.15.0-dev.1092 +* *2025-08-08* zig 0.15.0-dev.1380 - changes in build system, see [#24588](https://github.com/ziglang/zig/pull/24588) * *2025-07-22* zig 0.15.0-dev.1092 - various changes due to new I/O API, see [#24488](https://github.com/ziglang/zig/pull/24488) * *2024-09-16* zig 0.14.0-dev.1573 - introduction of labeled switch, see [#21257](https://github.com/ziglang/zig/pull/21257) * *2024-09-02* zig 0.14.0-dev.1409 - several changes in std.builtin, see [#21225](https://github.com/ziglang/zig/pull/21225) diff --git a/build.zig b/build.zig index 8b22a3c..eaf4646 100644 --- a/build.zig +++ b/build.zig @@ -15,7 +15,7 @@ const print = std.debug.print; // 1) Getting Started // 2) Version Changes comptime { - const required_zig = "0.15.0-dev.1092"; + const required_zig = "0.15.0-dev.1380"; const current_zig = builtin.zig_version; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; if (current_zig.order(min_zig) == .lt) { -- cgit v1.2.3 From 80528613c2a1d2b9685c0d8fbe2a1357ecf265d8 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Mon, 11 Aug 2025 09:52:58 +0200 Subject: Fixed zig version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index c3fc8a0..7800942 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ that if you update one, you may need to also update the other. ### Version Changes -Version-0.15.0-dev.1092 +Version-0.15.0-dev.1380 * *2025-08-08* zig 0.15.0-dev.1380 - changes in build system, see [#24588](https://github.com/ziglang/zig/pull/24588) * *2025-07-22* zig 0.15.0-dev.1092 - various changes due to new I/O API, see [#24488](https://github.com/ziglang/zig/pull/24488) * *2024-09-16* zig 0.14.0-dev.1573 - introduction of labeled switch, see [#21257](https://github.com/ziglang/zig/pull/21257) -- cgit v1.2.3 From aeacadb76be91619417d3d13df20b25a0ca21392 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Fri, 15 Aug 2025 15:00:53 +0200 Subject: Fixed changes in array list --- README.md | 1 + build.zig | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7800942..ca2069a 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ that if you update one, you may need to also update the other. ### Version Changes Version-0.15.0-dev.1380 +* *2025-08-08* zig 0.15.0-dev.1519 - changes in array listr, see [#24801](https://github.com/ziglang/zig/pull/24801) * *2025-08-08* zig 0.15.0-dev.1380 - changes in build system, see [#24588](https://github.com/ziglang/zig/pull/24588) * *2025-07-22* zig 0.15.0-dev.1092 - various changes due to new I/O API, see [#24488](https://github.com/ziglang/zig/pull/24488) * *2024-09-16* zig 0.14.0-dev.1573 - introduction of labeled switch, see [#21257](https://github.com/ziglang/zig/pull/21257) diff --git a/build.zig b/build.zig index eaf4646..e72dd4d 100644 --- a/build.zig +++ b/build.zig @@ -15,7 +15,7 @@ const print = std.debug.print; // 1) Getting Started // 2) Version Changes comptime { - const required_zig = "0.15.0-dev.1380"; + const required_zig = "0.15.0-dev.1519"; const current_zig = builtin.zig_version; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; if (current_zig.order(min_zig) == .lt) { @@ -492,7 +492,7 @@ const ZiglingStep = struct { const path = join(b.allocator, &.{ self.work_path, exercise_path }) catch @panic("OOM"); - var zig_args = std.ArrayList([]const u8).init(b.allocator); + var zig_args = std.array_list.Managed([]const u8).init(b.allocator); defer zig_args.deinit(); zig_args.append(b.graph.zig_exe) catch @panic("OOM"); @@ -581,17 +581,17 @@ fn resetLine() void { /// Removes trailing whitespace for each line in buf, also ensuring that there /// are no trailing LF characters at the end. pub fn trimLines(allocator: std.mem.Allocator, buf: []const u8) ![]const u8 { - var list = try std.ArrayList(u8).initCapacity(allocator, buf.len); + var list = try std.array_list.Aligned(u8, null).initCapacity(allocator, buf.len); var iter = std.mem.splitSequence(u8, buf, " \n"); while (iter.next()) |line| { // TODO: trimming CR characters is probably not necessary. const data = std.mem.trimRight(u8, line, " \r"); - try list.appendSlice(data); - try list.append('\n'); + try list.appendSlice(allocator, data); + try list.append(allocator, '\n'); } - const result = try list.toOwnedSlice(); // TODO: probably not necessary + const result = try list.toOwnedSlice(allocator); // TODO: probably not necessary // Remove the trailing LF character, that is always present in the exercise // output. -- cgit v1.2.3 From b580f7e30ec2adf7656e2d690adc7fb187bcdfed Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Fri, 15 Aug 2025 15:03:10 +0200 Subject: adjusted version information --- README.md | 1 - 1 file changed, 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index ca2069a..bf84593 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,6 @@ that if you update one, you may need to also update the other. ### Version Changes -Version-0.15.0-dev.1380 * *2025-08-08* zig 0.15.0-dev.1519 - changes in array listr, see [#24801](https://github.com/ziglang/zig/pull/24801) * *2025-08-08* zig 0.15.0-dev.1380 - changes in build system, see [#24588](https://github.com/ziglang/zig/pull/24588) * *2025-07-22* zig 0.15.0-dev.1092 - various changes due to new I/O API, see [#24488](https://github.com/ziglang/zig/pull/24488) -- cgit v1.2.3 From 1ca8b90589f598cd209ebab5586aa8c76773c67f Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Fri, 15 Aug 2025 15:10:47 +0200 Subject: fixed typo in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index bf84593..913d6b3 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ that if you update one, you may need to also update the other. ### Version Changes -* *2025-08-08* zig 0.15.0-dev.1519 - changes in array listr, see [#24801](https://github.com/ziglang/zig/pull/24801) +* *2025-08-15* zig 0.15.0-dev.1519 - changes in array list, see [#24801](https://github.com/ziglang/zig/pull/24801) * *2025-08-08* zig 0.15.0-dev.1380 - changes in build system, see [#24588](https://github.com/ziglang/zig/pull/24588) * *2025-07-22* zig 0.15.0-dev.1092 - various changes due to new I/O API, see [#24488](https://github.com/ziglang/zig/pull/24488) * *2024-09-16* zig 0.14.0-dev.1573 - introduction of labeled switch, see [#21257](https://github.com/ziglang/zig/pull/21257) -- cgit v1.2.3 From 63640875699059e44a5f15b1521b17b42ef1da27 Mon Sep 17 00:00:00 2001 From: Chris Boesch <48591413+chrboesch@users.noreply.github.com> Date: Sun, 24 Aug 2025 14:42:03 +0200 Subject: fixed version numbers --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 913d6b3..9be565f 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Verify the installation and build number of `zig` like so: ``` $ zig version -0.15.0-dev.xxxx+xxxxxxxxx +0.16.0-dev.xxxx+xxxxxxxxx ``` Clone this repository with Git: @@ -73,8 +73,8 @@ the appropriate tag. The Zig language is under very active development. In order to be current, Ziglings tracks **development** builds of the Zig compiler rather than versioned **release** builds. The last -stable release was `0.14.1`, but Ziglings needs a dev build with -pre-release version "0.15.0" and a build number at least as high +stable release was `0.15.1`, but Ziglings needs a dev build with +pre-release version "0.16.0" and a build number at least as high as that shown in the example version check above. It is likely that you'll download a build which is _greater_ than -- cgit v1.2.3 From 16ec20747190fa0d02ca8872cebbba4e0581b08d Mon Sep 17 00:00:00 2001 From: Chris Boesch <48591413+chrboesch@users.noreply.github.com> Date: Sun, 24 Aug 2025 14:50:42 +0200 Subject: fixed typo and broken link --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 9be565f..fd45a06 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,9 @@ language such as C. Each exercise is self-contained and self-explained. However, you're encouraged to also check out these Zig language resources -for more detail: +for more details: * https://ziglang.org/learn/ -* https://ziglearn.org/ * https://ziglang.org/documentation/master/ * [Zig in Depth! (video series)](https://www.youtube.com/watch?v=MMtvGA1YhW4&list=PLtB7CL7EG7pCw7Xy1SQC53Gl8pI7aDg9t&pp=iAQB) -- cgit v1.2.3