{"action":"created","issue":{"url":"https://api.github.com/repos/puniverse/quasar/issues/141","labels_url":"https://api.github.com/repos/puniverse/quasar/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/puniverse/quasar/issues/141/comments","events_url":"https://api.github.com/repos/puniverse/quasar/issues/141/events","html_url":"https://github.com/puniverse/quasar/issues/141","id":120852572,"number":141,"title":"Is it possible to combine channels and serialisation?","user":{"login":"mikehearn","id":971089,"avatar_url":"https://avatars.githubusercontent.com/u/971089?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehearn","html_url":"https://github.com/mikehearn","followers_url":"https://api.github.com/users/mikehearn/followers","following_url":"https://api.github.com/users/mikehearn/following{/other_user}","gists_url":"https://api.github.com/users/mikehearn/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehearn/subscriptions","organizations_url":"https://api.github.com/users/mikehearn/orgs","repos_url":"https://api.github.com/users/mikehearn/repos","events_url":"https://api.github.com/users/mikehearn/events{/privacy}","received_events_url":"https://api.github.com/users/mikehearn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-07T19:49:39Z","updated_at":"2015-12-17T13:25:53Z","closed_at":null,"body":"It isn't clear to me how to use the serialisation framework. Imagine I have a fiber that's blocked waiting to receive something on a channel. Before blocking, I'd like to serialise the state of the fiber to checkpoint it, so if the app dies whilst the fiber is waiting, I can reload it from disk and restart it. But I can't combine the two as the serialisation support requires use of the lower level parkAndSerialise method."},"comment":{"url":"https://api.github.com/repos/puniverse/quasar/issues/comments/165452610","html_url":"https://github.com/puniverse/quasar/issues/141#issuecomment-165452610","issue_url":"https://api.github.com/repos/puniverse/quasar/issues/141","id":165452610,"user":{"login":"mikehearn","id":971089,"avatar_url":"https://avatars.githubusercontent.com/u/971089?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehearn","html_url":"https://github.com/mikehearn","followers_url":"https://api.github.com/users/mikehearn/followers","following_url":"https://api.github.com/users/mikehearn/following{/other_user}","gists_url":"https://api.github.com/users/mikehearn/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehearn/subscriptions","organizations_url":"https://api.github.com/users/mikehearn/orgs","repos_url":"https://api.github.com/users/mikehearn/repos","events_url":"https://api.github.com/users/mikehearn/events{/privacy}","received_events_url":"https://api.github.com/users/mikehearn/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T13:25:53Z","updated_at":"2015-12-17T13:25:53Z","body":"For now I'd like to use the fibers framework without the rest of Quasar, with the option of using more of it later. Essentially I would like:\r\n\r\n1. Take a fiber, run it with some sort of input object, do a blocking wait until it suspends itself.\r\n2. Potentially serialise it now it's suspended.\r\n3. Feed an object back in to resume it.\r\n\r\nHow the fiber interacts with the outside world and the like is something I need to handle myself right now rather than using the actors framework. Note that the serialisation here is something being handled outside of the fiber code itself.\r\n\r\nCurrently I have a bit of code that does this and works fine (I am happy with the API) using the old JavaFlow framework, but the continuations infrastructure in Quasar is much better. So I'm trying to figure out how to get a JavaFlow like API out of Quasar, to take advantage of the better maintained and more sophisticated bytecode instrumentation code here.\r\n\r\nDoes that make sense?"}}