Code samples | |
Fibonacci sequence | |
Fibonacci sequence | |
Palindrome (functional direct) | |
Palindrome (functional direct) | |
Palindrome (imperative) | |
Palindrome (imperative) | |
Palindrome (functional w/ pattern matching) | |
Palindrome (functional w/ pattern matching) | |
99 bottles of beer (Batch) | |
Plain-text | |
HTML | |
99 bottles of beer (C), no conditional branches | |
Plain-text | |
HTML | |
99 bottles of beer (Lua), no conditional branches | |
Plain-text | |
HTML | |
AES 128 in ECB mode in pure Lua | |
HTML | |
Plain-text | |
Conditional jumps in Lua | |
Ruby hatred directory | |
Iterators on Coroutines in Lua | |
Strict C code validation (compile main.c with both gcc and llvm): | |
for cc in 'scan-build gcc -c' clang gcc ; do $cc -O0 -g -Wall -Wextra -Wswitch-… | |
# note scan-build may produce world-readable files under /tmp/scan-build-* | |
# will make sense to add -fno-sanitize-recover and | |
# -fsanitize=float-divide-by-zero once they are in stable releases | |