havenwood changed the topic of #ruby to: Ruby 3.4.2, 3.3.8 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
Linux_Kerio has joined #ruby
STASIdownunder has quit [Quit: Leaving]
STASIdownunder has joined #ruby
Stenotrophomonas has joined #ruby
brokkoli_originl has quit [Ping timeout: 260 seconds]
cappy has joined #ruby
dannyAAM has quit [Ping timeout: 252 seconds]
Sheilong has quit []
grenierm has joined #ruby
wbooze has quit [Read error: Connection reset by peer]
dannyAAM has joined #ruby
Rounin has quit [Ping timeout: 244 seconds]
STASIdownunder has quit [Ping timeout: 244 seconds]
jmcantrell has quit [Quit: WeeChat 4.6.1]
Rounin has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 260 seconds]
fantazo has joined #ruby
rvalue- is now known as rvalue
eoli3n has quit [Read error: Connection reset by peer]
eoli3n has joined #ruby
eoli3n has quit [Remote host closed the connection]
eoli3n has joined #ruby
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
patrick has quit [Ping timeout: 276 seconds]
patrick_ is now known as patrick
patrick_ has joined #ruby
patrick has joined #ruby
patrick has quit [Changing host]
patrick_ is now known as patrick
patrick_ has joined #ruby
patrick__ has joined #ruby
patrick has quit [Changing host]
patrick has joined #ruby
patrick__ is now known as patrick
cappy has quit [Quit: Leaving]
grenierm has quit [Ping timeout: 240 seconds]
rvalue has quit [Ping timeout: 252 seconds]
Exa has quit [Ping timeout: 252 seconds]
Exa has joined #ruby
rvalue has joined #ruby
blacknova has quit [Quit: Connection closed for inactivity]
Linux_Kerio has quit [Ping timeout: 276 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Munto has quit [Ping timeout: 260 seconds]
gemmaro has quit [Ping timeout: 244 seconds]
gemmaro_ has joined #ruby
GreenResponse has joined #ruby
Munto has joined #ruby
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
blacknova has joined #ruby
infinityfye has joined #ruby
infernix has joined #ruby
user71 has joined #ruby
Linux_Kerio has joined #ruby
otisolsen70 has quit [Quit: Leaving]
fantazo has quit [Quit: Lost terminal]
<nakilon> hiding the BDIGIT from public api and using rb_integer_pack instead is 3-5 times slower
infernix has quit [Read error: Connection reset by peer]
seisatsu has quit [Ping timeout: 265 seconds]
<nakilon> made for compatibility? I've no idea, I just need to read those bits; with no access to "BDIGITS" macro my gem isn't the faster anymore
infernix has joined #ruby
BSaboia has quit [Quit: ZNC - https://znc.in]
BSaboia has joined #ruby
infernix has quit [Ping timeout: 252 seconds]
infernix has joined #ruby
Exa has quit [Quit: see ya!]
Sheilong has joined #ruby
Exa has joined #ruby
jmcantrell has joined #ruby
blacknova has quit [Quit: Connection closed for inactivity]
___nick___ has joined #ruby
user71 has quit [Quit: Leaving]
victori has quit [Remote host closed the connection]
<nakilon> looks like https://cache.ruby-lang.org/pub/ruby/\$RUBY_MAJOR/ruby-\$RUBY_VERSION.tar.gz isn't available anymore
victori has joined #ruby
victori has quit [Remote host closed the connection]
victori has joined #ruby
hwpplayer1 has joined #ruby
user71 has joined #ruby
jmcantrell has quit [Ping timeout: 252 seconds]
fantazo has joined #ruby
schne1der has joined #ruby
cappy has joined #ruby
Rounin has quit [Ping timeout: 276 seconds]
TomyLobo has joined #ruby
schne1der has quit [Ping timeout: 272 seconds]
___nick___ has quit [Ping timeout: 252 seconds]
___nick___ has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
Stenotrophomonas is now known as brokkoli_origin
joako has quit [Quit: quit]
___nick___ has quit [Ping timeout: 276 seconds]
joako has joined #ruby
Rounin has joined #ruby
<havenwood> nakilon: Curious if an AVX2-optimized version of bary_pack for 64-bit integers with no nails would help.
<havenwood> A bunch of parallel xors might matter.
<havenwood> I'm afraid 32-bit would require a separate implementation and it feels like diminishing returns to continue to care.
schne1der has joined #ruby
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ruby
user71 has quit [Quit: Leaving]
hwpplayer1 has joined #ruby
hwpplayer1 has quit [Read error: Connection reset by peer]
schne1der has quit [Ping timeout: 252 seconds]
Linux_Kerio has quit [Ping timeout: 252 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
GreenResponse has quit [Quit: Leaving]
infinityfye has quit [Quit: Leaving]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
sphex has joined #ruby
<sphex> so... #to_enum does not have the same ability to "capture" refinements as Symbol#to_proc does? am I getting this right?
<havenwood> sphex: "Capture refinement" isn't the right terminology since "refinements" are a thing. They're like lexically scoped monkey patches.
<havenwood> sphex: A proc encloses its binding.
<havenwood> sphex: An Object#to_enum creates an Enumerator rather than a Proc. They similarly enclose state but Enumerators are for internal and external iteration, so it's pretty specific.
<havenwood> They're similar in that they're both a shorthand for creating, one a Proc the other an Enumerator.
<havenwood> sphex: You're likely to call #to_enum on a collection or something that can produce one. A #to_proc is usually used implicitly, where you do `&:a_symbol` to pass a Symbol as a block.
<havenwood> The `&` calls #to_proc on `a_symbol` and also passes it as a block rather than a regular argument.
<sphex> havenwood: ok yeah, I was wrong. I thought to_proc could remember the refinements that were in scope at the time it was called but no, it doesn't do that. and to it's no different from to_enum...
<sphex> well, that makes it harder to make enumeration-style methods in refinements. methods that return an enumerator for themselves when called without a block I mean. the to_enum enumerator can't see the refined methods... you can work around it by creating an Enumerator manually, but kind of annoying, and probably slower...
<sphex> huh interesting... seems like it's possible to "capture" refinements with the "&" operator. "&:abc" isn't quite the same as "&:abc.to_proc". the implicit "to_proc" is magic.
cappy has quit [Quit: Leaving]