From b1d9df09f21d49bca2851d320f7b0e6830bc340b Mon Sep 17 00:00:00 2001
From: u <@>
Date: Wed, 11 Mar 2026 10:18:53 -0700
Subject: diary
---
assets/_/diary | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'assets/_/diary')
diff --git a/assets/_/diary b/assets/_/diary
index 53ff33d..a9be9cf 100644
--- a/assets/_/diary
+++ b/assets/_/diary
@@ -1,3 +1,9 @@
+3/11/26
+
+I rewrote the date parsing code in my website to use simd code instead of regex and the immediately visible change was an unbelievable 4x code size decrease. Can you believe it. I can't either. Just by not pulling in the regex crate I made the binary so much smaller and wasm-opt doesn't take a milllion years now. Anyway, I wrote it using Rust's portable simd feature which I enjoyed writing. GCC has some QoL operations for intrinsics but this is still way better. It's also portable so say goodbye to writing multiple kernels. I wish Rust slices had a "fill" syntax so I can specify that the rest of the slice will be filled with a default vaule I specify. I wonder what an LLM would write so I used the LLM used by the Department of Defense (Claude) but it couldn't SIMDify the whole algorithm even though I asked it to try and figure out SIMD parsing and stuff. Useless.
+
+Rust really doesn't want you to do stuff it doesn't like, I used the internal negative Freeze trait to implement my own UnsafeCell so it wouldn't put stuff in .rodata. Not like it matters for WASM anyway, but for completeness' sake (and for testing natively) I had to do it.
+
3/10/26
I haven't got much to say other than that the Rust rewrite is complete and I can show the source code of my website to the public without feeling like I have committed a grave unforgivable crime. Source is now available here. Writing math code in Rust is like being sexually assaulted by a gorilla with a dildo over and over. I do not recommend it. P.S.: If you're writing code for WASM and Cloudflare Workers and your math code throws a fit, you might want to add:
--
cgit v1.2.3