{"id":16701484,"url":"https://github.com/ferd/start_wrap","last_synced_at":"2025-08-09T15:03:53.884Z","repository":{"id":20345358,"uuid":"23620177","full_name":"ferd/start_wrap","owner":"ferd","description":"Dumb Wrapper to make full releases possible in Erlang with a 'main' loop","archived":false,"fork":false,"pushed_at":"2014-09-03T13:01:40.000Z","size":992,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T06:41:50.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ferd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-03T12:57:21.000Z","updated_at":"2016-05-30T16:55:35.000Z","dependencies_parsed_at":"2022-09-09T06:00:23.077Z","dependency_job_id":null,"html_url":"https://github.com/ferd/start_wrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ferd/start_wrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Fstart_wrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Fstart_wrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Fstart_wrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Fstart_wrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferd","download_url":"https://codeload.github.com/ferd/start_wrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Fstart_wrap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269592130,"owners_count":24443495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T18:44:15.802Z","updated_at":"2025-08-09T15:03:53.852Z","avatar_url":"https://github.com/ferd.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dumb Wrapper to make full releases possible in Erlang with a 'main' loop\n\nBecause people don't want to wait until they learned what a release is, releases are more complex, and they want to ship something simpler than escripts\n\nThis uses a `supervisor_bridge` process to end up supervising any random piece of code you have.\n\nHere are two random programs you can write:\n\n```erlang\n-module(hello_world).\n-export([main/1]).\n\nmain(_) -\u003e\n    io:format(\"Hello, world!~n\"),\n    0.\n```\n\nAnd\n\n```erlang\n-module(hello_parallel_world).\n-export([main/1]).\n\nmain(Args) -\u003e\n    run(proplists:get_value(concurrency, Args)),\n    timer:sleep(100),\n    0.\n\nrun([Val]) -\u003e\n    [spawn(fun() -\u003e io:format(\"Hello, world (~p)!~n\", [N]) end)\n     || N \u003c- lists:seq(1, list_to_integer(Val))].\n\n```\n\n## How to run code\n\nBuild the code you want to run:\n\n```bash\n$ erlc *.erl\n```\n\nBuild the harness:\n\n```bash\n$ rebar get-deps compile\n```\n\nRun your own code:\n\n```bash\n$ erlc *.erl \u0026\u0026 _rel/start_wrap/bin/start_wrap -pa `pwd` -start_wrap module hello_world\n$ erlc *.erl \u0026\u0026 ./_rel/bin/start_wrap -pa `pwd` -start_wrap module hello_parallel_world -concurrency 5\n```\n\nAnd there you go.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferd%2Fstart_wrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferd%2Fstart_wrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferd%2Fstart_wrap/lists"}