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

> Similarly, workloads where threads frequently access and modify the same objects show reduced improvements or even degradation due to lock contention.

Perhaps I'm stating the obvious, but you deal with this with lock-free data structures, immutable data, siloing data per thread, fine-grain locks, etc.

Basically you avoid locks as much as possible.


It'd be nice if Python std lib had more thread safe primitives/structures (compared to something like Java where there's tons of thread safe data structures)

Imo the GIL was used as an excuse for a long time to avoid building those out.


> It'd be nice if Python std lib had more thread safe primitives/structures (compared to something like Java where there's tons of thread safe data structures)

Hence why basic Python structures under free-threaded Python are all thread-safe structures, and explains why they are slower than GIL-variant.


I've been working a light-weight API gateway for dev use that supports auth and RBAC

https://github.com/paul-callahan/tiny-gateway


I have worked on bond pricing and inventory systems, systems for options and credit default swaps, security agents for runtimes like java, python, industrial control software (SCADA).


Calculus Made Easy - 1910. It is even entertaining.

"What One Fool Can Do, Another Can. (Ancient Simian Proverb.)"

https://calculusmadeeasy.org/


great job! looks like a fun project.


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

Search: