Added learning stuff

This commit is contained in:
Eddie Cueto 2023-02-02 21:18:50 +00:00
parent 63a06f5591
commit a60fd79843
28 changed files with 609 additions and 0 deletions

View File

@ -0,0 +1,34 @@
const std = @import("std");
pub fn build(b: *std.build.Builder) void {
// Standard target options allows the person running `zig build` to choose
// what target to build for. Here we do not override the defaults, which
// means any target is allowed, and the default is native. Other options
// for restricting supported target set are available.
const target = b.standardTargetOptions(.{});
// Standard release options allow the person running `zig build` to select
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("Fundamental-Data-Types", "src/main.zig");
exe.setTarget(target);
exe.setBuildMode(mode);
exe.install();
const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
}
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
const exe_tests = b.addTest("src/main.zig");
exe_tests.setTarget(target);
exe_tests.setBuildMode(mode);
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&exe_tests.step);
}

View File

@ -0,0 +1,33 @@
const std = @import("std");
pub fn main() anyerror!void {
// Integers
// i1, u1
// i2, u2
// i5, u5
// i8, u8 (signed and unsigned 8-bit integers)
// i16, u16 (signed and unsigned 16-bit integers)
// i32, u32 (signed and unsigned 32-bit integers)
// i64, u64 (signed and unsigned 64-bit integers)
// i128, u128 (signed and unsigned 128-bit integers)
// isize, usize
var age: u32 = 10;
age = 30;
std.debug.print()
// Boolean
// bool -> true, false
// Floating-Point
// f32, f64
// Struct
// age -> i32 = size_of(i32)
// Enum
// Unions
// Type
}

6
Hello-World/main.zig Normal file
View File

@ -0,0 +1,6 @@
const std = @import("std");
const print = std.debug.print;
pub fn main() !void {
print("Hello {s}", .{"world!\n"});
}

34
zig-build/build.zig Normal file
View File

@ -0,0 +1,34 @@
const std = @import("std");
pub fn build(b: *std.build.Builder) void {
// Standard target options allows the person running `zig build` to choose
// what target to build for. Here we do not override the defaults, which
// means any target is allowed, and the default is native. Other options
// for restricting supported target set are available.
const target = b.standardTargetOptions(.{});
// Standard release options allow the person running `zig build` to select
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("zig-build", "src/main.zig");
exe.setTarget(target);
exe.setBuildMode(mode);
exe.install();
const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
}
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
const exe_tests = b.addTest("src/main.zig");
exe_tests.setTarget(target);
exe_tests.setBuildMode(mode);
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&exe_tests.step);
}

9
zig-build/src/main.zig Normal file
View File

@ -0,0 +1,9 @@
const std = @import("std");
pub fn main() anyerror!void {
std.log.info("All your codebase are belong to us.", .{});
}
test "basic test" {
try std.testing.expectEqual(10, 3 + 7);
}

View File

