zlacker

[parent] [thread] 5 comments
1. aredox+(OP)[view] [source] 2025-07-28 15:11:31
I saw "Python" and was going to comment a completely stand-alone* executable would be simpler, and then I scrolled and holy moly, there are a lot of features there! It would be quite some work to redo it in another lang.

*It already has no deps

Great job there. A nice tool you've made.

Edit: already adressed: https://github.com/9001/copyparty?tab=readme-ov-file#copypar...

replies(2): >>9029+ha >>collin+x17
2. 9029+ha[view] [source] 2025-07-28 16:18:20
>>aredox+(OP)
I wonder if cosmopolitan libc[0] could be leveraged to create an actually portable executable™ without a rewrite, looks like someone has figured out compiling python 3.11.4 with it[1]

[0] https://github.com/jart/cosmopolitan

[1] https://ahgamut.github.io/2021/07/13/ape-python/

replies(2): >>leobus+lm >>sull+3Na
◧◩
3. leobus+lm[view] [source] [discussion] 2025-07-28 17:21:33
>>9029+ha
I have a small/insane project of mine, I wrote a compiler for Python (strict and static subset only) to WebAssembly (bc-to-bc approach, 1:1 CPython compat due to walking internals), than I do wasm2c to sandbox it + pledge and compiling with cosmopolitan into a miniature standalone thing (fast as hell). Just because you have zero dependencies and it's a pure Python and properly typed, lemme try next weekend as PoC. No promises, but this message clicked in my heart
replies(1): >>noman-+YP
◧◩◪
4. noman-+YP[view] [source] [discussion] 2025-07-28 19:59:12
>>leobus+lm
<subscribe>
5. collin+x17[view] [source] 2025-07-30 19:42:08
>>aredox+(OP)
> It already has no deps

Yes when I heard it was python I immediately checked the dependencies expecting a ginormous list and found basically nothing. Incredibly impressive, just a few "stolen" libs here: https://github.com/9001/copyparty/tree/hovudstraum/copyparty...

Worth scrolling through util.py to see lots of hand-implemented code: MultipartParser, read_header(), read_socket_chunked(), html_escape(), atomic_move(), killtree ("still racy but i tried"), termsize(), etc

https://github.com/9001/copyparty/blob/hovudstraum/copyparty...

6k loc for http server/client handling transferring files, rss feed, etc. See `def run(self)` for main request parsing.

https://github.com/9001/copyparty/blob/hovudstraum/copyparty...

◧◩
6. sull+3Na[view] [source] [discussion] 2025-08-01 05:00:22
>>9029+ha
on it
[go to top]