{"id":16031896,"url":"https://github.com/dckc/genode-js-xs","last_synced_at":"2026-01-20T00:36:43.099Z","repository":{"id":47999401,"uuid":"269906142","full_name":"dckc/genode-js-xs","owner":"dckc","description":"JavaScript on genode using the Moddable XS engine","archived":false,"fork":false,"pushed_at":"2021-08-22T04:14:07.000Z","size":51,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T20:15:01.603Z","etag":null,"topics":["capability-security","genode","javascript","ocaps","osdev"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/dckc.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":"2020-06-06T07:33:22.000Z","updated_at":"2021-08-11T02:38:17.000Z","dependencies_parsed_at":"2022-08-12T16:11:32.703Z","dependency_job_id":null,"html_url":"https://github.com/dckc/genode-js-xs","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/dckc%2Fgenode-js-xs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dckc%2Fgenode-js-xs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dckc%2Fgenode-js-xs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dckc%2Fgenode-js-xs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dckc","download_url":"https://codeload.github.com/dckc/genode-js-xs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685630,"owners_count":20979085,"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":["capability-security","genode","javascript","ocaps","osdev"],"created_at":"2024-10-08T21:07:01.100Z","updated_at":"2026-01-20T00:36:43.057Z","avatar_url":"https://github.com/dckc.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toward JavaScript on genode using Moddable XS\n\nTo run `src/main.js` using [xst][] from the [Moddable SDK][sdk],\nwe `goa build` (see below) and then:\n\n```\ngenode-js-xs$ goa run\n[genode-js-xs:make] BUILD_DIR=/home/connolly/projects/genode-js-xs/var/build/x86_64\n[genode-js-xs:make] MODDABLE=/home/connolly/projects/genode-js-xs/vendor/moddable\nmake[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.\nGenode sculpt-21.03-24-g704bd0695f8 \u003clocal changes\u003e\n17592186044415 MiB RAM and 8997 caps assigned to init\n[init -\u003e genode-js-xs] parent provides\n[init -\u003e genode-js-xs]   service \"ROM\"\n[init -\u003e genode-js-xs]   service \"LOG\"\n[init -\u003e genode-js-xs]   service \"RM\"\n[init -\u003e genode-js-xs]   service \"CPU\"\n[init -\u003e genode-js-xs]   service \"PD\"\n[init -\u003e genode-js-xs]   service \"Timer\"\n[init -\u003e genode-js-xs] child \"hello\"\n[init -\u003e genode-js-xs]   RAM quota:  204552K\n[init -\u003e genode-js-xs]   cap quota:  66\n[init -\u003e genode-js-xs]   ELF binary: hello\n[init -\u003e genode-js-xs]   priority:   0\n[init -\u003e genode-js-xs -\u003e hello] Hello, world - sample\n[init -\u003e genode-js-xs -\u003e hello] dog says bark\n[init -\u003e genode-js-xs -\u003e hello] genode logging:\n[init -\u003e genode-js-xs -\u003e hello] js to genode\n[init -\u003e genode-js-xs] child \"hello\" exited with exit value 0\nExpect: 'interact' received 'strg+c' and was cancelled\n```\n\n[xst]: https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/xs/xst.md\n[sdk]: https://github.com/Moddable-OpenSource/moddable#readme\n\n## Background: `goa build`\n\n - [Goa \\- streamlining the development of Genode applications](https://genodians.org/nfeske/2019-11-25-goa)  \n   Nov 2019 by Norman Feske\n   - live coding: [JavaScript on the Genode Microkernel OS, part 1: hello genode \\- Twitch](https://www.twitch.tv/videos/1090280743)\n     - 1st 7 min: live coding\n     - second half: a bit of explanation.\n\n## Building from source\n\nTo get `vendor/goa` and `vendor/moddable`:\n\n```sh\ngit submodule update\nexport PATH=$PWD/vendor/goa/bin:$PATH\n```\n\nWhen we `goa build`, we see some harmless compiler warnings from XS.\n\n```\ngenode-js-xs$ goa build\ndownload nfeske/api/base/2021-02-22.tar.xz\ndownload nfeske/api/base/2021-02-22.tar.xz.sig\ndownload nfeske/api/libc/2021-02-22.tar.xz\ndownload nfeske/api/libc/2021-02-22.tar.xz.sig\n[genode-js-xs:make] BUILD_DIR=/home/connolly/projects/genode-js-xs/var/build/x86_64\n[genode-js-xs:make] MODDABLE=/home/connolly/projects/genode-js-xs/vendor/moddable\nmake[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.\n[genode-js-xs:make] # xsc FFI.xsb\n[genode-js-xs:make] # xsc main.xsb\n[genode-js-xs:make] # xsid FFIgenode.cpp.xsi\n[genode-js-xs:make] # cc xsAll.c\n[genode-js-xs:make] # cc xsDataView.c\n[genode-js-xs:make] # cc xsArguments.c\n...\n[genode-js-xs:make] # cc xsType.c\n[genode-js-xs:make] # xsl modules\n/home/connolly/projects/genode-js-xs/vendor/moddable/xs/sources/xsAPI.c: In function ‘fxToUnsigned’:\n/home/connolly/projects/genode-js-xs/vendor/moddable/xs/sources/xsAPI.c:371:25: warning: this statement may fall through [-Wimplicit-fallthrough=]\n   theSlot-\u003evalue.number = theSlot-\u003evalue.integer;\n   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~\n[genode-js-xs:make] # cc FFIgenode.cpp.o\n[genode-js-xs:make] # cc FFImod.c.o\n[genode-js-xs:make] # cc mc.xs.c\n[genode-js-xs:make] # cc genode.c\n[genode-js-xs:make] # cc hello\n```\n\nThe first `goa run` involves downloading various genode archives:\n\n```\n\n(base) ~/projects/genode-js-xs\n20:24 connolly@jambox$ goa run\n[genode-js-xs:make] BUILD_DIR=/home/connolly/projects/genode-js-xs/var/build/x86_64\n[genode-js-xs:make] MODDABLE=/home/connolly/projects/genode-js-xs/vendor/moddable\nmake[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.\ndownload nfeske/bin/x86_64/base-linux/2021-06-08.tar.xz\ndownload nfeske/bin/x86_64/base-linux/2021-06-08.tar.xz.sig\ndownload nfeske/bin/x86_64/init/2021-02-22.tar.xz\ndownload nfeske/bin/x86_64/init/2021-02-22.tar.xz.sig\ndownload nfeske/bin/x86_64/libc/2021-02-22.tar.xz\ndownload nfeske/bin/x86_64/libc/2021-02-22.tar.xz.sig\ndownload nfeske/bin/x86_64/vfs/2021-02-22.tar.xz\ndownload nfeske/bin/x86_64/vfs/2021-02-22.tar.xz.sig\ndownload nfeske/src/base-linux/2021-06-08.tar.xz\ndownload nfeske/src/base-linux/2021-06-08.tar.xz.sig\ndownload nfeske/src/init/2021-02-22.tar.xz\ndownload nfeske/src/init/2021-02-22.tar.xz.sig\ndownload nfeske/src/libc/2021-02-22.tar.xz\ndownload nfeske/src/libc/2021-02-22.tar.xz.sig\ndownload nfeske/src/vfs/2021-02-22.tar.xz\ndownload nfeske/src/vfs/2021-02-22.tar.xz.sig\ndownload nfeske/api/block_session/2020-05-26.tar.xz\ndownload nfeske/api/block_session/2020-05-26.tar.xz.sig\ndownload nfeske/api/file_system_session/2020-05-26.tar.xz\ndownload nfeske/api/file_system_session/2020-05-26.tar.xz.sig\ndownload nfeske/api/os/2021-02-22.tar.xz\ndownload nfeske/api/os/2021-02-22.tar.xz.sig\ndownload nfeske/api/report_session/2020-03-25.tar.xz\ndownload nfeske/api/report_session/2020-03-25.tar.xz.sig\ndownload nfeske/api/rtc_session/2020-03-25.tar.xz\ndownload nfeske/api/rtc_session/2020-03-25.tar.xz.sig\ndownload nfeske/api/so/2020-05-17.tar.xz\ndownload nfeske/api/so/2020-05-17.tar.xz.sig\ndownload nfeske/api/terminal_session/2020-04-16.tar.xz\ndownload nfeske/api/terminal_session/2020-04-16.tar.xz.sig\ndownload nfeske/api/timer_session/2020-10-08.tar.xz\ndownload nfeske/api/timer_session/2020-10-08.tar.xz.sig\ndownload nfeske/api/vfs/2020-11-26.tar.xz\ndownload nfeske/api/vfs/2020-11-26.tar.xz.sig\nGenode sculpt-21.03-24-g704bd0695f8 \u003clocal changes\u003e\n17592186044415 MiB RAM and 8997 caps assigned to init\n[init -\u003e genode-js-xs] parent provides\n[init -\u003e genode-js-xs]   service \"ROM\"\n[init -\u003e genode-js-xs]   service \"LOG\"\n[init -\u003e genode-js-xs]   service \"RM\"\n[init -\u003e genode-js-xs]   service \"CPU\"\n[init -\u003e genode-js-xs]   service \"PD\"\n[init -\u003e genode-js-xs]   service \"Timer\"\n[init -\u003e genode-js-xs] child \"hello\"\n[init -\u003e genode-js-xs]   RAM quota:  204552K\n[init -\u003e genode-js-xs]   cap quota:  66\n[init -\u003e genode-js-xs]   ELF binary: hello\n[init -\u003e genode-js-xs]   priority:   0\n[init -\u003e genode-js-xs -\u003e hello] Hello, world - sample\n[init -\u003e genode-js-xs -\u003e hello] dog says bark\n[init -\u003e genode-js-xs -\u003e hello] genode logging:\n[init -\u003e genode-js-xs -\u003e hello] js to genode\n[init -\u003e genode-js-xs] child \"hello\" exited with exit value 0\nExpect: 'interact' received 'strg+c' and was cancelled\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdckc%2Fgenode-js-xs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdckc%2Fgenode-js-xs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdckc%2Fgenode-js-xs/lists"}