• Stars
    star
    313
  • Rank 132,958 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 12 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

mruby running in the browser

Introduction

This project brings mruby to the browser. It uses [emscripten] (https://github.com/kripken/emscripten) to compile the mruby source code into JavaScript and runs in the browser.

Build Status

Since emscripten SDK does not provide pre-built binaries for Linux, we cannot use Travis CI right now. We want to be nice and don't try to rebuild whole LLVM each time we are pushing new code :)

How to Install

Webruby now depends on emsdk to provide emscripten and LLVM infrustructure. To install webruby, following the following steps:

  1. Install emsdk following instructions at here
  2. Install latest incoming version of emscripten sdk(right now webruby still depends on code from incoming branch of emscripten, once this goes into a release version, we will lock the version for better stability)
  3. Activate latest incoming version
  4. Webruby should be able to pick up the correct version of emscripten from emsdk. If not, feel free to create an issue :)

Notes

Thanks to @scalone and @sadasant, webruby is already used in production: http://rubykaigi.org/2014/presentation/S-ThiagoScalone-DanielRodriguez

However, you might still want to give it a full test before using it in production :)

Demos

  • webruby irb - A nice-looking full-fledged webruby irb. Thanks to @joshnuss for his work!
  • Webruby tutorial - minimal example of webruby project, a full description is at here
  • mruby - This is only a minimal demo of web irb, if you want to try out mruby in a browser, I strongly suggest the demo above.
  • geometries - a WebGL example using webruby, mruby-js and three.js. NOTE: from a practical point of view, I agree that this can be easily implemented using JS. However, this demo shows how easy it is to interact with the JavaScript environment using Ruby.

License

This project is distributed under the MIT License. See LICENSE for further details.

More Repositories

1

mruby-web-irb

mruby interpreter running in a browser
JavaScript
83
star
2

diviner

A FoundationDB style deterministic testing framework for async/await Rust
Rust
30
star
3

animagus

Go
18
star
4

ckb-duktape

Duktape powered JS script for CKB
C
16
star
5

mruby-js

mruby to javascript calling interface, only works with emscripten
JavaScript
15
star
6

micro-acme

Acme style editing plugin for micro editor
Lua
14
star
7

perkins-tent

One click CKB docker distribution
Dockerfile
11
star
8

sohm.lua

Slimmed ohm for twemproxy-like Redis cluster
Lua
9
star
9

ckb-boxer

A minimal CKB distribution that is packed as a library, only includes the chain verification part
Rust
7
star
10

mruby-gles

OpenGL ES binding for mruby
C
7
star
11

mruby.vm.js

mruby compiled for the Web, ready to use version
5
star
12

git-remote-ckb

Demo for using Nervos CKB as a remote backend for git
JavaScript
4
star
13

ckb-graphql-server

CKB GraphQL Server
Rust
4
star
14

wavm-aot-generator

Rust
4
star
15

mruby-bytecode

mruby gem to parse mruby source code inside of mruby
Ruby
4
star
16

mruby-pack

mrbgem for Array#pack and String#unpack
C
3
star
17

mruby-browser

Experiment of running mruby in a browser
Shell
3
star
18

ckb-vm-contrib

Rust
3
star
19

ckb-native-build-sample

Rust
3
star
20

felix

A telegram bot for interacting with CKB, hopefully with luck
JavaScript
2
star
21

p256-dynamic-linking-lib

Rust
2
star
22

xxuejie.github.io

HTML
2
star
23

cuckoo

A pretty dumb Twitter clone
JavaScript
2
star
24

mrubymix

A mruby source code processor inspired from the directive processor of sprockets
Ruby
2
star
25

redix_sharding

A wrapper of Redix with sharding & pooling support
Elixir
1
star
26

instant-riscv

Rust
1
star
27

xxuejie.github.com

JavaScript
1
star
28

docker-riscv

Docker files packing RISC-V utilities in case you don't feel like building them yourself
Dockerfile
1
star
29

ckb-contract-toolchains

Shell
1
star
30

ckb-mruby

C
1
star
31

docker-sha3sum

1
star
32

minimal-mqtt

Minimal MQTT Library
C
1
star
33

ckb-cobuild-testvector

Rust
1
star
34

ckb-js-toolkit-contrib

JavaScript
1
star
35

rubykaigi2013-talk

JavaScript
1
star
36

ckb-zero-lock

Rust
1
star
37

rvv-prototype

Rust
1
star
38

ckb-vm-bpf-toolkit

Python
1
star
39

xterm-pty-wasi-polyfill

JavaScript
1
star
40

amic

C
1
star
41

rubyconfchina2013-talk

Slides and source code for RubyConfChina 2013 talk
JavaScript
1
star
42

lib-dummy-atomics

C
1
star
43

paguridae

A Web IDE hugely inspired from Acme that is almost a clone of acme :)
Go
1
star