SuperLag has quit [Ping timeout: 265 seconds]
drincruz_ has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
lucf117 has quit [Remote host closed the connection]
factor4 has joined #ruby
ur5us has joined #ruby
factor has quit [Ping timeout: 272 seconds]
factor4 is now known as factor
drincruz_ has quit [Ping timeout: 268 seconds]
drincruz_ has joined #ruby
pwnd_sfw1 has joined #ruby
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw1 is now known as pwnd_sfw
drincruz_ has quit [Ping timeout: 268 seconds]
mrkz_c has joined #ruby
slothby has quit [Quit: brb ... maybe]
slothby has joined #ruby
drincruz_ has joined #ruby
lucf117 has joined #ruby
drincruz_ has quit [Ping timeout: 268 seconds]
Nik- has joined #ruby
Nik- has quit [Read error: Connection reset by peer]
Nik- has joined #ruby
Garb000 has quit [Remote host closed the connection]
Garb000 has joined #ruby
Toledo has joined #ruby
Toledo is now known as croberts
elf_fortrez has joined #ruby
elf_fortrez has quit [Write error: Broken pipe]
drincruz_ has joined #ruby
willthechill has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 272 seconds]
dvgorod has joined #ruby
factor has quit [Ping timeout: 252 seconds]
lucf117 has quit [Remote host closed the connection]
ur5us has joined #ruby
pwnd_sfw3 has joined #ruby
pwnd_sfw has quit [Ping timeout: 268 seconds]
pwnd_sfw3 is now known as pwnd_sfw
lad has quit [Remote host closed the connection]
lad has joined #ruby
finsternis has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 250 seconds]
teclator_ has joined #ruby
teclator has joined #ruby
reset has quit [Quit: reset]
gr33n7007h has quit [Quit: WeeChat 3.2]
FastJack has quit [Ping timeout: 258 seconds]
FastJack has joined #ruby
lad has quit [Ping timeout: 268 seconds]
teclator_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
easbarbosa has quit [Remote host closed the connection]
ur5us has joined #ruby
jetchisel has joined #ruby
weaksauce has quit [Ping timeout: 268 seconds]
pusewicz has joined #ruby
<nakilon> there should be a gemspec field thread_safe
<nakilon> so people would see it on rubygems.org immediately when deciding to use and how to use the gem
FastJack has quit [Ping timeout: 268 seconds]
royo25 has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
TomyWork has joined #ruby
Danishman has joined #ruby
_aeris_ has quit [Ping timeout: 244 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
_aeris_ has joined #ruby
Guest33 has joined #ruby
pusewicz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunarkitty has joined #ruby
<adam12> Most people probably don't know. Ie. See Samuel's talk about threads and fibers.
<ccooke> I think I'v always worked on the assumption that any gem is not thread safe
<nakilon> adam12 don't know if their gem is thread-safe? that's why I as their gem user should know if they don't know it
<adam12> nakilon: Not sure how that helps tho. People would just set it to true even if they didn't know.
<nakilon> I mean, just having this standard field in gemspec will make them start thinking about thread safety and if they don't know about it they won't set this field since it would be by default set to "not safe"
<nakilon> most of fields in gemspec are optional -- people don't set them if they don't need to, I assume
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
<nakilon> lol I want to record by CLI gem usage example; I choose between two tools to record terminal session: https://github.com/faressoft/terminalizer/issues/21
<nakilon> > Another advantage I think it's relevant is the fact Terminalizer is implemented in Node.js and not Python.
<nakilon> "oh nice!" I think, then I do npm install and it... installs python! and obviously fails because puthon always fails
<nakilon> I didn't see anything this misleading for a while
qunzhong_luxian has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
qunzhong_luxian has quit [Quit: Textual IRC Client: www.textualapp.com]
xuochi has joined #ruby
pusewicz has joined #ruby
drincruz has joined #ruby
pusewicz_ has joined #ruby
pusewicz has quit [Quit: Textual IRC Client: www.textualapp.com]
pusewicz_ is now known as pusewicz
drincruz_ has quit [Ping timeout: 265 seconds]
qunzhong_luxian has joined #ruby
willthechill has joined #ruby
drincruz_ has joined #ruby
Guest33 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has quit [Ping timeout: 268 seconds]
motherr has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
<jidar> wait installing a node package will install python?
<jidar> heh, that seems... odd
<adam12> >> {one: nil, two: nil, three: 3}.lazy.filter_map { |k, v| v }.first
<ruby[bot]> adam12: # => 3 (https://carc.in/#/r/bfyk)
<adam12> I wonder how common it is to want the return value of the block and not the element, when using something like Enumerator#find
<adam12> >> {one: nil, two: nil, three: 3}.find { break _2 if _2 }
<ruby[bot]> adam12: # => 3 (https://carc.in/#/r/bfyl)
<nakilon> adam12 I did it a lot
<nakilon> (filter_map is useless method btw)
sdfuiojklqaz has joined #ruby
<nakilon> it's just flat_map.compact, are we gonna make extra method for every two methods chainings?...
<nakilon> that's just my opinion though
<nakilon> btw, neither of two python tools did install neither in macos nor in dockerized alpine or ubuntu, lol
<nakilon> so I used a rust wrapper onto ffmpeg that is slow and tedious https://github.com/sassman/t-rec-rs
finsternis has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<adam12> nakilon: flat_map.compact isnt' just two method calls, it's two iterations through the collection. O(n)*2 or something.
<nakilon> O(n)*2 = O(n) though
<jhass[m]> O notation is not sufficient to point out all performance problems there are :)
<nakilon> unfortunately there is no notation to point out problems of having bloated stdlib
<jhass[m]> for really big collections it makes a difference. For many small collections it makes a difference if your forget to use .compact! over compact
<jhass[m]> the latter due to GC pressure mostly
<nakilon> the "want the return value of the block and not the element, when using something like Enumerator#find" isn't even a self-sufficient problem -- it's somewhere inside your algorithm where you might not even need to compact, it all depends on the whole picture
Guest33 has joined #ruby
<jhass[m]> I'm actually responsible for Crystal having Enumerable#min_of/max_of which are min_by/max_by but returning the block's value. Not sure why "find_value" didn't happen at the same time
<jhass[m]> maybe because it's too easy to break
chonkbit has joined #ruby
qunzhong_luxian has quit [Quit: Textual IRC Client: www.textualapp.com]
saba_sedigh has quit [Ping timeout: 268 seconds]
saba_sedigh has joined #ruby
drincruz_ is now known as drincruz
royo25 has quit [Quit: Bye]
TomyWork has quit [Quit: Leaving]
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
FetidToot has joined #ruby
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 258 seconds]
reset has joined #ruby
Nik- has quit [Ping timeout: 272 seconds]
drincruz_ has quit [Ping timeout: 258 seconds]
drincruz_ has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Changing host]
TorpedoSkyline has joined #ruby
MalkbabY_ has joined #ruby
<riceandbeans> What is the simplest way to say `unless foo.include?(bar)` where `bar = %w[ baz biff ]`
xuochi has quit [Quit: leaving]
drincruz has joined #ruby
dostoyevsky2 has quit [Ping timeout: 256 seconds]
drincruz_ has quit [Ping timeout: 268 seconds]
goldfish has joined #ruby
<havenwood> riceandbeans: bar.none? { foo.include? _1 }
Guest33 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<riceandbeans> I actually figured out a different way for my situation that was a little weird but it worked
<riceandbeans> I'm validating it right now..
<riceandbeans> But, so far in a quick test it seemed to work
<riceandbeans> Basically, I flipped it. I added something than said bar.include(foo)
<riceandbeans> So, if I get this test to exit 1, it will have worked, because I slipped in a broken file that should trigger it to exit badly where it exited cleanly before
goepsilongo has joined #ruby
<adam12> >> (%w[foo bar] & [baz bif]).none?
<ruby[bot]> adam12: # => (https://carc.in/#/r/bg29)
<adam12> >> (%w[foo bar] & %w[baz bif]).none?
<ruby[bot]> adam12: # => true (https://carc.in/#/r/bg2a)
<adam12> I wonder which method is more efficient.
dostoyevsky2 has joined #ruby
<riceandbeans> D'OH!
<riceandbeans> I botched a lint when I needed to botch a syntax, two different checks lol
<riceandbeans> This time testing the right test!
ur5us has joined #ruby
lucf117 has joined #ruby
weaksauce has joined #ruby
dvgorod has quit [Ping timeout: 272 seconds]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
chonkbit has quit [Remote host closed the connection]
kwilczynski has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
chonkbit has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
lunarkitty has joined #ruby
chonkbit has quit [Ping timeout: 250 seconds]
lad has joined #ruby
Guest33 has joined #ruby
Guest33 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 258 seconds]
MalkbabY has joined #ruby
Danishman has quit [Quit: Leaving]
MalkbabY_ has quit [Ping timeout: 258 seconds]
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 258 seconds]
<leftylink> there may indeed have been some times where I could have found mmax_of and min_of useful
<leftylink> find_value would definitely have been useful, but I think I can achieve a similar one with .lazy.map.find(&:itself)
<leftylink> I feel like filter_map is much more sensible when the language has Some/None built in.
drincruz_ has joined #ruby
drincruz has quit [Read error: Connection reset by peer]
drincruz_ has quit [Ping timeout: 252 seconds]
motherr has quit [Ping timeout: 258 seconds]
motherr has joined #ruby
explorier4 has joined #ruby
kinduff0 has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff0 is now known as kinduff
explorier has quit [Read error: Connection reset by peer]
explorier4 is now known as explorier
drincruz_ has joined #ruby
lad has quit [Ping timeout: 258 seconds]
erb has joined #ruby
gr33n7007h has joined #ruby
erb has quit [Ping timeout: 268 seconds]
erb has joined #ruby
erb has quit [Quit: Quit]
benjamin- has quit [Ping timeout: 244 seconds]
benjaminwil has joined #ruby