User:Trungle/UNIX Nomic
Appearance
Scratchpad for a bad idea: Nomic but the way you interact with everything is UNIX tools.
The only idea right now: Proposals are AWK scripts that are fed the current ruleset as an input.
Trying to think of other ways we could add more utilities. Could we make actions AWK scripts? How would we enforce permissions?
Ruleset is code, written in a literate style?
# Rules
A file exists in the root called "ruleset.md". This file contains the rules of the game.
# Proposal Resolution
At the end of the phase, all proposals are saved in /proposals, with their filenames sorted in the order they were submitted, then the following is run:
#/bin/sh
cp ruleset.md /tmp/ruleset-in.md
for f in $(find proposals -type f | sort); do
awk -f "$f" /tmp/ruleset-in.md > /tmp/ruleset-out.md
mv /tmp/ruleset-out.md /tmp/ruleset-in.md
done