Garb0 has quit [Quit: Garb0]
Garb0 has joined #ruby
ecso has quit [Quit: WeeChat 2.9]
goldfish has quit [Remote host closed the connection]
jec has quit [Quit: brb]
gr33n7001 has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
Garb0 has quit [Quit: Garb0]
lfalcao has joined #ruby
gearnode has quit [Ping timeout: 264 seconds]
lfalcao has quit [Ping timeout: 265 seconds]
Rounin has quit [Ping timeout: 252 seconds]
d0htem has quit []
d0htem has joined #ruby
lfalcao has joined #ruby
jmcgnh has quit [Quit: ZNC 1.7.5 - https://znc.in]
jmcgnh has joined #ruby
r0bby has quit []
r0bby has joined #ruby
lfalcao has quit [Ping timeout: 264 seconds]
kaivai has joined #ruby
bastienleonard has quit [Quit: WeeChat 3.1]
<jhass> what do you expect, it's jvm
coda has joined #ruby
gr33n7001 is now known as gr33n7007h
<rapha> i'd say 5-7 seconds for hello world, that's not bad at all
<coda> rapha: on a 6502?
<rapha> doesn't nakilon run a 386DX? still fast, though.
geewiz has joined #ruby
<rapha> also don't be mean to the 6502 ... when not using the jvm, it could do a hello world in under 10ms.
<coda> maybe i should switch from jruby to mruby on 6502.
<ccooke> It would certainly be faster... than jruby on a 6502
<nakilon> got stuck with SWT anyway -- it can't display more than 41 buttons, lol
<jhass> but yeah, you'd think SWT would be supportive of the bottom usecase
<jhass> so... a soundboard?
<nakilon> jhass like this https://befunge.flogisoft.com/
<jhass> mmh, I wonder if it needs to be buttons, could perhaps be a table with click listeners for the cells
<nakilon> reinventing the buttons?
<jhass> I think I'm saying you won't need any of the fancy button animation stuff, just change the background color
<nakilon> the navigation is going to be with arrows while the "current cell" is highlighted somehow, for example by color
<jhass> then even more so
<nakilon> also I need text on them
<jhass> table's are great at displaying text
<nakilon> I "won't need any of the fancy table search stuff" nor "nested cell type specific editor widgets" nor "range selection"
<nakilon> and no sorting
<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
<gr33n7007h> can anyone test this and show me the results?
<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
<jhass> maybe they're competing over L2/L1 cache or something weird like that, idk
<gr33n7007h> jhass: ah, interesting indeed. thank you for testing.
geewiz has quit [Ping timeout: 272 seconds]
Rounin has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
Qchmqs has joined #ruby
gfawcett has joined #ruby
<rapha> relevant to earlier convo: https://earthly.dev/blog/jruby/
geewiz has joined #ruby
ollysmith has quit [Read error: Connection reset by peer]
ollysmith has joined #ruby
patrick has quit [Ping timeout: 264 seconds]
patrick has joined #ruby
patrick has quit [Ping timeout: 252 seconds]
patrick has joined #ruby
Qchmqs has quit [Read error: Connection reset by peer]
patrick has quit [Ping timeout: 252 seconds]
patrick has joined #ruby
Garb0 has joined #ruby
graywolf has joined #ruby
patrick has quit [Remote host closed the connection]
patrick has joined #ruby
patrick has quit [Quit: WeeChat 3.0.1]
kinduff5 has joined #ruby
kinduff has quit [Quit: Ping timeout (120 seconds)]
kinduff5 is now known as kinduff
gr33n7007h has quit [Quit: WeeChat 3.1]
Garb0 has quit [Quit: Garb0]
Garb0 has joined #ruby
patrick has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
<geewiz> exit
geewiz has quit [Quit: WeeChat 2.8]
ule has quit [Quit: WeeChat 3.1]
ule has joined #ruby
Garb0 has quit [Quit: Garb0]
Garb0 has joined #ruby
pc has joined #ruby
patrick has quit [*.net *.split]
jinie has quit [*.net *.split]
isene has quit [*.net *.split]
coda has quit [*.net *.split]
simao has quit [*.net *.split]
keyvan has quit [*.net *.split]
swaggboi has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
ruby[bot] has quit [*.net *.split]
_axx has quit [*.net *.split]
coda has joined #ruby
_axx has joined #ruby
jinie has joined #ruby
simao has joined #ruby
keyvan has joined #ruby
<nakilon> havenwood is it possible to take additional items within one enumerator iteration block call?
<nakilon> like... my_str.chars{ |c| .... forward_pull_more_chars if something ... }
swaggboi has joined #ruby
isene has joined #ruby
<adam12> nakilon: Sounds almost if you want a StringScanner here...
<nakilon> adam12 that's what I want to avoid since my program already implements some case when over the characters
<nakilon> now I want to jump over sometimes
NightMonkey has joined #ruby
<adam12> If you carried index with you, you could peek and then do some trickery. But this is what strscan avoids.
<adam12> my_str.chars.with_index.each { |c, idx| my_str.slice(idx, 2) if c == “y” }
<nakilon> maybe it's just yield?
<adam12> You’d still run into the issue where the characters are still yielded on the next iteration.
<nakilon> oh no I was looking at wrong socs snippet
<nakilon> *docs
swaggboi has quit [*.net *.split]
simao has quit [*.net *.split]
ollysmith has quit [*.net *.split]
r0bby has quit [*.net *.split]
gfawcett has quit [*.net *.split]
d0htem has quit [*.net *.split]
simao has joined #ruby
r0bby has joined #ruby
gfawcett has joined #ruby
d0htem has joined #ruby
d0htem has quit [Changing host]
d0htem has joined #ruby
swaggboi has joined #ruby
ollysmith has joined #ruby
<nakilon> >> e = "qwertyuio".chars; e.map{ |c| c.tap{ e.next } }
<nakilon> &>> e = "qwertyuio".chars; e.map{ |c| c.tap{ e.next } }
simao has quit [Client Quit]
simao has joined #ruby
<adam12> Looks like rubybot isn’t in here.
<adam12> ^ jhass can you look when you’re awake?
pc has quit [Quit: pc]
<Garb0> Anyone here got ocra to work?
<nakilon> > e = "qwertyuio".each_char; e.map{ |c| c.tap{ e.next } }
<nakilon> => ["q", "w", "e", "r", "t", "y", "u", "i", "o"]
<nakilon> I don't understand what e.next does here at all then
<adam12> Where’d you get e.next from? That’s calling String#succ
<nakilon> this is some dirty exception hack https://stackoverflow.com/a/41186901/322020
<adam12> What are you trying to do?
<nakilon> e. is Enumerator
<adam12> Oh nm. I didn’t notice you changed the argument.
<adam12> Yeah.
<havenwood> Oddly, #next and #succ aren't aliases. ¯\_(ツ)_/¯
<havenwood> At least on CRuby the VM optimizes #succ but not #next, which seems like an oversight.
<havenwood> >> RubyVM::InstructionSequence.compile("'a'.next").to_a.last[3]
<havenwood> => [:opt_send_without_block, {:mid=>:next, :flag=>16, :orig_argc=>0}]
<nakilon> > loop.with_object("qwertyuio".each_char).map{ |_,e| e.next.tap{ e.next } }
<nakilon> => ["q", "e", "t", "u"]
<nakilon> that's a mess
<nakilon> there should be a normal way
<havenwood> >> RubyVM::InstructionSequence.compile("'a'.succ").to_a.last[3]
<havenwood> => [:opt_succ, {:mid=>:succ, :flag=>16, :orig_argc=>0}]
<havenwood> nakilon: Whatcha skipping letters for? Hard to suggest in the abstract.
<nakilon> havenwood optimizing brainfuck
<havenwood> hah
lfalcao has joined #ruby
<Garb0> succ
patrick has joined #ruby
<nakilon> n = 1 ; n += 1 while ?+ == t = enumerator.next rescue StopIteration ; enumerator.feed t -- this is ugly anyway though
<nakilon> (nvm, I even roken the syntax but you can imagine it being several lines long)
<nakilon> *even broke
<nakilon> probably like this https://dpaste.org/1uz3/slim
ruby[bot] has joined #ruby
reset has joined #ruby
lfalcao has quit [Ping timeout: 264 seconds]
reset has quit [Quit: reset]
<nakilon> fffuuuuuu
<nakilon> .feed puts to the end ..\
reset has joined #ruby
<nakilon> how do I even return one step back?
<nakilon> probably have to use peek instead of next
<nakilon> so it's n = 1 ; (e.next; n += 1) while c == (e.peek rescue StopIteration)
d0htem has quit []
d0htem has joined #ruby
jetchisel has quit [Ping timeout: 272 seconds]
jetchisel has joined #ruby
lfalcao has joined #ruby
chonkbit has joined #ruby
steinomead has quit [Quit: term]
postmodern has joined #ruby
lfalcao has quit [Ping timeout: 268 seconds]
lfalcao has joined #ruby
jhass[m] has joined #ruby
Garb00 has joined #ruby
Garb0 has quit [Ping timeout: 265 seconds]
reset has quit [Changing host]
reset has joined #ruby
bastienleonard has joined #ruby
konsolebox has joined #ruby
lfalcao has quit [Ping timeout: 245 seconds]
chonkbit has quit [Ping timeout: 245 seconds]
chonkbit has joined #ruby
coda has quit [Ping timeout: 272 seconds]
involans has quit [Ping timeout: 264 seconds]
involans has joined #ruby
involans has quit [Ping timeout: 265 seconds]
justache is now known as justBull
postmodern has quit [Remote host closed the connection]
Exa has quit [Quit: see ya!]
Exa has joined #ruby
justBull is now known as the
the is now known as justBull
justBull is now known as justbull
postmodern has joined #ruby
justbull is now known as justBull
chonkbit has quit [Ping timeout: 264 seconds]
Garb00 has quit [Quit: Garb00]
postmodern_ has joined #ruby
postmodern has quit [Ping timeout: 268 seconds]
rodd has joined #ruby
lunarkitty has joined #ruby
<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
graywolf has quit [Quit: WeeChat 3.1]