@ -0,0 +1,61 @@
190 813950 1675221210236039573 b1609baaecb82565064909af8b952899 /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/src/main.zig
2364 19534 1675221224958934525 722982c4f52739ff64b00ed865b4db9d /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/zig-cache/o/de5d770b065af37090df19ca58611409/builtin.zig
5391 854261 1644893257000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
190 813950 1675221210236039573 b1609baaecb82565064909af8b952899 /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/src/main.zig
5391 854261 1644893257000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
26206 854809 1644893257000000000 dbc4cb0419e16d4a31e572375da82b3e /usr/share/zig/lib/std/builtin.zig
21855 854652 1644893257000000000 afc30f6da0dcf13f4d3062af48b3ac43 /usr/share/zig/lib/std/start.zig
61008 854655 1644893257000000000 5b49cc22b6b033715b219b2e4c6df7ac /usr/share/zig/lib/std/target.zig
61215 854242 1644893257000000000 a429f12b6db901f03e2d6c065d20e109 /usr/share/zig/lib/std/target/aarch64.zig
57659 854262 1644893257000000000 db42026211aa4121bafe18a7268b343c /usr/share/zig/lib/std/math.zig
33618 854614 1644893257000000000 46535ad7f6a05d9584884e7b8ee186ce /usr/share/zig/lib/std/meta.zig
69235 854284 1644893257000000000 0d3521a7b6366f64005e31da1083e0b7 /usr/share/zig/lib/std/debug.zig
41844 854235 1644893257000000000 809081a3fa77d0f9424a2b6785a9c119 /usr/share/zig/lib/std/Thread.zig
7904 854779 1644893257000000000 f3b7ac95f2f098f334cb93310d8796bd /usr/share/zig/lib/std/Thread/Mutex.zig
6493 854667 1644893257000000000 2f1ab48b0aec09df8c98184641d2023d /usr/share/zig/lib/std/io.zig
118163 854283 1644893257000000000 5b76f8053fc57aaeea4755fbdbccfc60 /usr/share/zig/lib/std/fs.zig
41888 854804 1644893257000000000 53274430079e3e9594bd5428d82b9b4a /usr/share/zig/lib/std/fs/file.zig
256538 854257 1644893257000000000 db7c5a6deb052c7881eba11189dfc18a /usr/share/zig/lib/std/os.zig
152897 854328 1644893257000000000 e4227e4d75b6a322bbe98b52420692f4 /usr/share/zig/lib/std/os/linux.zig
99977 854342 1644893257000000000 29efc96c70131a7de02bb2142b49b720 /usr/share/zig/lib/std/os/linux/io_uring.zig
3436 854853 1644893257000000000 52b506e9785d2910ac0c6dc1bc00339b /usr/share/zig/lib/std/io/writer.zig
13907 854783 1644893257000000000 8076a44960496763cdf5c3049792e2e9 /usr/share/zig/lib/std/Thread/StaticResetEvent.zig
44172 854814 1644893257000000000 65ec5ab92c40065cd449953a6e6f852b /usr/share/zig/lib/std/elf.zig
12226 854337 1644893257000000000 ff3e45103aa47b16470414986abd383b /usr/share/zig/lib/std/os/linux/tls.zig
98183 854267 1644893257000000000 a61ad0621302b9f1305f66f425db3436 /usr/share/zig/lib/std/fmt.zig
107395 854613 1644893257000000000 fcbd1b4b8725bfa78591bba05d9c2d70 /usr/share/zig/lib/std/mem.zig
30557 854657 1644893257000000000 65c11e31a62933504f717be9e26f88d4 /usr/share/zig/lib/std/mem/Allocator.zig
83618 854692 1644893257000000000 58d5c5778b4baa1368571fa84697db80 /usr/share/zig/lib/std/hash_map.zig
42277 854863 1644893257000000000 bb8aca7bf5ec61c47aca7b6ebf08cb94 /usr/share/zig/lib/std/dwarf.zig
52325 854787 1644893257000000000 83b54eba3ec17b5646e8ef82d50bfb55 /usr/share/zig/lib/std/array_list.zig
13304 854354 1644893257000000000 9dbb66c1742ac610d5796710adad0811 /usr/share/zig/lib/std/os/linux/arm64.zig
5853 854859 1644893257000000000 e4ebd554fff4f4347909d2e820cd323d /usr/share/zig/lib/std/io/fixed_buffer_stream.zig
26615 854847 1644893257000000000 e3a5103fb13d3c32dbaebed1925a90dd /usr/share/zig/lib/std/io/reader.zig
1117 854860 1644893257000000000 3f2f071b498497f7d54bcfc458d51f5e /usr/share/zig/lib/std/io/seekable_stream.zig
15524 854666 1644893257000000000 fd35bd5ce692e376140efff780ae8fd9 /usr/share/zig/lib/std/leb128.zig
3578 854812 1644893257000000000 5be2b73bab9064c8b8fd700243bac785 /usr/share/zig/lib/std/dwarf/TAG.zig
6494 854813 1644893257000000000 bbb5283cec1c0d8bce4f3f0c930e7958 /usr/share/zig/lib/std/dwarf/AT.zig
50424 854801 1644893257000000000 12a03d3246107a6495b60c6a625c29a9 /usr/share/zig/lib/std/fs/path.zig
7889 854350 1644893257000000000 562fc4eee397a5037d16dffd5e048cd4 /usr/share/zig/lib/std/os/linux/errno/generic.zig
19105 854631 1644893257000000000 45e8137f667bfff4502578f66d4be5a5 /usr/share/zig/lib/std/meta/trait.zig
32421 854237 1644893257000000000 16ca37fd4f5ff96730ce35daff9ee049 /usr/share/zig/lib/std/unicode.zig
1314 854612 1644893257000000000 241bc6f0b7b0f07237a5e145b1d22a8a /usr/share/zig/lib/std/hash.zig
10122 854795 1644893257000000000 6372ee29c64a8e176138e879d43eb625 /usr/share/zig/lib/std/hash/wyhash.zig
45386 854693 1644893257000000000 70932a11a45b5bf5a34e6339a8941375 /usr/share/zig/lib/std/heap.zig
4685 854634 1644893257000000000 bccc2a1210ecea59d9b108bd05b44f4d /usr/share/zig/lib/std/heap/arena_allocator.zig
13435 854862 1644893257000000000 841107470272eebec404e2b902f8b639 /usr/share/zig/lib/std/linked_list.zig
31592 854774 1644893257000000000 32ddd57f125944112ecd368187c91caa /usr/share/zig/lib/std/process.zig
14238 854808 1644893257000000000 cfb89feb086c19f15610196212a5b39a /usr/share/zig/lib/std/dynamic_library.zig
9321 854782 1644893257000000000 6375a03982cbb853a43d3e581d5e5500 /usr/share/zig/lib/std/Thread/ResetEvent.zig
932 854650 1644893257000000000 b4c3b5276113dacf836baae9d9f94c34 /usr/share/zig/lib/std/event.zig
68675 854645 1644893257000000000 c63f2338b6b028fe35892da44a377363 /usr/share/zig/lib/std/event/loop.zig
2956 854785 1644893257000000000 224c7ee868b5251b2fb3a38a139de8ff /usr/share/zig/lib/std/atomic.zig
12142 854280 1644893257000000000 960f31a28097b764cc5fbb0f9205d56e /usr/share/zig/lib/std/atomic/queue.zig
22970 854279 1644893257000000000 2809286560339082772669bb49d3d305 /usr/share/zig/lib/std/atomic/Atomic.zig
10892 854788 1644893257000000000 31fc51ed299a6e4baa67fa98f200e96a /usr/share/zig/lib/std/time.zig
7373 854780 1644893257000000000 4d373c2c86127a7ec0f7b3ba579f054c /usr/share/zig/lib/std/Thread/AutoResetEvent.zig
5836 854281 1644893257000000000 7d2404322fa027582c27f4f202ec6a58 /usr/share/zig/lib/std/atomic/stack.zig
9090 854651 1644893257000000000 1180d90b55f45cb947269ff038108378 /usr/share/zig/lib/std/log.zig
36229 854866 1644893257000000000 8dd156aa070c627fc25ef402c82b8cb0 /usr/share/zig/lib/std/pdb.zig
13263 854286 1644893257000000000 52436f0b55cf344739d85e1b6989e029 /usr/share/zig/lib/std/coff.zig
127499 854372 1644893257000000000 c34f941bc683d1597ce7899b65ef7fcc /usr/share/zig/lib/std/os/windows.zig

