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

Web support #1

Open
wilsonsilva opened this issue Oct 21, 2023 · 2 comments
Open

Web support #1

wilsonsilva opened this issue Oct 21, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@wilsonsilva
Copy link
Owner

Ruby has recently introduced support for web compilation. I'm not sure how well it works with Emscriptien/FFI libraries.

@wilsonsilva wilsonsilva added the help wanted Extra attention is needed label Oct 21, 2023
@satyam9721
Copy link

it's work with Emscripten. Emscripten is a complete Open Source compiler toolchain to WebAssembly. When developers have native code that lends itself to compilation to WASM, this native code could be used in Dart Web through JS interop.

However, we do not have a unified API for interacting with the same native library on Dart Native through dart:ffi, and on Dart Web through JS interop.

@wilsonsilva
Copy link
Owner Author

it's work with Emscripten. Emscripten is a complete Open Source compiler toolchain to WebAssembly. When developers have native code that lends itself to compilation to WASM, this native code could be used in Dart Web through JS interop.

However, we do not have a unified API for interacting with the same native library on Dart Native through dart:ffi, and on Dart Web through JS interop.

This is a Ruby repository. The native Raylib library, written in C compiles easily via Emscripten to WebAssembly. Compiling Ruby to Emscripten has also been done before. The issue here is compiling Ruby + C extensions/FFI bindings to WebAssembly.

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