Browse Source

Added Zig hello world

master
Macoy Madson 7 months ago
parent
commit
535d1181e8
4 changed files with 18 additions and 0 deletions
  1. +2
    -0
      .gitignore
  2. +6
    -0
      ReadMe.org
  3. +4
    -0
      Zig/BuildAndRun.sh
  4. +6
    -0
      Zig/Main.zig

+ 2
- 0
.gitignore View File

@ -0,0 +1,2 @@
*.o
Main

+ 6
- 0
ReadMe.org View File

@ -10,6 +10,9 @@ I test various language functionalities and usage experience. The test would be
* The languages
** Zig
- [[https://ziglang.org/][Homepage and overview]]
- [[https://ziglang.org/download/][Download]]
- [[https://ziglang.org/documentation/master/][Documentation]]
** Carp
** Steam Bank Common Lisp (SBCL)
* Criteria
@ -27,6 +30,9 @@ I test various language functionalities and usage experience. The test would be
|----------+---------+-------------------+----------|
| | | | |
*** Zig
- Right out of the box, the [[https://ziglang.org/documentation/master/][Hello World documentation]] did not compile. It's a rapidly changing language, so it's not unexpected, but a little annoying
** Maintainability/sustainability
| Language | CLOC | Repo health | Comments |


+ 4
- 0
Zig/BuildAndRun.sh View File

@ -0,0 +1,4 @@
#!/bin/sh
~/local/bin/zig build-exe Main.zig && ./Main

+ 6
- 0
Zig/Main.zig View File

@ -0,0 +1,6 @@
const std = @import("std");
pub fn main() !void {
try std.io.getStdOut().writeAll("Hello, World!\n");
}

Loading…
Cancel
Save