[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua.vm.js - Lua VM, on the Web
- From: "Pierre Chapuis" <catwell@...>
- Date: Fri, 31 May 2013 18:57:07 +0200
> You should be able to use localStorage normally, through
> js.global.localStorage, 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
- References:
- lua.vm.js - Lua VM, on the Web, Alon Zakai
- Re: lua.vm.js - Lua VM, on the Web, Jeremy Darling
- Re: lua.vm.js - Lua VM, on the Web, Alon Zakai
- Re: lua.vm.js - Lua VM, on the Web, Jeremy Darling
- Re: lua.vm.js - Lua VM, on the Web, Pierre Chapuis
- Re: lua.vm.js - Lua VM, on the Web, Alon Zakai