Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


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.


That's a cool idea.

Wonder what the FUSE equivalent for windows is.


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...





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

Search: