Here is a comparison of a chess engine move generator in 7 languages.
I got most of this algorithm from this series:
https://youtu.be/QUNP-UjujBM?si=LUDsjSY3FZbbLqk-
Timestamps:
0:00 Intro
1:18 Algorithm explanation
6:10 Cpp code
9:25 C# code
10:48 Go code
12:36 Zig code
15:10 Odin code
16:14 Ridiculous Python code
18:15 Rust Code with rant
23:10 Results
24:29 Other languages I tried
Try out my game Chess Tools here, for anyone wanting to learn chess:
https://store.steampowered.com/app/2741350/Chess_Tools/