havenwood changed the topic of #ruby to: Ruby 3.4.5, 3.3.9, 3.5.0-preview1 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
jmcantrell has quit [Ping timeout: 276 seconds]
The_Camel has quit [Ping timeout: 240 seconds]
o0ox1eef has quit [Ping timeout: 260 seconds]
victori- has quit [Ping timeout: 240 seconds]
flurp has joined #ruby
victori has joined #ruby
flurp has quit [Quit: The Lounge - https://thelounge.chat]
_whitelogger has joined #ruby
mange has joined #ruby
<mange> Is there an easy way to split an array using a predicate, without losing anything? Like (1..10).to_a.split { it % 4 == 0 } but producing [[1, 2, 3], [4, 5, 6, 7], [8, 9, 10]]?
<mange> I typed the question, but then did some more reading and came up with (1..10).to_a.chunk_while { |before, after| after % 4 != 0 }.to_a, which is fine, but slightly wordier than I'd like.
flurp has joined #ruby
cappy has joined #ruby
joako_ has quit [Quit: quit]
joako has joined #ruby
sleetdrop has quit [Quit: ZNC 1.8.2+deb2ubuntu0.1 - https://znc.in]
sleetdrop has joined #ruby
jmcantrell has joined #ruby
The_Camel has joined #ruby
FetidToot has quit [Ping timeout: 252 seconds]
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 276 seconds]
ih8u2 is now known as ih8u
brokkoli_origin has quit [Ping timeout: 252 seconds]
brokkoli_origin has joined #ruby
jmcantrell has quit [Ping timeout: 248 seconds]
flurp has quit [Quit: The Lounge - https://thelounge.chat]
cappy has quit [Quit: Leaving]
<gr33n7007h> mange: slice_before { it % 4 == 0 }
<mange> Oh ho ho! That's perfect. Thank you very much!
<gr33n7007h> np
Vonter_ has joined #ruby
Vonter has quit [Ping timeout: 240 seconds]
Vonter_ has quit [Ping timeout: 276 seconds]
Vonter has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
fantazo has quit [Quit: Lost terminal]
schne1der has joined #ruby
flurp has joined #ruby
Vonter has quit [Ping timeout: 276 seconds]
msv has quit [Quit: Leaving]
msv has joined #ruby
dionysus69 has joined #ruby
<tsujp> I know there are caveats with Ractors at the moment (which appear to be vastly improved in upcoming 3.5) but I am really tempted to use them for (relatively) simple parallel execution of shell commands for a big speedup
<tsujp> threads are nice but thread won't ever go multicore is my understanding, it's only single core concurrency whereas ractors will go multicore (right)
schne1der has quit [Ping timeout: 252 seconds]
schne1der has joined #ruby
Vonter has joined #ruby
infinityfye has joined #ruby
schne1der has quit [Ping timeout: 245 seconds]
pastelowl has joined #ruby
flurp has quit [Quit: The Lounge - https://thelounge.chat]
mange has quit [Quit: Zzz...]
user71 has joined #ruby
<havenwood> tsujp: It looks like Matz wants to go straight to Ruby 4.0 this Christmas.
<havenwood> tsujp: Yup, pretty much. The GVL prevents many but not all parallel cores for threads. The GVL is released for I/O, etc, and can be released by C-ext.
<leah2> havenwood: he tweeted that on april 1st :>
johnjaye has quit [Ping timeout: 248 seconds]
R2robot has quit [Ping timeout: 260 seconds]
R2robot has joined #ruby
FetidToot has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
jmcantrell has joined #ruby
johnjaye has joined #ruby
jmcantrell has quit [Ping timeout: 245 seconds]
jmcantrell has joined #ruby
<havenwood> leah2: This was July 10, but granted it's not phrased 100% clear.
<leah2> hmm
<leah2> what justifies 4.0 tho?
FetidToot4 has joined #ruby
FetidToot has quit [Ping timeout: 272 seconds]
FetidToot4 is now known as FetidToot
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
FetidToot has joined #ruby
jankasi has joined #ruby
cappy has joined #ruby
jankasi has quit [Quit: jankasi]
johnjaye has quit [Ping timeout: 260 seconds]
johnjaye has joined #ruby
oznek has joined #ruby
oznek has quit [Client Quit]
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 252 seconds]
jankasi has joined #ruby
rvalue- is now known as rvalue
Vonter has quit [Ping timeout: 248 seconds]
jmcantrell has quit [Ping timeout: 248 seconds]
Vonter has joined #ruby
cappy has quit [Quit: Leaving]
infinityfye has quit [Read error: Connection reset by peer]
user71 has quit [Quit: Leaving]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jankasi has quit [Quit: jankasi]
eddof13 has joined #ruby
polishdub has quit [Ping timeout: 276 seconds]
polishdub has joined #ruby
eddof13 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
<havenwood> leah2: Set becoming a C implementation is the top thing that comes to my mind.
<havenwood> Major changes to Ractor, but it's experimental.
<havenwood> SortedSet behavior changes in a breaking way, the C API for Set, and such.
jmcantrell has joined #ruby