{"action":"created","issue":{"url":"https://api.github.com/repos/erkyrath/lectrote/issues/77","repository_url":"https://api.github.com/repos/erkyrath/lectrote","labels_url":"https://api.github.com/repos/erkyrath/lectrote/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/erkyrath/lectrote/issues/77/comments","events_url":"https://api.github.com/repos/erkyrath/lectrote/issues/77/events","html_url":"https://github.com/erkyrath/lectrote/issues/77","id":184666969,"number":77,"title":"Switch from Parchment to ZVM","user":{"login":"curiousdannii","id":59074,"avatar_url":"https://avatars.githubusercontent.com/u/59074?v=3","gravatar_id":"","url":"https://api.github.com/users/curiousdannii","html_url":"https://github.com/curiousdannii","followers_url":"https://api.github.com/users/curiousdannii/followers","following_url":"https://api.github.com/users/curiousdannii/following{/other_user}","gists_url":"https://api.github.com/users/curiousdannii/gists{/gist_id}","starred_url":"https://api.github.com/users/curiousdannii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curiousdannii/subscriptions","organizations_url":"https://api.github.com/users/curiousdannii/orgs","repos_url":"https://api.github.com/users/curiousdannii/repos","events_url":"https://api.github.com/users/curiousdannii/events{/privacy}","received_events_url":"https://api.github.com/users/curiousdannii/received_events","type":"User","site_admin":false},"labels":[{"id":309182061,"url":"https://api.github.com/repos/erkyrath/lectrote/labels/feature","name":"feature","color":"84b6eb","default":false},{"id":486971834,"url":"https://api.github.com/repos/erkyrath/lectrote/labels/parchment-related","name":"parchment-related","color":"9485f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-23T02:17:50Z","updated_at":"2016-12-19T17:30:28Z","closed_at":null,"body":"I've got a basic port of ZVM to Glk working now (excluding save/restore and half the IO functions) in the [master branch](https://github.com/curiousdannii/ifvms.js).\n\nI'd recommend switching from embedding Parchment to using ZVM with glkote. This would remove a lot of the inconsistencies, and make the Lectrote options apply to both VMs. I don't know if you'd want to add ZVM to Quixe itself, or only add it to Lectrote. Up to you!\n\nZVM should be built for the browser with browserify: (other bundling systems would work too, but browserify is super simple when you only need to bundle one file)\n\n```\nbrowserify src/ifvms.js/src/zvm.js --standalone ZVM > lib/zvm.debug.js\n```\n\n[Loading ZVM is very similar to Quixe](https://github.com/curiousdannii/quixe/commit/70f66f6eb733e6daf9cd17f05e5f5fdb38dea56f#diff-82b7da5132a237fc73fcfcea7fdd7d89L131). An instance of ZVM will need to be created (because it's not a singleton like Quixe), and an extra reference to glk added to the options object. (I set window.engine just for testing, it is not needed.)\n\nI'll keep working on filling in the functionality gaps, but it seems stable enough to start integrating now.\n"},"comment":{"url":"https://api.github.com/repos/erkyrath/lectrote/issues/comments/268025810","html_url":"https://github.com/erkyrath/lectrote/issues/77#issuecomment-268025810","issue_url":"https://api.github.com/repos/erkyrath/lectrote/issues/77","id":268025810,"user":{"login":"curiousdannii","id":59074,"avatar_url":"https://avatars.githubusercontent.com/u/59074?v=3","gravatar_id":"","url":"https://api.github.com/users/curiousdannii","html_url":"https://github.com/curiousdannii","followers_url":"https://api.github.com/users/curiousdannii/followers","following_url":"https://api.github.com/users/curiousdannii/following{/other_user}","gists_url":"https://api.github.com/users/curiousdannii/gists{/gist_id}","starred_url":"https://api.github.com/users/curiousdannii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curiousdannii/subscriptions","organizations_url":"https://api.github.com/users/curiousdannii/orgs","repos_url":"https://api.github.com/users/curiousdannii/repos","events_url":"https://api.github.com/users/curiousdannii/events{/privacy}","received_events_url":"https://api.github.com/users/curiousdannii/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T17:30:27Z","updated_at":"2016-12-19T17:30:27Z","body":"Just note that Version 3 is still super broken. But hopefully by the time you're ready to incorporate this it won't be :)."}}
{"actor":{"display_login":"curiousdannii"}}