I was bored last night, didn't want to sleep, so I stayed awake a lot longer without sleep just to announce this:
Hibernation is Coming.
Yes, I said it. Hibernation. The very thing that people wanted from the start is now almost here.
I got immibis's Lua in Lua sourcecode from his VERY old forum post ( http://www.computerc...written-in-lua/ ) And now I am adding features, stability improvements, and even hibernation.
I already made it so that you can never go too long without yielding, so I'm going to tackle this challenge.
I'll update the forum post as I get more code done.
Lets Talk Hibernation -- In Computercraft
Started by ds84182, Aug 11 2013 10:33 AM
5 replies to this topic
#1
Posted 11 August 2013 - 10:33 AM
#2
Posted 11 August 2013 - 11:21 AM
OK. More updates.
Here is some beta hibernation data for a program WHILE it was executing.
http://pastebin.com/GUz6ys52
Here is the program.
http://pastebin.com/trVjv4a4
Looking through the data, I found that the program stored it's state on the 3rd line, term.clear. It's pretty hard to observe so I might have to put the info into another file.
UPDATE:
I now have file loading working. It just resumed the program
http://i.imgur.com/c47D0W7.png
Here is some beta hibernation data for a program WHILE it was executing.
http://pastebin.com/GUz6ys52
Here is the program.
http://pastebin.com/trVjv4a4
Looking through the data, I found that the program stored it's state on the 3rd line, term.clear. It's pretty hard to observe so I might have to put the info into another file.
UPDATE:
I now have file loading working. It just resumed the program
http://i.imgur.com/c47D0W7.png
#3
Posted 11 August 2013 - 07:47 PM
Sweet! I was thinking of making some sort of Lua in Lua emulator myself, but now I don't have to. Thanks for that link! Also, what OS is that?
#4
Posted 12 August 2013 - 05:12 PM
Ubuntu with the Gnome WM.
#5
Posted 03 September 2013 - 09:07 PM
Ok, this isn't completely abandoned, but I am moving my code from Lua In Lua to Bytecode Emulation. That way it will be more accurate, and less of a hassle to fix bugs with generation of Abstract Syntax Trees, actually interpreting the code, ect. I do have a little less than half of Lua's Virtual Machine emulated, and I'm going to say this: Lua has a very umm... robust Virtual Machine... Yeah, sarcasm.
#6
Posted 03 September 2013 - 11:11 PM
bytecode inturpreting is waaaaaaaaaaaaaaaaaaaaaaaaay easier than normal lua
and faster
and faster
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











