{"id":15649333,"url":"https://github.com/xtuc/holyc","last_synced_at":"2025-04-30T16:15:18.167Z","repository":{"id":57264950,"uuid":"120489864","full_name":"xtuc/holyc","owner":"xtuc","description":"An easy to use C++ to WASM compiler (Highly-experimental)","archived":false,"fork":false,"pushed_at":"2018-05-29T14:27:14.000Z","size":338,"stargazers_count":39,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-30T12:25:25.984Z","etag":null,"topics":["compiler","cpp","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/xtuc.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":"2018-02-06T16:40:41.000Z","updated_at":"2025-04-11T13:13:15.000Z","dependencies_parsed_at":"2022-08-25T03:40:26.032Z","dependency_job_id":null,"html_url":"https://github.com/xtuc/holyc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fholyc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fholyc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fholyc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fholyc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtuc","download_url":"https://codeload.github.com/xtuc/holyc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251701947,"owners_count":21629922,"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":["compiler","cpp","wasm","webassembly"],"created_at":"2024-10-03T12:29:18.126Z","updated_at":"2025-04-30T16:15:18.144Z","avatar_url":"https://github.com/xtuc.png","language":"JavaScript","readme":"# holyc\n\n## Installation\n\n```sh\nnpm install -g holyc\n```\n\nThe first installation will be slow.\n\n## Usage for C++\n\n```sh\nholyc++ path/to/something.cpp\n```\n\nThe `WASM` binary will then be available at `something.cpp.wasm`.\n\n### Options\n\n|name|description|\n|---|---|\n|`--show-wast`|Show wast output|\n|`--no-clean`|Disable cleaning of intermediate formats|\n\n## FAQ\n\n### How does it compare to Emscripten\n\nEmscripten is able to compile the libc where Holyc won't.\n\nYou can easily reproduce this benchmark by following [C_to_wasm](https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm).\n\nhello.c:\n\n```c\nint main() {\n  return 0;\n}\n```\n\nEmscripten:\n\n| file | size (bytes) |\n|---|---|\n| hello.wasm | 21856 |\n| hello.js (loader) | 99710 |\n\nHolyc:\n\n| file | size (bytes) |\n|---|---|\n| hello.wasm | 78 |\n| hello.js (loader) | unknown currently (see [here](https://github.com/xtuc/holyc/blob/master/examples/dom/index.html#L20-L52) for a hint) |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Fholyc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtuc%2Fholyc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Fholyc/lists"}