there's also a bug in 1.4.0 where there's lag of like 400ms when unjetpacking. is it fixed too?
search lua exception handling ->
search lua pcall stack trace ->
think about local ok, res = xpcall(f, debug.traceback, args...)
->
ugh ->
ask factorio devs to provide a stack trace mechanism that doesn't crash, for parts of mods where errors do not mean an invalid game state
i don't know lua, i just know programming in general. every programming environment has many extremely frustrating failures, like... if it's not like haskell, you're running blind; if it is like haskell, you're constantly in conflict about whether to laboriously work the non-turing-complete half of the language or to laboriously plead the language to let you run blind. if it's not like C, you're at the mercy of an opaque runtime that will only perform well if you write like it's corporate-style java; if it is like C, i hope you like writing the guts of a language interpreter because you're going to need them
i have no advice on programming