e_dub has quit [Quit: It's a hard knock life]
fkchang has quit [Ping timeout: 248 seconds]
ryanstout has joined #opal
ryanstout has quit [Quit: ryanstout]
adambeynon has joined #opal
ryanstewart2 has quit [Read error: Connection reset by peer]
ryanstewart has joined #opal
elia has joined #opal
<
elia>
adambeynon, hi there
<
elia>
I think we need a better way of doing this:
<
elia>
(I liked RbClass < `JsClass` btw)
kludge` has quit [Ping timeout: 264 seconds]
kludge` has joined #opal
<
adambeynon>
elia: should we be including Kernel methods there as well?
<
adambeynon>
elia: actually no, that can be optional
GitHub99 has joined #opal
GitHub99 has left #opal [#opal]
<
GitHub99>
opal-rspec/master 5f7467e Adam Beynon: Use custom TextFormatter and Runner
<
adambeynon>
elia: also, just need a quick fix on hooks (before/after) and rspec should be ready to use soon..
<
elia>
adambeynon, supercool!
<
elia>
adambeynon, an alternative syntax could involve Native::Class.new(`JsClass`) or even Native(`JSClass`) or something on the same line…
hermeht has joined #opal
<
elia>
hermeht, any thoughts on the native class syntax?
<
elia>
hermeht, about codemotion I was thinking about live coding a chrome packaged app with lissio
<
hermeht>
elia, I liked class Foo < `Bar`
<
elia>
hermeht, the only downside is that looks like you're creating a separated class when in reality you're modifying the existing prototype
<
elia>
but of course that could be explained
<
hermeht>
class `Bar`
<
hermeht>
but that's probably going to break many tools
<
adambeynon>
I personally vote for brining back class Foo < `Bar`
<
hermeht>
if that doesn't break anything
<
hermeht>
it shouldn't
<
hermeht>
it doesn't
<
hermeht>
bring it back!
<
elia>
adambeynon, hermeht: agreed then
hermeht has quit [Quit: brb]
meh` has joined #opal
<
elia>
bye hermeht!
meh` has quit [Client Quit]
hermeht has joined #opal
<
elia>
hermeht, welcome back!
<
hermeht>
I think what the DELL fag made me do fixed it
<
hermeht>
oh well, jokes on them
<
elia>
hermeht, so, what was wrong with DELL?
<
hermeht>
they're failing
<
elia>
with the pc, I mean
<
hermeht>
the touchpad is broken
<
hermeht>
or so I thought
<
hermeht>
it moves the pointer by itself
<
hermeht>
and moves it down to the left continuosly
<
hermeht>
basically unusable
<
hermeht>
if I werent a CLIfag the laptop would be unusable
<
hermeht>
it still does it, but way less than before
<
hermeht>
he made me remove the keyboard to see if the touchpad worked
<
hermeht>
but it didn't work
<
hermeht>
now I put it all back, and it's usable again
<
hermeht>
the warranty is ending in 6 days anyway
<
hermeht>
new touchpad and keyboard
<
hermeht>
elia, what's a chrome packaged app?
<
adambeynon>
zooom, we have before/after working in rspec now!
GitHub140 has joined #opal
GitHub140 has left #opal [#opal]
<
GitHub140>
opal-rspec/master bc4680f Adam Beynon: A few fixes to support before/after/around hooks in specs
<
adambeynon>
elia, hermeht: one slight problem with "class Foo < `Bar`" is that we cant inherit them, if that does matter
<
adambeynon>
If you have function A () {}, and function B(){}, any ruby methods you add to A you might want B to also get
<
elia>
adambeynon, so in "class Foo < `Bar` end; class Baz < Foo end" Baz won't be a subclass?
<
adambeynon>
elia: I've just realised what Im saying is completely wrong
<
adambeynon>
ignore me :D
<
adambeynon>
the only thing to note, is that "class RubyA < `A`"
<
adambeynon>
Opal.RubyA !== A
<
adambeynon>
Ruby classes are no longer implemented as just a function
<
adambeynon>
which, doesnt matter too much, but it is worth noting
<
adambeynon>
unless, we handle these bridged classes differently
<
adambeynon>
... back
<
hermeht>
well, that was faster than usual ( ≖‿≖)
<
hermeht>
adambeynon, when are we getting a fully working Enumerable module?
<
hermeht>
it's among the most important parts of Ruby
<
adambeynon>
hermeht: I will make fixing the broken methods a priority
<
adambeynon>
(some should fully work though, I think)
<
adambeynon>
all? and any? should be ok
<
hermeht>
yeah, most are ok
<
hermeht>
but some have subtle bugs
<
adambeynon>
hermeht: ok, I will get onto that
GitHub132 has joined #opal
GitHub132 has left #opal [#opal]
<
GitHub132>
opal-rspec/master 4a8b560 Adam Beynon: Use custom formatter for results and configure rspec to use should and expect syntax
<
adambeynon>
7 very small fixes needed in opal to let rspec work properly
<
adambeynon>
I will fix enumerable first though ;)
<
hermeht>
is our current Array#flatten broken then?
<
adambeynon>
hermeht: yeah, It should try and convert non-arrays using #to_ary
<
hermeht>
adambeynon, will you try getting the first two merged in?
<
adambeynon>
hermeht: I can try, but whether they do or not is a different thing
<
hermeht>
but they should seeing how immutable strings are floating around as an idea
fkchang has joined #opal
<
adambeynon>
hermeht: which was the Enumerable method which wasnt working for you?
<
hermeht>
adambeynon, #detect
<
hermeht>
we need more magic
<
hermeht>
MORE MAGIC
<
hermeht>
adambeynon, magic
<
adambeynon>
lol, abracadabra?
<
adambeynon>
hermeht: would a is_truthy(obj) runtime helper be a bad idea?
<
adambeynon>
for all if/while/unless statements to us
<
adambeynon>
in terms of, would a moden js engine optimize it out?
<
adambeynon>
modern*
<
adambeynon>
euggh, cant type
GitHub6 has joined #opal
GitHub6 has left #opal [#opal]
<
GitHub6>
opal/master 0f3f947 Adam Beynon: Fix Array#flatten to try and convert values using to_ary
elia has quit [Ping timeout: 248 seconds]
GitHub18 has joined #opal
GitHub18 has left #opal [#opal]
<
GitHub18>
opal-rspec/master 04592d6 Adam Beynon: Use updated Opal
travis-ci has joined #opal
<
travis-ci>
[travis-ci] opal/opal#1092 (master - 0f3f947 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
<
hermeht>
adambeynon, dunno
<
hermeht>
we
*could* bring back constant expansion ( ≖‿≖)
<
hermeht>
Opal.truthy?
<
hermeht>
Opal.native?
<
hermeht>
adambeynon, I have in mind something
*crazy*
<
hermeht>
crazy I say
<
adambeynon>
crazy is good :D
<
hermeht>
adambeynon, the idea is
<
hermeht>
bundling in Lissio a wrapper for Opal::Server
<
hermeht>
I don't know why I didn't think about it sooner
<
hermeht>
although that does mean a requirement on HTML5 history bullshizzle
<
hermeht>
but meh, I'll get to work on it :3
<
hermeht>
we have the technology (cit)
<
hermeht>
fkchang, what do you think about ^?
<
adambeynon>
hermeht: that would actually be awesome
taye has joined #opal
elia has joined #opal
<
hermeht>
Opal::Server code is awful
<
hermeht>
you're all bad and should feel bad (╯°□°)╯︵ ┻━┻
taye has left #opal [#opal]
<
fkchang>
hermeht: sounds neat
adambeynon has joined #opal
elia has quit [Read error: Connection reset by peer]
elia has joined #opal
hermeht has quit [Quit: Solitude is bliss.]
meh` has joined #opal