00:18
eventualbuddha has quit [Ping timeout: 240 seconds]
00:21
eventualbuddha has joined #opal
00:30
eventualbuddha has quit [Ping timeout: 248 seconds]
01:22
fkchang has quit [Ping timeout: 245 seconds]
01:29
e_dub has joined #opal
02:59
fkchang has joined #opal
06:06
ryanstout has quit [Quit: ryanstout]
06:09
ryanstout has joined #opal
06:09
ryanstout has quit [Client Quit]
06:35
DouweM has quit [Ping timeout: 240 seconds]
07:09
GitHub33 has joined #opal
07:09
GitHub33 has left #opal [#opal]
07:09
<
GitHub33 >
opal/compiler_nodes 5c6d5d4 Adam Beynon: Add a few more compiler nodes
07:12
travis-ci has joined #opal
07:12
travis-ci has left #opal [#opal]
07:12
<
travis-ci >
[travis-ci] opal/opal#1159 (compiler_nodes - 5c6d5d4 : Adam Beynon): The build passed.
08:11
elia has joined #opal
08:14
adambeynon has joined #opal
08:54
meh` has quit [Ping timeout: 272 seconds]
09:04
DouweM has joined #opal
09:26
<
elia >
fkchang, you got my mail with the SW photos link?
09:29
kludge` has quit [Ping timeout: 265 seconds]
09:34
kludge` has joined #opal
09:43
GitHub150 has joined #opal
09:43
<
GitHub150 >
opal/compiler_nodes 7f8d2e2 Adam Beynon: Convert some more process_x parser statements into nodes
09:43
GitHub150 has left #opal [#opal]
09:48
travis-ci has joined #opal
09:48
<
travis-ci >
[travis-ci] opal/opal#1160 (compiler_nodes - 7f8d2e2 : Adam Beynon): The build passed.
09:48
travis-ci has left #opal [#opal]
10:42
GitHub158 has joined #opal
10:42
<
GitHub158 >
opal/compiler_nodes 1727d0c Adam Beynon: Add YieldNode compiler nodes
10:42
GitHub158 has left #opal [#opal]
10:46
travis-ci has joined #opal
10:46
<
travis-ci >
[travis-ci] opal/opal#1161 (compiler_nodes - 1727d0c : Adam Beynon): The build passed.
10:46
travis-ci has left #opal [#opal]
11:02
fkchang has quit [Ping timeout: 268 seconds]
11:39
meh` has joined #opal
12:02
<
meh` >
adambeynon, yo
12:07
GitHub8 has joined #opal
12:07
<
GitHub8 >
opal/master 790b643 meh: Add block support to Struct.new
12:07
GitHub8 has left #opal [#opal]
12:08
<
adambeynon >
hi meh` !
12:13
<
meh` >
adambeynon, any news?
12:13
GitHub13 has joined #opal
12:13
<
GitHub13 >
opal/compiler_nodes 7a16fb2 Adam Beynon: Some more nodes for compiler
12:13
GitHub13 has left #opal [#opal]
12:14
<
adambeynon >
meh`: not a lot. finishing up the nodes stuff this morning, then onto bug fixing this afternoon
12:14
<
adambeynon >
probably
12:18
travis-ci has joined #opal
12:18
travis-ci has left #opal [#opal]
12:18
<
travis-ci >
[travis-ci] opal/opal#1163 (compiler_nodes - 7a16fb2 : Adam Beynon): The build passed.
13:26
GitHub39 has joined #opal
13:26
GitHub39 has left #opal [#opal]
13:26
<
GitHub39 >
opal/compiler_nodes 49e6195 Adam Beynon: Generate class sexps using ClassNode
13:41
travis-ci has joined #opal
13:41
travis-ci has left #opal [#opal]
13:41
<
travis-ci >
[travis-ci] opal/opal#1164 (compiler_nodes - 49e6195 : Adam Beynon): The build passed.
13:57
GitHub165 has joined #opal
13:57
<
GitHub165 >
opal/compiler_nodes 4e9d955 Adam Beynon: Add some definition nodes
13:57
GitHub165 has left #opal [#opal]
14:03
travis-ci has joined #opal
14:03
<
travis-ci >
[travis-ci] opal/opal#1165 (compiler_nodes - 4e9d955 : Adam Beynon): The build passed.
14:03
travis-ci has left #opal [#opal]
14:35
eventualbuddha has joined #opal
14:40
<
meh` >
god, the code in String is so stale
14:48
<
adambeynon >
how do you mean?
14:48
<
meh` >
adambeynon, some code that doesn't get called, some general ugliness, and some straight out non-compliancy
14:48
<
meh` >
but I'm working on it
14:48
<
meh` >
also some checks are broken
14:49
<
meh` >
like a typeof string check in String#=~ that ignores new String
14:49
<
meh` >
adambeynon, do we have an _isString on strings?
14:49
<
adambeynon >
meh`: yeapp
14:50
GitHub12 has joined #opal
14:50
GitHub12 has left #opal [#opal]
14:50
<
GitHub12 >
opal/compiler_nodes 6791fa8 Adam Beynon: Add compiler nodes for rescue/ensure and case/when
14:51
<
meh` >
the String#=~ check is hilarious in Ruby
14:51
<
meh` >
it fails only with String
14:54
fkchang has joined #opal
14:56
travis-ci has joined #opal
14:56
<
travis-ci >
[travis-ci] opal/opal#1166 (compiler_nodes - 6791fa8 : Adam Beynon): The build passed.
14:56
travis-ci has left #opal [#opal]
15:03
<
meh` >
adambeynon, is there a way to get the file of the failing specs?
15:04
<
adambeynon >
meh`: nope
15:04
<
adambeynon >
I just use grep when I need to
15:04
<
meh` >
yeah, same, but it's kind of retarded
15:05
<
meh` >
I made fail a spec I have no clue why
15:07
<
meh` >
I changed String#<=> and made Array#sort fail
15:07
<
meh` >
except I made String#<=> behave correctly
15:07
<
meh` >
unless the compilation somehow fails
15:10
<
meh` >
unless Numeric <=> is wrong
15:11
<
meh` >
I'm raising the wrong exception
15:12
<
meh` >
fucking Ruby with its weird ass things
15:12
<
meh` >
sends different exceptions with coercion using > or +
15:31
<
meh` >
adambeynon, I think I broke the spec runner
15:32
eventualbuddha has quit [Ping timeout: 272 seconds]
15:32
<
adambeynon >
meh`: lol
15:32
<
adambeynon >
not too ideal..
15:33
<
meh` >
that or my machine suddenly become magnitudes slower
15:37
<
meh` >
adambeynon, any suggestion to find out what's going wrong?
15:37
<
meh` >
I can't see anything wrong with my changes
15:37
<
adambeynon >
meh`: no idea really... all it does is glob over all files ending in _spec.rb
15:37
<
adambeynon >
not sure what could really slow it down..
15:38
e_dub has quit [Ping timeout: 268 seconds]
15:38
<
meh` >
it's really hard to find these bugs
15:38
<
meh` >
even if they're as dumb as an _isNumeric
15:39
<
meh` >
adambeynon, also I think our Array#sort is broken
15:39
<
meh` >
it's expecting an ArgumentError
15:39
<
meh` >
but it shouldn't happen with <=>
15:39
<
meh` >
because it returns nil
15:39
<
meh` >
we don't compare with 0
15:40
<
meh` >
who wrote Array#sort?
15:40
<
meh` >
that code is awful
15:41
<
meh` >
bah, I need a smoke to fix this mess
15:41
e_dub has joined #opal
15:46
GitHub100 has joined #opal
15:46
<
GitHub100 >
opal/master 7ec5661 meh: Cleanup String#chars
15:46
<
GitHub100 >
opal/master 559875b meh: Fix String#=~ check for String parameter
15:46
GitHub100 has left #opal [#opal]
15:46
<
GitHub100 >
opal/master 2f91d9c meh: Cleanup String#center
15:56
eventualbuddha has joined #opal
15:58
GitHub7 has joined #opal
15:58
GitHub7 has left #opal [#opal]
15:58
<
GitHub7 >
opal/compiler_nodes 05c1a26 Adam Beynon: Use compiler nodes to process super calls (and defined super)
16:01
<
meh` >
adambeynon, can I break out of a block passed to a native function?
16:05
travis-ci has joined #opal
16:05
<
travis-ci >
[travis-ci] opal/opal#1168 (compiler_nodes - 05c1a26 : Adam Beynon): The build passed.
16:05
travis-ci has left #opal [#opal]
16:05
<
adambeynon >
meh`: sure can
16:05
<
adambeynon >
it throws an error to break out
16:05
<
adambeynon >
so things will go badly wrong if you trigger the break async
16:05
<
meh` >
adambeynon, it's not async
16:06
<
meh` >
so I can just do `array.sort(block)` and it will return properly?
16:06
<
meh` >
or how do I do it?
16:06
<
meh` >
I don't want to wrap it by hand
16:08
<
meh` >
this is the current code
16:08
<
meh` >
does it do what I think it does?
16:10
<
meh` >
looks like not
16:10
<
meh` >
oh, I left shit code around
16:17
<
meh` >
adambeynon, found a compiler bug
16:17
<
meh` >
>> a = 2; b = 3; a -b
16:17
<
meh` >
undefined method `a' for main
16:17
<
meh` >
>> a = 2; b = 3; a - b
16:17
<
meh` >
in ruby both return -1
16:23
<
meh` >
or maybe we can
16:35
elia has quit [Ping timeout: 245 seconds]
16:38
<
meh` >
adambeynon, everything is broken
16:38
<
meh` >
seriously broken
16:38
<
meh` >
we need way more rubyspecs enabled soon
16:39
<
meh` >
I don't even know how we got anything to work with this state of things
16:39
<
meh` >
as soon as I fix something something else breaks
16:40
<
meh` >
oh well, meh will save the day
16:40
<
meh` >
and waste his :P
16:45
e_dub has quit [Ping timeout: 272 seconds]
16:46
<
adambeynon >
meh`: what is breaking, sort?
16:46
<
meh` >
adambeynon, fixed String, broke Array, it was Numeric, fix Numeric, it was Array, fix Array, break String, find out Comparable is completely wrong
16:46
<
meh` >
now I'm fixing Comparable
16:47
<
adambeynon >
whats wrong with Comparable?
16:47
<
meh` >
everything :D
16:48
<
meh` >
this is how it should be
16:49
<
meh` >
now I'm getting absurd broken specs
16:51
GitHub23 has joined #opal
16:51
<
GitHub23 >
opal/compiler_nodes 87b0524 Adam Beynon: Add IfNode for compiled nodes
16:51
GitHub23 has left #opal [#opal]
16:53
<
meh` >
why the hell is it returning a string tho
16:54
<
meh` >
all of this just because I fixed the broken String#==
16:55
<
adambeynon >
meh`: is it just those 5 failing?
16:55
<
meh` >
adambeynon, yes
16:55
<
meh` >
I'm fixing #index
16:55
<
meh` >
somehow it's becoming a string
16:56
<
adambeynon >
result = #{(what =~ self) || -1}
16:56
travis-ci has joined #opal
16:56
<
travis-ci >
[travis-ci] opal/opal#1169 (compiler_nodes - 87b0524 : Adam Beynon): The build passed.
16:56
travis-ci has left #opal [#opal]
16:56
<
meh` >
I know why too
16:56
<
meh` >
it's a remnant of transparent nil/null
17:00
<
GitHub93 >
opal/master 23f7ccb meh: Make Comparable compliant
17:00
GitHub93 has joined #opal
17:00
<
GitHub93 >
opal/master b403085 meh: String includes Comparable, remove the useless methods
17:00
GitHub93 has left #opal [#opal]
17:00
<
GitHub93 >
opal/master 261489a meh: Fix String#index returning a string
17:00
<
adambeynon >
meh`: nice one!
17:01
<
meh` >
still a lot to go
17:01
<
meh` >
I plan to finish all this cleanups by tonight
17:01
<
meh` >
so please avoid changing the corelib classes, runtime excluded
17:02
<
meh` >
mainly working on String, Array and Numeric
17:02
<
adambeynon >
meh`: aslong as you stay away from the compiler stuff for the next 2 hours Im happy ;)
17:04
travis-ci has joined #opal
17:04
<
travis-ci >
[travis-ci] opal/opal#1170 (master - b403085 : meh): The build was broken.
17:04
travis-ci has left #opal [#opal]
17:05
<
adambeynon >
meh`: erm
17:05
<
adambeynon >
2372 examples, 913 failures (time taken: 1.7350001335144043)
17:05
<
meh` >
sssssh, no broken specs now, only dreams
17:05
<
meh` >
I'll fix them all, believe in the heart of cards
17:06
<
adambeynon >
Expected "instance-variable" to equal "instance-variable"
17:06
<
adambeynon >
String#== is broke?
17:06
<
meh` >
that was nice
17:06
<
meh` >
yeah, I removed the == too soon
17:06
<
meh` >
without testing
17:07
<
adambeynon >
shouldnt we keep String#== to keep it faster than going through Comparable?
17:07
<
meh` >
it's just == that's broken without valueOf
17:08
<
meh` >
> and friends work on both being objects
17:08
<
meh` >
yay javascript
17:08
<
adambeynon >
meh`: cant we do: `other._isString && self == other.toString()`
17:09
<
meh` >
I think valueOf is faster
17:09
<
meh` >
just a gut feeling tho
17:09
<
meh` >
they're probably the same
17:09
<
meh` >
or toString calls valueOf
17:09
GitHub22 has joined #opal
17:09
GitHub22 has left #opal [#opal]
17:09
<
GitHub22 >
opal/master 31eae17 meh: Fix String#==...
17:09
<
meh` >
something like that
17:10
<
adambeynon >
are we going to get a happy travis again now? :P
17:11
<
meh` >
I have some failing specs locally, but they should be of uncommitted stuff
17:13
<
adambeynon >
2367 examples, 3 failures (time taken: 2.2960000038146973)
17:13
<
adambeynon >
getting closer :P
17:13
<
meh` >
ok, then they're the ones I have locally too
17:13
<
meh` >
I'm working on it
17:13
<
meh` >
Expected "NOTE" to equal ["NOTE"]
17:13
<
meh` >
this one is especially hilarious that it went through without notice
17:14
<
meh` >
and I think it's not present on rubyspec anymore
17:14
travis-ci has joined #opal
17:14
<
travis-ci >
[travis-ci] opal/opal#1171 (master - 31eae17 : meh): The build is still failing.
17:14
travis-ci has left #opal [#opal]
17:14
<
meh` >
I can't find it
17:15
<
adambeynon >
meh`: looks like one of our own
17:16
<
meh` >
why is it in spec/rubyspec tho?
17:16
<
adambeynon >
meh`: those are specs we cant use directly from rubyspec
17:16
<
adambeynon >
for whateber reason
17:17
<
adambeynon >
probbaly some parsing error
17:17
<
adambeynon >
probably*
17:17
<
meh` >
adambeynon, the spec is wrong
17:17
<
meh` >
as in, the result is proper
17:17
<
meh` >
should I fix the spec?
17:17
<
meh` >
result[1].should == ['NOTE']
17:17
<
meh` >
this line is false
17:17
<
meh` >
it's "NOTE" and it's right
17:18
<
adambeynon >
meh`: yeah. must have been a copy/paste error
17:18
<
adambeynon >
seems odd it used to work
17:18
<
adambeynon >
but hey
17:18
eventualbuddha has quit [Ping timeout: 240 seconds]
17:18
<
adambeynon >
onwards and upwards
17:18
<
meh` >
it used because String#== was broken
17:18
<
adambeynon >
ahh, array.toString
17:20
GitHub162 has joined #opal
17:20
GitHub162 has left #opal [#opal]
17:20
<
GitHub162 >
opal/master 0a30452 meh: Fix wrong Regexp#match spec
17:24
travis-ci has joined #opal
17:24
travis-ci has left #opal [#opal]
17:24
<
travis-ci >
[travis-ci] opal/opal#1172 (master - 0a30452 : meh): The build is still failing.
17:28
<
meh` >
that Array#sort one is a hard one
17:30
<
meh` >
and the bug was in Kernel
17:31
<
meh` >
there's no #to_str in Kernel
17:32
GitHub60 has joined #opal
17:32
GitHub60 has left #opal [#opal]
17:32
<
GitHub60 >
opal/master 5845e00 meh: Cleanup Kernel#to_s
17:32
<
GitHub60 >
opal/master bb8bdb8 meh: Remove Kernel#to_str
17:36
GitHub44 has joined #opal
17:36
<
GitHub44 >
opal/master 90c872a meh: Make Array#sort and Array#sort! compliant
17:36
GitHub44 has left #opal [#opal]
17:36
travis-ci has joined #opal
17:36
<
travis-ci >
[travis-ci] opal/opal#1173 (master - 5845e00 : meh): The build is still failing.
17:36
travis-ci has left #opal [#opal]
17:38
<
meh` >
just one to go
17:39
<
meh` >
and it's the weirdest one
17:41
travis-ci has joined #opal
17:41
<
travis-ci >
[travis-ci] opal/opal#1174 (master - 90c872a : meh): The build is still failing.
17:41
travis-ci has left #opal [#opal]
17:46
<
meh` >
adambeynon, do you have any clue about that failing spec?
17:48
<
meh` >
adambeynon, I have the feeling it's an inconsistency caused by String and Symbol being the same
17:48
<
meh` >
or something
17:48
<
meh` >
:hola.should_not eql(1)
17:48
<
meh` >
1.should eql(1)
17:48
<
meh` >
:hola.should eql(:hola)
17:48
<
meh` >
that's the spec
17:50
<
adambeynon >
meh`: doesnt look like that is what it is compiling
17:50
<
adambeynon >
evaluating '"hola"['$eql?'](1).$should'
17:50
<
meh` >
no clue, it doesn't seem related to what I did at all
17:51
<
adambeynon >
meh`: again, we might have duplicated specs in spec/opal/rubyspec
17:51
e_dub has joined #opal
17:51
<
meh` >
:hola.eql?(1).should be_false
17:51
<
meh` >
1.eql?(1).should be_true
17:51
<
meh` >
:hola.eql?(:hola).should be_true
17:52
<
meh` >
adambeynon, we should really get rid of these
17:52
<
adambeynon >
meh`: but its strange why they are failing
17:52
<
meh` >
I think I know
17:52
<
meh` >
eql? returns nil instead of false
17:53
<
adambeynon >
why would that break .should ?
17:53
<
meh` >
it's how && works that's causing it
17:53
<
meh` >
we're not !! it
17:53
<
meh` >
so it's undefined on some things
17:53
<
meh` >
and it assplodes
17:53
<
meh` >
that's my theory
17:53
<
meh` >
testing it now
17:54
<
meh` >
I was right :)
17:55
<
meh` >
there, all green now
17:55
GitHub100 has joined #opal
17:55
<
GitHub100 >
opal/master 7b02942 meh: Cleanup Array#shuffle
17:55
<
GitHub100 >
opal/master c25e6d2 meh: Cleanup String#[]
17:55
<
GitHub100 >
opal/master c6866e9 meh: Cleanup Array#slice!
17:55
GitHub100 has left #opal [#opal]
17:56
elia has joined #opal
17:57
elia has quit [Client Quit]
17:59
travis-ci has joined #opal
17:59
<
travis-ci >
[travis-ci] opal/opal#1175 (master - 8e77c77 : meh): The build was fixed.
17:59
travis-ci has left #opal [#opal]
17:59
<
adambeynon >
wohooo!
18:01
e_dub has quit [Ping timeout: 240 seconds]
18:02
<
GitHub87 >
opal/master f2c272b meh: Make String#each_line compliant
18:02
<
GitHub87 >
opal/master aafd2ef meh: Cleanup String#%
18:02
GitHub87 has joined #opal
18:02
GitHub87 has left #opal [#opal]
18:02
<
GitHub87 >
opal/master 3e88650 meh: Cleanup String.new
18:04
GitHub97 has joined #opal
18:04
<
GitHub97 >
opal/master 219a0bc meh: Cleanup String#chop
18:04
<
GitHub97 >
opal/master 314ebd1 meh: Cleanup String#chr
18:04
<
GitHub97 >
opal/master 2165a94 meh: Cleanup String#clone
18:04
GitHub97 has left #opal [#opal]
18:08
travis-ci has joined #opal
18:08
<
travis-ci >
[travis-ci] opal/opal#1176 (master - e7270ee : meh): The build passed.
18:08
travis-ci has left #opal [#opal]
18:13
travis-ci has joined #opal
18:13
<
travis-ci >
[travis-ci] opal/opal#1177 (master - 262f5e4 : meh): The build passed.
18:13
travis-ci has left #opal [#opal]
18:26
eventualbuddha has joined #opal
18:27
GitHub21 has joined #opal
18:27
<
GitHub21 >
opal/master b58cbe8 meh: Make String#casecmp compliant
18:27
<
GitHub21 >
opal/master 73db6c0 meh: Cleanup String#end_with?
18:27
GitHub21 has left #opal [#opal]
18:27
<
GitHub21 >
opal/master 6778582 meh: Cleanup String#capitalize
18:30
eventualbuddha has quit [Ping timeout: 245 seconds]
18:45
GitHub85 has joined #opal
18:45
<
GitHub85 >
opal/compiler_nodes 8f17aae Adam Beynon: push js_truthy parts explicitly
18:45
GitHub85 has left #opal [#opal]
18:46
GitHub32 has joined #opal
18:46
GitHub32 has left #opal [#opal]
18:46
<
GitHub32 >
opal/master e664f62 meh: Cleanup Module#===
18:46
<
GitHub32 >
opal/master 6416445 meh: Cleanup String#index
18:46
<
GitHub32 >
opal/master 23d1d1f meh: Cleanup String#inspect
18:49
elia has joined #opal
18:54
travis-ci has joined #opal
18:54
<
travis-ci >
[travis-ci] opal/opal#1179 (master - 58e8b4b : meh): The build passed.
18:54
travis-ci has left #opal [#opal]
18:54
travis-ci has joined #opal
18:54
travis-ci has left #opal [#opal]
18:54
<
travis-ci >
[travis-ci] opal/opal#1179 (compiler_nodes - 8f17aae : Adam Beynon): The build was broken.
19:04
travis-ci has joined #opal
19:04
<
travis-ci >
[travis-ci] opal/opal#1179 (compiler_nodes - 8f17aae : Adam Beynon): The build passed.
19:04
travis-ci has left #opal [#opal]
19:33
GitHub6 has joined #opal
19:33
<
GitHub6 >
opal/master 76a5bd2 meh: Make String#match compliant
19:33
<
GitHub6 >
opal/master 51f3071 meh: Make String#chomp compliant
19:33
GitHub6 has left #opal [#opal]
19:33
<
GitHub6 >
opal/master 7734a0f meh: Cleanup String#lstrip
19:35
adambeynon has joined #opal
19:36
<
meh` >
adambeynon, so much stuff to cleanup
19:36
<
meh` >
the corelib really let itself go
19:36
GitHub26 has joined #opal
19:36
<
GitHub26 >
opal/compiler_nodes c398329 Adam Beynon: Use js_truthy helper instead of parser version
19:36
GitHub26 has left #opal [#opal]
19:37
<
adambeynon >
meh`: it always ends up that way. ends up being the source of quick fixes
19:37
<
meh` >
I'll become the corelib police
19:41
travis-ci has joined #opal
19:41
<
travis-ci >
[travis-ci] opal/opal#1180 (master - 51f3071 : meh): The build was broken.
19:41
travis-ci has left #opal [#opal]
19:42
<
meh` >
it was green here
19:44
GitHub138 has joined #opal
19:44
GitHub138 has left #opal [#opal]
19:44
<
GitHub138 >
opal/master 33ce784 meh: Fix String#chomp wrong check for separator type
19:45
travis-ci has joined #opal
19:45
<
travis-ci >
[travis-ci] opal/opal#1181 (compiler_nodes - c398329 : Adam Beynon): The build passed.
19:45
travis-ci has left #opal [#opal]
19:51
travis-ci has joined #opal
19:51
<
travis-ci >
[travis-ci] opal/opal#1182 (master - 33ce784 : meh): The build was fixed.
19:51
travis-ci has left #opal [#opal]
20:15
e_dub has joined #opal
20:19
GitHub87 has joined #opal
20:19
<
GitHub87 >
opal/compiler_nodes 137d6e2 Adam Beynon: masgn compiler node
20:19
GitHub87 has left #opal [#opal]
20:27
travis-ci has joined #opal
20:27
<
travis-ci >
[travis-ci] opal/opal#1183 (compiler_nodes - 137d6e2 : Adam Beynon): The build passed.
20:27
travis-ci has left #opal [#opal]
20:39
GitHub133 has joined #opal
20:39
GitHub133 has left #opal [#opal]
20:39
<
GitHub133 >
opal/master bcf856e Elia Schito: Add openssl for rubinius from standard lib gems
20:40
<
meh` >
elia, I just realized all methods to get bytes from javascript Strings only work with the hacked charset encoding for the XHR
20:40
<
meh` >
elia, any clue how to do it with normal strings?
20:41
<
elia >
you talking gibberish to me
20:41
<
meh` >
talking about String#each_byte
20:41
<
meh` >
I was thinking about implementing String#unpack and Array#pack too
20:43
<
elia >
id drop support for non-nodejs non-dataview capable platforms
20:43
<
meh` >
elia, that isn't the problem
20:44
<
meh` >
the problem is we aren't getting non-encoded string in the browser
20:44
<
meh` >
we always have UTF-16LE encoded strings
20:44
<
elia >
and that is a problem because…
20:44
<
elia >
(sorry im dumb)
20:45
<
meh` >
because string.charCodeAt(n) gives the unicode codepoint at that index
20:45
<
elia >
ok, each_byte
20:45
<
meh` >
and if the mimeType hack really doesn't encode the String at all
20:45
<
meh` >
then it's even moreso of a problem
20:45
travis-ci has joined #opal
20:45
travis-ci has left #opal [#opal]
20:45
<
travis-ci >
[travis-ci] opal/opal#1184 (master - bcf856e : Elia Schito): The build was broken.
20:45
<
meh` >
because we'd need a way to know the internal encoding of the string
20:45
<
meh` >
and that's not a public API in js afaik
20:47
<
elia >
meh`, no sorry, im probably not enough into encoding in js to fully understand
20:48
adambeynon has joined #opal
20:49
<
elia >
on top of that ive just broken 1.8, inexplicably
20:49
<
meh` >
adambeynon, do you have any clue about how to get bytes out of a js string?
20:49
<
meh` >
other than the mimeType trick
20:50
<
adambeynon >
meh`: AFAIK its not possible
20:50
<
adambeynon >
node probably offers some way to do it
20:50
<
adambeynon >
but browsers generally dont/wont/havent
20:50
<
meh` >
challenge accepted
20:51
<
adambeynon >
right, and now the football is finished, I can get back to work
20:51
<
adambeynon >
meh`: how is the cleanup going?
20:51
<
meh` >
hit some code it hurts to look at
20:51
<
meh` >
so I moved to numeric
20:54
travis-ci has joined #opal
20:54
<
travis-ci >
[travis-ci] opal/opal#1184 (master - bcf856e : Elia Schito): The build passed.
20:54
travis-ci has left #opal [#opal]
20:55
meh` is now known as MEH`
20:55
<
MEH` >
WHY DID NOBODY REMIND ME IT'S CAPSLOCKDAY
20:57
elia has quit [Read error: Connection reset by peer]
20:58
<
adambeynon >
I didnt relaise
20:58
<
adambeynon >
although saying that, lots of twitter was in caps
20:58
<
adambeynon >
makes sense now...
21:02
elia has joined #opal
21:05
<
MEH` >
USING VIM WITH CAPSLOCK IS HELL
21:30
GitHub104 has joined #opal
21:30
GitHub104 has left #opal [#opal]
21:30
<
GitHub104 >
opal/compiler_nodes b003431 Adam Beynon: Some more nodes
21:36
<
MEH` >
adambeynon, WHAT'S THE STATUS OF THAT BRANCH?
21:39
travis-ci has joined #opal
21:39
travis-ci has left #opal [#opal]
21:39
<
travis-ci >
[travis-ci] opal/opal#1185 (compiler_nodes - b003431 : Adam Beynon): The build passed.
21:42
<
adambeynon >
MEH`: nearly done
21:42
<
adambeynon >
just def and iter left to do
21:43
<
adambeynon >
then some cleanups
21:43
<
adambeynon >
most of the nodes I have rewritten a lot nicer
21:43
<
adambeynon >
but the last few I have just copied
21:44
<
adambeynon >
MEH`: I also need to figure out the best way of handling certain calls
21:44
<
adambeynon >
e.g. capturing require calls
21:44
eventualbuddha has joined #opal
21:44
<
MEH` >
MAKE IT PASS BASED, SO YOU HAVE A PASS THAT REWRITES/CAPTURES THE REQUIRE AND AUTOLOAD CALLS
21:44
<
MEH` >
OR SOMETHING
21:58
GitHub6 has joined #opal
21:58
<
GitHub6 >
opal/master d52aeab meh: Make Numeric#downto compliant
21:58
<
GitHub6 >
opal/master 3384139 meh: Make Numeric#step compliant
21:58
<
GitHub6 >
opal/master 7a51994 meh: Cleanup Numeric#coerce
21:58
GitHub6 has left #opal [#opal]
22:01
MEH` is now known as meh`
22:05
travis-ci has joined #opal
22:05
travis-ci has left #opal [#opal]
22:05
<
travis-ci >
[travis-ci] opal/opal#1186 (master - 58da5d9 : meh): The build passed.
22:19
<
elia >
meh`, well played indeed
22:20
<
meh` >
there, numeric.rb is clean
22:20
<
meh` >
and supports coercion properly
22:20
GitHub152 has joined #opal
22:20
<
GitHub152 >
opal/master e1f1a92 meh: Make Numeric#times compliant
22:20
<
GitHub152 >
opal/master 6120ad8 meh: Fix Numeric#nonzero? when its a Number object
22:20
GitHub152 has left #opal [#opal]
22:20
<
GitHub152 >
opal/master a23d7c2 meh: Cleanup Numeric#to_s
22:20
<
meh` >
we should publicize that on the website
22:26
travis-ci has joined #opal
22:26
<
travis-ci >
[travis-ci] opal/opal#1187 (master - 1a9a1db : meh): The build passed.
22:26
travis-ci has left #opal [#opal]
22:32
<
elia >
i'll tweet that
22:41
GitHub154 has joined #opal
22:41
GitHub154 has left #opal [#opal]
22:41
<
GitHub154 >
opal/master 9e9cc42 meh: Cleanup BasicObject#==
22:41
<
GitHub154 >
opal/master 8f13039 meh: Cleanup BasicObject#instance_eval
22:41
<
GitHub154 >
opal/master 867a500 meh: Cleanup BasicObject#__send__
22:44
eventualbuddha has quit [Ping timeout: 240 seconds]
22:46
GitHub84 has joined #opal
22:46
<
GitHub84 >
opal/master 813ae7f meh: Cleanup Boolean#|
22:46
GitHub84 has left #opal [#opal]
22:46
<
GitHub84 >
opal/master b2452c9 meh: Undefine Boolean.new
22:46
<
GitHub84 >
opal/master cd89bb3 meh: Cleanup Boolean#&
22:47
<
meh` >
I underestimated the amount of code to cleanup
22:47
travis-ci has joined #opal
22:47
travis-ci has left #opal [#opal]
22:47
<
travis-ci >
[travis-ci] opal/opal#1188 (master - 4cb3986 : meh): The build passed.
22:51
GitHub155 has joined #opal
22:51
GitHub155 has left #opal [#opal]
22:51
<
GitHub155 >
opal/master 7ee6d4b meh: Cleanup Proc#call
22:51
<
GitHub155 >
opal/master fca9d21 meh: Cleanup Proc#lambda?
22:51
<
GitHub155 >
opal/master e29ce8c meh: Make Proc#new compliant
22:52
travis-ci has joined #opal
22:52
<
travis-ci >
[travis-ci] opal/opal#1189 (master - 0769a8e : meh): The build passed.
22:52
travis-ci has left #opal [#opal]
23:00
eventualbuddha has joined #opal
23:02
travis-ci has joined #opal
23:02
<
travis-ci >
[travis-ci] opal/opal#1190 (master - bc36fd1 : meh): The build passed.
23:02
travis-ci has left #opal [#opal]
23:04
GitHub156 has joined #opal
23:04
GitHub156 has left #opal [#opal]
23:04
<
GitHub156 >
opal/master 39ea117 meh: Cleanup Range#==
23:04
<
GitHub156 >
opal/master d273723 meh: Cleanup Range#cover?
23:04
<
GitHub156 >
opal/master c62cebb meh: Cleanup Range attr_readers
23:08
travis-ci has joined #opal
23:08
travis-ci has left #opal [#opal]
23:08
<
travis-ci >
[travis-ci] opal/opal#1191 (master - 1a6726a : meh): The build passed.
23:59
eventualbuddha has quit [Ping timeout: 245 seconds]