These are chat archives for opal/opal

15th
Jul 2015
Forrest Chang
@fkchang
Jul 15 2015 00:32
@RickCarlino not that I know of. I put in require_js into opal-irb that allows you to include js libs on the fly that also works on opal-playground by way of including the opal-irb gem
Ryan Stout
@ryanstout
Jul 15 2015 17:22
does anyone remember a conversation about opal adding preprocessor hooks for things like custom if RUBY_PLATFORM == 'opal' checks?
Elia Schito
@elia
Jul 15 2015 17:27
Yes
Torsten Rüger
@rubydesign
Jul 15 2015 17:29
just from reading the code/specs (if_node) one can check positive or negative for PLATFORM or ENGINE and that seems to be that
Elia Schito
@elia
Jul 15 2015 17:32
Some custom additions are in place for mspec too
Ryan Stout
@ryanstout
Jul 15 2015 17:52
@elia is it possible to make something like Volt.client? work like if RUBY_PLATFORM == 'opal'
Elia Schito
@elia
Jul 15 2015 18:41
@ryanstout sure, search for not_supported_on in opal codebase
Torsten Rüger
@rubydesign
Jul 15 2015 18:51
@ryanstout actually if we just did .client do … end and do the check inside the method before yielding we would hide the implementation
Ryan Stout
@ryanstout
Jul 15 2015 18:53
@elia thanks, checking it out
Ryan Stout
@ryanstout
Jul 15 2015 21:31
why is it Fixnum.inspect returns "Numeric"?
Elia Schito
@elia
Jul 15 2015 21:32
they're all the same class
Ryan Stout
@ryanstout
Jul 15 2015 21:32
ok, they are aliased?
Elia Schito
@elia
Jul 15 2015 21:32
ie. js Number
Ryan Stout
@ryanstout
Jul 15 2015 21:32
ok
Elia Schito
@elia
Jul 15 2015 21:32
y
Elia Schito
@elia
Jul 15 2015 22:20
How proper module support would have worked if only __proto__ were supported by all browsers: https://gist.github.com/elia/a076c2cbe69f30229cba