backport some doc updates and renames
[?]
Dec 26, 2022, 8:27 AM
BSDXVB3HU5Y5FZ244FU2F577RTM6SWEHAZX3IELBVUP52CRFVDSACDependencies
- [2]
R7BFYHKYmove temporary file out of user directory (if possible) - [3]
VCLH24QJupdate protocol so driver shows syntax errors - [4]
QFURHRTPrename globals to have a single uppercase letter - [5]
NVVHJWJEa new event: receiving code changes from the driver - [6]
5OVKHVY6nice way to make on.* handlers more discoverable - [7]
WZZGVKSGa few more renames - [8]
TBWAE64Aapp is now live, can communicate with driver - [9]
LRDM35CEapp running again
Change contents
- replacement in live.lua at line 4
-- from the largest numeric prefix found, obtain a manifest-- load all files (which must start with a numeric prefix) from the manifest)-- from the numeric prefix in file 'head', obtain a manifest-- load all files (which must start with a numeric prefix) from the manifest - replacement in live.lua at line 12
-- save the message's value to a specific, unused numeric prefix-- save the message's value to a new, smallest unused numeric prefix - edit in live.lua at line 14
-- if there's an error, go back to the previous value of the same-- definition if one exists - replacement in live.lua at line 17
-- if a game encounters an error:-- find the previous version of the definition in the 'head' numeric prefix-- decrement 'head'-- if a game encounters a run-time error, send it to the driver and await-- further instructions. The app will go unresponsive in the meantime, that-- is expected. To shut it down cleanly, type C-q in the driver. - replacement in live.lua at line 150
local buf = live.receive()local buf = live.receive_from_driver() - replacement in live.lua at line 160
function live.receive()function live.receive_from_driver() - replacement in live.lua at line 175
function live.send(msg)function live.send_to_driver(msg) - replacement in live.lua at line 208
local cmd = buf:match('^%S+')local cmd = live.get_cmd_from_buffer(buf) - replacement in live.lua at line 214
live.send(json.encode(Live.manifest))live.send_to_driver(json.encode(Live.manifest)) - replacement in live.lua at line 230
live.send(live.get_binding(binding))live.send_to_driver(live.get_binding(binding)) - replacement in live.lua at line 251
live.send('ERROR '..tostring(err))live.send_to_driver('ERROR '..tostring(err)) - replacement in live.lua at line 253
live.send('ok')live.send_to_driver('ok') - edit in live.lua at line 257
function live.get_cmd_from_buffer(buf)return buf:match('^%s*(%S+)')end - replacement in live.lua at line 305
live.send_run_time_error(stack_trace)live.send_run_time_error_to_driver(stack_trace) - replacement in live.lua at line 308
buf = live.receive()buf = live.receive_from_driver()