{"id":16726916,"url":"https://github.com/lpil/erlcaml","last_synced_at":"2025-06-14T15:03:47.487Z","repository":{"id":66332079,"uuid":"119185316","full_name":"lpil/erlcaml","owner":"lpil","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-30T00:53:37.000Z","size":5,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T10:47:39.211Z","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/lpil.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-27T17:19:46.000Z","updated_at":"2021-12-31T15:05:09.000Z","dependencies_parsed_at":"2023-02-20T23:00:34.620Z","dependency_job_id":null,"html_url":"https://github.com/lpil/erlcaml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lpil/erlcaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Ferlcaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Ferlcaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Ferlcaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Ferlcaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpil","download_url":"https://codeload.github.com/lpil/erlcaml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Ferlcaml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259835354,"owners_count":22918973,"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","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-12T22:55:10.963Z","updated_at":"2025-06-14T15:03:47.466Z","avatar_url":"https://github.com/lpil.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCaml Erlang\n\n```sh\n# Compile\njbuilder build\n\n# Run\njbuild exec erlcaml\n```\n\n```sh\n# Dump OCaml Lambda IR\nocamlc -c -dlambda thing.ml\n```\n\n```erlang\n% Dump Core Erlang IR to file\ncompile:file(\"thing.erl\", [to_core]).\n\n% Compile core Erlang from file\ncompile:file(\"hand_written_core_mod.core\", [from_core]).\n```\n\n```erlang\n% Dump Erlang AST to file\ncompile:file(\"thing.erl\", [dpp]).\n\n% Compile Erlang AST from file\nFile = \"hand_written_pp_mod.pp\".\n{ok, Mod, Forms} = file:consult(File).\ncode:load_binary(Mod, File, Forms).\n```\n\n## Notes\n\n- [BEAM Book compiler chapter](https://github.com/happi/theBeamBook/blob/master/chapters/compiler.asciidoc)\n- [Erlang compile API docs](http://erlang.org/doc/man/compile.html#file-2)\n- [Bucklescript compiler arch docs](https://bucklescript.github.io/docs/en/compiler-architecture-principles.html)\n- [On Bucklescript's bool](https://github.com/BuckleScript/bucklescript/issues/590\u003cPaste\u003e)\n- [Prior art](https://github.com/danabr/merkel)\n- [OCaml test API that looks nice. What is this?](https://github.com/BuckleScript/bucklescript/blob/master/CONTRIBUTING.md#contributing-to-the-runtime)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Ferlcaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpil%2Ferlcaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Ferlcaml/lists"}