4 ms·
Only passingly related, some fun rust stack-allocation insanity by my 17yo son: https://ogghostjelly.github.io/slog/alloca.html https://ogghostjelly.github.io/
by jacknews 2mo ago
Only passingly related, some fun rust stack-allocation insanity by my 17yo son:
https://ogghostjelly.github.io/slog/alloca.html https://ogghostjelly.github.io/slog/alloca.html
- jjice 2mo ago17? You should be very proud. This is good work for anyone, but especially at his age!
- anitil 2mo agoVery impressive for a 17yo!
- matheusmoreira 2mo agoThis is great. I'm learning Rust myself and your son's article contributed to my knowledge. I'm also very impressed by part 2. I have my own lisp but I haven't managed to implement a compiler or code generation yet. Really enjoyed reading about the hashmap too. The textbook solution to collisions is probing and comparison. It never occurred to me that I could just resize the underlying array until the collisions disappear altogether.
- jacknews 2mo agoIt's perhaps the least-efficient method of dealing with collisions, in keeping with the rest of his project, lol, but less code. He researched different methods. My favourite for elegance is to recursively hash the hash n times.