Sheriff of Crail

The Sheriff of Crail was historically the royal official responsible for enforcing law and order in Crail, Scotland.

The sheriffdom of Crail appears to have been created in the mid 12th century and seems to have been dissolved and incorporated into the sheriffdom of Fife in the 13th century.

Sheriffs of Crail

gollark: <@!341618941317349376>
gollark: https://esolangs.org/wiki/WHY#WHYJIT
gollark: WHYJIT is now production-unusable!
gollark: _continues WHYJIT development_
gollark: ```python#!/usr/bin/env python3import argparseimport subprocessparser = argparse.ArgumentParser(description="Compile a WHY program")parser.add_argument("input", help="File containing WHY source code")parser.add_argument("-o", "--output", help="Filename of the output executable to make", default="./a.why")parser.add_argument("-O", "--optimize", help="Optimization level", type=int, default="0")args = parser.parse_args()def build_output(code, mx): C_code = f"""#define QUITELONG long long intconst QUITELONG max = {mx};int main() {{ volatile QUITELONG i = 0; // disable some "optimizations" that RUIN OUR BEAUTIFUL CODE! while (i < max) {{ i++; }} {code}}} """ shell_script = f"""#!/bin/shTMP1=/tmp/ignore-meTMP2=/tmp/ignore-me-too cat << EOF > $TMP1{C_code}EOF gcc -x c -o $TMP2 $TMP1 chmod +x $TMP2 $TMP2 """ return shell_scriptinput = args.inputoutput = args.outputwith open(input, "r") as f: contents = f.read() looplen = max(1000, (2 ** -args.optimize) * 1000000000) code = build_output( contents, looplen ) with open(output, "w") as out: out.write(code)```

References

  • Taylor, Alice; The Shape of the State in Medieval Scotland, 1124-1290 (2016).
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.