nilang 0.4.1

A scripting language interpreter for Advent of Code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Function-call-heavy benchmark: maximizes fn calls per instruction
// to expose call/return overhead. Each call does almost no work.

fn recurse(n) {
  if n <= 0 {
    return 0;
  }
  return recurse(n - 1);
}

i = 0;
while i < 10000 {
  recurse(100);
  i = i + 1;
}

print("done");