Skip to content
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

Feature: Swift WASM #351

Open
2 tasks done
aehlke opened this issue Jun 2, 2023 · 3 comments
Open
2 tasks done

Feature: Swift WASM #351

aehlke opened this issue Jun 2, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@aehlke
Copy link

aehlke commented Jun 2, 2023

Type of feature

✨ Feature

Current behavior

No response

Suggested feature

I'm not sure what it would take to run on top of your existing WASM support, but direct support for SwiftWASM would be great.

Additional context

https://book.swiftwasm.org

https://pad.swiftwasm.org

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
@hatemhosny
Copy link
Collaborator

hatemhosny commented Jun 2, 2023

@aehlke

thanks for the suggestion.

SwiftWasm compiles swift code to wasm to run in the browser (and other wasm runtimes). However the compiler itself is not running on wasm. (installation)

The playground (https://pad.swiftwasm.org/) sends code to the server to be compiled to wasm which is then sent back to the browser.

LiveCodes, being a client-side app, needs the compiler itself to run on wasm or JavaScript (to compile the code in the browser).

It is highly appreciated, if somebody can guide us to a project that can do that.

Thanks again

@hatemhosny hatemhosny added the help wanted Extra attention is needed label Jun 2, 2023
@aehlke
Copy link
Author

aehlke commented Jun 5, 2023

Thank you for looking - of course you're right, it says it right there, oops

I'd love to use Swift Package Manager-packaged repos as WASM in livecodes as imports, even if I can't write in Swift in livecodes. Is it possible to make it easier to import SPM packages that are Swift that work with WASM? I can investigate resources for you.

@aehlke
Copy link
Author

aehlke commented Jun 6, 2023

I found a great article with resources at end https://www.fermyon.com/wasm-languages/swift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants