{"action":"created","issue":{"url":"https://api.github.com/repos/dropbox/pyston/issues/1180","repository_url":"https://api.github.com/repos/dropbox/pyston","labels_url":"https://api.github.com/repos/dropbox/pyston/issues/1180/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/pyston/issues/1180/comments","events_url":"https://api.github.com/repos/dropbox/pyston/issues/1180/events","html_url":"https://github.com/dropbox/pyston/issues/1180","id":155571475,"number":1180,"title":"Different between call slot directly and call cls->xxx","user":{"login":"Daetalus","id":3905926,"avatar_url":"https://avatars.githubusercontent.com/u/3905926?v=3","gravatar_id":"","url":"https://api.github.com/users/Daetalus","html_url":"https://github.com/Daetalus","followers_url":"https://api.github.com/users/Daetalus/followers","following_url":"https://api.github.com/users/Daetalus/following{/other_user}","gists_url":"https://api.github.com/users/Daetalus/gists{/gist_id}","starred_url":"https://api.github.com/users/Daetalus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daetalus/subscriptions","organizations_url":"https://api.github.com/users/Daetalus/orgs","repos_url":"https://api.github.com/users/Daetalus/repos","events_url":"https://api.github.com/users/Daetalus/events{/privacy}","received_events_url":"https://api.github.com/users/Daetalus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-18T18:34:22Z","updated_at":"2016-05-23T05:42:46Z","closed_at":null,"body":"In CPython, slot was called by something like `xxx->tp_as_number->nb_hex`. However, in Pyston, slot was called by `cls->__hex__`. Does it has incompatility between CPython and Pyston?"},"comment":{"url":"https://api.github.com/repos/dropbox/pyston/issues/comments/220891689","html_url":"https://github.com/dropbox/pyston/issues/1180#issuecomment-220891689","issue_url":"https://api.github.com/repos/dropbox/pyston/issues/1180","id":220891689,"user":{"login":"kmod","id":271916,"avatar_url":"https://avatars.githubusercontent.com/u/271916?v=3","gravatar_id":"","url":"https://api.github.com/users/kmod","html_url":"https://github.com/kmod","followers_url":"https://api.github.com/users/kmod/followers","following_url":"https://api.github.com/users/kmod/following{/other_user}","gists_url":"https://api.github.com/users/kmod/gists{/gist_id}","starred_url":"https://api.github.com/users/kmod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmod/subscriptions","organizations_url":"https://api.github.com/users/kmod/orgs","repos_url":"https://api.github.com/users/kmod/repos","events_url":"https://api.github.com/users/kmod/events{/privacy}","received_events_url":"https://api.github.com/users/kmod/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T05:42:46Z","updated_at":"2016-05-23T05:42:46Z","body":"There are a few cases:\r\n- Function defined in Python, JIT is off: they are the same speed\r\n- Python function, JIT is on: calling the Python version is much better\r\n- C function, JIT is off: calling the C slot is much, much better\r\n- C function, JIT is on: they are roughly the same speed\r\n\r\nSo if we are already limiting ourselves to the \"JIT is off\" case, we should just call the C slot.  We can get wins by calling the Python version at the right times, but that also requires adding JIT support."}}
{"actor":{"display_login":"kmod"}}