forked from NRK/slashtmp
Misc code snippets and experiments.
- C 69.1%
- Tcl 13.5%
- Lua 13.1%
- BQN 3.4%
- Shell 0.5%
- Other 0.4%
| AoC | aoc24: day11: add a memoized solution | |
| compression | qoi-enc: init | |
| data-structures | heap.c: init | |
| hash | chibihash64: fix constant to be odd | |
| isdigit | isdigit: reduce code noise | |
| math | i32sqrt: init | |
| misc | bits: add endian aware loads | |
| parsers | ini: trim the right end of the key | |
| prng | randogram: init | |
| puzzles | merge-sorted-array: init | |
| sort | adaptive-introsort: init | |
| LICENSE | add loicense | |
| README.md | README: update notable projects | |
slashtmp
This repo contains various code snippets which are small/useless/incomplete etc.
I've had plenty of such projects scattered through out my file-system, a lot of
them have been lost to system restarts due to the fact that they were in /tmp
directory, which on my system is a ramdisk. That's also where the name of the
repo comes from; with the "/" written out.
Notable projects
| Name | Description |
|---|---|
| qoi-dec.c | Fast, zero-dependency QOI decoder |
| qoi-enc.c | Streaming zero-dependency QOI encoder |
| radix-integer.c | Generic radix/american-flag sort implementation that works on both signed and unsigned integer key |
| heapsort.c | Optimized heapsort implementation with a qsort like interface |
| ini.c | Simple, zero-dependency ini parser |
| y4m.c | Zero-dependency y4m parser |
| xxhash32-stream.c, xxhash64-stream.c | Streaming interface for xxhash32 and xxhash64 |
| xxhash32.c | One pass interface for xxhash32 |
| fate | Simple task scheduler |
License
All the source code in this repo, unless otherwise stated, is available under MPL v2.0.