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: Support Rust via WASM #739

Open
2 tasks done
fahdfady opened this issue Feb 6, 2025 · 3 comments
Open
2 tasks done

Feature: Support Rust via WASM #739

fahdfady opened this issue Feb 6, 2025 · 3 comments
Assignees

Comments

@fahdfady
Copy link

fahdfady commented Feb 6, 2025

Type of feature

✨ Feature

Current behavior

No response

Suggested feature

I propose adding Rust support to LiveCodes by interpreting/compiling it into WebAssembly that browsers can understand. Adding Rust to LiveCodes will be a great addition, to be including one of the most popular programming languages that people are eager to learn/try. While being loyal/committed to LiveCodes' philosophy on evaluating all languages on the browser (client-side) with no backend (server-side)

I would like to work on implementing this feature, as i really need it personally. I'll follow the project's contribution guidelines and try my best!

Additional context

References that i'd look up into

There are some similar projects that had done that

Code of Conduct

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

Contributing Docs

  • I agree to follow this project's Contribution Docs
@fahdfady
Copy link
Author

fahdfady commented Feb 6, 2025

.take

@hatemhosny
Copy link
Collaborator

Hey @fahdfady
That would be a great addition to LiveCodes.
Please go ahead.

We can start by working on a demo that compiles rust code (as a string) to wasm in a simple html page outside LiveCodes.

Then we can adapt that demo to add the new language to LiveCodes.
Other languages that work by compiling to wasm include WebAssembly Text and AssemblyScript. We can use the same way to send the generated wasm to the result page and run it.

Also you may find this guide helpful.

Just start by working on the demo and then I can guide implementing the rest.

Thank you very much indeed.

@hatemhosny
Copy link
Collaborator

hatemhosny commented Feb 6, 2025

You may also want to check this:
https://x0k.online/ppp/
https://github.com/x0k/ppp

We may also use it for: C#, Java, Go (wasm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants