This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export ARCH=arm64 | |
if [ $(whoami) != root ]; then | |
echo "You should probably be running me as root!" | |
export RUN_AS_ROOT=sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a.out: sudoku.c | |
gcc -std=c89 -Wall -Werror -Os sudoku.c -o a.out | |
ccbench: | |
@cat /proc/cpuinfo | grep 'model name' | head -n1 | |
@tcc -v || true | |
@gcc --version | head -n1 | |
@echo | |
@tcc sudoku.c | |
time tcc sudoku.c 2>&1 && mv a.out a.out.tcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data MyState s a = MyState (s -> (a, s)) | |
get :: MyState s s | |
get = undefined | |
put :: s -> MyState s () | |
put = undefined | |
modify :: (s -> s) -> MyState s () | |
modify = undefined |