View File

@ -0,0 +1,2 @@
870728 730718 1675221226361924693 79c897931fdf417707338489e6ed7d5b /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/zig-cache/o/de5d770b065af37090df19ca58611409/zig-build.o
68600 810023 1675004169748249559 728ec8298ce962cb6af120703a9c0532 /home/eduardo/.cache/zig/o/86a2b6a159263bdefa719d31487a76ae/libcompiler_rt.a

View File

@ -0,0 +1,67 @@
190 813950 1675221210236039573 b1609baaecb82565064909af8b952899 /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/src/main.zig
2478 26843 1675222880919983199 c35f5139342aecc5b3fea3c7b6fefbc8 /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/zig-cache/o/2b7a9c26c4167e81d7e3ab68bdf3ce50/builtin.zig
5391 854261 1644893257000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
5444 854597 1644893257000000000 4850b131f27e1df09384f72e7db58d56 /usr/share/zig/lib/std/special/test_runner.zig
5391 854261 1644893257000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
26206 854809 1644893257000000000 dbc4cb0419e16d4a31e572375da82b3e /usr/share/zig/lib/std/builtin.zig
5444 854597 1644893257000000000 4850b131f27e1df09384f72e7db58d56 /usr/share/zig/lib/std/special/test_runner.zig
21855 854652 1644893257000000000 afc30f6da0dcf13f4d3062af48b3ac43 /usr/share/zig/lib/std/start.zig
61008 854655 1644893257000000000 5b49cc22b6b033715b219b2e4c6df7ac /usr/share/zig/lib/std/target.zig
61215 854242 1644893257000000000 a429f12b6db901f03e2d6c065d20e109 /usr/share/zig/lib/std/target/aarch64.zig
57659 854262 1644893257000000000 db42026211aa4121bafe18a7268b343c /usr/share/zig/lib/std/math.zig
33618 854614 1644893257000000000 46535ad7f6a05d9584884e7b8ee186ce /usr/share/zig/lib/std/meta.zig
69235 854284 1644893257000000000 0d3521a7b6366f64005e31da1083e0b7 /usr/share/zig/lib/std/debug.zig
17188 854806 1644893257000000000 d31d5393c80a512e00fee584c23bff45 /usr/share/zig/lib/std/testing.zig
41844 854235 1644893257000000000 809081a3fa77d0f9424a2b6785a9c119 /usr/share/zig/lib/std/Thread.zig
7904 854779 1644893257000000000 f3b7ac95f2f098f334cb93310d8796bd /usr/share/zig/lib/std/Thread/Mutex.zig
6493 854667 1644893257000000000 2f1ab48b0aec09df8c98184641d2023d /usr/share/zig/lib/std/io.zig
118163 854283 1644893257000000000 5b76f8053fc57aaeea4755fbdbccfc60 /usr/share/zig/lib/std/fs.zig
41888 854804 1644893257000000000 53274430079e3e9594bd5428d82b9b4a /usr/share/zig/lib/std/fs/file.zig
256538 854257 1644893257000000000 db7c5a6deb052c7881eba11189dfc18a /usr/share/zig/lib/std/os.zig
152897 854328 1644893257000000000 e4227e4d75b6a322bbe98b52420692f4 /usr/share/zig/lib/std/os/linux.zig
99977 854342 1644893257000000000 29efc96c70131a7de02bb2142b49b720 /usr/share/zig/lib/std/os/linux/io_uring.zig
3436 854853 1644893257000000000 52b506e9785d2910ac0c6dc1bc00339b /usr/share/zig/lib/std/io/writer.zig
13907 854783 1644893257000000000 8076a44960496763cdf5c3049792e2e9 /usr/share/zig/lib/std/Thread/StaticResetEvent.zig
44172 854814 1644893257000000000 65ec5ab92c40065cd449953a6e6f852b /usr/share/zig/lib/std/elf.zig
12226 854337 1644893257000000000 ff3e45103aa47b16470414986abd383b /usr/share/zig/lib/std/os/linux/tls.zig
98183 854267 1644893257000000000 a61ad0621302b9f1305f66f425db3436 /usr/share/zig/lib/std/fmt.zig
107395 854613 1644893257000000000 fcbd1b4b8725bfa78591bba05d9c2d70 /usr/share/zig/lib/std/mem.zig
30557 854657 1644893257000000000 65c11e31a62933504f717be9e26f88d4 /usr/share/zig/lib/std/mem/Allocator.zig
83618 854692 1644893257000000000 58d5c5778b4baa1368571fa84697db80 /usr/share/zig/lib/std/hash_map.zig
42277 854863 1644893257000000000 bb8aca7bf5ec61c47aca7b6ebf08cb94 /usr/share/zig/lib/std/dwarf.zig
52325 854787 1644893257000000000 83b54eba3ec17b5646e8ef82d50bfb55 /usr/share/zig/lib/std/array_list.zig
13304 854354 1644893257000000000 9dbb66c1742ac610d5796710adad0811 /usr/share/zig/lib/std/os/linux/arm64.zig
5853 854859 1644893257000000000 e4ebd554fff4f4347909d2e820cd323d /usr/share/zig/lib/std/io/fixed_buffer_stream.zig
26615 854847 1644893257000000000 e3a5103fb13d3c32dbaebed1925a90dd /usr/share/zig/lib/std/io/reader.zig
1117 854860 1644893257000000000 3f2f071b498497f7d54bcfc458d51f5e /usr/share/zig/lib/std/io/seekable_stream.zig
15524 854666 1644893257000000000 fd35bd5ce692e376140efff780ae8fd9 /usr/share/zig/lib/std/leb128.zig
3578 854812 1644893257000000000 5be2b73bab9064c8b8fd700243bac785 /usr/share/zig/lib/std/dwarf/TAG.zig
6494 854813 1644893257000000000 bbb5283cec1c0d8bce4f3f0c930e7958 /usr/share/zig/lib/std/dwarf/AT.zig
50424 854801 1644893257000000000 12a03d3246107a6495b60c6a625c29a9 /usr/share/zig/lib/std/fs/path.zig
7889 854350 1644893257000000000 562fc4eee397a5037d16dffd5e048cd4 /usr/share/zig/lib/std/os/linux/errno/generic.zig
19105 854631 1644893257000000000 45e8137f667bfff4502578f66d4be5a5 /usr/share/zig/lib/std/meta/trait.zig
32421 854237 1644893257000000000 16ca37fd4f5ff96730ce35daff9ee049 /usr/share/zig/lib/std/unicode.zig
1314 854612 1644893257000000000 241bc6f0b7b0f07237a5e145b1d22a8a /usr/share/zig/lib/std/hash.zig
10122 854795 1644893257000000000 6372ee29c64a8e176138e879d43eb625 /usr/share/zig/lib/std/hash/wyhash.zig
45386 854693 1644893257000000000 70932a11a45b5bf5a34e6339a8941375 /usr/share/zig/lib/std/heap.zig
4685 854634 1644893257000000000 bccc2a1210ecea59d9b108bd05b44f4d /usr/share/zig/lib/std/heap/arena_allocator.zig
13435 854862 1644893257000000000 841107470272eebec404e2b902f8b639 /usr/share/zig/lib/std/linked_list.zig
31592 854774 1644893257000000000 32ddd57f125944112ecd368187c91caa /usr/share/zig/lib/std/process.zig
14238 854808 1644893257000000000 cfb89feb086c19f15610196212a5b39a /usr/share/zig/lib/std/dynamic_library.zig
9321 854782 1644893257000000000 6375a03982cbb853a43d3e581d5e5500 /usr/share/zig/lib/std/Thread/ResetEvent.zig
932 854650 1644893257000000000 b4c3b5276113dacf836baae9d9f94c34 /usr/share/zig/lib/std/event.zig
68675 854645 1644893257000000000 c63f2338b6b028fe35892da44a377363 /usr/share/zig/lib/std/event/loop.zig
2956 854785 1644893257000000000 224c7ee868b5251b2fb3a38a139de8ff /usr/share/zig/lib/std/atomic.zig
12142 854280 1644893257000000000 960f31a28097b764cc5fbb0f9205d56e /usr/share/zig/lib/std/atomic/queue.zig
22970 854279 1644893257000000000 2809286560339082772669bb49d3d305 /usr/share/zig/lib/std/atomic/Atomic.zig
10892 854788 1644893257000000000 31fc51ed299a6e4baa67fa98f200e96a /usr/share/zig/lib/std/time.zig
7373 854780 1644893257000000000 4d373c2c86127a7ec0f7b3ba579f054c /usr/share/zig/lib/std/Thread/AutoResetEvent.zig
5836 854281 1644893257000000000 7d2404322fa027582c27f4f202ec6a58 /usr/share/zig/lib/std/atomic/stack.zig
13798 854610 1644893257000000000 70e9de54160eeb6871485cdaa3755d2e /usr/share/zig/lib/std/Progress.zig
53692 854636 1644893257000000000 a60642142bf23cc7e76febab706572ec /usr/share/zig/lib/std/heap/general_purpose_allocator.zig
6454 854739 1644893257000000000 5472dbfd6542719a2f23c0d565670e4e /usr/share/zig/lib/std/math/log2.zig
9090 854651 1644893257000000000 1180d90b55f45cb947269ff038108378 /usr/share/zig/lib/std/log.zig
3884 854345 1644893257000000000 3d5de21815d6358b2673061efe48f78d /usr/share/zig/lib/std/os/linux/vdso.zig
36229 854866 1644893257000000000 8dd156aa070c627fc25ef402c82b8cb0 /usr/share/zig/lib/std/pdb.zig
13263 854286 1644893257000000000 52436f0b55cf344739d85e1b6989e029 /usr/share/zig/lib/std/coff.zig
127499 854372 1644893257000000000 c34f941bc683d1597ce7899b65ef7fcc /usr/share/zig/lib/std/os/windows.zig

