adambeynon 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 http://irclog.whitequark.org/opal
ryanstout has quit [Quit: ryanstout]
fkchang has quit [Ping timeout: 272 seconds]
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Ping timeout: 245 seconds]
ryanstout has joined #opal
meh` has quit [Ping timeout: 240 seconds]
_whitelogger_ has joined #opal
barry has joined #opal
barry has quit [Ping timeout: 252 seconds]
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
ryanstout has quit [Client Quit]
barry has joined #opal
barry has quit [Read error: Operation timed out]
fkchang has joined #opal
fkchang has quit [Ping timeout: 272 seconds]
marcandre has quit [Read error: Connection reset by peer]
marcandre has joined #opal
barry has joined #opal
barry has quit [Ping timeout: 260 seconds]
epitron has joined #opal
marcandre has quit [Remote host closed the connection]
marcandre has joined #opal
_whitelogger has joined #opal
Liothen has joined #opal
brixen has joined #opal
ivanoats has joined #opal
kartouch has joined #opal
kludge` has joined #opal
Todd has joined #opal
ryanstewart2 has joined #opal
harrow has joined #opal
AndrzejKrzywda has joined #opal
Kilo`byte has joined #opal
yazgoo_ has joined #opal
barry has joined #opal
DouweM has joined #opal
epitron has joined #opal
kludge` has quit [Ping timeout: 246 seconds]
kludge` has joined #opal
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Ping timeout: 265 seconds]
barry has joined #opal
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Ping timeout: 265 seconds]
barry has joined #opal
GitHub152 has joined #opal
<GitHub152> [opal-jquery] DevL opened pull request #32: Add 2.0.0 and 2.1.0 to Travis builds. (master...master) http://git.io/nPL53g
GitHub152 has left #opal [#opal]
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Ping timeout: 265 seconds]
barry has joined #opal
meh` has joined #opal
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Ping timeout: 260 seconds]
<meh`> adambeynon, ping
DMDaMan has joined #opal
<adambeynon> meh`: yo
<meh`> adambeynon, I contacted the browserstack guys, to start testing opal and opal-browser in all the browers we want to support, they want us to link to browserstack on the project page and website to use it for free tho, anything against it?
<adambeynon> meh`: if it saves us having to pay $39/month, then I guess thats fair enough :P
<meh`> adambeynon, it does, I'll create the account, then we'll figure out where to put it
<adambeynon> meh`: it is worth noting that IE 6/7/8 didnt run the specs last time I tried
<adambeynon> too many specs and it timed out
<meh`> adambeynon, I'll try to figure out something
<meh`> adambeynon, it's more important for opal-browser anyway
<meh`> and it doesn't have that many specs
<adambeynon> meh`: agreed
<adambeynon> if opal-browser runs on those browsers, then we know the runtime all works fine
<meh`> indeed
<adambeynon> meh`: the Time.parse(str) bug must be recent. I have an app that is only just now breaking with the changes
<adambeynon> 0.5.x was fine
<adambeynon> 0.5.0*
<adambeynon> I upgraded to 0.5.5 which broke it
<adambeynon> actually scrap that
<adambeynon> its the json
<adambeynon> the update to rails is pushing different json
<meh`> adambeynon, http://sprunge.us/HhBS when promises DO make a lot of difference
elia has joined #opal
<adambeynon> meh`: looks really nice. Going to put them in opal-jquery next week too
<adambeynon> meh`: the api worked out really nicely as well
<adambeynon> for the promises
<meh`> yeah
<meh`> I still have to add something from the Promise/A+ proposal
<meh`> which is progress promises
<meh`> very useful for http stuff
<meh`> like downloading/uploading
<adambeynon> (Y) sounds good
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
ryanstout has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
marcandre has joined #opal
<adambeynon> meh`: should a promise always be resolved?
<adambeynon> e.g. If I have a `EditUserView.new(user).then { ... }`
<adambeynon> but the user clicks 'cancel'
<adambeynon> is it bad practice just to ignore the promise, and never resolve it?
<adambeynon> rejecting it seems an even worse idea
<adambeynon> as its not really an error, kind of
<meh`> adambeynon, I'd reject it
<meh`> or send a progress when it's on
<meh`> but sincerely, I don't use promises for events
<adambeynon> meh`: If I dont register an `#error()` block, is it just ignored if the promise is rejected?
<meh`> yes
<meh`> the promise is realized as rejected
<meh`> the then blocks after it won't be called
<meh`> if you register a #rescue in the chain
<meh`> it will be called with the error
<adambeynon> woo, it works. promises are epic
<meh`> indeed
barry has joined #opal
barry has quit [Read error: Connection reset by peer]
marcandre has quit [Remote host closed the connection]
DrShoggoth has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
GitHub171 has joined #opal
GitHub171 has left #opal [#opal]
<GitHub171> opal/master bafc36a meh: Fix Enumerable#each_slice yielding
<GitHub171> [opal] meh pushed 1 new commit to master: http://git.io/EmGMfA
<ryanstout> hey, can I ask you guys a question not related to opal? I need to redo my handlebars type parser to allow some things that aren't html in it. Is using a context free grammar a bad idea for html? I'm not worried about fixing things like missing close tags. (so assume "prefect" html)
<ryanstout> I'm new to the whole CFG thing and I keep running into String is not in the language (currently trying out https://github.com/chriswailes/RLTK)
wsirc_7043 has joined #opal
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/16380869
<travis-ci> [travis-ci] opal/opal#1659 (master - bafc36a : meh): The build passed.
travis-ci has left #opal [#opal]
<adambeynon> ryanstout: not tried to parse html before, but, using a CFG seems like it would be really tricky
<adambeynon> ryanstout: HTMLbars might be a good place to start, which probably has similar syntax requirements as your language did
<ryanstout> yea, I'm stuck at just parsing out the tag name and attributes, hehe. (but its new to me)
<ryanstout> htmlbars looks interesting, but this is for my backend component (in MRI/Jruby, etc..), so a ruby solution would be better.
<ryanstout> I guess if you have one sec, do you have any idea why something like: production(:tag) do
<ryanstout> clause('OPEN_TAG attributes CLOSE_TAG') { |name, attributes, _| Tag.new(name, attributes) }
<ryanstout> end
<ryanstout> doesn't work?
<ryanstout> it works without the CLOSE_TAG part
<ryanstout> (and if I don't pass in a close tag from the lexer)
<adambeynon> ryanstout: what grammar/compiler thing is that for?
<ryanstout> its a LALR(1)/GLR parser
<ryanstout> should be similar to RACC
<adambeynon> ahh I see. yes, just a slightly nicer syntax to deal with it :)
<ryanstout> yea
<adambeynon> give me 10 mins and I will have a look through
<ryanstout> thanks so much
<ryanstout> sorry, I wasn't sure who to ask, I don't really know anyone who knows this stuff
<adambeynon> ryanstout: what error does it give you with the CLOSE_TAG?
<ryanstout> RLTK::NotInLanguage: String not in language.
<ryanstout> unfortunately thats all it says
<ryanstout> adambeynon: gotta run, thanks anyway. I'll probably just come back to it later.
ryanstout has quit [Quit: ryanstout]
wsirc_7043 has quit [Remote host closed the connection]
wsirc_2031 has joined #opal
DouweM has quit [Read error: Connection reset by peer]
DMDaMan has left #opal ["Textual IRC Client: www.textualapp.com"]
DMDaMan has joined #opal
<DMDaMan> HI all!
DMDaMan has quit [Quit: Textual IRC Client: www.textualapp.com]
DMDaMan has joined #opal
<DMDaMan> Greets all
<DMDaMan> Any links on relative performance of opal vs handcoded JS?
<meh`> DMDaMan, sadly not yet
<meh`> DMDaMan, but in my projects there are no perceptible slowdowns
<meh`> DMDaMan, the thing is, synthetic benchmarks about speed are kind of pointless when it comes to browsers, when the actual overhead is internal DOM handling and the like
<DMDaMan> Makes sense… but I live by the
<DMDaMan> eeverything nice has a price rule!
<meh`> well of course, but the only way to know if it's feasable is to test for your requirements
<DMDaMan> You are right… just checking to see if any reason not to proceed with a small pilot.
<meh`> we have stuff in production using opal
<DMDaMan> Much obliged --- off to work
DMDaMan has left #opal ["Textual IRC Client: www.textualapp.com"]
<meh`> adambeynon, can you give some super priority to fixing the a[b] += c regression please?
<meh`> it's extremely annoying
elia has joined #opal
<adambeynon> meh`: try and look at it in next few days
<adambeynon> meh`: you sure += is broken too?
<meh`> yes
<adambeynon> meh`: looks like the compiler is rewriting all the op_asgns to `+=`
<adambeynon> http://opal.github.io/opal-playground/rspec/#code:describe%20'Test'%20do%0A%20%20let(%3Ahash)%20%7B%20%7B%20value%3A%2010%20%7D%20%7D%0A%20%20%0A%20%20it%20%22%2B%3D%22%20do%0A%20%20%20%20hash%5B%3Avalue%5D%20%2B%3D%2020%0A%20%20%20%20hash%5B%3Avalue%5D.should%20%3D%3D%2030%0A%20%20end%0A%20%20%0A%20%20it%20%22-%3D%22%20do%0A%20%20%20%20hash%5B%3Avalue%5D%20
<adambeynon> -%3D%204%0A%20%20%20%20hash%5B%3Avalue%5D.should%20%3D%3D%206%0A%20%20end%0Aend
<adambeynon> errrr
<adambeynon> dont think irc likes long links
<meh`> it doesnt :)
<meh`> adambeynon, https://github.com/meh/gwentoo/blob/master/app/component/page/guild.rb in the meantime, awesomeness
<meh`> the result
<adambeynon> nice. Can imagine the code before promises (or what it would have been) would have been awful
<meh`> basically impossible
<meh`> waiting for multiple items is unfeasable if you want to keep sane with callbacks
<meh`> also note the canvas api
<meh`> and the prepare idiom is pretty cool in lissio, I have to find a way to standardize it
<meh`> basically the router calls the prepare of the page component
<meh`> passing the needed parameters
<meh`> and prepare returns a promise that resolves with the component instance or an error
<meh`> so you set the page as loading before starting the prepare
<meh`> and when it's done you just render the page
<adambeynon> meh`: thats really cool actually
<adambeynon> and a really nice usage for a promise
<meh`> yep
<meh`> I need to have a standard Page component
<meh`> since I'm using the same pattern everywhere
<meh`> like I did with Container
<meh`> maybe have something like
<meh`> @page.load Page::Guild, params[:name]
<meh`> and it does its thing
<meh`> adambeynon, https://github.com/meh/gwentoo/blob/master/opal/gwentoo/model/event.rb also some of the power that lissio models and adapters give you
<meh`> had to do some pretty crazy stuff since their JSON API is awful
DouweM has joined #opal