<adambeynon>
_elia: an epic tweet. getting us loads of new followers on twitter :)
<adambeynon>
meh`: have you had any issues with the autoload() stuff?
<adambeynon>
or have you used it
<meh`>
adambeynon, I haven't used it directly
<meh`>
parslet was using it
<adambeynon>
meh`: the only concern would be issues similar to require() calls not being at the top of the file
<adambeynon>
i.e. the file gets loaded before the current file
<adambeynon>
so any subclassing/including may break
<meh`>
adambeynon, yeah
<_elia>
resurrecting the old "file register" would fix that
<meh`>
_elia, it wouldn't
<meh`>
sadly
<_elia>
what i'm missing?
<meh`>
the problem is ordering
<_elia>
I mean if every .rb file registers to –say– Opal.files = []; and then Kernel#require picks them as need shouldn't it work?
<meh`>
ah in that sense?
<meh`>
but then we'd have to disregard sprockets completely
<_elia>
yep, and you also get lazy code loading for free (in the browser)
<_elia>
(yep was not to disregarding sprockets)
marcandre has quit [Ping timeout: 240 seconds]
<_elia>
sprockets job is to concatenate, and that (until we all use spdy/http2) is still useful
<_elia>
also helps in knowing what files to prepare ("register") and make available to the client
<meh`>
yeah but then we'd get different behaviour in sprockets and the other requiring
<_elia>
i would use this requiring always
<meh`>
same, but still
marcandre has joined #opal
<adambeynon>
yes, we would still use sprockets, which then just makes sure we have each file we need unique - we just also add a wrapper around as elia says
<adambeynon>
might not be a bad idea to look at that again
<adambeynon>
rspec is a big pain to get working without a real require()
<_elia>
I also wouldn't exclude a fallback to (a)jax loading
<_elia>
if the file is missing I mean
prakriti has quit [Ping timeout: 265 seconds]
<adambeynon>
_elia: yeap, could work
<adambeynon>
meh`: have you got an example string for that String#scan issue?
fkchang has joined #opal
<adambeynon>
I can't get any strings to infinite loop with it..
<fkchang>
adambeynon: ping
<meh`>
adambeynon, any string looped for me
<meh`>
even 'wut'
<adambeynon>
h fkchang
<adambeynon>
ahh I see. it loops on no match
<adambeynon>
ok
<fkchang>
adambeynon: so I did get opal rspec to work on a rails project, it was a matter of setting up the paths right and a getting the custom sprockets_runner.rb.erb setup correctly
<fkchang>
adambeynon: but I came across another issue, in that I wanted to require a js file that has sprockets commands, and it can't seem to find the files even though I've appended them to the path
<fkchang>
I think there might be another sprockets doing the "sub requires" that need to have paths appended
<adambeynon>
fkchang: it should be able to find them.. the server creates just 1 sprockets instance which takes in all the opal paths
<adambeynon>
how are you adding the paths?
<adambeynon>
append_path() ?
<fkchang>
adambeynon: yes. Interestingingly, it can find the 1st js file, and I can require from opal the files the that the js file calls, but when I include the sprockets file, it choke. i.e I add path foo then require sprockets.js which lives in foo. The first file required by sprockets.js might be bar.js, and the error is can't find bar.js, but I can require 'bar' directly in the opal-rspec file and it works fine. My work around was to
<fkchang>
hand require 'bar' and it works fine
polarsat has joined #opal
<adambeynon>
fkchang: I will have a look into it. sprockets does most of the heavy lifting with the requires, so I think it must be an issue there
<adambeynon>
but I will try and reproduce it and see if its anything I can figure out
polarsat has quit [Remote host closed the connection]
<fkchang>
adambeynon: cool, thx
<_elia>
fkchang, if you happen to add cli access to opal-rspec specs let me know, so that I can add it to opal-rails
<fkchang>
_elia: not clear on what your question is
<_elia>
lol, sorry for my english
<_elia>
fkchang, I want to add the ability to run opal-rspec specs from command line in opal-rails
<fkchang>
_elia: no worries, I'm just not sure what "cli access to opal-rspec" entails
<fkchang>
ah
<fkchang>
i.e. rake spec:opal
<_elia>
yep
<adambeynon>
_elia: phantomjs?
<fkchang>
I got that work working, I need to see how u r doing it in opal-rails
<_elia>
adambeynon, yes
<_elia>
fkchang, good, opal-rails master already uses opal-rspec along with opal@master so I think it's just a metter of configuring the rake task
<fkchang>
_elia: the right combo of rake task, custom sprockets_runner, dunno what index.html, u are using, might be able to reuse that
<_elia>
leaving, cya
<fkchang>
_elia: maybe I can have an example repo up soon. For our usage, we're actually just going to use opal-rspec to test plain js in a rails project, so that project is not using opal rails
<fkchang>
but what I figured out should be easily adapatable to opal-rails
_elia has quit [Ping timeout: 252 seconds]
<meh`>
fkchang, opal-browser is using paggio now
<fkchang>
meh`: neat, I'll have to look at it.
<meh`>
aaand, it doesn't work on shekels
<meh`>
adambeynon, ping
<adambeynon>
yo yo
<meh`>
adambeynon, nothing, forgot to commit a file and thought it was a bug :P
DouweM has quit [Ping timeout: 245 seconds]
<adambeynon>
lol
e_dub has quit [Ping timeout: 240 seconds]
<adambeynon>
meh`: have you had any thoughts on dom binding/updating in paggio?
<meh`>
adambeynon, how do you mean?
<adambeynon>
meh`: e.g. bind value of a div to an attribute on a ruby object
<adambeynon>
instead of having to do manual dom updates
<meh`>
adambeynon, I see that outside of paggio's job
<meh`>
paggio is most and foremost a DSL to generate an intermediate representation of either HTML or CSS
<adambeynon>
yeh, sorry, I meant lissio
<meh`>
oh
<meh`>
I haven't had any thoughts yet, other than it's going to be there
<adambeynon>
meh`: I think a more angularjs/batmanjs/knockoutjs direction is a good idea
<adambeynon>
I have tried to use inline ruby code with haml/erb templates, but of course doing some server side rendering (seo etc) doesn't help too much there
<adambeynon>
although, angularjs ploughs so much stuff into the html code
<adambeynon>
it gets a bit ugly
<adambeynon>
and I thought everyone decided <div onclick="foo"> was a bad idea
<meh`>
well, with lissio the idea is "you're never going to write any CSS or HTML ever again"
loboli has joined #opal
ryanstout has joined #opal
loboli has quit [Remote host closed the connection]
twiddle has joined #opal
twiddle has quit [Remote host closed the connection]
<meh`>
adambeynon, anyway it should be extremely easy to make, I just have to figure out a nice API for it
e_dub has joined #opal
education has joined #opal
ryanstewart has joined #opal
education has quit [Remote host closed the connection]
linavto has joined #opal
linavto has quit [Ping timeout: 248 seconds]
dfranciosi has quit [Remote host closed the connection]
<meh`>
adambeynon, Uncaught NotFoundError: An attempt was made to reference a Node in a context where it does not exist.
<meh`>
I keep getting this error
<meh`>
any clue what it's about?
<meh`>
I know it's caused by the opal-browser/paggio move
<meh`>
but I can't find any resources that aren't about jquery on it
<meh`>
what the fuck
<ryanstout>
meh: I've seen that one a few times, but I can't remember what caused it, sorry. Let me know if you solve it.
<meh`>
ryanstout, I know what it is
<meh`>
but I don't know why it's happening
<meh`>
basically passing a non DOM element to any DOM methods
<meh`>
like appendChild
<meh`>
fuck
<meh`>
triple fuck
<meh`>
adambeynon, ping
<meh`>
nah, I can fix it
<meh`>
maybe
<meh`>
I'll smoke on it
Kilobyte|StupidC is now known as Kilo`byte
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
<meh`>
there we go, everything works now
DouweM has joined #opal
e_dub has quit [Quit: It's a hard knock life]
DouweM has quit [Ping timeout: 264 seconds]
DouweM has joined #opal
<fkchang>
adambeynon: I'm interested on your thoughts on bindings and dom
<ryanstout>
fkchang: did you get a chance to check out that video I posted? shows my approach to bindings/dom.
<fkchang>
I didn't get past minute 6, still on my list of things to do
meh` has quit [Ping timeout: 252 seconds]
elia has joined #opal
_elia has joined #opal
elia has quit [Read error: No route to host]
<_elia>
adambeynon, you think I can extend vienna gemspec to be ok with both, 0.5 and 0.6?
marcandre has quit [Remote host closed the connection]
GitHub65 has joined #opal
<GitHub65>
vienna/master 93f7767 Elia Schito: Broaden opal gemspec requirement to include v0.6