View File

@ -0,0 +1,102 @@
16059 854598 1644893257000000000 1e73699d858279e705f4c0c2fe214dd6 /usr/share/zig/lib/std/special/build_runner.zig
1189 813953 1675221210237039566 9c2cd8667e06f3eb3a490aff9c649152 /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/build.zig
2364 525833 1675221219290974562 722982c4f52739ff64b00ed865b4db9d /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/zig-cache/o/42b4e329f5ad1fd34de75f93e1423065/builtin.zig
5391 854261 1644893257000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
16059 854598 1644893257000000000 1e73699d858279e705f4c0c2fe214dd6 /usr/share/zig/lib/std/special/build_runner.zig
5391 854261 1644893257000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
26206 854809 1644893257000000000 dbc4cb0419e16d4a31e572375da82b3e /usr/share/zig/lib/std/builtin.zig
21855 854652 1644893257000000000 afc30f6da0dcf13f4d3062af48b3ac43 /usr/share/zig/lib/std/start.zig
61008 854655 1644893257000000000 5b49cc22b6b033715b219b2e4c6df7ac /usr/share/zig/lib/std/target.zig
61215 854242 1644893257000000000 a429f12b6db901f03e2d6c065d20e109 /usr/share/zig/lib/std/target/aarch64.zig
57659 854262 1644893257000000000 db42026211aa4121bafe18a7268b343c /usr/share/zig/lib/std/math.zig
33618 854614 1644893257000000000 46535ad7f6a05d9584884e7b8ee186ce /usr/share/zig/lib/std/meta.zig
69235 854284 1644893257000000000 0d3521a7b6366f64005e31da1083e0b7 /usr/share/zig/lib/std/debug.zig
41844 854235 1644893257000000000 809081a3fa77d0f9424a2b6785a9c119 /usr/share/zig/lib/std/Thread.zig
7904 854779 1644893257000000000 f3b7ac95f2f098f334cb93310d8796bd /usr/share/zig/lib/std/Thread/Mutex.zig
6493 854667 1644893257000000000 2f1ab48b0aec09df8c98184641d2023d /usr/share/zig/lib/std/io.zig
118163 854283 1644893257000000000 5b76f8053fc57aaeea4755fbdbccfc60 /usr/share/zig/lib/std/fs.zig
41888 854804 1644893257000000000 53274430079e3e9594bd5428d82b9b4a /usr/share/zig/lib/std/fs/file.zig
256538 854257 1644893257000000000 db7c5a6deb052c7881eba11189dfc18a /usr/share/zig/lib/std/os.zig
152897 854328 1644893257000000000 e4227e4d75b6a322bbe98b52420692f4 /usr/share/zig/lib/std/os/linux.zig
99977 854342 1644893257000000000 29efc96c70131a7de02bb2142b49b720 /usr/share/zig/lib/std/os/linux/io_uring.zig
3436 854853 1644893257000000000 52b506e9785d2910ac0c6dc1bc00339b /usr/share/zig/lib/std/io/writer.zig
13907 854783 1644893257000000000 8076a44960496763cdf5c3049792e2e9 /usr/share/zig/lib/std/Thread/StaticResetEvent.zig
44172 854814 1644893257000000000 65ec5ab92c40065cd449953a6e6f852b /usr/share/zig/lib/std/elf.zig
12226 854337 1644893257000000000 ff3e45103aa47b16470414986abd383b /usr/share/zig/lib/std/os/linux/tls.zig
98183 854267 1644893257000000000 a61ad0621302b9f1305f66f425db3436 /usr/share/zig/lib/std/fmt.zig
107395 854613 1644893257000000000 fcbd1b4b8725bfa78591bba05d9c2d70 /usr/share/zig/lib/std/mem.zig
30557 854657 1644893257000000000 65c11e31a62933504f717be9e26f88d4 /usr/share/zig/lib/std/mem/Allocator.zig
83618 854692 1644893257000000000 58d5c5778b4baa1368571fa84697db80 /usr/share/zig/lib/std/hash_map.zig
42277 854863 1644893257000000000 bb8aca7bf5ec61c47aca7b6ebf08cb94 /usr/share/zig/lib/std/dwarf.zig
52325 854787 1644893257000000000 83b54eba3ec17b5646e8ef82d50bfb55 /usr/share/zig/lib/std/array_list.zig
13304 854354 1644893257000000000 9dbb66c1742ac610d5796710adad0811 /usr/share/zig/lib/std/os/linux/arm64.zig
5853 854859 1644893257000000000 e4ebd554fff4f4347909d2e820cd323d /usr/share/zig/lib/std/io/fixed_buffer_stream.zig
26615 854847 1644893257000000000 e3a5103fb13d3c32dbaebed1925a90dd /usr/share/zig/lib/std/io/reader.zig
1117 854860 1644893257000000000 3f2f071b498497f7d54bcfc458d51f5e /usr/share/zig/lib/std/io/seekable_stream.zig
15524 854666 1644893257000000000 fd35bd5ce692e376140efff780ae8fd9 /usr/share/zig/lib/std/leb128.zig
3578 854812 1644893257000000000 5be2b73bab9064c8b8fd700243bac785 /usr/share/zig/lib/std/dwarf/TAG.zig
6494 854813 1644893257000000000 bbb5283cec1c0d8bce4f3f0c930e7958 /usr/share/zig/lib/std/dwarf/AT.zig
50424 854801 1644893257000000000 12a03d3246107a6495b60c6a625c29a9 /usr/share/zig/lib/std/fs/path.zig
7889 854350 1644893257000000000 562fc4eee397a5037d16dffd5e048cd4 /usr/share/zig/lib/std/os/linux/errno/generic.zig
19105 854631 1644893257000000000 45e8137f667bfff4502578f66d4be5a5 /usr/share/zig/lib/std/meta/trait.zig
32421 854237 1644893257000000000 16ca37fd4f5ff96730ce35daff9ee049 /usr/share/zig/lib/std/unicode.zig
1314 854612 1644893257000000000 241bc6f0b7b0f07237a5e145b1d22a8a /usr/share/zig/lib/std/hash.zig
10122 854795 1644893257000000000 6372ee29c64a8e176138e879d43eb625 /usr/share/zig/lib/std/hash/wyhash.zig
45386 854693 1644893257000000000 70932a11a45b5bf5a34e6339a8941375 /usr/share/zig/lib/std/heap.zig
4685 854634 1644893257000000000 bccc2a1210ecea59d9b108bd05b44f4d /usr/share/zig/lib/std/heap/arena_allocator.zig
13435 854862 1644893257000000000 841107470272eebec404e2b902f8b639 /usr/share/zig/lib/std/linked_list.zig
31592 854774 1644893257000000000 32ddd57f125944112ecd368187c91caa /usr/share/zig/lib/std/process.zig
14238 854808 1644893257000000000 cfb89feb086c19f15610196212a5b39a /usr/share/zig/lib/std/dynamic_library.zig
9321 854782 1644893257000000000 6375a03982cbb853a43d3e581d5e5500 /usr/share/zig/lib/std/Thread/ResetEvent.zig
932 854650 1644893257000000000 b4c3b5276113dacf836baae9d9f94c34 /usr/share/zig/lib/std/event.zig
68675 854645 1644893257000000000 c63f2338b6b028fe35892da44a377363 /usr/share/zig/lib/std/event/loop.zig
2956 854785 1644893257000000000 224c7ee868b5251b2fb3a38a139de8ff /usr/share/zig/lib/std/atomic.zig
12142 854280 1644893257000000000 960f31a28097b764cc5fbb0f9205d56e /usr/share/zig/lib/std/atomic/queue.zig
22970 854279 1644893257000000000 2809286560339082772669bb49d3d305 /usr/share/zig/lib/std/atomic/Atomic.zig
10892 854788 1644893257000000000 31fc51ed299a6e4baa67fa98f200e96a /usr/share/zig/lib/std/time.zig
7373 854780 1644893257000000000 4d373c2c86127a7ec0f7b3ba579f054c /usr/share/zig/lib/std/Thread/AutoResetEvent.zig
5836 854281 1644893257000000000 7d2404322fa027582c27f4f202ec6a58 /usr/share/zig/lib/std/atomic/stack.zig
130030 854625 1644893257000000000 b5bcfefe1f2682213d633c67d7d018e1 /usr/share/zig/lib/std/build.zig
4284 854637 1644893257000000000 dd5d1dfc30582fed4b729389d4d4cb42 /usr/share/zig/lib/std/buf_map.zig
14075 854282 1644893257000000000 4b3e1692b4d50ecd14b797bcb6314471 /usr/share/zig/lib/std/zig.zig
382 854689 1644893257000000000 72d1274335940791012004d8be36418f /usr/share/zig/lib/std/zig/system.zig
42253 854682 1644893257000000000 0951cf7a39a2942a989c425d2624ca1e /usr/share/zig/lib/std/zig/system/NativeTargetInfo.zig
29399 854686 1644893257000000000 53707a24b1c58971ea63cc15e9b6ce07 /usr/share/zig/lib/std/zig/CrossTarget.zig
9090 854651 1644893257000000000 1180d90b55f45cb947269ff038108378 /usr/share/zig/lib/std/log.zig
14305 854611 1644893257000000000 8716e108c7b9d84bb406b0501748ffb1 /usr/share/zig/lib/std/ascii.zig
88870 854247 1644893257000000000 a4e267754cdf9c71d18dca0dfe685156 /usr/share/zig/lib/std/target/x86.zig
66319 854256 1644893257000000000 38807f5fb27a6c237cb73dfeed92c02b /usr/share/zig/lib/std/target/arm.zig
5414 854807 1644893257000000000 86e6f8806e70c6af94d5d60ee4a7bcc5 /usr/share/zig/lib/std/comptime_string_map.zig
64655 854259 1644893257000000000 f01914d0e21911461920e2cfe55c249d /usr/share/zig/lib/std/sort.zig
1189 813953 1675221210237039566 9c2cd8667e06f3eb3a490aff9c649152 /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/build.zig
18469 854676 1644893257000000000 56284f70c728de3c039c8d657a1f5136 /usr/share/zig/lib/std/zig/system/linux.zig
3022 854624 1644893257000000000 d091305b8363db40bb9b526282e621d1 /usr/share/zig/lib/std/buf_set.zig
10729 854835 1644893257000000000 ed5da796ea68856f81d7505b2674e821 /usr/share/zig/lib/std/build/RunStep.zig
45116 854865 1644893257000000000 61ecaf2db0bd27af5c8a3a81c7aa6a51 /usr/share/zig/lib/std/child_process.zig
1165 854843 1644893257000000000 50efc7c5e5e9520d97cc0b49c050f5d5 /usr/share/zig/lib/std/io/counting_writer.zig
15782 854245 1644893257000000000 ab06ac27d4d611016df033b526f0e57a /usr/share/zig/lib/std/target/riscv.zig
9792 854239 1644893257000000000 f353172ed585b8bb875dbc84a48cbcdb /usr/share/zig/lib/std/target/nvptx.zig
13315 854251 1644893257000000000 a50b56e8c98285aaf633026174e1539e /usr/share/zig/lib/std/target/sparc.zig
58985 854248 1644893257000000000 0e58ae3d7bd074b78d0b30b455b1de7a /usr/share/zig/lib/std/target/avr.zig
2207 854249 1644893257000000000 2feddb7106266f9cae15eadf50a8c386 /usr/share/zig/lib/std/target/bpf.zig
11877 854246 1644893257000000000 fc39b869036e4c818791cfe97298c47d /usr/share/zig/lib/std/target/hexagon.zig
15956 854255 1644893257000000000 e9120c6b03e428de62fb36e722a44a64 /usr/share/zig/lib/std/target/mips.zig
2206 854240 1644893257000000000 d6e20554da84c48e207022e2229de621 /usr/share/zig/lib/std/target/msp430.zig
30182 854243 1644893257000000000 0870c39e2beb71274e93386f2c0d86a8 /usr/share/zig/lib/std/target/powerpc.zig
55221 854250 1644893257000000000 be6f12ce9102c8e72d6a81cff673b1a1 /usr/share/zig/lib/std/target/amdgpu.zig
77180 854252 1644893257000000000 7d614d7e5dfd6b9838f81992975768fb /usr/share/zig/lib/std/target/spirv.zig
23954 854241 1644893257000000000 d560e058fb0aa249592791b30b91f3de /usr/share/zig/lib/std/target/systemz.zig
1240 854244 1644893257000000000 9dff7d081463c1d9d077dd4e999d0a41 /usr/share/zig/lib/std/target/ve.zig
3752 854253 1644893257000000000 f975b0361e27b9d179b40936dd4e5b3a /usr/share/zig/lib/std/target/wasm.zig
127499 854372 1644893257000000000 c34f941bc683d1597ce7899b65ef7fcc /usr/share/zig/lib/std/os/windows.zig
17584 854258 1644893257000000000 b1953658a17e327b1d08fad152181220 /usr/share/zig/lib/std/base64.zig
8864 854269 1644893257000000000 738e0bca47ce15392adf67703affdbdf /usr/share/zig/lib/std/crypto.zig
6380 854417 1644893257000000000 a27d71b6f5ec5ea0574905ead03f9e2b /usr/share/zig/lib/std/crypto/tlcsprng.zig
23439 854226 1644893257000000000 7a34e96c7e4f543dd0f365818acb93fc /usr/share/zig/lib/std/rand.zig
18611 854384 1644893257000000000 f1e4b9727b30db15e3b2efd7177d63b1 /usr/share/zig/lib/std/crypto/gimli.zig
19735 854615 1644893257000000000 6e7678248dfc65f416a8fd51dfa26c44 /usr/share/zig/lib/std/fifo.zig
1546 854857 1644893257000000000 38fb78325e3512a8614b1c1d75ff158b /usr/share/zig/lib/std/io/limited_reader.zig
18207 854627 1644893257000000000 3daf56112b1935b7c0da800597604de9 /usr/share/zig/lib/std/c.zig
11945 854819 1644893257000000000 4bd1ebdca6f82c5be7fcbec489529d87 /usr/share/zig/lib/std/c/linux.zig
36229 854866 1644893257000000000 8dd156aa070c627fc25ef402c82b8cb0 /usr/share/zig/lib/std/pdb.zig
13263 854286 1644893257000000000 52436f0b55cf344739d85e1b6989e029 /usr/share/zig/lib/std/coff.zig

