ruby / ruby/ruby.wasm

Is it possible to convert ruby to WebAssembly and run it in a react application?

Open
#185 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
875
Forks
68
Avg merge
9d 5h
Merged PRs (30d)
1

Description

In a current project, we have a situation where we want to centralize where some calculations are being done, so everything is being calculated on the backend.

The tradeoff is that whenever the front end needs the results of said calculations it needs to make a request and wait for the response. Given it's only a second or two at most, we figured if we could export the calculating function as web assembly, we could import it as a function for JS.

Is this a supported use case?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the ruby.wasm documentation and examples for WebAssembly exports and JavaScript integration. Check whether a React application and client-side execution are covered, then compare the requested calculation use case with the documented capabilities. Done means a supported path or a clearly scoped gap is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, ruby, wasm
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.