Ark is a programming language created in 2014.
#1239on PLDB | 10Years Old |
git clone https://github.com/ark-lang/ark
A compiled systems programming language written in Go using the LLVM framework
// binding to printf
[c] func printf(fmt: ^u8, ...);
pub func main(argc: int, argv: ^^u8) -> int {
// accessed via the C module
C::printf(c"Running %s\n", ^argv);
// mutable i, type inferred
mut i := 0;
for i < 5 {
C::printf(c"%d\n", i);
i += 1;
}
return 0;
}
title | date | score | comments |
---|---|---|---|
Show HN: A programming language I've been working on called Ark | 01/05/2016 | 15 | 3 |