Skip to content

Instantly share code, notes, and snippets.

@ZeWaka
ZeWaka / data.md
Last active September 19, 2026 00:49
dm operation profiling

BYOND 516 perf data

516.1687 · Ryzen 9 7900X · DreamDaemon

Baseline loop (37.9 ns) subtracted. All values are ns per call unless the column says otherwise.

A difference is only stated when Mann–Whitney over 11 replicates gives p < 0.01 and the min-ratio is outside ±8 %.

column meaning
@ZeWaka
ZeWaka / technical-docs
Last active September 8, 2026 06:49
technical-docs
---
name: technical-docs
description: Write and review concise technical documentation using a plain-English voice guide and anti-trope filter. Use for READMEs, design notes, runbooks, API documentation, release notes, and pull-request text.
distribution: repository
---
# Technical documentation
Use this skill for documentation, README files, design notes, pull-request text and user-facing prose.
@ZeWaka
ZeWaka / news.ycombinator.com.css
Created March 31, 2026 21:20
hacker news dark mode
body { background-color: #232834; }
#hnmain { background-color: #1F2430; }
a:link.storylink,
#hnmain > tbody > tr:first-child > td a,
.commtext, .commtext a:link,
td {
color: #fafafa;
}
diff --git a/Makefile b/Makefile
index 416f444..eeaff03 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ R= $V.0
all: $(PLAT)
$(PLATS) help test clean:
- @cd src && $(MAKE) $@
+ @cd src && $(MAKE) $@ V=$(V) R=$(R)
#!/bin/bash
# this be tested on Debian
# ref:
# https://unix.stackexchange.com/questions/378373/add-virtual-output-to-xorg
# https://github.com/kbumsik/VirtScreen/issues/16#issuecomment-865128729
# https://github.com/dianariyanto/virtual-display-linux
# https://manpages.debian.org/testing/xserver-xorg-video-intel/intel.4.en.html
# https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml
# https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml#heading12
# https://github.com/DisplayLink/evdi
#include <math.h>
int get_coord(int i, int center_x, int center_y){
if (i == 0) {
return (center_x, center_y);
}
int base = floor((sqrt(i) - 1) / 2) * 2 + 1; // side of the already filled square
int cur_i = pow(i - base, 2); // which tile are we on in this layer
int radius = (base + 1) / 2; // radius of this layer
int side = 2 * radius + 1;
@ZeWaka
ZeWaka / shitty_java_compiler
Created January 3, 2023 00:23
general arch for a shitty java compiler i worked on
1. lexer - braindead
2. parser - generates shitty ast
3. first ast pass
a. store class decls
b. store method decls
c. store instance variable decls
d. ditto for builtins
4. second ast pass
a. link class decls to parent
b. link class decls to children
gource -a 1 --seconds-per-day 0.08 --auto-skip-seconds 0.5 --hide mouse,usernames --title Goonstation --key -2560x1440 --colour-images --multi-sampling --disable-input --logo goon.png --logo-offset 10x10 -r 60 --bloom-multiplier 0.5 --bloom-intensity 0.5 -o gource.ppm
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -f image2pipe -vcodec ppm -i gource.ppm -codec:a copy -vcodec h264_nvenc -preset hq -rc:v vbr_minqp -qmin:v 19 -qmax:v 21 -profile:v high -b:v 2500k -maxrate:v 5000k -rc-lookahead 32 -b_ref_mode: middle -loglevel error gource.mp4
{
"embeddings": [
{
"tensorName": "Goonstation Tensors",
"tensorShape": [
5026,
60
],
"tensorPath": "https://gist.githubusercontent.com/ZeWaka/661693555815d4fb23915a420034b0f3/raw/9c0bda39766df4b6b0b5719bc7bf2ac132296961/goon_data.tsv",
"metadataPath": "https://gist.githubusercontent.com/ZeWaka/c3d32894dd7eca691230b47d2a309d79/raw/970a7dc1121d399608d56651ccf58bc88b49f9d6/goon_meta.tsv"
We can't make this file beautiful and searchable because it's too large.
1.7756152 0.34008673 -0.24051952 -0.75279343 -0.28535584 -0.7557795 0.886205 0.77902174 -0.8061645 0.9125729 -0.04937771 0.17545587 0.4853787 -0.6029458 1.590752 -0.880252 0.53222024 1.5546734 0.5610721 0.2015354 0.29091448 -1.504581 0.5728916 -0.017807432 -0.24795112 -0.7038585 0.70644075 -0.6004138 0.072684355 0.43722665 0.037585467 0.64307755 0.2958434 1.0404391 -0.51436293 0.75049466 0.74407375 0.26011136 -0.401717 0.98737097 -0.09916136 -0.11776996 0.39011967 0.10483082 0.12737778 1.2986534 0.38273624 0.5070979 -0.19383155 0.4618827 0.25835508 0.90702367 -0.66633505 -0.26813063 -0.82585764 1.0966778 -0.2076881 -0.2546221 -0.035078384 0.0053637326
0.4757003 0.49573475 -0.40441948 -0.18084937 0.02493767 -1.4589593 1.2662562 0.20408225 -1.0091774 1.4259148 -0.1070075 0.6072901 0.40069085 -0.91905266 2.6993566 -1.1578097 0.2159615 1.7391882 -0.35307497 0.93423223 -0.17739359 -0.164599 0.8881426 -1.5561391 0.22493373 -1.125026 -0.31799668 -0.50291145 -0.21105292 -0.34807652 0.06232047 0.621606 0.2870291 1.398