Recently, I've dreamed about writing a little voice recording app for Playdate but quickly discovered that many APIs are still missing (like: no direct access to buffers and their data, http(s) sockets, and many more). Writing apps like this became impossible right off the bat.
But I had faith in Lua and short after I've discovered a thread about wav files, with a code example on how the PCM data could be manipulated.
I've decided to play around with that idea for a bit, but once more, I've hit immediately another show stopper! (Seems like the example not really works, does it?)
Since there are no APIs to support me, I wanted to make my own workarounds. I'd record audio samples, save them as wave files and then read the raw BINARY contents of those wav file and parse them myself. However, playdate.file seems to only support playdate.file.kFileRead and playdate.file.kFileWrite (equivalent to "r" and "w").
I just wonder, what were the reasons for wrapping and crippling so many of Lua's wonderful native tools and capabilities? (Aside from concern of sandboxing applications.)
Could you add back the abilities to fully and freely work with files, please?!
Lua's greatest strengths are being super simple but VERY powerful and performant at the same time. Lua has only essential building blocks, but you could build almost anything with them, if you really want to. Some of these were added fairly recently, like full UTF-8 support and bitwise operations.
As a Lua enthusiast I was super exited when Panic announced a Lua API. But after looking around I realise it's not on par with the C-API (as was advertised). Moreover, I was kind of sad to see so many parts of Lua being shrunken down, removed entirely or abstracted away in a weird way.
I really hope you do NOT take this as an offence because it wasn't meant to be one. It's not a rant either. I just wanted to say, that Lua is a wonderful language. I think it and it's community deserve some love and attention. - With Playdate Console on the horizon, Lua could potentially have another Renaissance (and Panic's Community could benefit from this). But that will hardly happen, if we turn Lua into some weird Frankenstein monster...
Just my 2Cents.