meh` changed the topic of #opal to: http://opalrb.org - Ruby runtime and library on top of Javascript | 1.0.0 is near | This channel is logged at https://botbot.me/freenode/opal/
DouweM has quit [Ping timeout: 260 seconds]
RoxasShadowRS has quit [Read error: Connection reset by peer]
Noldorin has quit []
dimaursu16 has quit [Ping timeout: 248 seconds]
dimaursu16 has joined #opal
meh` has quit [Read error: Operation timed out]
ryanstout has quit [Quit: ryanstout]
dleedev has quit [Quit: dleedev]
dleedev has joined #opal
dleedev has quit [Read error: Connection reset by peer]
kludge` has quit [Ping timeout: 246 seconds]
kludge` has joined #opal
elia has joined #opal
dimaursu16 has quit [Read error: Operation timed out]
dimaursu16 has joined #opal
meh` has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
RoxasShadowRS has joined #opal
elia has quit [Ping timeout: 248 seconds]
elia has joined #opal
<meh`> adambeynon, I think I found a const bug
<meh`> adambeynon, no wait, disregard that
<meh`> it's all right
<elia> meh`, you give a name to these volatile bugs
<adambeynon> lol
<elia> adambeynon, saw the todomvc submission?
<adambeynon> elia: I did. didnt have a chance to follow up the test fails though
<adambeynon> think its just the chrome driver acting up?
<elia> adambeynon, seems just the infamous chrome driver bug discovered by meh`
<adambeynon> okies. I will have a try with it later as well. (I havent installed chromedriver to date, so cant test it quite yet)
<adambeynon> also, I notice that they encourage bower for the packages
<adambeynon> I think publishing all gems to bower on release is a decent idea..
[o__o] has quit [Remote host closed the connection]
[o__o] has joined #opal
fkchang has joined #opal
<elia> adambeynon, don't bother trying (for meh` 's sake)
Noldorin has joined #opal
ryanstout has joined #opal
elia has quit [Ping timeout: 260 seconds]
dleedev has joined #opal
<dleedev> Hi, is there a way to compile my multiple opal files into 1 compiled JS script using sprockets?
<fkchang> dleedev: yes, check out these rake tasks https://github.com/fkchang/opal-irb/blob/master/Rakefile#L22
<dleedev> fkchang: thanks, will take a look
<dleedev> wow, 753K!
<dleedev> what are some good ways to shrink this?
<fkchang> u could add a task to minify it
<meh`> dleedev, remember to gzip
<meh`> it looks huge, but gzipped it becomes nothing
<ryanstout> dleedev: just curious, what is it that is 753k?
<dleedev> 76K gzipped
<dleedev> It's my application + opal-browser + opal
<ryanstout> are you requiring opal-parser or opal-orb?
<dleedev> my application is only a few hundred lines of ruby
<meh`> ryanstout, opal-browser gets pretty big
<dleedev> no opal-parser nor opal-orb
<meh`> but most of the code is basically opal compiled boilerplate
<dleedev> yeah
<meh`> which is why it gets so small
<ryanstout> ah, I haven't used opal-browser, why is it so large?
<meh`> ryanstout, it's many files
<dleedev> I was hoping opal or closure-compiler could prune unreached code, but that doesn't seem to be the case
<meh`> so more boilerplate
<meh`> dleedev, sadly there's no way
<meh`> Ruby is all runtime
<meh`> you can't even optimize 2 + 2 in Ruby
<ryanstout> meh`: so is a lot of it the wrapping closure and var setup for each file?
<meh`> ryanstout, yes
<dleedev> meh`: but unreached code could be pruned, if we ignore send and eval, right?
<meh`> dleedev, there wouldn't be much unreached code
<dleedev> for example, I might never use some methods in Array or Map or most of opal-browser
<meh`> and since everything is a method call on an object, there's nothing a compiler can do
<meh`> dleedev, yes, but how would it know?
<dleedev> if we ignore send and eval, then we can omit compiling methods whose names are never mentioned
<dleedev> just a small example
<dleedev> I guess the best approach for now is to require piece-meal
<dleedev> so instead of requiring all of opal-browser, just requiring parts that I need
<meh`> dleedev, it already tries to be as cherry-pickable as possible
<meh`> but yeah, you can check what browser.rb does
<meh`> I could reduce the default stuff even further
<meh`> which is basically events, DOM and CSS
<dleedev> yeah, for example, I don't use the CSS part at all
<dleedev> it would be cool if each file required all its dependencies
<dleedev> in that case, one could simply require the file that is needed
<dleedev> I'm not sure if this is possible with corelib, though
<meh`> dleedev, they already do
<meh`> dleedev, but yeah, I'll think about reducing the default stuff
<dleedev> what's the state of opal, btw?
<dleedev> is there a list of TODOs?
dleedev has quit [Read error: Connection reset by peer]
dleedev has joined #opal
DrShoggoth has joined #opal
Noldorin has quit []
fkchang has quit [Ping timeout: 250 seconds]
lectrick has quit [*.net *.split]
antonishen has quit [*.net *.split]
lectrick has joined #opal
DrShoggoth has quit [Remote host closed the connection]
antonishen has joined #opal
DrShoggoth has joined #opal
fkchang has joined #opal
dleedev has quit [Remote host closed the connection]
dleedev has joined #opal
dleedev has quit [Remote host closed the connection]
Noldorin has joined #opal
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
DrShoggoth has quit [Quit: Leaving]
DrShoggoth has joined #opal
GitHub184 has joined #opal
<GitHub184> opal/master c4ea8cd meh.: Merge pull request #504 from chesterbr/array_resize_with_range...
GitHub184 has left #opal [#opal]
<GitHub184> opal/master 5eb7d0d Carlos Duarte do Nascimento (Chester): Fixing array expansion when triggered by attribution indexed by range
<GitHub184> [opal] meh pushed 2 new commits to master: http://git.io/ZBOuRw
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/18617525
<travis-ci> [travis-ci] opal/opal#1740 (master - c4ea8cd : meh.): The build passed.
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/18617525
<travis-ci> [travis-ci] opal/opal#1740 (master - c4ea8cd : meh.): The build passed.
travis-ci has left #opal [#opal]
dleedev has joined #opal
DrShoggoth has quit [Quit: Leaving]