something's not quite right

This commit is contained in:
2026-03-07 22:27:47 -05:00
parent 2976011682
commit 1146535093
2 changed files with 6 additions and 0 deletions

BIN
doc/first_time.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

View File

@@ -14,3 +14,9 @@ Differences between the Go and the Python, as well as notes more generally:
* When writing the Value struct and its methods, I accidentally swapped the order of the values in the `localGrads` slice in `Mul` and tore my hair out trying to figure out where the bug was. When I broke down and asked copilot to "compare these two implementations and tell me how they differ," it managed to find the error -- but also reported three non-existent differences and told me that `slices.Backward()` doesn't exist.
* Initial pass translating the linear algebra functions has me worried that all those value structs aren't going to be very fast...
* Had to implement weighted random choice. <https://cybernetist.com/2019/01/24/random-weighted-draws-in-go/> made that relatively straightforward; it's a neat algorithm.
First proper run:
![well, um...](./doc/first_time.png)
Something's not right here, unless the hit new baby name is `kaaaaasehaaeaaal`.