Navigate Select ESC Close

A Million Chess Boards (in a Single Process!)

2025-07-11 Science & Technology
73.2k
1.4k
82
ThePrimeTime
ThePrimeTime
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Twitch https://twitch.tv/ThePrimeagen Discord https://discord.gg/ThePrimeagen Become Backend Dev: https://boot.dev/prime (plus i make courses for them) This is also the best way to support me is to support yourself becoming a better backend engineer. ### LINKS https://eieio.games/blog/a-million-realtime-chess-boards-in-a-single-process/ Great News? Want me to research and create video????: https://www.reddit.com/r/ThePrimeagen Kinesis Advantage 360: https://bit.ly/Prime-Kinesis

Top Comments (10)

@BluePhoenixAlex 2025-07-11

As soon as i saw the title I knew it would be the checkbox guy What a cool guy

82 1 replies
@ItzpoomAV1 2025-07-12

ЖSON my beloved

43 4 replies
@ThePrimeTimeagen 2025-07-11

sorry, i had recording errors and obs was about to crash... so quality is not as good.

41 4 replies
@Fanta666 2025-07-11

Sentence 1. Sentence 2. emoji emoji emoji

33 2 replies
@dasKeks28 2025-07-14

"The board is row-major". I wonder if "column-major" would make more use of CPU caches because in chess pices usually move more up and down compared to left and right.

13
@Muslim.mode. 2025-07-12

When you think your personal project was impressive…. That one guy

7
@craftrumzen2393 2025-07-11

70 % of comments are bots... Prime is famous

5
@kage58 2025-07-12

38:28 the reason why you roll back to the last correct input is to ensure that the state is correct, an incorrect move will mess with the state so even if the following inputs are correct the state would not be since the incorrect input messed with that

3
@oblivion_2852 2025-07-12

When he was talking about the row reads and locks I was wondering if the boards were wrapped up in the row. So instead of having a row of pieces he has a row of boards which to me makes sense because it means each board data is contained in a single row. And then your stride would be some multiple of 64 and it would mean that if you were doing a horizontal subset of boards to return to the client you can do 1 slice per board row instead of 8 slices per pieces. You'd be looking at 8x better cache coherence

2
@gordonsulc8319 2026-01-09

Dang! Even brought out the Flatbuffs! Respec'!

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot