summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authoru <@>2026-03-11 10:18:53 -0700
committeru <@>2026-03-11 10:18:53 -0700
commitb1d9df09f21d49bca2851d320f7b0e6830bc340b (patch)
tree998d6ea7cb5e7e7dc7efe69c8963cfdfe8dffc50 /assets
parent2b05abea03cdaca42b0ab69852799ee1542b467f (diff)
diary
Diffstat (limited to 'assets')
-rw-r--r--assets/_/diary6
1 files changed, 6 insertions, 0 deletions
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 <a class="splink" href="https://git.neetlo.li/ataxia/commit/src/dateparse.rs?h=main&id=9bdd9eb5442bbdeefa08ea60fd966c8f9a83c543">rewrote</a> 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 <a href="https://git.neetlo.li/ataxia/commit/?h=main&id=bfc2cabc3b0d6af8c7ca0496b7bd815fdbb658f6" class="splink">internal negative Freeze trait</a> 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. <a class="splink" href="https://git.neetlo.li/ataxia/tree">Source is now available here.</a> 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: