{"action":"created","issue":{"url":"https://api.github.com/repos/luvit/luvit/issues/730","labels_url":"https://api.github.com/repos/luvit/luvit/issues/730/labels{/name}","comments_url":"https://api.github.com/repos/luvit/luvit/issues/730/comments","events_url":"https://api.github.com/repos/luvit/luvit/issues/730/events","html_url":"https://github.com/luvit/luvit/issues/730","id":74939764,"number":730,"title":"Differences to nodejs?","user":{"login":"pyros2097","id":1687946,"avatar_url":"https://avatars.githubusercontent.com/u/1687946?v=3","gravatar_id":"","url":"https://api.github.com/users/pyros2097","html_url":"https://github.com/pyros2097","followers_url":"https://api.github.com/users/pyros2097/followers","following_url":"https://api.github.com/users/pyros2097/following{/other_user}","gists_url":"https://api.github.com/users/pyros2097/gists{/gist_id}","starred_url":"https://api.github.com/users/pyros2097/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyros2097/subscriptions","organizations_url":"https://api.github.com/users/pyros2097/orgs","repos_url":"https://api.github.com/users/pyros2097/repos","events_url":"https://api.github.com/users/pyros2097/events{/privacy}","received_events_url":"https://api.github.com/users/pyros2097/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-10T15:22:41Z","updated_at":"2015-05-12T19:25:02Z","closed_at":null,"body":"How is luvit compared to nodejs? Is is faster, uses less memory, dynamic code loading (lua)? Does coroutine support improve performance/parallelism like golang?"},"comment":{"url":"https://api.github.com/repos/luvit/luvit/issues/comments/101393428","html_url":"https://github.com/luvit/luvit/issues/730#issuecomment-101393428","issue_url":"https://api.github.com/repos/luvit/luvit/issues/730","id":101393428,"user":{"login":"nihildeb","id":57786,"avatar_url":"https://avatars.githubusercontent.com/u/57786?v=3","gravatar_id":"","url":"https://api.github.com/users/nihildeb","html_url":"https://github.com/nihildeb","followers_url":"https://api.github.com/users/nihildeb/followers","following_url":"https://api.github.com/users/nihildeb/following{/other_user}","gists_url":"https://api.github.com/users/nihildeb/gists{/gist_id}","starred_url":"https://api.github.com/users/nihildeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nihildeb/subscriptions","organizations_url":"https://api.github.com/users/nihildeb/orgs","repos_url":"https://api.github.com/users/nihildeb/repos","events_url":"https://api.github.com/users/nihildeb/events{/privacy}","received_events_url":"https://api.github.com/users/nihildeb/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T19:25:02Z","updated_at":"2015-05-12T19:25:02Z","body":"@creationix you said:\r\n\r\n> I've been writing a lot of lua code using coroutines that allows you to block on I/O go style, but still keep the single-threaded event-loop in libuv happy and moving along\r\n\r\ncan you point me to an example here? I am currently writing a lit module for nanomsg. I am calling send and recv with the DONTWAIT option, and using coroutines to busy loop poll the sockets. I added in a uv.timer to avoid taking all the resources. This is far from good. If there was a better way to do this I would be happy to know it."}}