Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
G. Gibson
@mistergibson
lol, yeah
Billy.Zheng
@zw963
Thank @elia a lot for wonderful Opal. Hope see Opal 1.0 is released in the future.
G. Gibson
@mistergibson
Question: can I call a ruby object from js directly? example: @timer_handle = 'setInterval(#{self}.tick(),2000)' ... ?
Simon George
@sfcgeorge
Yes :)
do_later = $$[:setTimeout] # Accessing the "setTimeout" property
do_later.call(->{ puts :hello}, 2000)
do_later.call(->{ tick }, 2000)
do_later.call(method(:tick), 2000) # maybe
G. Gibson
@mistergibson
Sweet , thanks :)
ok, but not the way I expressed it in my question right?
Simon George
@sfcgeorge
G. Gibson
@mistergibson
Excellent, and much simpler than I thought it was - thanks again :)
Simon George
@sfcgeorge
That's from Ruby calling a JS function. If you mean from JS calling a Ruby function then no I don't think so. But you can do from Ruby inline JS calling Ruby
`setTimeout(#{method(:tick).to_proc}, 500)`
Note the backticks
G. Gibson
@mistergibson
ok, sure - that's cool
G. Gibson
@mistergibson
That all seems very straight forward. at first I was just unsure about HOW to refer to an object/method with respect to the native call. Thanks for clarifying.
Elia Schito
@elia

Thank @elia a lot for wonderful Opal. Hope see Opal 1.0 is released in the future.

@zw963 Thanks! The plan is to have the next major release be 1.0

Forrest Chang
@fkchang
what versions of opal are people running, esp. in production?
G. Gibson
@mistergibson
@fkchang : I use a github pull for mine
Elia Schito
@elia
@fkchang we're still on 0.10 but have a branch almost ready for 0.11
Forrest Chang
@fkchang
@elia thanks, I want to update (long over due) opal-console handling compatibility between different opal versions is rather difficult our production app is 0.8 don't want to strand too many people, but want to move towards supporting 0.11
Colin Gunn
@balmoral
@fkchang in production on 0.11
Mitch VanDuyn
@catmando
@fkchang as I think u know hyperloop is dropping support for opal < 0.11 .
@adamcreekroad is getting catprint up on latest hyperloop and opal. No issues so far
G. Gibson
@mistergibson
I notice a lot of people went with React
What is the best (most comprehensive) UI framework out there?
Your opinions please :)
Elia Schito
@elia
G. Gibson
@mistergibson
@elia : thanks
Colin Gunn
@balmoral
@mistergibson @elia one more UI (and full stack) framework in early stages is https://github.com/balmoral/robe. It’s been a personal learning project, and good enough to use in a restricted beta production app. I’m not currently able to provide much support to others, and there’s no documentation or specs yet! The README hypes it up a bit, mostly for self-encouragement. Feel free take a look and use anything that’s useful.
G. Gibson
@mistergibson
Thanks Colin
G. Gibson
@mistergibson
Hyperloop looks pretty cool, but someone said they are dropping support for Opal?
Ghost
@ghost~59874280d73408ce4f704e9c
yes, hyperloop drops support for opal 0.10
@mistergibson ruby-hyperloop supports opal 0.11 :tada:
G. Gibson
@mistergibson
sweet - thanks for the clarification :)
Mitch VanDuyn
@catmando
@mistergibson that was me being confusing... @fkchang was asking about relative use of opal < 0.11, and I am just saying that our plan for hyperloop release is to require opal 0.11 or better, and that at least one big project has upgraded to opal 0.11 without any big problems.
G. Gibson
@mistergibson
@catmando : I can require hyperloop in my pre-compiled .rb can I not? I'm new to it. I prefer to get all my deps in one .rb file and compile the whole she-bang into a .js include.
Mitch VanDuyn
@catmando
@mistergibson hyperloop believes in omakase (chief's choice) but I would not recommend it. I think you will find it much easier to let hyperloop manage your dependencies.
G. Gibson
@mistergibson
@catmando : I'll look into that - thanks :) (BTW: great job on hyperloop itself - it looks beautiful).
Mitch VanDuyn
@catmando
that said if you want to learn from the bottoms up, I recommend starting with hyperloop-js which just gives you all of client side hyperloop as a js include file. You just wont get any server side goodness.
G. Gibson
@mistergibson
ok
Mitch VanDuyn
@catmando
if you are interested in that approach look at the chat tutorial. You build a client side only app.
G. Gibson
@mistergibson
ok
Mitch VanDuyn
@catmando
but personally I would recommend going through the 1 hour video tutorial and building the TodoApp. This will give you a better idea of the big picture and what hyperloop is capable of . BTW there is a gitter room dedicated to hyperloop here:
G. Gibson
@mistergibson
Thanks
Forrest Chang
@fkchang
@/all released opal_hot_reloader 0.1.5 gem with the 0.11 support
Elia Schito
@elia
:tada:
G. Gibson
@mistergibson
@fkchang : cool idea
Billy.Zheng
@zw963
@fkchang , Cool
Billy.Zheng
@zw963
@/all, I extract opal/opal gitter chat history into one text file, if you want search something , please visit https://zw963.github.io and download chat file.
G. Gibson
@mistergibson
I'm having issues getting an xml parser into Opal. Is there a recommended one I should be using instead of REXML?
Elthariel
@elthariel
@mistergibson, Join us on the hyperloop gitter, we're nice :)
G. Gibson
@mistergibson
@elthariel : I'm there - lurking and learning :)