00:10
Garb0 has quit [Quit: Garb0]
00:10
Garb0 has joined #ruby
00:16
ecso has quit [Quit: WeeChat 2.9]
00:41
goldfish has quit [Remote host closed the connection]
00:43
jec has quit [Quit: brb]
01:04
gr33n7001 has joined #ruby
01:06
gr33n7007h has quit [Ping timeout: 264 seconds]
01:13
Garb0 has quit [Quit: Garb0]
01:16
lfalcao has joined #ruby
01:27
gearnode has quit [Ping timeout: 264 seconds]
01:35
lfalcao has quit [Ping timeout: 265 seconds]
01:44
Rounin has quit [Ping timeout: 252 seconds]
01:49
d0htem has joined #ruby
02:06
lfalcao has joined #ruby
02:29
jmcgnh has joined #ruby
03:57
r0bby has joined #ruby
04:33
lfalcao has quit [Ping timeout: 264 seconds]
04:51
kaivai has joined #ruby
05:04
bastienleonard has quit [Quit: WeeChat 3.1]
06:57
<
jhass >
what do you expect, it's jvm
07:52
coda has joined #ruby
08:23
gr33n7001 is now known as gr33n7007h
08:25
<
rapha >
i'd say 5-7 seconds for hello world, that's not bad at all
08:46
<
coda >
rapha: on a 6502?
08:48
<
rapha >
doesn't nakilon run a 386DX? still fast, though.
08:48
geewiz has joined #ruby
08:48
<
rapha >
also don't be mean to the 6502 ... when not using the jvm, it could do a hello world in under 10ms.
08:52
<
coda >
maybe i should switch from jruby to mruby on 6502.
09:13
<
ccooke >
It would certainly be faster... than jruby on a 6502
09:15
<
nakilon >
got stuck with SWT anyway -- it can't display more than 41 buttons, lol
09:22
<
jhass >
but yeah, you'd think SWT would be supportive of the bottom usecase
09:24
<
jhass >
so... a soundboard?
09:27
<
jhass >
mmh, I wonder if it needs to be buttons, could perhaps be a table with click listeners for the cells
09:27
<
nakilon >
reinventing the buttons?
09:28
<
jhass >
I think I'm saying you won't need any of the fancy button animation stuff, just change the background color
09:28
<
nakilon >
the navigation is going to be with arrows while the "current cell" is highlighted somehow, for example by color
09:28
<
jhass >
then even more so
09:29
<
nakilon >
also I need text on them
09:29
<
jhass >
table's are great at displaying text
09:32
<
nakilon >
I "won't need any of the fancy table search stuff" nor "nested cell type specific editor widgets" nor "range selection"
09:33
<
nakilon >
and no sorting
09:34
<
jhass >
okay I mean I was going of general UI toolkit patterns, no clue if you have to make effort in SWT to turn all of that off
09:43
<
gr33n7007h >
can anyone test this and show me the results?
10:02
<
jhass >
gr33n7007h:
https://p.jhass.eu/a5.txt becomes interesting I think, looks like stuff is just slower inside ractors? But all the slower results come in at the same time
10:03
<
jhass >
maybe they're competing over L2/L1 cache or something weird like that, idk
10:10
<
gr33n7007h >
jhass: ah, interesting indeed. thank you for testing.
10:16
geewiz has quit [Ping timeout: 272 seconds]
10:17
Rounin has joined #ruby
10:25
gr33n7007h has quit [Ping timeout: 252 seconds]
10:31
gr33n7007h has joined #ruby
10:32
Qchmqs has joined #ruby
10:35
gfawcett has joined #ruby
11:28
geewiz has joined #ruby
11:31
ollysmith has quit [Read error: Connection reset by peer]
11:32
ollysmith has joined #ruby
11:38
patrick has quit [Ping timeout: 264 seconds]
11:39
patrick has joined #ruby
11:46
patrick has quit [Ping timeout: 252 seconds]
11:50
patrick has joined #ruby
12:14
Qchmqs has quit [Read error: Connection reset by peer]
12:20
patrick has quit [Ping timeout: 252 seconds]
12:21
patrick has joined #ruby
12:24
Garb0 has joined #ruby
12:29
graywolf has joined #ruby
12:29
patrick has quit [Remote host closed the connection]
12:30
patrick has joined #ruby
12:57
patrick has quit [Quit: WeeChat 3.0.1]
13:21
kinduff5 has joined #ruby
13:21
kinduff has quit [Quit: Ping timeout (120 seconds)]
13:21
kinduff5 is now known as kinduff
13:21
gr33n7007h has quit [Quit: WeeChat 3.1]
13:31
Garb0 has quit [Quit: Garb0]
13:44
Garb0 has joined #ruby
13:55
patrick has joined #ruby
14:24
konsolebox has quit [Ping timeout: 264 seconds]
14:34
geewiz has quit [Quit: WeeChat 2.8]
14:40
ule has quit [Quit: WeeChat 3.1]
14:45
ule has joined #ruby
15:03
Garb0 has quit [Quit: Garb0]
15:17
Garb0 has joined #ruby
15:36
pc has joined #ruby
15:37
patrick has quit [*.net *.split]
15:37
jinie has quit [*.net *.split]
15:37
isene has quit [*.net *.split]
15:37
coda has quit [*.net *.split]
15:37
simao has quit [*.net *.split]
15:37
keyvan has quit [*.net *.split]
15:37
swaggboi has quit [*.net *.split]
15:37
NightMonkey has quit [*.net *.split]
15:37
ruby[bot] has quit [*.net *.split]
15:37
_axx has quit [*.net *.split]
15:37
coda has joined #ruby
15:37
_axx has joined #ruby
15:37
jinie has joined #ruby
15:38
simao has joined #ruby
15:38
keyvan has joined #ruby
15:38
<
nakilon >
havenwood is it possible to take additional items within one enumerator iteration block call?
15:39
<
nakilon >
like... my_str.chars{ |c| .... forward_pull_more_chars if something ... }
15:39
swaggboi has joined #ruby
15:40
isene has joined #ruby
15:40
<
adam12 >
nakilon: Sounds almost if you want a StringScanner here...
15:40
<
nakilon >
adam12 that's what I want to avoid since my program already implements some case when over the characters
15:40
<
nakilon >
now I want to jump over sometimes
15:40
NightMonkey has joined #ruby
15:41
<
adam12 >
If you carried index with you, you could peek and then do some trickery. But this is what strscan avoids.
15:41
<
adam12 >
my_str.chars.with_index.each { |c, idx| my_str.slice(idx, 2) if c == “y” }
15:41
<
nakilon >
maybe it's just yield?
15:42
<
adam12 >
You’d still run into the issue where the characters are still yielded on the next iteration.
15:43
<
nakilon >
oh no I was looking at wrong socs snippet
15:43
swaggboi has quit [*.net *.split]
15:43
simao has quit [*.net *.split]
15:43
ollysmith has quit [*.net *.split]
15:43
r0bby has quit [*.net *.split]
15:43
gfawcett has quit [*.net *.split]
15:43
d0htem has quit [*.net *.split]
15:44
simao has joined #ruby
15:44
r0bby has joined #ruby
15:44
gfawcett has joined #ruby
15:45
d0htem has joined #ruby
15:45
d0htem has quit [Changing host]
15:45
d0htem has joined #ruby
15:45
swaggboi has joined #ruby
15:45
ollysmith has joined #ruby
15:47
<
nakilon >
>> e = "qwertyuio".chars; e.map{ |c| c.tap{ e.next } }
15:47
<
nakilon >
&>> e = "qwertyuio".chars; e.map{ |c| c.tap{ e.next } }
15:48
simao has quit [Client Quit]
15:48
simao has joined #ruby
15:48
<
adam12 >
Looks like rubybot isn’t in here.
15:48
<
adam12 >
^ jhass can you look when you’re awake?
15:48
pc has quit [Quit: pc]
15:53
<
Garb0 >
Anyone here got ocra to work?
15:54
<
nakilon >
> e = "qwertyuio".each_char; e.map{ |c| c.tap{ e.next } }
15:54
<
nakilon >
=> ["q", "w", "e", "r", "t", "y", "u", "i", "o"]
15:54
<
nakilon >
I don't understand what e.next does here at all then
16:01
<
adam12 >
Where’d you get e.next from? That’s calling String#succ
16:01
<
adam12 >
What are you trying to do?
16:01
<
nakilon >
e. is Enumerator
16:01
<
adam12 >
Oh nm. I didn’t notice you changed the argument.
16:04
<
havenwood >
Oddly, #next and #succ aren't aliases. ¯\_(ツ)_/¯
16:05
<
havenwood >
At least on CRuby the VM optimizes #succ but not #next, which seems like an oversight.
16:07
<
havenwood >
>> RubyVM::InstructionSequence.compile("'a'.next").to_a.last[3]
16:08
<
havenwood >
=> [:opt_send_without_block, {:mid=>:next, :flag=>16, :orig_argc=>0}]
16:08
<
nakilon >
> loop.with_object("qwertyuio".each_char).map{ |_,e| e.next.tap{ e.next } }
16:08
<
nakilon >
=> ["q", "e", "t", "u"]
16:08
<
nakilon >
that's a mess
16:08
<
nakilon >
there should be a normal way
16:08
<
havenwood >
>> RubyVM::InstructionSequence.compile("'a'.succ").to_a.last[3]
16:08
<
havenwood >
=> [:opt_succ, {:mid=>:succ, :flag=>16, :orig_argc=>0}]
16:11
<
havenwood >
nakilon: Whatcha skipping letters for? Hard to suggest in the abstract.
16:12
<
nakilon >
havenwood optimizing brainfuck
16:12
lfalcao has joined #ruby
16:17
patrick has joined #ruby
16:21
<
nakilon >
n = 1 ; n += 1 while ?+ == t = enumerator.next rescue StopIteration ; enumerator.feed t -- this is ugly anyway though
16:22
<
nakilon >
(nvm, I even roken the syntax but you can imagine it being several lines long)
16:22
<
nakilon >
*even broke
16:30
ruby[bot] has joined #ruby
16:36
reset has joined #ruby
16:40
lfalcao has quit [Ping timeout: 264 seconds]
16:41
reset has quit [Quit: reset]
16:42
<
nakilon >
fffuuuuuu
16:42
<
nakilon >
.feed puts to the end ..\
16:42
reset has joined #ruby
16:43
<
nakilon >
how do I even return one step back?
16:44
<
nakilon >
probably have to use peek instead of next
16:52
<
nakilon >
so it's n = 1 ; (e.next; n += 1) while c == (e.peek rescue StopIteration)
16:58
d0htem has joined #ruby
17:41
jetchisel has quit [Ping timeout: 272 seconds]
17:43
jetchisel has joined #ruby
17:44
lfalcao has joined #ruby
17:53
chonkbit has joined #ruby
18:28
steinomead has quit [Quit: term]
18:49
postmodern has joined #ruby
19:02
lfalcao has quit [Ping timeout: 268 seconds]
19:05
lfalcao has joined #ruby
19:11
jhass[m] has joined #ruby
19:31
Garb00 has joined #ruby
19:34
Garb0 has quit [Ping timeout: 265 seconds]
19:43
reset has quit [Changing host]
19:43
reset has joined #ruby
20:04
bastienleonard has joined #ruby
20:51
konsolebox has joined #ruby
21:05
lfalcao has quit [Ping timeout: 245 seconds]
21:19
chonkbit has quit [Ping timeout: 245 seconds]
21:19
chonkbit has joined #ruby
21:24
coda has quit [Ping timeout: 272 seconds]
21:30
involans has quit [Ping timeout: 264 seconds]
21:34
involans has joined #ruby
21:50
involans has quit [Ping timeout: 265 seconds]
22:01
justache is now known as justBull
22:36
postmodern has quit [Remote host closed the connection]
22:38
Exa has quit [Quit: see ya!]
22:38
Exa has joined #ruby
22:39
justBull is now known as the
22:39
the is now known as justBull
22:40
justBull is now known as justbull
22:45
postmodern has joined #ruby
22:47
justbull is now known as justBull
22:50
chonkbit has quit [Ping timeout: 264 seconds]
22:51
Garb00 has quit [Quit: Garb00]
22:53
postmodern_ has joined #ruby
22:55
postmodern has quit [Ping timeout: 268 seconds]
23:32
rodd has joined #ruby
23:37
lunarkitty has joined #ruby
23:40
<
lunarkitty >
ugh I don't have an acct on freenode anymore so I can't post this there, but don't forget to "vote" for Ruby in the Stack Exchange survey thingy, keep Ruby healthy by showing there is still interest! <3
23:43
graywolf has quit [Quit: WeeChat 3.1]