Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
ylluminate
@ylluminate
@vais @elia I tried to get some better timeline info for you out of the sprockets guys to not much avail: rails/sprockets#68
Elia Schito
@elia
Yeah saw that
Rick Carlino
@RickCarlino
This message was deleted
This message was deleted
I got it to work for primitives, but Object is not possible
D'oh - found the answer in the docs. Dumb question
meh.
@meh
RickCarlino, yes, it's called Native
require 'native'
Native({a: 1, b: true})
Rick Carlino
@RickCarlino
Yep! thus my statement "Dumb question". hahaha thanks for the help.
Forrest Chang
@fkchang
@adambutler (or @vais if he knows) I want to index stuff on compile, look's like I'll have to instantiate Opal::Compiler myself, export @sexp and then parse the sexp for information -- back to the indexing I want, I think I can demonstrate some of the stuff in browser to make a compelling enough example that people would very much want it on the backend too. Any tips?
on that note, how stable is the AST format going to be?
@adambeynon above was meant for you and not adambutler, but it's a bit premature, I think I can probably leverage node handlers for some of the stuff I want, so I might expose something else
Penn Su
@pencilcheck
@AstonJ sorry just got to see your message. What would I do as part of the Strategies team if I join?
Rick Carlino
@RickCarlino
Has anyone tried using opal as a compiler in RiotJS?
Talking about that, specifically. ^
Jikku Jose
@JikkuJose
Has anyone used Handlebar templates with Opal?
AstonJ
@AstonJ
@pencilcheck Hey, no probs. Basically whatever you can help with - whether that’s code, code examples, docs, spreading the word, etc
If you join MetaRuby I can add you to the room :)
Penn Su
@pencilcheck
cool
how do I join MetaRuby?
Rick Carlino
@RickCarlino
So when is usage of to_n warranted?
Is it used mostly when interpolating code?
Forrest Chang
@fkchang
@adambeynon @elia @meh when wrapping JS, why would one choose toll free bridging over include Native? In both cases you have to expose the methods via alias_native, though in toll free you have to define Klass.new and w/include Native, you can set @native in Klass#initialize
Forrest Chang
@fkchang
The difference seems larger on the Javascript side, where they seem equivalent on the opal side
AstonJ
@AstonJ
@pencilcheck www.metaruby.com - just let me know your username when you get there :)
Forrest Chang
@fkchang
@jaredcwhite opalist deadline 8pm PT ish again tonight? Gonna be a tight squeeze for me
Rick Carlino
@RickCarlino
Thanks for the reminder, @fkchang almost forgot!
Torsten Rüger
@rubydesign
Hi, i'm trying to build some graphical application using html canvas.
Does anyone know of ruby wrappers for other libraries than three and phaser
Maybe Famous ? Anything not have to code on the canvas.
Forrest Chang
@fkchang
@dancinglightning I think there's a opal-raphael, though simply wrapping in Native works pretty well for raphael
Torsten Rüger
@rubydesign
@fkchang Thanks. I was looking for something not so tied to svg. more 2d context, possibly with 3d later. But simple is good.
Do you know the maintainer, it seems quite dead
Forrest Chang
@fkchang
@dancinglightning I don't know the maintainer, it hit my radar a while's back, so I remembered that it's there. Looking back at the example on his readme, doesn't seem like he put much over what just wrapping w/Native gives you
hmm, maybe I should take that repo over at some point
Torsten Rüger
@rubydesign
@fkchang it does seem very thin. 100 lines of code
Forrest Chang
@fkchang
Yeah, his wrapper doesn't do much in the way or Ruby-fying, so it's nearly equivalent to wrapping in Native, but w/more work involved
Torsten Rüger
@rubydesign
@fkchang sorry, newbie: what is wrapping Native? some link i can read.
Just asking because if it's easy, i might consider doing pixi.js myself. seems the better library
George Plymale II
@ylluminarious
@dancinglightning there's an opal-pixi you're welcome to contribute to: https://github.com/orbitalimpact/opal-pixi
it's in its very early stages right now, and we've been busy with opal-phaser lately
Torsten Rüger
@rubydesign
@ylluminarious i see you're everywhere. Thanks for the offer. i may just do that
Pixi seems just what i need, small enough and big enough. And well documented
Now i just need that link to the Native wrapping
George Plymale II
@ylluminarious
@dancinglightning lol, thanks. you know what they say about great minds ;)
Torsten Rüger
@rubydesign
@ylluminarious I hope that we're talking v3? Performance seems incredible, i had to crank it up to 40000 bunnies before it went down from 60fps. 50k was still at 40fps.
So do you have your own chat for that?
George Plymale II
@ylluminarious
@dancinglightning sorry, i was away there for a sec. yes, we do have our own chat for it: https://gitter.im/orbitalimpact/opal-pixi