View File

@ -0,0 +1,2 @@
4021104 20408 1675221224674936521 9bc17e416e6b2c7692fe8f4341a7e537 /home/eduardo/Documents/Programming/Zig/Learning-Zig/zig-build/zig-cache/o/42b4e329f5ad1fd34de75f93e1423065/build.o
68600 810023 1675004169748249559 728ec8298ce962cb6af120703a9c0532 /home/eduardo/.cache/zig/o/86a2b6a159263bdefa719d31487a76ae/libcompiler_rt.a

View File

View File

@ -0,0 +1,86 @@
const std = @import("std");
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = std.SemanticVersion.parse("0.9.1") catch unreachable;
/// Temporary until self-hosted is feature complete.
pub const zig_is_stage2 = false;
/// Temporary until self-hosted supports the `cpu.arch` value.
pub const stage2_arch: std.Target.Cpu.Arch = .aarch64;
/// Temporary until self-hosted can call `std.Target.x86.featureSetHas` at comptime.
pub const stage2_x86_cx16 = false;
pub const output_mode = std.builtin.OutputMode.Exe;
pub const link_mode = std.builtin.LinkMode.Static;
pub const is_test = true;
pub const single_threaded = false;
pub const abi = std.Target.Abi.gnu;
pub const cpu: std.Target.Cpu = .{
.arch = .aarch64,
.model = &std.Target.aarch64.cpu.cortex_a76,
.features = std.Target.aarch64.featureSet(&[_]std.Target.aarch64.Feature{
.a76,
.aes,
.ccpp,
.contextidr_el2,
.crc,
.crypto,
.dotprod,
.fp_armv8,
.fullfp16,
.fuse_aes,
.lor,
.lse,
.neon,
.pan,
.pan_rwv,
.ras,
.rcpc,
.rdm,
.sha2,
.ssbs,
.uaops,
.v8_1a,
.v8_2a,
.v8a,
.vh,
}),
};
pub const os = std.Target.Os{
.tag = .linux,
.version_range = .{ .linux = .{
.range = .{
.min = .{
.major = 5,
.minor = 18,
.patch = 0,
},
.max = .{
.major = 5,
.minor = 18,
.patch = 0,
},
},
.glibc = .{
.major = 2,
.minor = 19,
.patch = 0,
},
}},
};
pub const target = std.Target{
.cpu = cpu,
.os = os,
.abi = abi,
};
pub const object_format = std.Target.ObjectFormat.elf;
pub const mode = std.builtin.Mode.Debug;
pub const link_libc = false;
pub const link_libcpp = false;
pub const have_error_return_tracing = true;
pub const valgrind_support = false;
pub const position_independent_code = false;
pub const position_independent_executable = false;
pub const strip_debug_info = false;
pub const code_model = std.builtin.CodeModel.default;
pub var test_functions: []std.builtin.TestFn = undefined; // overwritten later
pub const test_io_mode = .blocking;

