Re:Pex: A tool for generating .pex (Python EXecutable) files...
by packetlost on Friday November 15, 2024 @03:30PM
(#42150612)
I feel like, in general, you should be able to treat an archive as a filesystem. Zipapps could be so much easier if it did that transparently.
[ Parent
| on HN ]
Re:Pex: A tool for generating .pex (Python EXecutable) files...
by BiteCode_dev on Friday November 15, 2024 @03:36PM
(#42150695)
It can, but:
- It's slow.
- The underlying python code cannot use open() to access its own resources, but must use pkg_resources, and most packages on pypi don't do that because most dev don't even know it exists or what problem is soves.
- _ _ file _ _ is not available, breaking a lot of things. zip_safe is a build option, but actual compliance to it is hard work and rare.
Re:Pex: A tool for generating .pex (Python EXecutable) files...
by packetlost on Friday November 15, 2024 @03:37PM
(#42150715)
I was thinking more along the lines of using namespaces and FUSE. I'm aware that Python kinda treats them like folders transparently, but not completely for reasons (and more) that you described.
Re:Pex: A tool for generating .pex (Python EXecutable) files...
by BiteCode_dev on Friday November 15, 2024 @03:46PM
(#42150809)
That's a cool idea.
Wonder what the FUSE equivalent for windows is.
Re:Pex: A tool for generating .pex (Python EXecutable) files...
by packetlost on Friday November 15, 2024 @03:50PM
(#42150855)
Probably Windows Projected FileSystem: https://learn.microsoft.com/en-us/windows/win32/projfs/proje...
Re:Pex: A tool for generating .pex (Python EXecutable) files...
by networked on Saturday November 16, 2024 @03:02PM
(#42158820)
There seem to be two popular FUSE-like things for Windows: https://github.com/dokan-dev/dokany and https://github.com/winfsp/winfsp.
Both implement a FUSE compatibility API in addition to their own API.
A 2016 comparison by the developer of WinFsp says WinFsp is several times faster in performance tests [1]. According to the readme for Donaky [2], since then Dokany got faster.
[1] https://github.com/winfsp/winfsp/issues/19#issuecomment-2653...
[2] https://github.com/dokan-dev/dokany/blob/255e4a508b744996191...