I seem to recall that you said you might break some elements of backwards-compatibility in 0.2. If so, I have a request. I'm not sure it'd even break anything, to be honest.
Current PICO-8 executables allow the use of // instead of -- for comments. This has the unfortunate side effect of preventing us from using lua's // operator, which is the 'idiv' operator, e.g. a//b == flr(a/b).
I have never seen anyone upload code that uses "//" comments, so I think it might not even break anything. You'd probably know better, since you presumably have all of the uploaded carts in some kind of database. If nothing else, maybe you could disable it based on the version number you added to files recently?
It'd just be nice sometimes to use that operator, and if it's already supported but masked by the alternate comment form, I'd hope it wouldn't be a big chore to unmask it.
Actually, as an aside, I'd also like to request access to lua's built-in unpack().
It feels weird having lua and the ability to turn a tuple into a table, but not having unpack() to turn a table back into a tuple for passing to functions. That's really useful in drawing code.
Maybe cost 1 or 2 cycles per table element converted to tuple element? I dunno, something like that.
Whatever the assigned cost would be, it's gotta be better than the cost incurred by writing unpack() in Lua, which is both slow and requires some ugly recursion.
Short term shopping list:
- wave support: a good number of old arcade cabinet/console had some level of waveform support. Some sounds are currently impossible to do (like voice or good explosion)
- a limited set of code that could run at "assembly" speed (a la Gameboy Advance): as of now, you cannot code, say, a line drawing code that could compete w/ native function.
- modem support: network supports can only be shipped with the cartrige within a web page. Why not allow communication with a central server (an api gateway) that would forward requests to a url provided during cart upload? I can even think of a monetization scheme here (eg money for you ;)
I've got 5.3.4 installed and it works for me:
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio > print(49/6) 8.1666666666667 > print(49//6) 8 >
I guess that means it might not even be in the older version (5.2?) zep used for PICO-8. Hrm. :/
[Please log in to post a comment]