Remix.run Logo
MomsAVoxell 11 hours ago

I would love to have this, but Lua not Python.

shakna an hour ago | parent | next [-]

I wonder how hard to port this to eLua would be? The bigger problem is probably packing.

Pip can work fine with MicroPython. LuaRocks can be a pain, even on desktop.

moffkalast 10 hours ago | parent | prev [-]

Mathematicians don't build GUIs, and nobody else can stand starting their arrays with 1.

dlcarrier 10 hours ago | parent | next [-]

Lua also let's you start arrays at 3.

zimpenfish 10 hours ago | parent [-]

As does Perl with `$[`[0][1]

[0] "This variable stores the index of the first element in an array, and of the first character in a substring."

[1] With the caveat: 'As of Perl v5.30.0, or under "use v5.16", or "no feature "array_base"", $[ no longer has any effect"'

ErroneousBosh 9 hours ago | parent | prev [-]

You can start your arrays in Lua at 0. Conventionally you don't, but you can.