{"id":19351808,"url":"https://github.com/natanielf/cgl","last_synced_at":"2026-04-22T16:34:52.674Z","repository":{"id":254315842,"uuid":"846167747","full_name":"natanielf/cgl","owner":"natanielf","description":"Conway's Game of Life in WebAssembly and WebGL","archived":false,"fork":false,"pushed_at":"2025-05-26T01:19:52.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T21:55:11.585Z","etag":null,"topics":["conways-game-of-life","emscripten","wasm","webassem"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natanielf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2024-08-22T16:57:06.000Z","updated_at":"2025-06-02T00:07:50.000Z","dependencies_parsed_at":"2024-11-10T04:37:26.526Z","dependency_job_id":"a2c07179-bb04-43bc-806e-555f2f93d90b","html_url":"https://github.com/natanielf/cgl","commit_stats":null,"previous_names":["natanielf/cgl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/natanielf/cgl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natanielf%2Fcgl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natanielf%2Fcgl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natanielf%2Fcgl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natanielf%2Fcgl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natanielf","download_url":"https://codeload.github.com/natanielf/cgl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natanielf%2Fcgl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32145867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T15:33:03.595Z","status":"ssl_error","status_checked_at":"2026-04-22T15:30:42.712Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["conways-game-of-life","emscripten","wasm","webassem"],"created_at":"2024-11-10T04:37:20.088Z","updated_at":"2026-04-22T16:34:47.666Z","avatar_url":"https://github.com/natanielf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Conway's Game of Life in WebAssembly\n\n## Environment Setup\n\n- Install the [Emscripten SDK (emsdk)](https://emscripten.org/docs/getting_started/downloads.html)\n\n```sh\nsource path/to/emsdk/emsdk_env.sh\n```\n\n## Build\n\n```sh\nemcc -Wall -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2 main.c cgl.c -o main.js\n```\n\n## Run\n\n```sh\npython3 -m http.server\n```\n\nOpen http://0.0.0.0:8000/ in your browser.\n\n## References\n\n- https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life\n- https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_Wasm\n- https://emscripten.org/docs/getting_started/Tutorial.html\n- https://emscripten.org/docs/api_reference/emscripten.h.html\n- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range\n- https://www.geeksforgeeks.org/dynamically-allocate-2d-array-c/\n- https://en.cppreference.com/w/c/numeric/random/srand\n- https://en.cppreference.com/w/c/numeric/random/rand\n- https://emscripten.org/docs/porting/multimedia_and_graphics/OpenGL-support.html\n- https://emscripten.org/docs/porting/multimedia_and_graphics/EGL-Support-in-Emscripten.html\n- https://github.com/emscripten-core/emscripten/blob/main/test/third_party/glbook/Common/esUtil.c\n- https://github.com/emscripten-core/emscripten/blob/main/test/minimal_webgl\n- https://doublejump.github.io/webgl-with-webassembly/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatanielf%2Fcgl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatanielf%2Fcgl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatanielf%2Fcgl/lists"}