<leftylink>
that my answer must have been deemed insufficient
<leftylink>
I apologise that I was not able to give a sufficient answer at that time. I will retry.
<mnathani>
I got confused with the multiple arguments
<leftylink>
it is not possible, _in general_, to say how a function taking a block will use that block. one must consult the documentation or the source of that function. in some cases, it is obvious. like, with something like Array#each, it's obvious that the one block argument is each element of the array
<leftylink>
whereas we see from that documentation that for Hash#each, its two arguments are each key/value pair
<leftylink>
if we weren't certain about Array#each, we would similarly look up its documentation to understand how the block would be used
<mnathani>
Thank you. That makes more sense
prestorium has quit [Quit: prestorium]
prestorium has joined #ruby
<leftylink>
you also wanted to know whether one can relate it to how `for` is written in other languages. it is true that the bash snippet `for i in {1..10}; echo $i` could be expressed in ruby as `(1..10).each { |i| puts i }`. so that is one way we can think about `each`. for other functions that take blocks, an equivalent in other languages would look different
jtdowney has left #ruby [#ruby]
jenrzzz has joined #ruby
<mnathani>
is there a way to thread or parallel process things in ruby?
zacts has joined #ruby
<leftylink>
it appears that you are not satisfied with the answers you received on 07-10. you should say why you are not satisfied. otherwise, what if someone gives you the exact same answer, and you have to say that you already got that answer before? then time will have been wasted.
<leftylink>
I will provide some keywords that can be used as a starting point of a search. one might use Thread, built in to the ruby standard library. one might use the gem known as concurrent-ruby. one should be careful of the GVL, or some call it the GIL.
dviola has quit [Quit: WeeChat 2.8]
<leftylink>
I am not comfortable providing further explanation without knowing what level of effort the querent has devoted to answering the question. it would not seem fair to me if I had to expend a lot of effort and the querent expends none.
arzWZM has quit [Ping timeout: 272 seconds]
arzWZM has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
Guest48 has joined #ruby
<mnathani>
I looked up concurrent-ruby and GVL so far and they look very helpful
<mnathani>
I apologize for asking a lot of questions sometimes repeatedly
zacts has joined #ruby
Guest48 has quit [Ping timeout: 272 seconds]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
segy has quit [Ping timeout: 256 seconds]
segy has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
wymillerlinux has joined #ruby
comet23 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greypack has joined #ruby
greypack has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
LtHummus has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
arzWZM has quit [Ping timeout: 256 seconds]
arzWZM has joined #ruby
orbyt_ has joined #ruby
zacts_pi has joined #ruby
jenrzzz has joined #ruby
zacts has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
bruce_lee has quit [Ping timeout: 256 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
zacts_pi has quit [Ping timeout: 256 seconds]
ctOS has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 258 seconds]
zacts has joined #ruby
gix- has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
wymillerlinux has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
mheld has quit [Quit: Connection closed for inactivity]
polishdub has joined #ruby
Guest67237 has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
baweaver is now known as Guest37202
jenrzzz has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
zacts has quit [Ping timeout: 260 seconds]
polishdub has quit [Quit: leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
comet23 has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 272 seconds]
alexherbo2 has joined #ruby
DTZUZU has quit [Ping timeout: 256 seconds]
DTZUZU has joined #ruby
zacts has joined #ruby
duderonomy has joined #ruby
govg has quit [Ping timeout: 272 seconds]
govg has joined #ruby
BenDover has joined #ruby
jenrzzz has joined #ruby
olblak has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
Industrial has joined #ruby
Industrial has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
davispuh has joined #ruby
chalkmonster has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
sagax has joined #ruby
jenrzzz has joined #ruby
<rapha>
TIL "querent"
<rapha>
good morning all
<rapha>
hope everybody is having a wonderfully relaxing Sunday
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
tau has joined #ruby
tau has quit [Changing host]
tau has joined #ruby
oddp has joined #ruby
tau has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 272 seconds]
chalkmonster has quit [Quit: WeeChat 2.8]
_whitelogger has joined #ruby
zacts has quit [Ping timeout: 260 seconds]
Industrial has joined #ruby
greypack has joined #ruby
gix has joined #ruby
hiroaki has joined #ruby
<phaul>
&ri Kernel#Array
<rubydoc>
phaul: parser error at position 0 around `r'
rubydoc has quit [Remote host closed the connection]
<ajay>
(by the way, I am using this chatroom over Hexchat on linux based laptop, which seems to be of 90s and I don't know much how to control like replying to a particular message and code formatting. Are there any other ways to access the same chat room?)
<havenwood>
ajay: Any IRC client will do.
jottr has joined #ruby
<havenwood>
ajay: You can even create your own client with Ruby, if you like.
<havenwood>
ajay: Other off-the-shelf options include irssi, WeeChat, ERC, Smuxi, Quassel and mIRC.