View File

@ -0,0 +1 @@
fec9ba79486352cf4e457174eeefcc8600

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,84 @@
const std = @import("std");
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = std.SemanticVersion.parse("0.9.1") catch unreachable;
/// Temporary until self-hosted is feature complete.
pub const zig_is_stage2 = false;
/// Temporary until self-hosted supports the `cpu.arch` value.
pub const stage2_arch: std.Target.Cpu.Arch = .aarch64;
/// Temporary until self-hosted can call `std.Target.x86.featureSetHas` at comptime.
pub const stage2_x86_cx16 = false;
pub const output_mode = std.builtin.OutputMode.Exe;
pub const link_mode = std.builtin.LinkMode.Static;
pub const is_test = false;
pub const single_threaded = false;
pub const abi = std.Target.Abi.gnu;
pub const cpu: std.Target.Cpu = .{
.arch = .aarch64,
.model = &std.Target.aarch64.cpu.cortex_a76,
.features = std.Target.aarch64.featureSet(&[_]std.Target.aarch64.Feature{
.a76,
.aes,
.ccpp,
.contextidr_el2,
.crc,
.crypto,
.dotprod,
.fp_armv8,
.fullfp16,
.fuse_aes,
.lor,
.lse,
.neon,
.pan,
.pan_rwv,
.ras,
.rcpc,
.rdm,
.sha2,
.ssbs,
.uaops,
.v8_1a,
.v8_2a,
.v8a,
.vh,
}),
};
pub const os = std.Target.Os{
.tag = .linux,
.version_range = .{ .linux = .{
.range = .{
.min = .{
.major = 5,
.minor = 18,
.patch = 0,
},
.max = .{
.major = 5,
.minor = 18,
.patch = 0,
},
},
.glibc = .{
.major = 2,
.minor = 19,
.patch = 0,
},
}},
};
pub const target = std.Target{
.cpu = cpu,
.os = os,
.abi = abi,
};
pub const object_format = std.Target.ObjectFormat.elf;
pub const mode = std.builtin.Mode.Debug;
pub const link_libc = false;
pub const link_libcpp = false;
pub const have_error_return_tracing = true;
pub const valgrind_support = false;
pub const position_independent_code = false;
pub const position_independent_executable = false;
pub const strip_debug_info = false;
pub const code_model = std.builtin.CodeModel.default;

