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
grios has quit [Ping timeout: 245 seconds]
grios has joined #opal
barry__ has quit [Remote host closed the connection]
barry__ has joined #opal
barry__ has quit [Ping timeout: 272 seconds]
DrShoggoth has quit [Quit: Leaving]
barry__ has joined #opal
barry__ has quit [Remote host closed the connection]
barry__ has joined #opal
barry__ has quit [Remote host closed the connection]
barry__ has joined #opal
barry__ has quit [Ping timeout: 272 seconds]
barry__ has joined #opal
barry__ has quit [Ping timeout: 272 seconds]
fkchang has quit [Ping timeout: 260 seconds]
barry__ has joined #opal
barry__ has quit [Ping timeout: 272 seconds]
harrow has quit [Ping timeout: 248 seconds]
harrow has joined #opal
e_dub has quit [Ping timeout: 240 seconds]
barry__ has joined #opal
barry__ has quit [Ping timeout: 272 seconds]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
ylluminate` has joined #opal
ylluminate` has quit [Read error: Connection reset by peer]
e_dub has quit [Read error: Connection reset by peer]
ylluminate has quit [Ping timeout: 245 seconds]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
ryanstout has quit [Quit: ryanstout]
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
barry__ has joined #opal
barry__ has quit [Ping timeout: 272 seconds]
barry__ has joined #opal
e_dub has joined #opal
dfranciosi has joined #opal
marcandre has quit [Remote host closed the connection]
barry__ has quit []
dfranciosi has quit [*.net *.split]
DouweM has quit [*.net *.split]
aflatter has quit [*.net *.split]
grios has quit [*.net *.split]
harrow has quit [*.net *.split]
e_dub has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
brixen_ has quit [*.net *.split]
ryanstewart has quit [*.net *.split]
ivanoats has quit [*.net *.split]
kludge` has quit [*.net *.split]
Todd has quit [*.net *.split]
dfranciosi has joined #opal
e_dub has joined #opal
aflatter has joined #opal
kludge` has joined #opal
ivanoats has joined #opal
Kilo`byte has joined #opal
harrow has joined #opal
ryanstewart has joined #opal
DouweM has joined #opal
Todd has joined #opal
brixen_ has joined #opal
grios has joined #opal
dfranciosi has quit [*.net *.split]
DouweM has quit [*.net *.split]
aflatter has quit [*.net *.split]
grios has quit [*.net *.split]
harrow has quit [*.net *.split]
e_dub has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
brixen_ has quit [*.net *.split]
ryanstewart has quit [*.net *.split]
ivanoats has quit [*.net *.split]
kludge` has quit [*.net *.split]
Todd has quit [*.net *.split]
elia has joined #opal
dfranciosi has joined #opal
e_dub has joined #opal
DouweM has joined #opal
harrow has joined #opal
ryanstewart has joined #opal
aflatter has joined #opal
kludge` has joined #opal
Kilo`byte has joined #opal
brixen_ has joined #opal
grios has joined #opal
ivanoats has joined #opal
Todd has joined #opal
grios has quit [Ping timeout: 240 seconds]
grios has joined #opal
kludge` has quit [Ping timeout: 246 seconds]
kludge` has joined #opal
GitHub123 has joined #opal
<GitHub123> opal-playground/master e54fc60 Adam Beynon: Simple rspec demo
GitHub123 has left #opal [#opal]
<GitHub123> [opal-playground] adambeynon pushed 1 new commit to master: http://git.io/WMRTKw
GitHub84 has joined #opal
<GitHub84> [opal-playground] adambeynon pushed 1 new commit to gh-pages: http://git.io/nIDGTQ
GitHub84 has left #opal [#opal]
<GitHub84> opal-playground/gh-pages f842adf Adam Beynon: Site updated to e54fc60
<adambeynon> elia: did you see the tweet r.e. metacasts?
<elia> adambeynon, yeah, cool stuff
<elia> adambeynon, we should start writing a book for pragprogs btw :P
<adambeynon> elia: lol :D
<adambeynon> elia: been working on this as well (demo for a colleague): http://opal.github.io/opal-playground/rspec/
<elia> adambeynon, saw that, hoped for a published version on gh pages :)
<elia> lacked time to try it locally
<adambeynon> gives a nice overview without installing it
<adambeynon> got the rspec demo working
<adambeynon> might try and have a hosted asciidoc demo as well
meh` has joined #opal
elia has quit [Quit: (IRC Client: textualapp.com)]
grios has quit [Quit: grios]
grios has joined #opal
e_dub has quit [Ping timeout: 260 seconds]
elia has joined #opal
GitHub32 has joined #opal
<GitHub32> opal/master deb05d4 Adam Beynon: Fix Compiler#error() to produce correct line numbers on dyanimc require...
GitHub32 has left #opal [#opal]
<GitHub32> [opal] adambeynon pushed 1 new commit to master: http://git.io/ktVNDw
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1611 (master - deb05d4 : Adam Beynon): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/15643243
travis-ci has left #opal [#opal]
GitHub62 has joined #opal
<GitHub62> opal/master 1f6506b Adam Beynon: Add simple specs for DependencyResolver
<GitHub62> [opal] adambeynon pushed 1 new commit to master: http://git.io/Gi0f4A
GitHub62 has left #opal [#opal]
elia has quit [Quit: Computer has gone to sleep.]
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/15644383
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] opal/opal#1612 (master - 1f6506b : Adam Beynon): The build passed.
elia has joined #opal
<meh`> adambeynon, ping
<adambeynon> meh`: sup
<meh`> adambeynon, I think it would be valuable to consider null and undefined as false
<adambeynon> meh`: I think opal libs should be doing as much as possible to stop null and undefined from leaking into ruby code
<adambeynon> meh`: unless of course if opal ever goes back to nil as null ;)
<meh`> no, I don't want nil as null
<meh`> but I'd like null and undefined to be false
<elia> me too
<meh`> if value = `foo.bar`
<meh`> that's a very common pattern
<meh`> and I can't do it like that
<meh`> because foo.bar can be undefined
<elia> and also agree that libs should try hard to not leak them
<meh`> yeah
<meh`> but internally, that's another story
<meh`> adambeynon, so, any change of heart?
<adambeynon> If you are checking to that low level, then I think inline JavaScript is the way to go
<meh`> adambeynon, and how do I do it?
<meh`> if `#{inner = `element.inner_html`} != null`
<meh`> this fails
<meh`> and it's very hard to follow anyway
<adambeynon> meh`: I try to avoid mixing too much ruby and js inside methods
<meh`> I don't see any downside in having null and undefined be falsy
<meh`> that's why I want them to be falsy
<meh`> they are falsy by nature
<meh`> it's just a pain in the ass to have them otherwise
<meh`> it's an optimization I have to do, otherwise I have to use instance_eval
<meh`> which is slow
<adambeynon> why instance_eval?
<meh`> because it's a BasicObject
<meh`> and it doesn't have instance_variable_get
<meh`> adambeynon, really, what's the downside of having null and undefined by falsy?
<meh`> it's just a majestic pain in the ass as it is now
<adambeynon> I dont like the mixing of ruby and js semantics
<adambeynon> like the defined?(`foo`) thing we added
<meh`> and I understand, but we gotta be pragmatic
<meh`> null as nil is only a pain in the ass because it makes code ugly and slow
<meh`> it would be nice, but it's not pragmatic to do
<meh`> null and undefined as falsy eases the pain and won't make the code any uglier or slower than it already is
e_dub has joined #opal
marcandre has joined #opal
<adambeynon> meh`: any "big" changes you would like to see before 0.6.0?
<adambeynon> I know there are still some outstanding github issues, but they all look like minor fixes to me which can be a .patch
<meh`> adambeynon, mmh
<meh`> adambeynon, internal properties cleanup?
<meh`> that's the only major thing I'd like to have
<meh`> the rest I agree, they're just bugfixes
<adambeynon> wow, I always assumed Struct used ivars - apparently its a feature that it doesnt
<meh`> really?
<meh`> don't we use ivars?
<adambeynon> yeh, we use ivars currently
<adambeynon> according to rubyspec, Struct doesnt use ivars
<meh`> open an issue, I'll fix it, unless you want to do it
<adambeynon> meh`: Im going through it now, so I can do it
<meh`> roger
<adambeynon> meh`: btw, this is the demo rspec page I came up with
<adambeynon> very rough, but the basic ideas there
<meh`> yeah, we need some fancy graphics
<meh`> adambeynon, there's a small problem with the new rspec formatter
<meh`> and async specs
GitHub14 has joined #opal
<GitHub14> opalrb.org/master ff19e8e Adam Beynon: Update docs ready for v0.6.0
GitHub14 has left #opal [#opal]
<GitHub14> [opalrb.org] adambeynon pushed 1 new commit to master: http://git.io/INWRvA
<adambeynon> meh`: wrong indentation?
<meh`> adambeynon, no, repeated sections
<adambeynon> ah, it did that before as well, didnt it?
<adambeynon> It runs all sync specs in turn, then all async specs
elia has quit [Ping timeout: 248 seconds]
<meh`> adambeynon, yeah probably
<meh`> can't we fix it with some DOM magic?
<adambeynon> possibly
<adambeynon> tricky though
<meh`> I have the feeling deferred shit is broken
<meh`> mh
<meh`> yep, as I suspected
<meh`> dam
<meh`> need a smoke and a coffee
ylluminate has joined #opal
<ylluminate> adambeynon: hey rather than making opal-playground, why not fork https://github.com/remy/jsbin ?
<meh`> sounds harder to adapt than to make from scratch
<ylluminate> well, the utility meh` is far greater
<ylluminate> and it also increases, dramatically, exposure
<ylluminate> as i believe it will be easy to get it pushed into the main core
<ylluminate> certainly a win-win to just add it as it already supports multiple languages
<ylluminate> already has coffeescript, typescript and so forth
<meh`> I see
<meh`> sounds like a good idea then
barry__ has joined #opal
grios has quit [Ping timeout: 260 seconds]
grios has joined #opal
_whitelogger_ has joined #opal
_whitelogger has quit [Ping timeout: 252 seconds]
e_dub has quit [*.net *.split]
dfranciosi has quit [*.net *.split]
marcandre has quit [*.net *.split]
DouweM has quit [*.net *.split]
aflatter has quit [*.net *.split]
meh` has quit [*.net *.split]
harrow has quit [*.net *.split]
kludge` has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
grios has quit [*.net *.split]
barry__ has quit [*.net *.split]
brixen_ has quit [*.net *.split]
ryanstewart has quit [*.net *.split]
ivanoats has quit [*.net *.split]
Todd has quit [*.net *.split]
ylluminate has quit [*.net *.split]
grios has joined #opal
ylluminate has joined #opal
marcandre has joined #opal
e_dub has joined #opal
barry__ has joined #opal
aflatter has joined #opal
Kilo`byte has joined #opal
ivanoats has joined #opal
kludge` has joined #opal
brixen_ has joined #opal
harrow has joined #opal
Todd has joined #opal
meh` has joined #opal
dfranciosi has joined #opal
ryanstewart has joined #opal
barry__ has quit [Remote host closed the connection]
dfranciosi has quit [Remote host closed the connection]
barry__ has joined #opal
barry__ has quit [Remote host closed the connection]
ryanstout has joined #opal
barry__ has joined #opal
barry__ has quit [Remote host closed the connection]
grios_ has joined #opal
fkchang has joined #opal
grios has quit [Ping timeout: 264 seconds]
grios_ is now known as grios
barry has joined #opal
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Remote host closed the connection]
<adambeynon> ylluminate: opal-playground is going to be more like the rspec/asciidoctor demos
<adambeynon> if we can integrate with jsbin, then that will be very ideal
<meh`> adambeynon, it seems to be very feasable
<meh`> adambeynon, they have an option for processing and other libraries
<meh`> as long as we provide built gems
<meh`> which blends nicely with my opal-gem proposal :)
<adambeynon> the dependencies bit is still a tad tricky
<meh`> adambeynon, it isn't!
<meh`> but I think I didn't tell you the solution I had in mind ◕ ◡ ◔
<meh`> basically
<meh`> we know if the paths are an stdlib or part of another gem
<meh`> we just output the various parts separately
<meh`> each stdlib in its own file, and its dependant gem in its own file
<meh`> we know it's part of another gem because there's an Opal.use_gem somewhere
grios has quit [Read error: Connection reset by peer]
grios has joined #opal
<adambeynon> yes, but then having to reassemble x-number of libs in the right order in the html file..
<adambeynon> unless we manually have some json manifest to keep track
<adambeynon> the gems look after themselves, but stdlib could be awkward
<meh`> adambeynon, we can output the html as well
<adambeynon> what is the use case for this?
<meh`> adambeynon, well, in something like jsbin you need to require the single things
<meh`> adambeynon, how does the __DATA__ stuff work?
<adambeynon> If you have an __END__ part at the end of the file, then DATA.read will give it to you as a string
<meh`> adambeynon, so it's per-file?
<adambeynon> meh`: yep, per file. If there isn't an end block then DATA just acts like a normal ruby constant
<meh`> adambeynon, awesome :)
<meh`> I can use it then :D
<adambeynon> meh`: it is really useful actually. I find it useful for tests to store a long string of HTML for testing
<meh`> adambeynon, I'm going to do something funnier instead
<adambeynon> meh`: yeah? :)
<meh`> adambeynon, yeah, add markdown support to lissio
<meh`> adambeynon, I'll base64 encode one of those simple markdown javascript libraries
<meh`> and eval it when requiring it
<meh`> :>
<adambeynon> meh`: I was trying to work out if there was a way to handle erb/haml content at compile time
<adambeynon> not sure how though :/
<meh`> adambeynon, I was wondering, is there any way to remove the need to do Opal.use_gem?
<adambeynon> meh`: not really. Otherwise all gems and ruby stdlibs will clash in our paths
<meh`> adambeynon, right
<meh`> adambeynon, I was thinking about doing what I started looking into opal in the beginning
<meh`> greasemonkey scripts
DouweM has joined #opal
grios has quit [Ping timeout: 252 seconds]
grios has joined #opal
meh` has quit [Ping timeout: 250 seconds]