Hacker Newsnew | past | comments | ask | show | jobs | submit | rand0mstring's commentslogin

by deleting it


any idea when this will be useful? first heard about this years ago


this makes no sense. it's the wrong tool for the job. you want to be using a sparse adjacency matrix to store your data, and then operate on it. will be orders of magnitude faster than this.


is there no way to make C "memory-safe" during compilation?


There are a bunch of research projects that did just that. And even just compiling with address sanitizer makes it "memory-safe" to a significant degree.


can you link any to check out?


will we ever see compile time programming in C like constexpr in C++?


anyone have thoughts on this?

"Optimization, again. TCP is implemented in the kernel and, in part, in the network card. When using TCP we can make one call to the kernel to hand it a large buffer of data and say “segment and package this as you see fit”. When using UDP, because we have to do that segmenting and packaging ourselves, we hand each packet individually the kernel. Each call to the kernel is expensive and the overhead becomes very significant, especially in Go. The kernel’s TCP stack is also highly optimized for performance while the kernel’s UDP stack is typically not."

https://forum.syncthing.net/t/connections-over-udp/9382


ditto lol


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: