infinityfye has quit [Killed (NickServ (GHOST command used by infinityfye__))]
infinityfye__ is now known as infinityfye
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 276 seconds]
rvalue- is now known as rvalue
dionysus69 has joined #ruby
dionysus70 has joined #ruby
jmcantrell has quit [Ping timeout: 272 seconds]
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
cappy has joined #ruby
sleetdrop has quit [Ping timeout: 276 seconds]
sleetdrop has joined #ruby
ikonia has joined #ruby
<ikonia>
hello Ruby users, My problem is not actually a ruby problem, a request for advice on how to manage a Ruby environment issue on a mac. My mac has Ruby 2.6.10 installed as part of it's OS, my problem is using Zed editor it wants a gem that depends on Ruby 2.7. I don't want to change the mac OS installed version (and can't real world) however I would like to install a later version of ruby in a protected
<ikonia>
environment (such as venv) and then if possible allow Zen editor to use that virutal environment to resolve it's dependencies
<ikonia>
is this possible real world ?
<testone>
ikonia: if macosx still work in a 'unix way', you can use one of: rbenv, chroot, asdf, <others I don't remember>
<testone>
they make you install more versions of ruby (for asdf, not only of ruby) and switch between them with simple commands
<testone>
s/chroot/chruby/
<testone>
it seems you can install any of those in mac
<testone>
one of the <others I don't remember> is: RVM
<testone>
[using brew, macports and other pkg managers for macosx]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
dionysus70 has quit [Ping timeout: 265 seconds]
<moo>
does it matter from performance standpoint if i do arr.pop or arr.shift (on huge arrays)?
<moo>
in my case whether i get last or first element doesn't matter so
<kjetilho>
why not iterate over it without changing the object at all? I'd expect that to be fastest.
<moo>
oh it's a queue where its fed inputs and bunch of threads are consuming them
<kjetilho>
ok, ideally it will never become a huge backlog, then
<moo>
i would think pop will be faster but tbh trying to test it i see no difference
<kjetilho>
I think what you have to worry about is how effective GC is for the different methods. I don't have any insight, unfortunately.
<kjetilho>
but the actual object on the queue will probably dominate anyway
<nakilon>
ikonia: you are not supposed to change the default macOS ruby or even install gems
<nakilon>
it was right that was said above, that you need a ruby version manager, such as rbenv
<nakilon>
it will install everything in your user space
<ikonia>
nakilon: that's exactly the point, I don't want to touch system ruby, but I do want a local updated version, that I can somehow force zed text editor to use, rather than system ruby
mange has quit [Quit: Zzz...]
oznek has joined #ruby
sarna has quit [Ping timeout: 252 seconds]
Sheilong has joined #ruby
<moo>
Thread::Queue#pop "If the queue is empty, the calling thread is suspended until data is pushed onto the queue. " WOW i was going so crazy here trying to debug wtf is happening
user71 has joined #ruby
elmetah has joined #ruby
* elmetah
sings: "when Ruby wasn't a language, Rubee Ruu be Ruu be beeee y-e-a-h a-h-a-h-a haa haa haa haaaa"
nullxf has joined #ruby
nullxf has left #ruby [#ruby]
<elmetah>
I can 'magine 16 good "Rubies" today, but is it good-good to 'magine also do?
<elmetah>
Todays languages condense 99 non-directories to count to siente
<elmetah>
Good bye
* elmetah
sings: "when Ruby was a toad, I'll tell you what I'd do ,,,"
<havenwood>
moo: Just be sure to `queue.pop(true)` rather than `queue.pop unless empty?` to avoid a race. :)
dionysus69 has quit [Ping timeout: 265 seconds]
elmetah has quit [Quit: Client closed]
elmetah has joined #ruby
elmetah has quit [Client Quit]
grenierm has joined #ruby
sarna has joined #ruby
otisolsen70 has quit [Read error: Connection reset by peer]
infinityfye has quit [Read error: Connection reset by peer]
sarna has quit [Ping timeout: 272 seconds]
michfx has joined #ruby
michfx has quit [Client Quit]
dionysus69 has joined #ruby
grenierm has quit [Quit: Client closed]
sarna has joined #ruby
hombrelaser1 has joined #ruby
sleetdrop has quit [Ping timeout: 252 seconds]
sleetdrop has joined #ruby
nullxf has joined #ruby
nullxf has quit [Client Quit]
jmcantrell has joined #ruby
schne1der has quit [Ping timeout: 260 seconds]
<moo>
havenwood each of my threads had: while foo = queue.pop ; .... :D
cappy has joined #ruby
sleetdrop has quit [Quit: ZNC 1.8.2+deb2ubuntu0.1 - https://znc.in]
sleetdrop has joined #ruby
jmcantrell has quit [Ping timeout: 268 seconds]
user71 has quit [Quit: Leaving]
jmcantrell has joined #ruby
eddof13 has joined #ruby
Rounin has quit [Ping timeout: 252 seconds]
Rounin has joined #ruby
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
rvmtz has joined #ruby
Linux_Kerio has joined #ruby
fantazo has joined #ruby
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
dviola has quit [Read error: Connection reset by peer]
diego has joined #ruby
diego is now known as Guest4677
Guest4677 has left #ruby [#ruby]
dviola has joined #ruby
schne1der has joined #ruby
rvmtz has quit [Remote host closed the connection]
Linux_Kerio has quit [Ping timeout: 268 seconds]
schne1der has quit [Quit: schne1der]
oznek has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 252 seconds]
fantazo has quit [Quit: Lost terminal]
jmcantrell has quit [Ping timeout: 252 seconds]
ruby[bot] has quit [Remote host closed the connection]