Re:Nghttp3 1.0.0 – HTTP/3 library written in C
by zakkor1 on Sunday October 22, 2023 @04:52AM
(#37973866)
Good thing Go has a race detector!
Re:Nghttp3 1.0.0 – HTTP/3 library written in C
by mgaunard on Sunday October 22, 2023 @06:13AM
(#37974151)
and C++ doesn't?
Re:Nghttp3 1.0.0 – HTTP/3 library written in C
by dontlaugh on Sunday October 22, 2023 @05:31AM
(#37973996)
Data races aren’t memory unsafe. The vtable thing is, but at least that’s accidental.
Re:Nghttp3 1.0.0 – HTTP/3 library written in C
by mseepgood on Sunday October 22, 2023 @05:35AM
(#37974011)
Data races have nothing to do with memory safety. Please do not conflate these two. Java, C#, Go, etc. can all have data races, but they are all memory safe languages.
Re:Nghttp3 1.0.0 – HTTP/3 library written in C
by anonymoushn on Sunday October 22, 2023 @07:21AM
(#37974422)
Golang permits safe code to use a data race to cause type confusion and violate memory safety though.
It is of course better at memory safety than C and C++, but these issues do come up in real deployments.