News for hackers. Stuff that matters.
Re:Show HN: Python can make 3M+ WebSocket keys per second by sovietmudkipz on Monday July 03, 2023 @10:04AM (#36573021)
It’s cool that languages support this kind of stuff.

So if you’re writing python the employs this technique and you still want to keep the “OS agnostic” characteristic of python does that mean you’d have to compile multiple C++ binaries and check the OS to see which one to run?

Re:Show HN: Python can make 3M+ WebSocket keys per second by lukevp on Monday July 03, 2023 @10:37AM (#36573521)
Alternatively, you could compile the C++ (or rust or zig) to WebAssembly, and a single binary would run anywhere.
Re:Show HN: Python can make 3M+ WebSocket keys per second by rat9988 on Monday July 03, 2023 @11:59AM (#36574805)
WWouldn't you lose some of the performance benefit?
Re:Show HN: Python can make 3M+ WebSocket keys per second by sovietmudkipz on Monday July 03, 2023 @03:02PM (#36577426)
Thanks for this. This is something I wouldn’t have considered.
Re:Show HN: Python can make 3M+ WebSocket keys per second by yw3410 on Monday July 03, 2023 @10:21AM (#36573285)
Yes, though hopefully it's been packaged up by the distro otherwise you'll end up having dependency problems if you compiled against a wrong libc or something else.