lua-users home
lua-l archive

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


On 9/18/2017 1:24 PM, Dirk Laurie wrote:
2017-09-18 2:35 GMT+02:00 Javier Guerra Giraldez <javier@guerrag.com>:
On 16 September 2017 at 17:58, Russell Haley <russ.haley@gmail.com> wrote:
Could someone please *name* a filesystem that they use Lua on that is *not* windows or posix compliant?

easy, embedded systems, like NodeMCU.  Terrible name, but it's a
really popular platform, introducing Lua to a new group of people.
while there's something like a filesystem, it's _very_ far from POSIX!

Well, LuaFileSystem is much less than POSIX. As long as the filesystem
has filenames, we are in business. The most pressing need is directories.
Links and locks can wait.

NodeMCU uses SPIFFS (last time I checked anyway):

  https://github.com/pellepl/spiffs

It tries to be like stdio calls. NodeMCU (ESP8266) probably has NAND FLASH for primary program memory (denser than NOR), but with shorter bit strings vs NAND chips used in mainstream Flash storage.

It's not for heavy duty file management apps. But say for data logging, SPIFFS will save you loads of time by not having to design and code wear leveling etc.

Would that much be possible in NodeMCU?
[snipped all]

--
Cheers,
Kein-Hong Man (esq.)
Selangor, Malaysia