Turritella cochlea
Turritella cochlea is a species of sea snail, a marine gastropod mollusk in the family Turritellidae.[2]
Turritella cochlea | |
---|---|
Scientific classification | |
Kingdom: | |
Phylum: | |
Class: | |
(unranked): | |
Superfamily: | |
Family: | |
Subfamily: | |
Genus: | |
Species: | T. cochlea |
Binomial name | |
Turritella cochlea | |
Description
Distribution
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)```
gollark: I give you... WHYJIT.
gollark: Trouble is that bundling TCC would require *building* it and that'd increase WHY compile times significantly.
gollark: So how does one actually go around packaging binaries with the program?
References
- Reeve, 1849 Conch. Icon. 5 (Turritella, Mesalia, Eglisia). World Register of Marine Species, Retrieved 17 May 2010.
- Turritella cochlea Reeve, 1849. Retrieved through: World Register of Marine Species on 17 May 2010.
External links
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.