.. | ||
.gitignore | ||
1.test.ts | ||
1.ts | ||
2.ts | ||
3.test.ts | ||
3.ts | ||
common.nim | ||
common.ts | ||
deps.ts | ||
one.nim | ||
readme.md | ||
three.nim | ||
two.nim |
2021
This year, I've been tinkering a lot with Deno as a TypeScript runtime and have been really enjoying it. I'm hoping to write this year's AoC solutions using it.
Specifically, here's my deno --version
output:
deno 1.16.3 (release, x86_64-unknown-linux-gnu)
v8 9.7.106.5
typescript 4.4.2
Enjoy!
EDIT: Since performance is not what I would like, it looks like I'm also doing some of these in nim.
Usage
Run these solutions like so:
deno run --unstable --allow-all $DAY.ts
And the nim ones like so:
nim c -d:release -d:ssl --run $DAYMODULE.nim
And if you want to measure memory usage:
mkdir -p build
deno compile --output build/$DAY --unstable --allow-all $DAY.ts
/usr/bin/time -v ./build/$DAY
Or
mkdir -p build
nim c -d:release -d:ssl --outdir:build $DAYMODULE.nim
/usr/bin/time -v ./$DAYMODULE