{"action":"created","issue":{"url":"https://api.github.com/repos/halide/Halide/issues/2932","repository_url":"https://api.github.com/repos/halide/Halide","labels_url":"https://api.github.com/repos/halide/Halide/issues/2932/labels{/name}","comments_url":"https://api.github.com/repos/halide/Halide/issues/2932/comments","events_url":"https://api.github.com/repos/halide/Halide/issues/2932/events","html_url":"https://github.com/halide/Halide/issues/2932","id":319324033,"number":2932,"title":"Make a generator compile a Python module?","user":{"login":"matthiaskramm","id":306087,"avatar_url":"https://avatars2.githubusercontent.com/u/306087?v=4","gravatar_id":"","url":"https://api.github.com/users/matthiaskramm","html_url":"https://github.com/matthiaskramm","followers_url":"https://api.github.com/users/matthiaskramm/followers","following_url":"https://api.github.com/users/matthiaskramm/following{/other_user}","gists_url":"https://api.github.com/users/matthiaskramm/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiaskramm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiaskramm/subscriptions","organizations_url":"https://api.github.com/users/matthiaskramm/orgs","repos_url":"https://api.github.com/users/matthiaskramm/repos","events_url":"https://api.github.com/users/matthiaskramm/events{/privacy}","received_events_url":"https://api.github.com/users/matthiaskramm/received_events","type":"User","site_admin":false},"labels":[{"id":10537309,"url":"https://api.github.com/repos/halide/Halide/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-01T20:52:14Z","updated_at":"2018-05-02T18:39:57Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use a function from a C++ generator, in Python.\r\n\r\nI know I can link the generator against `PyStub.o` and `PyStubImpl.o` to expose the generator itself to Python, but that incurs overhead because then I have to `compile_jit()` everything.\r\nI'd rather compile the code ahead of time, preferably in a way that doesn't require jumping through too many hoops to then use it in Python.\r\n\r\nThe comment at the start of https://github.com/halide/Halide/blob/master/python_bindings/tutorial/lesson_10_aot_compilation_run.py seems to indicate that having a generator produce a standalone Python module is something that's planned?"},"comment":{"url":"https://api.github.com/repos/halide/Halide/issues/comments/386079062","html_url":"https://github.com/halide/Halide/issues/2932#issuecomment-386079062","issue_url":"https://api.github.com/repos/halide/Halide/issues/2932","id":386079062,"user":{"login":"matthiaskramm","id":306087,"avatar_url":"https://avatars2.githubusercontent.com/u/306087?v=4","gravatar_id":"","url":"https://api.github.com/users/matthiaskramm","html_url":"https://github.com/matthiaskramm","followers_url":"https://api.github.com/users/matthiaskramm/followers","following_url":"https://api.github.com/users/matthiaskramm/following{/other_user}","gists_url":"https://api.github.com/users/matthiaskramm/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiaskramm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiaskramm/subscriptions","organizations_url":"https://api.github.com/users/matthiaskramm/orgs","repos_url":"https://api.github.com/users/matthiaskramm/repos","events_url":"https://api.github.com/users/matthiaskramm/events{/privacy}","received_events_url":"https://api.github.com/users/matthiaskramm/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T18:39:57Z","updated_at":"2018-05-02T18:39:57Z","author_association":"NONE","body":"Let me take a closer look, I might want to take a stab at this.\r\n\r\nIs this the branch? https://github.com/halide/Halide/tree/jni_stubs\r\nAs far as I can tell, for Java, this generates two extra files, whereas for Python, we'd probably link the Python API into an `.so` right away, do I have that right?\r\n\r\nAnything else I should know to assess the scope of this and possibly get started?"}}
{"actor":{"display_login":"matthiaskramm"}}