{"action":"created","issue":{"url":"https://api.github.com/repos/synrc/mad/issues/22","labels_url":"https://api.github.com/repos/synrc/mad/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/synrc/mad/issues/22/comments","events_url":"https://api.github.com/repos/synrc/mad/issues/22/events","html_url":"https://github.com/synrc/mad/issues/22","id":54136368,"number":22,"title":"Feature request bundle beam emulator","user":{"login":"khia","id":347727,"avatar_url":"https://avatars.githubusercontent.com/u/347727?v=3","gravatar_id":"","url":"https://api.github.com/users/khia","html_url":"https://github.com/khia","followers_url":"https://api.github.com/users/khia/followers","following_url":"https://api.github.com/users/khia/following{/other_user}","gists_url":"https://api.github.com/users/khia/gists{/gist_id}","starred_url":"https://api.github.com/users/khia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khia/subscriptions","organizations_url":"https://api.github.com/users/khia/orgs","repos_url":"https://api.github.com/users/khia/repos","events_url":"https://api.github.com/users/khia/events{/privacy}","received_events_url":"https://api.github.com/users/khia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-13T00:48:28Z","updated_at":"2015-01-13T03:00:09Z","closed_at":"2015-01-13T03:00:09Z","body":"It would be a killer feature if you could bundle beam emulator into bundle. This would allow writing small cli tools for systems where erlang is not installed. [Crate](https://github.com/copiousfreetime/crate/blob/master/data/crate_boot.c) for ruby could be used to get general idea of the feature. In order to avoid modification of erts source you would probably want to [overide entrypoint](http://stackoverflow.com/questions/7494244/how-to-change-the-entry-point-in-gcc) to build static beam emulator which you can link with loader. Magic to start `erl` from C is in `erl_start`/`erl_init` from [erl_init.c](https://github.com/erlang/otp/blob/172e812c491680fbb175f56f7604d4098cdc9de4/erts/emulator/beam/erl_init.c)."},"comment":{"url":"https://api.github.com/repos/synrc/mad/issues/comments/69688368","html_url":"https://github.com/synrc/mad/issues/22#issuecomment-69688368","issue_url":"https://api.github.com/repos/synrc/mad/issues/22","id":69688368,"user":{"login":"5HT","id":144776,"avatar_url":"https://avatars.githubusercontent.com/u/144776?v=3","gravatar_id":"","url":"https://api.github.com/users/5HT","html_url":"https://github.com/5HT","followers_url":"https://api.github.com/users/5HT/followers","following_url":"https://api.github.com/users/5HT/following{/other_user}","gists_url":"https://api.github.com/users/5HT/gists{/gist_id}","starred_url":"https://api.github.com/users/5HT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5HT/subscriptions","organizations_url":"https://api.github.com/users/5HT/orgs","repos_url":"https://api.github.com/users/5HT/repos","events_url":"https://api.github.com/users/5HT/events{/privacy}","received_events_url":"https://api.github.com/users/5HT/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T03:00:09Z","updated_at":"2015-01-13T03:00:09Z","body":"There is alredy relx support in mad, relx is able to bundle BEAM virtual machine, runtime and OTP."}}