These are chat archives for opal/opal

12th
May 2015
Rick Carlino
@RickCarlino
May 12 2015 01:37
@jaredcwhite Thanks for the confirmation email. Pretty sure I forgot that I sent it to you and may have inadvertently double posted. Sorry if that was the case.
Rick Carlino
@RickCarlino
May 12 2015 02:11
So what are the most actively maintained front end frameworks in Opal? All im seeing is Vienna and ReactRB. Is that about right?
meh.
@meh
May 12 2015 02:13
RickCarlino, lissio!
Rick Carlino
@RickCarlino
May 12 2015 02:14
Ah nice. It's mostly working then?
meh.
@meh
May 12 2015 02:16
RickCarlino, it all works, I use it
RickCarlino, actually, I think it's kinda broken on 0.8
Rick Carlino
@RickCarlino
May 12 2015 02:16
Awesome. Close enough!
meh.
@meh
May 12 2015 02:16
but @adambeynon and @elia haven't had the time to help me fix the issues with the new sprockets changes
Rick Carlino
@RickCarlino
May 12 2015 02:17
As long as its not a "Oh crap! People are using this and its not even Alpha yet guys!" level haha
meh.
@meh
May 12 2015 02:17
RickCarlino, I used it to write an Overwolf app that won a contest
so it does do its job
RickCarlino, https://github.com/meh/wuvwuvwuv that's the app
Rick Carlino
@RickCarlino
May 12 2015 02:17
Nice!
I take it its a static app then? And if so, what's your build tool?
meh.
@meh
May 12 2015 02:18
RickCarlino, check the Rakefile
lissio build gives you an index.html
with everything compiled in
Rick Carlino
@RickCarlino
May 12 2015 02:19
omg that's great for phonegap
Makes it easier to dump into phonegap build
meh.
@meh
May 12 2015 02:19
it's broken on 0.8 tho
Rick Carlino
@RickCarlino
May 12 2015 02:19
Is that the latest?
meh.
@meh
May 12 2015 02:19
the builder/server stuff changed
yeah, the beta
the latest stable should be 0.7.2 IIRC
it works there
RickCarlino, it's kinda weird to get used to how it works tho
the whole Lissio::Component thing can be hard to get around
but once you get it you wonder why you would ever do things differently :P
Rick Carlino
@RickCarlino
May 12 2015 02:22
Looks pretty straightforward to me.
meh.
@meh
May 12 2015 02:22
RickCarlino, it's just most people are used to the MVC pattern
Rick Carlino
@RickCarlino
May 12 2015 02:22
I guess Ill get there for sure when I try it out.
Ah, I've goofed around with Vue / Knockout / Mithril so it doesn't look toooo far off
meh.
@meh
May 12 2015 02:23
RickCarlino, there are some other apps I wrote that use lissio that should be simpler to grok than wuv³
RickCarlino, https://github.com/meh/shekels this one
should still work even tho it's pretty old
Mitch VanDuyn
@catmando
May 12 2015 03:16
still can't find anyway to get react_js.js loaded just once in opal-rspec running in the browser under opal-rails. I see no configuration that can be used for this, checked with David Chang and he agrees its a problem. Can anybody help. You can't put require react_js in the spec_helper as that gets reloaded on every spec, and I see no way to get it added in the default load done by the outer index.html file...
Forrest Chang
@fkchang
May 12 2015 04:17
@RickCarlino https://github.com/meh/gwentoo is the other lissio app that @meh wrote -- it gives you more examples than shekels
@RickCarlino I also used lissio on an internal app to good effect. I used Jubilee for RT interaction also
Pre- react, I think most people just wouldn't grok lissio, after lissio, I think it makes sense. That everything including CSS is in Opal is a distinguishing aspect of lissio
Vais Salikhov
@vais
May 12 2015 08:12
@fkchang re #840, I must admit you are over-estimating my current ability with Opal by an order of magnitude or two :sweat_smile: Nevertheless, having it posted as an issue gives it visibility and a chance of getting worked on. Who knows, maybe even by yours truly...
Elia Schito
@elia
May 12 2015 08:28
@catmando i'd love to help but I'm a bit tight with time, there's already an issue open on opal or opal-rails or opal-rspec?
Mitch VanDuyn
@catmando
May 12 2015 14:28
@elia - no drama. If there is not an obvious answer, then I will indeed open an issue on opal-rspec. I think the root problem is that opal-rpsec should build one tree of requires for the entire test, not a separate tree for each individual test spec. I might fork a branch and see if I can get that work. In the mean time I put a work around in place: I made a version of react.js that checks if its loaded. I am just loading that version in test (not in production or development.) That got me through the night. I will add that to the notes on the problem in case anybody else bumps into this.
Jared White
@jaredcwhite
May 12 2015 15:16
Anyone try getting the latest Opal 0.8.0.beta1 and opal-rails working? I'm just not having luck at all. https://github.com/opal/opal-rails/issues/49#issuecomment-101317128
Forrest Chang
@fkchang
May 12 2015 15:32
@vais re: #840 -- maybe, I figure it's just a matter of time. When @meh is directing issues directly to you, I figure u picked up very quickly
Vais Salikhov
@vais
May 12 2015 15:57
Thanks @fkchang I'm seriously flattered :blush:
meh.
@meh
May 12 2015 15:57
vais, did anyone give you the contributor bit yet? you should get it if not
Vais Salikhov
@vais
May 12 2015 16:08
@meh yes! I'm a "collaborator" :smile: I still prefer to send PRs though :sweat_smile:
Forrest Chang
@fkchang
May 12 2015 16:16
@vais ur welcome. I'm just going to keep flattering u until the feature is in ;)
meh.
@meh
May 12 2015 16:17
lol
Forrest Chang
@fkchang
May 12 2015 16:19
Related to opal promotion and killer apps, I'd like to think that if I build out opal inspector w/it's smalltalk and lisp machine inspired features, that could be a killer app for Opal. avdi has been posting about smalltalk, and I completely could build in a lot of those things he's excited about.
like this https://twitter.com/avdi/status/597423163509764096 I could completely build that (somewhat simulated because we don't exactly have the full smalltalk features)
I'm tempted to build it and then basically post the same thing but with #opal
Vais Salikhov
@vais
May 12 2015 16:27
@fkchang how about that "find by example" feature? (Finds what method could be used to accomplish the output based on input). I can't wrap my mind around how that's even implemented in Smalltalk. Mind-blowing.
Forrest Chang
@fkchang
May 12 2015 16:35
@vais actually find by example is already implemented as a gem https://github.com/BMorearty/what_methods --- the way it's done is a little more complicated than I would've done it (probably covers more edge cases and it blacklists certain dangerous methods). Unfortunately that code didn't work when I pasted it into opal-irb, so I'll end up rewriting it anyways
the 7 min demo, I could come reasonably close to duplicating. Being able to lookup code/comments would be a key part of approximating/duplicating the smalltalk experience
On a side note, I thought I would name opal-inspector - clouseau, but unfortunately that name is taken. I have all sorts of Pink Panther imagery for my eventual talk on it
though a video called "in which I make you love Opal in 7 minutes" would be cool
Forrest Chang
@fkchang
May 12 2015 16:44
@AstonJ @elia @meh @adambeynon @vais I think this excerpt from this Rust critique applies to opal http://www.viva64.com/en/b/0324/ i.e. I think it's high time we started learning lessons of history. No one sane will ever start using a new language in their projects until you show them a few cool development tools supporting it, tell them a couple of success stories, and show a dozen of programmers working with that language and living close by. As for programmers, they will never - except probably for the youngest ones - spend their time and health on learning another "very best" language until you show them a few cool development tools (not a frob like Racer) and a couple of tens of thousands of ready-made libraries (not "experimental" or "unstable" or stuff like that), tell them a couple of success stories, and show them a dozen of open vacancies in their city or town. You know, it's like the "Chicken or the Egg" dilemma. On very rare occasions, this problem does get resolved (relatively representative examples are Go and Scala) - mostly thanks to investments of time and money from some large company (Google, Typesafe) who for some reason finds it worthy to popularize a new language.
AstonJ
@AstonJ
May 12 2015 17:20

