These are chat archives for opal/opal

2nd
Apr 2015
Kurtis Rainbolt-Greene
@krainboltgreene
Apr 02 2015 02:48
I need a name for my frontend framework.
Thinking "reflex"
Elia Schito
@elia
Apr 02 2015 08:27
@krainboltgreene you should reflect on that… :P
@krainboltgreene have any feature list for it? just curious
Kurtis Rainbolt-Greene
@krainboltgreene
Apr 02 2015 08:29
ROM for models, react.rb for views.
Haven't decided router/controller level details.
I think I decided on "reaction".
Donno yet though.
It'll be my first full frontend framework. I know I'll be focusing on HATEOS JSON API support first class.
Elia Schito
@elia
Apr 02 2015 08:31
prefer reflex over reaction
Kurtis Rainbolt-Greene
@krainboltgreene
Apr 02 2015 08:31
With JWT for authentication protocol (maybe).
Kris Leech
@krisleech
Apr 02 2015 08:41
@krainboltgreene we just started using ClojureScript + Reagent (ReactJS), haven't done much for a good experience so far.
Kurtis Rainbolt-Greene
@krainboltgreene
Apr 02 2015 08:49
So basically the clojure of what I'm doing. That's neat!
My friend is writing exjs so he can do the same with elixir.
Kris Leech
@krisleech
Apr 02 2015 08:50
seems blasphemous to talk about this in the Opal channel :)
Elia Schito
@elia
Apr 02 2015 08:51
you two, get out of here :rage1: how you dare!
lol
@krainboltgreene you have a link for exjs?
Kris Leech
@krisleech
Apr 02 2015 08:52
;) we love Opal too
Elia Schito
@elia
Apr 02 2015 08:52
I know I know :D
Kurtis Rainbolt-Greene
@krainboltgreene
Apr 02 2015 08:52
@krisleech: What'd you end up doing for a router? I'm looking at either R3 in pure ruby or maybe ragel, like mongrel did.
I wrote a custom one for shogun.gem, but this is probably going to need to be more robust.
CJ Lazell
@cj
Apr 02 2015 15:03
Is anyone here good at recursive async functions? https://gist.github.com/cj/b01840897c23db634127 what I'm trying to have happen is load all the requires for say list but make sure it loads all the deepest requires first and then all the way back up to the root list and if something else requires the same thing for it to also wait on that promise
I'm offering $150 bounty if anyone can help
Elia Schito
@elia
Apr 02 2015 15:10
@cj a usage example would help i think
CJ Lazell
@cj
Apr 02 2015 15:17
@elia the gists contains the requires content requires.rb and the method called javascript. I can give you remote access to a working example if you like
Ryan Stout
@ryanstout
Apr 02 2015 17:12
@adambeynon @elia how are you? I've been thinking about trying to add an extension to opal to support async/await similar to how es7 does. (Basically, await is a keyword that gets passed a promise, then all code below it in the AST is put inside of the promise. And async just wraps the results of a method in a promise) async/await basically lets you write code that looks synchronous. And I was thinking, it would be easy enough to create a similar library on the server that uses fibers to accomplish the same interface. Any thoughts on the best way for me to get started? I think I could implement async as a method that takes in the symbol returned from def and then wraps that method. But for await, it would have to become a language keyword. I can figure out how to do the AST transforms, I'm just not sure the best way to extend opal so it won't need many changes when opal changes. Any thoughts?
Forrest Chang
@fkchang
Apr 02 2015 20:31
@adambeynon @elia anything for updating to 0.8.0.dev stuff in head? I did it and my app seems to have a problem requiring classes I've defined
i.e.
NameError: uninitialized constant Object::Document
(anonymous function)kernel.rb:502
$const_missingmodule.rb:264
getruntime.js:75
(anonymous function)products:1019
global codeproducts:1026
products:1052