{"id":27939686,"url":"https://github.com/j3rn/wasmfromthegroundup-hs","last_synced_at":"2025-05-07T09:58:00.671Z","repository":{"id":288193784,"uuid":"934535911","full_name":"J3RN/wasmfromthegroundup-hs","owner":"J3RN","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-28T03:35:29.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T09:57:53.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/J3RN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-18T02:02:21.000Z","updated_at":"2025-04-28T03:35:32.000Z","dependencies_parsed_at":"2025-04-16T03:34:20.937Z","dependency_job_id":"cab89792-3dee-4908-a854-7a032b1c0cd0","html_url":"https://github.com/J3RN/wasmfromthegroundup-hs","commit_stats":null,"previous_names":["j3rn/wasmfromthegroundup-hs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J3RN%2Fwasmfromthegroundup-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J3RN%2Fwasmfromthegroundup-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J3RN%2Fwasmfromthegroundup-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J3RN%2Fwasmfromthegroundup-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J3RN","download_url":"https://codeload.github.com/J3RN/wasmfromthegroundup-hs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252856554,"owners_count":21814858,"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":"2025-05-07T09:57:59.923Z","updated_at":"2025-05-07T09:58:00.642Z","avatar_url":"https://github.com/J3RN.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebAssembly from the Ground Up - Haskell\n\n:warning:Work in progress!  I am only partway through the book, and will add more ports as I go.:warning:\n\nThis is a collection of code from [WebAssembly from the Ground Up] ported from JavaScript and Ohm to Haskell.\n\n- Chapter 1: Minimum Viable Compiler\n  - [Void Lang](./src/WasmFromTheGroundUp/CH01/Void.hs)\n  - [Nop Lang](./src/WasmFromTheGroundUp/CH01/Nop.hs)\n- Chapter 2: \n  - [Wafer](./src/WasmFromTheGroundUp/CH02/Wafer.hs)\n\n## General Notes\n\n- Whereas JavaScript uses `Uint8Array` to represent an array of bytes, this Haskell code uses bytestring builders (`Data.ByteString.Builder`).  The `Data.ByteString.Builder` module provides many helpers that WebAssembly from the Ground Up must implement from scratch for JavaScript (e.g. `stringUtf8`, `word32LE`).\n- I'm not a Haskell expert.  If you have a cleaner way to implement something, send me a pull request!\n- That said, I'm trying to keep the code fairly understandable to someone with a limited knowledge of Haskell.  I'm using typeclasses, but this is about as advanced as it get (at the moment).  I'm intentionally doing function composition with parentheses (e.g. `()`) instead of the composition operator (`.`) for this approachability reason.\n- My Haskell code style is probably bad and/or inconsistent, I'm not using a formatter at the moment, but I'm open to it.\n\n\n[WebAssembly from the Ground Up]: https://wasmgroundup.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj3rn%2Fwasmfromthegroundup-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj3rn%2Fwasmfromthegroundup-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj3rn%2Fwasmfromthegroundup-hs/lists"}