{"action":"created","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/2726","repository_url":"https://api.github.com/repos/ldc-developers/ldc","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/2726/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/2726/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/2726/events","html_url":"https://github.com/ldc-developers/ldc/pull/2726","id":329975668,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMDk2MzY1","number":2726,"title":"Jit bind","user":{"login":"Hardcode84","id":3274859,"node_id":"MDQ6VXNlcjMyNzQ4NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3274859?v=4","gravatar_id":"","url":"https://api.github.com/users/Hardcode84","html_url":"https://github.com/Hardcode84","followers_url":"https://api.github.com/users/Hardcode84/followers","following_url":"https://api.github.com/users/Hardcode84/following{/other_user}","gists_url":"https://api.github.com/users/Hardcode84/gists{/gist_id}","starred_url":"https://api.github.com/users/Hardcode84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hardcode84/subscriptions","organizations_url":"https://api.github.com/users/Hardcode84/orgs","repos_url":"https://api.github.com/users/Hardcode84/repos","events_url":"https://api.github.com/users/Hardcode84/events{/privacy}","received_events_url":"https://api.github.com/users/Hardcode84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-06T18:09:19Z","updated_at":"2018-06-10T11:43:41Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ldc-developers/ldc/pulls/2726","html_url":"https://github.com/ldc-developers/ldc/pull/2726","diff_url":"https://github.com/ldc-developers/ldc/pull/2726.diff","patch_url":"https://github.com/ldc-developers/ldc/pull/2726.patch"},"body":"bind-like functionality which allow to generate efficient specialized versions of functions (much like easy::jit).\r\n\r\nAdd `ldc.dynamic_compile.bind` function with interface similar to C++ `std::bind`. Function returns `BindPtr` object (which is reference counted internally) with `opCall` method.\r\n\r\nActual body is generated during `compileDynamicCode` and after that `BindPtr` can be called.\r\nFunction passed to `bind` must be marked `@dynamicCompile`, otherwise `BindPtr.isCallable()` will return `false` and 'opCall' asserts.\r\n\r\nIf function bind as parameter marked as `@dynamicCompile` it will be efficiently optimized (see `dynamiccompile/bind_func_opt.d` test).\r\n\r\nAlso bind functions can be chained together (see `dynamiccompile/bind_nested_opt.d` test)."},"comment":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments/396042493","html_url":"https://github.com/ldc-developers/ldc/pull/2726#issuecomment-396042493","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/2726","id":396042493,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjA0MjQ5Mw==","user":{"login":"JohanEngelen","id":10983051,"node_id":"MDQ6VXNlcjEwOTgzMDUx","avatar_url":"https://avatars1.githubusercontent.com/u/10983051?v=4","gravatar_id":"","url":"https://api.github.com/users/JohanEngelen","html_url":"https://github.com/JohanEngelen","followers_url":"https://api.github.com/users/JohanEngelen/followers","following_url":"https://api.github.com/users/JohanEngelen/following{/other_user}","gists_url":"https://api.github.com/users/JohanEngelen/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanEngelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanEngelen/subscriptions","organizations_url":"https://api.github.com/users/JohanEngelen/orgs","repos_url":"https://api.github.com/users/JohanEngelen/repos","events_url":"https://api.github.com/users/JohanEngelen/events{/privacy}","received_events_url":"https://api.github.com/users/JohanEngelen/received_events","type":"User","site_admin":false},"created_at":"2018-06-10T11:43:41Z","updated_at":"2018-06-10T11:43:41Z","author_association":"MEMBER","body":"Great that you submitted some parts as separate PRs.\r\nQuickly glancing over it, I missed documentation of the new user function `bind`."}}
{"actor":{"display_login":"JohanEngelen"}}