View File

@ -0,0 +1 @@
116816f6027dd69de6a1f53563b6eeba

View File

@ -0,0 +1 @@
4e57e56799a2c2f48ed192fb4be4828600

View File

@ -0,0 +1,84 @@
const std = @import("std");
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = std.SemanticVersion.parse("0.9.1") catch unreachable;
/// Temporary until self-hosted is feature complete.
pub const zig_is_stage2 = false;
/// Temporary until self-hosted supports the `cpu.arch` value.
pub const stage2_arch: std.Target.Cpu.Arch = .aarch64;
/// Temporary until self-hosted can call `std.Target.x86.featureSetHas` at comptime.
pub const stage2_x86_cx16 = false;
pub const output_mode = std.builtin.OutputMode.Exe;
pub const link_mode = std.builtin.LinkMode.Static;
pub const is_test = false;
pub const single_threaded = false;
pub const abi = std.Target.Abi.gnu;
pub const cpu: std.Target.Cpu = .{
.arch = .aarch64,
.model = &std.Target.aarch64.cpu.cortex_a76,
.features = std.Target.aarch64.featureSet(&[_]std.Target.aarch64.Feature{
.a76,
.aes,
.ccpp,
.contextidr_el2,
.crc,
.crypto,
.dotprod,
.fp_armv8,
.fullfp16,
.fuse_aes,
.lor,
.lse,
.neon,
.pan,
.pan_rwv,
.ras,
.rcpc,
.rdm,
.sha2,
.ssbs,
.uaops,
.v8_1a,
.v8_2a,
.v8a,
.vh,
}),
};
pub const os = std.Target.Os{
.tag = .linux,
.version_range = .{ .linux = .{
.range = .{
.min = .{
.major = 5,
.minor = 18,
.patch = 0,
},
.max = .{
.major = 5,
.minor = 18,
.patch = 0,
},
},
.glibc = .{
.major = 2,
.minor = 19,
.patch = 0,
},
}},
};
pub const target = std.Target{
.cpu = cpu,
.os = os,
.abi = abi,
};
pub const object_format = std.Target.ObjectFormat.elf;
pub const mode = std.builtin.Mode.Debug;
pub const link_libc = false;
pub const link_libcpp = false;
pub const have_error_return_tracing = true;
pub const valgrind_support = false;
pub const position_independent_code = false;
pub const position_independent_executable = false;
pub const strip_debug_info = false;
pub const code_model = std.builtin.CodeModel.default;

View File

@ -0,0 +1 @@
6f327eca2ba96edab746e2f6769c9b25

View File

@ -0,0 +1 @@
38dc7934e8a0ed7dc53ba7e12df049d500

Binary file not shown.

Binary file not shown.

BIN
zig-build/zig-out/bin/zig-build Executable file

Binary file not shown.