News for hackers. Stuff that matters.
Re:Writing a 3D Game in C (in 2022) by pengaru on Tuesday December 06, 2022 @01:38PM (#33884930)

  > deep cloning of data with simple assignment a = b;
  > deep equality checks bool are_equal_by_value = memcmp(a, b, sizeof(some_struct_t));
Errr, wat? We seem to have very different understandings of "deep" in this context. Neither of the above are "deep" in the sense that pointers within the struct will not be followed with their referenced data copied/compared. These are shallow operations.
Re:Writing a 3D Game in C (in 2022) by aarongeisler on Tuesday December 06, 2022 @04:05PM (#33887030)
You are correct in the case of nested pointers. I am using primitive types nearly exclusively. Good observation!
Re:Writing a 3D Game in C (in 2022) by aarongeisler on Tuesday December 06, 2022 @05:18PM (#33887920)
I updated the post - really appreciate the attention to detail.