-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added WASM-4. #71
Added WASM-4. #71
Conversation
I saw it's playable in browser. Just a quick question, is there an entry where developers can download or use the full featured dev environment? Without installing npm for non-nodejs users? |
Thanks, at the moment npm is required. I think we could provide native executables though: aduros/wasm4#29 |
Good to know. Will add then. |
We now have a standalone download with no dependencies: https://wasm4.org/docs/getting-started/setup/ |
Sorry maybe I haven't make it clear. The w4 tool is now downloadable and runnable within few mouse clicks, but it still requires installing additional compilers to work. I think the current version doesn't change the fact that WASM-4 hasn't yet with all necessary toolchain built-in, that makes it closer to a shell other than FC. I'd add this when WASM-4 has at least one language compiler (AssemblyScript/C,C++/Rust/Go) built-in, for at least one platform (browser/natives). |
Really this is impossible, because WASM has a lot of backends and toolsets. Generic requirements for Consoles is console-specific API headers and some CLI for wrapping/init /publishing a project. Same as real consoles - you can use different toolsets/engines etc. that can generate valid package that should be prepared then by DEVKit publishing tool. There are not real reason for blocking :) UPD: |
You have already enabled the following consoles, which don't use builtin high-level language but use ASM (Vistual ISA) instead:
wasm4 сould have been included for the same reason. Only it would be marked as WASM (also vistual ISA). |
@MaxGraey I think the issue is not that it's assembly but that WASM-4 doesn't come bundled with a compiler, which is a fair point. Would it help if we included direct download links for the different compilers under the WASM-4 download link? I'm a bit reluctant to bundle a compiler because we would have to change the build system to something non-standard. For what it's worth, there are FCs on this list that have external dependencies (Leikr requires Java, Pyxel requires Python). |
A native program requires stdc, etc. as runtime, Java and Python plays similar role there. The point is a fantasy console should be shipped with at least one way that allows user to program it, this feature distinguishes it from a real console. Despite it's done in high-level language or assembly. I haven't played WASM-4 for long, so I could be wrong. I'd say ok if it offers an assembler. I think WASM-4 uses many language frontends, and works as a common backend itself, maybe it already implemented some sort of assembler that interprets/compiles frontends output to WASM-4 instructions? And could a user write ASM by hand? |
I guess the simplest approach could be pre-installed and prepared wat2wasm util (part of wabt.js) which looks like this: https://webassembly.github.io/wabt/demo/wat2wasm |
I think it helps. |
Thanks @paladin-t ! |
For your consideration 😃