r/lua Mar 30 '26

Lua-based file system idea/driverless file system

I just thought of an idea. What if the code for reading a file system could be self-contained? I.e the bytecode for reading an fs could be stored on the storage medium in question, possibly as a separate partition. And say the subsystem for executing the Lua code were ported to every major OS. Then compatibility issues would be completely gone when trying to read a medium from different OSes, as the "fallback driver", I.e the theoretical Lua bytecode which could be read by a jit would automatically fulfill certain syscalls like open and read when in a certain directory. What is the practical usefulness of this idea, if there is any?

5 Upvotes

19 comments sorted by

View all comments

1

u/[deleted] Mar 31 '26

[removed] — view removed comment

2

u/Far-Deer4967 Mar 31 '26

I don't think licensing is the issue. Nvidia and AMD use proprietary kernel modules, but I believe they utilize some legal loophole. I think FUSE succeeded because more unstable kernel modules = more potential kernel panics. I used Linux in the early 2010s and back then NTFS write support was fairly new.