You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this would have to be a bukkit plugin which could communicate with the compiler to switch out the datapacks as edits are made.
Datapacks are a great target for hot reloading, since minecraft is full of state. What do you think of designing the language to support it from the start?
The text was updated successfully, but these errors were encountered:
I think hot reloading functionality is a very crucial part for this language.
Thankfully, Minecraft supports a remote control natively (if enabled in server.properties). This allows to send a reload command every time when the user changes the script.
Since no program state changes when the datapack reloads, the program could even continue right at where it was before reloading.
I haven't done much work with hot-reloading but AIUI, it can be much more powerful with explicit support from the language. Many functions take place over multiple ticks, and it'll be important to let them clean themselves up if we want the hot reloading to be reliable.
That seems a very ambitious.
I think the ability to transfer old data (eg. transfer the old struct of (int, int) to (int, int, bool) without having to restart the datapack) is out of scope, maybe a long term goal.
I think this would have to be a bukkit plugin which could communicate with the compiler to switch out the datapacks as edits are made.
Datapacks are a great target for hot reloading, since minecraft is full of state. What do you think of designing the language to support it from the start?
The text was updated successfully, but these errors were encountered: