{"action":"created","issue":{"url":"https://api.github.com/repos/NeilFraser/JS-Interpreter/issues/27","labels_url":"https://api.github.com/repos/NeilFraser/JS-Interpreter/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/NeilFraser/JS-Interpreter/issues/27/comments","events_url":"https://api.github.com/repos/NeilFraser/JS-Interpreter/issues/27/events","html_url":"https://github.com/NeilFraser/JS-Interpreter/issues/27","id":103364464,"number":27,"title":"Support for serializing current state","user":{"login":"dested","id":822784,"avatar_url":"https://avatars.githubusercontent.com/u/822784?v=3","gravatar_id":"","url":"https://api.github.com/users/dested","html_url":"https://github.com/dested","followers_url":"https://api.github.com/users/dested/followers","following_url":"https://api.github.com/users/dested/following{/other_user}","gists_url":"https://api.github.com/users/dested/gists{/gist_id}","starred_url":"https://api.github.com/users/dested/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dested/subscriptions","organizations_url":"https://api.github.com/users/dested/orgs","repos_url":"https://api.github.com/users/dested/repos","events_url":"https://api.github.com/users/dested/events{/privacy}","received_events_url":"https://api.github.com/users/dested/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-26T21:08:46Z","updated_at":"2015-09-01T16:22:45Z","closed_at":null,"body":"Do you think it would be possible to halt execution halfway through a program, and serialize the entire state of the program, so it may be resumed at a later date? If so would you mind letting me know some of the pitfalls I would encounter so I may expedite implementing this feature?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NeilFraser/JS-Interpreter/issues/comments/136780773","html_url":"https://github.com/NeilFraser/JS-Interpreter/issues/27#issuecomment-136780773","issue_url":"https://api.github.com/repos/NeilFraser/JS-Interpreter/issues/27","id":136780773,"user":{"login":"BrownBear2","id":6657389,"avatar_url":"https://avatars.githubusercontent.com/u/6657389?v=3","gravatar_id":"","url":"https://api.github.com/users/BrownBear2","html_url":"https://github.com/BrownBear2","followers_url":"https://api.github.com/users/BrownBear2/followers","following_url":"https://api.github.com/users/BrownBear2/following{/other_user}","gists_url":"https://api.github.com/users/BrownBear2/gists{/gist_id}","starred_url":"https://api.github.com/users/BrownBear2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrownBear2/subscriptions","organizations_url":"https://api.github.com/users/BrownBear2/orgs","repos_url":"https://api.github.com/users/BrownBear2/repos","events_url":"https://api.github.com/users/BrownBear2/events{/privacy}","received_events_url":"https://api.github.com/users/BrownBear2/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T16:22:44Z","updated_at":"2015-09-01T16:22:44Z","body":"From a rather quick glance over the interpreter it looks to me that, if you reinitialize your interpreter again the same way as before (pass same native functions etc.) you should be able rather easily to replace the internal stack with the one you serialized before using JSON or so."}}