Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If you can't share memory between threads you can't write high performance programs.

I don't know whether shared memory is required for high-performance programs but I do know that python THREADS can share memory.

The GIL means that only one thread is executing bytecodes at a time. That's it. It doesn't place any other restriction on python programs.

I write crypto trading code in python. It takes 0.1ms from the time I receive a packet until the time I send the packet containing the trade based on receiving that packet. Yes, that 0.1ms includes the logic to decide whether to trade.

FWIW, that chain of processing happens to involve two threads that share memory.



0.1ms is hundreds of thousands of instructions on a modern phone...




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: