{"id":13782742,"url":"https://github.com/RickCarlino/WASM-Forth","last_synced_at":"2025-05-11T16:32:26.052Z","repository":{"id":66353372,"uuid":"101000526","full_name":"RickCarlino/WASM-Forth","owner":"RickCarlino","description":"A sort-of-kind-of-working Forth interpreter that runs in the browser using Web Assembly (WASM). PRs welcome.","archived":false,"fork":false,"pushed_at":"2017-08-21T23:29:36.000Z","size":32,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T18:16:49.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RickCarlino.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}},"created_at":"2017-08-21T23:26:28.000Z","updated_at":"2023-03-10T04:38:51.000Z","dependencies_parsed_at":"2023-02-22T06:31:06.973Z","dependency_job_id":null,"html_url":"https://github.com/RickCarlino/WASM-Forth","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/RickCarlino%2FWASM-Forth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RickCarlino%2FWASM-Forth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RickCarlino%2FWASM-Forth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RickCarlino%2FWASM-Forth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RickCarlino","download_url":"https://codeload.github.com/RickCarlino/WASM-Forth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253595754,"owners_count":21933444,"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-08-03T18:01:43.227Z","updated_at":"2025-05-11T16:32:25.770Z","avatar_url":"https://github.com/RickCarlino.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Forth on WASM\n\nThis repo (sort of) runs a [Forth interpreter](https://en.wikipedia.org/wiki/Forth_(programming_language)) natively (no transpilation!) in any browser that supports [Web Assembly](http://webassembly.org/). The Forth interpreter (the part written in C) was originally authored by [Leif Bruder](http://defineanswer42.wordpress.com) in 2014 under a public domain license. Thanks, Leif!\n\nIt sort of works, but unfortunately, causes the browser to hang. I would really like to know why, but have yet to find a cause.\n\n# Issues\n\n 1. `forth.c` runs great on Linux x64 via `gcc`. See `forth_native_exe` to try it on your own machine. The source was compiled via `gcc forth_native.c -o forth_native_exe`. I only had to change the original source in two places to compile native vs. WASM (relates to cell size).\n 2. When compiling `forth_wasm.c` to binary (see: `program.wasm` and `index.html`) via [WASM Fiddle](https://wasdk.github.io/WasmFiddle/), the program sort-of-kind-of runs. The problem is that it does not pause and freezes the browser tab on both Chrome and Firefox.\n\n# How to Replicate\n\n1. (optional) Run `forth_native_exe` on a Linux machine. Notice that it does not crash.\n2. Open `index.html` in Chrome. Notice that it crashes. [This link will cause your tab to hang, probably.](https://rawgit.com/RickCarlino/WASM-Forth/master/index.html)\n3. Open `index.html` in Firefox. Notice that it crashes.  [This link will cause your tab to hang, probably.](https://rawgit.com/RickCarlino/WASM-Forth/master/index.html)\n\n\n...does anyone have any ideas as to why?\n\n# License\n\n`forth.c` is licensed as public domain software. All other code is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRickCarlino%2FWASM-Forth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRickCarlino%2FWASM-Forth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRickCarlino%2FWASM-Forth/lists"}