Coder Social home page Coder Social logo

emruby's People

Contributors

jez avatar mame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emruby's Issues

Error from emcc when compiling io.c

I see this error when attempting to follow the instructions in the README:

io.c:10081:12: error: expected ')'
                                   "(%"PRI_OFFT_PREFIX"d, "
                                       ^
.ext/include/wasm32-emscripten/ruby/config.h:134:25: note: expanded from macro 'PRI_OFFT_PREFIX'
#define PRI_OFFT_PREFIX PRI_LL_PREFIX
                        ^
io.c:10080:28: note: to match this '('
        VALUE message = rb_sprintf("%"PRIsVALUE" "
                                  ^
1 error generated.

I've included the full output from running sh build.sh in the following gist:

https://gist.github.com/jez/3ff0a869cba838d6a6364b084f307e92#file-error-txt-L6-L15

If this error looks expected to you, I'd love help with possible workarounds. Otherwise I'll keep looking for a solution on my own. Thanks for putting this repo together!

[Documentation / Tutorial] Let users run irb emruby on their webpages?

Hey there mame,

This is mostly a suggestion, but if you consider it useful then perhaps the main
README could mention this.

You provide a link to a demo here:

https://mame.github.io/emruby/

This works too.

(One thing confuses me: the "downloading data" part. But this is an aside, I just
was not expecting that display after clicking on "run".)

If I can see it correctly then we kind of have irb there for the www, yes? A bit
similar I suppose how _why had this a long time ago (before BasicObject
was added to core; I think it was added after _why proposed it, matz agreed.
At the least I think this was the case, and _why had some projects back then,
one of which was that irb-thingy in the browser.)

My idea or use case now would be that, for instance, someone using rails
or sinatra, may want to embed a little irb like this too, for use on the www.
Ideally with some customization in place (e. g. how much control; would
be pretty cool if customization would be possible to even allow people to
remote-control their computer at home via this! :D Though the default of
course to be restricted in permission.)

Anyway - the TL;DR of this here is mostly to think whether emruby could
be used for people to embed irb on the www on a homepage. For instance,
thinking of a sinatra application, I could see to simply and easily add a
route called "/irb" and let people work on irb there. Or perhaps even
add an interactive tutorial too.

I don't know whether that includes your concerns of a valid use case for
emruby or whether emruby is just meant as a demo-application and a
"proof of concept". Which is fine, but I am more wondering for "irb
on the www for everyone". Including hobbyists. :D

Please feel free to close/ignore the issue request here at your own choosing,
this is not meant to add more workload to your schedule but more as a
"possibly useful idea".

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.