Comment

Comment by rdtsc

> I'd like to see these 10 lines that supposedly avoid the problems with the GIL.

Spawn a thread and handle disk or socket IO requests there? You can get fancy and use a thread pool so maybe 15 lines of code.

Not sure why you used the word “supposedly”. Threads have been in the standard library for a very long time.

parent rdtsc 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton