lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> You should be able to use localStorage normally, through
>, basically like any other DOM property that
> lua.vm.js makes available to Lua.
> All the default Lua libraries should be enabled in that build. If they use
> stdio to do stuff, then that turns into operations on an emulated
> filesystem in memory. So it wouldn't last beyond the current session, but
> we could add an option to save it to localStorage if that is useful.

OK, thanks. If localStorage is accessible from Lua, it is probably easier
to write a persistent I/O library in Lua on top of it, but saving/restoring
the virtual filesystem from/to localStorage could probably be useful for
other applications of emscripten as well.

Pierre Chapuis