This website works better with JavaScript.
Home
Explore
Help
Sign In
macoy
/
LanguageTests
mirror of
https://github.com/makuto/LanguageTests
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Added Zig hello world
master
Macoy Madson
7 months ago
parent
d263fc3b63
commit
535d1181e8
4 changed files
with
18 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
.gitignore
+6
-0
ReadMe.org
+4
-0
Zig/BuildAndRun.sh
+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
"
)
;
}
Write
Preview
Loading…
Cancel
Save