3 ms·
Follow the Cosmopolitan Libc project (also consider supporting and/or contributing to it), these things are on track to happen soon :) TLS will probably happen
by ahgamut 4y ago
Follow the Cosmopolitan Libc project (also consider supporting and/or contributing to it), these things are on track to happen soon :)
TLS will probably happen first -- Cosmopolitan already has mbedTLS for redbean, so a modified `_ssl.c` should get us most of the way there.
Recent Python versions ... what version is Python on right now? 3.10? (3.11 apparently) I picked 3.6 at the time because Cosmopolitan Libc did not have threads then (it does now, pthreads API is being filled as of this writing), and also because it wouldn't have too much churn. Perhaps after 3.11 gets stable I'll port it to use Cosmopolitan Libc.
- baq 4y agoa release pipeline for 3.11 would set the project up nicely for 3-5 years at least! definitely post it on HN if you get it working.
- jart 4y agoHere's the latest update on TLS https://github.com/jart/cosmopolitan/blob/master/libc/runtime/enable_tls.c https://github.com/jart/cosmopolitan/blob/master/libc/runtim... We need to rewrite the x86 binary code at runtime in order to support it on Mac/Windows. I managed to speed it up from 30ms down to 1ms of startup latency for python.com!