GithubHelp home page GithubHelp logo

kustomzone / run.rb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasoncharnes/run.rb

0.0 3.0 0.0 7.11 MB

Run Ruby in the browser using WebAssembly

Home Page: https://runrb.io

License: MIT License

JavaScript 98.72% HTML 0.56% CSS 0.43% Dockerfile 0.23% Makefile 0.06%

run.rb's Introduction

Run.rb

Run.rb is a tool to run Ruby code inside the browser.

This project compiles Ruby to WebAssembly. Inside /src/emscripten you'll find (currently) Ruby 2.6.0 and the tooling required to compile Ruby to WASM.

This project was bootstrapped with Create React App, but then we ejected it for WebAssembly reasons.

Goals

  • Have an online interface to write and run Ruby code
  • Include the Ruby Standard Library
  • Add the ability to save "snippets" and share them
  • Provide JS libraries for run.rb supported versions of Ruby
    • Something like: <script src=“https://runrb.io/ruby-2.6.0”> and ruby(“yourcode”) // => Promise
  • You tell us

Compiling Ruby to WASM

To compile Ruby into WebAssembly, you'll need Docker installed.

In the project directory, you can run: make

Available scripts

To run the application locally, you'll need NodeJS and Yarn installed.

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

We sure could use some tests. 😉

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

run.rb's People

Contributors

jasoncharnes avatar willglynn avatar chocolateboy avatar

Watchers

James Cloos avatar Andrew Kidoo avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.