Completely agree with that Forrest :+1: I think Volt will be Opal's first killer app and when Volt gets its own killer app, Opal will benefit hugely as well.

I also agree about showing people stuff, how they can use it (and why it's so much better than the alternatives!!) ...exactly why I think good quality screencasts are important.

I'm currently reformatting my Mac but will post a summary of what's going on with the screencasts and where everyone's at later this week :)

Dan Ross
@btnpushnmunky
May 12 2015 19:01
Hi there. I have the following code to get a file input tag file_input = Element.find("#fileInput"). I'm using opal-jquery as well as just opal. I can't figure out a way to get the file being uploaded. I'm trying to read a file via the FileReader. Any help would be appreciated.
Forrest Chang
@fkchang
May 12 2015 21:45
@jaredcwhite submitted post via submit-link --- 7.5 hours before the deadline!
Rick Carlino
@RickCarlino
May 12 2015 21:45
. #livingOnTheEdge #YOLO
Rick Carlino
@RickCarlino
May 12 2015 23:16
Has anyone dealt with class level instance var issues in Opal before?
opal/opal#849
Jared White
@jaredcwhite
May 12 2015 23:39
@RickCarlino Replied -- it may be a weird blank char or something, I'm not sure. I got it working just by retyping in the Try code box.
@fkchang :clap:
Rick Carlino
@RickCarlino
May 12 2015 23:41
whoah...
Yep. Cool. Thanks @jaredcwhite
Vais Salikhov
@vais
May 12 2015 23:55
@fkchang wow re what_methods, didn't know that even existed, cool! Re being able to lookup code/comments, at the risk of this starting to sound like the beginning of the stone soup story, I think the next step is for you to express your vision for this capability as a set of executable failing specs :wink2: Then someone could just make those specs pass, and... the end. This would really take a lot of guesswork (and design work) out of it. I know I would never have gotten involved with Opal if not for rubyspec. It made it a no-brainer to contribute.