python
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python [2025/05/08 10:55] – [Wishlist] carl | python [2026/01/12 10:13] (current) – carl | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| - | * Typesafety is complex. | + | ==== Typesafety is complex. |
| - | * '' | + | Static checkers are okay, but the runtime type system |
| + | |||
| + | ==== '' | ||
| + | [[https:// | ||
| + | |||
| + | ==== Lack of Queue implementations ==== | ||
| + | |||
| + | Trying to implement Java's ThreadPoolExecutor needs more diverse Queue implementations. | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * No way to have a handoff, similar to '' | ||
| + | * '' | ||
| + | |||
| + | |||
| + | ==== Problems with Multiprocessing ==== | ||
| + | |||
| + | Caching comes in many forms, but one surprising way that it shows up is in connection caching (a.k.a. pooling). | ||
| + | |||
| + | * For socket fds, reconnecting is slow. for the caller | ||
| + | * For socket fds, re-establing an SSL connection is very slow and CPU intensive | ||
| + | * For socket fds, reconnecting causes the remote endpoint to burn resources as well. | ||
| + | * For file fds, its not possible to synchronize access to them. (if Python had better shared memory support and the correct atomics to modify the memory, this may be possible). | ||
| + | |||
| + | |||
| + | Multiprocessing skips the '' | ||
| + | |||
| + | ==== Problems with Descriptors ==== | ||
| + | |||
| + | Evaluation order matters. | ||
| + | |||
| + | |||
| + | <code python> | ||
| + | a: Descriptor | ||
| + | b: Descriptor | ||
| + | |||
| + | |||
| + | foo(a, b) | ||
| + | </ | ||
| + | |||
| + | In this, if a or b have side-effects on evaluation, like throwing an exception, the order in which a and b are invoked matters. | ||
| + | |||
| + | |||
| + | ==== Futures ==== | ||
| + | |||
| + | * Futures don't have a getstate() method. | ||
python.1746726934.txt.gz · Last modified: by carl
