<creature>
Hello. I'm having a devil of a time setting up rbenv on macOS. If there's a better channel than this, I am all ears.
<creature>
I have installed rbenv via Homebrew. I have added a line to my .bashrc that reads "if which rbenv > /dev/null; then eval "$(rbenv init - --no-rehash)"; fi". That all works fine. But trying to run something (eg. "rbenv versions") results in infinitely forking processes.
<creature>
(They spool hundreds of nested rbenv init - --no-rehash)
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ncthom91 has joined #ruby
nadir has joined #ruby
t-recx has quit [Quit: t-recx]
ncthom91 has quit [Max SendQ exceeded]
cagomez has quit [Remote host closed the connection]
ncthom91 has joined #ruby
ncthom91 has quit [Max SendQ exceeded]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
dc4 has quit [Ping timeout: 268 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
gusrub has quit [Client Quit]
last_staff has quit [Quit: last_staff]
ecuanaso has joined #ruby
kht has joined #ruby
pawnbox has joined #ruby
sepp2k has quit [Quit: Leaving.]
bkxd has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 260 seconds]
dviola has quit [Quit: WeeChat 1.7]
TPug has joined #ruby
hutch34 has joined #ruby
skweek has joined #ruby
raul782 has quit [Remote host closed the connection]
montanonic has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
moei has quit [Quit: Leaving...]
jaiks has quit [Ping timeout: 276 seconds]
Chagel has quit [Ping timeout: 268 seconds]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
Chagel has joined #ruby
raul782 has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlahtoani has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
raul782 has quit [Ping timeout: 255 seconds]
ruby-lang201 has joined #ruby
gdonald has joined #ruby
__Yiota has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
kht has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
gevans has joined #ruby
gevans has quit [Remote host closed the connection]
safetypin has joined #ruby
gevans has joined #ruby
g_evans has joined #ruby
gevans has quit [Read error: Connection reset by peer]
ylecuyer has joined #ruby
gevans has joined #ruby
g_evans has quit [Read error: Connection reset by peer]
<ylecuyer>
Hi, i'm trying to have an object with an internal state and I'd like to have one function with the implementation depending on the internal state of the object
ruby-lang201 has quit [Ping timeout: 260 seconds]
<ylecuyer>
Something like what state_machines do
csk has quit [Quit: ZZZzzz…]
<ylecuyer>
state :parked do def speed 0 end end
hanmac has left #ruby [#ruby]
<Zarthus>
use pastebin if you want code to get pasted eleganrly :)
JeanCarloMachado has joined #ruby
<Zarthus>
are you just looking for an if statement?
ur5us has quit [Remote host closed the connection]
<ruby[bot]>
ylecuyer: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jameser_ has joined #ruby
<Zarthus>
ylecuyer: I think you're looking for @state = :parked, if @state == :parked return 0
Channel6 has joined #ruby
<ylecuyer>
Zarthus: I don't wan't to use state_machines but I wan't to be able to code a class like the one given in the bin
ur5us_ has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
<ylecuyer>
Zarthus: I think I have to find the way to implement the method not found in object rescue in order to apply the method defined in the state
jameser has quit [Ping timeout: 260 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Zarthus>
is this some rails terms i'm not getting?
TPug has joined #ruby
<ylecuyer>
Zarthus: no this has nothing related to rails it's pure ruby
duderonomy has quit [Ping timeout: 240 seconds]
<Zarthus>
ylecuyer, I might be completely misunderstanding, but is this not what you want?
JeanCarloMachado has quit [Ping timeout: 255 seconds]
tildes has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
<ylecuyer>
Zarthus: something like that but inverted, I don't want the implementation of speed to be dependent on the state, I want for each state to define a speed function
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 260 seconds]
<Zarthus>
You could do something like `SpeedStruct = Struct.new(:state, :speed)
<Zarthus>
then driving = SpeedStruct.new(:driving, 60)
<Zarthus>
can't say i've ever considered this to be necessary though
versigtig has quit [Quit: This computer has gone to sleep]
djbkd_ has joined #ruby
Anonymoose2 has joined #ruby
dionysus69 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
reverberations has quit [Ping timeout: 240 seconds]
Tempesta has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
jgnagy_ has quit [Remote host closed the connection]
triangles has quit [Quit: Leaving]
al2o3-cr_ has joined #ruby
Tempesta has joined #ruby
al2o3-cr has quit [Disconnected by services]
al2o3-cr_ is now known as al2o3-cr
LoneHer__ has quit [Remote host closed the connection]
tlahtoani has quit [Quit: Connection closed for inactivity]
bkxd has joined #ruby
LoneHerm_ has joined #ruby
<jamesaxl>
hi
Rodya_ has joined #ruby
Derperperd has quit [Ping timeout: 268 seconds]
esObe has quit [Remote host closed the connection]
esObe has joined #ruby
tusharmalik has joined #ruby
squ has quit [Ping timeout: 245 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
grh has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
aufi has joined #ruby
nankyokusei has joined #ruby
djbkd_ has quit []
ifctj has quit [Read error: Connection reset by peer]
ifctj has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
padi_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
raldu has quit [Quit: Lost terminal]
montanonic has quit [Ping timeout: 240 seconds]
grh has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
padi_ has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
teclator has joined #ruby
agit0 has joined #ruby
padi_ has quit [Remote host closed the connection]
ta has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
esObe has joined #ruby
JeanCarloMachado has joined #ruby
al2o3-cr has quit [Ping timeout: 255 seconds]
ifctj has quit [Ping timeout: 260 seconds]
esObe has quit [Remote host closed the connection]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
esObe has joined #ruby
padi_ has joined #ruby
jeyraof^mbpr has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
padi_ has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
bheesham has quit [Ping timeout: 240 seconds]
tildes has quit [Remote host closed the connection]
vondruch has joined #ruby
djbkd_ has joined #ruby
csk157 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
djbkd_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
rafadc has joined #ruby
Derperperd has joined #ruby
JeanCarloMachado has joined #ruby
acalycine has quit [Quit: bye]
aganov has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
Definity has quit [Ping timeout: 255 seconds]
Axy has quit [Read error: Connection reset by peer]
x0f has quit [Ping timeout: 256 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
Snickers has joined #ruby
Kahraman has joined #ruby
padi_ has joined #ruby
pawnbox has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Mia has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
vasilakisfil has joined #ruby
mark_66 has joined #ruby
Pumukel has joined #ruby
persand has joined #ruby
padi_ has quit [Ping timeout: 268 seconds]
Ishido has joined #ruby
aupadhye has joined #ruby
Morrolan_ has quit [Quit: Goodbye]
Morrolan has joined #ruby
Morrolan has quit [Client Quit]
jared_nyc has quit [Quit: Connection closed for inactivity]
Morrolan has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<vasilakisfil>
hello
JeanCarloMachado has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
grh has joined #ruby
<vasilakisfil>
I have a question. I have a parent class (say Animal) which has some sub classes (say Cat and Dog, Shark, Chicken..). On some of those subclasses, I include a module (say Walkable) in which I do a lot of memoization (say `can_move?` method memoizes the calculated value) and save the values in the class variables because I want the memoized value to be singleton, it's the same for every object of the class (and it's the same for
<vasilakisfil>
every class in the Animal family). So whichever class calls `can_move?` method first, it memoizes the value of that method in a class variable @@can_move. Now I am wondering, given that class variables are shared between parent and children, is Ruby smart enough to actually have only one reference on memory for the @@can_move variable or does it create a new copy for each class, leading to excessive usage of memory (in my scenario
<vasilakisfil>
the equivelant of `can_move?` saves a ton of data)
mikecmpbll has joined #ruby
mim1k has joined #ruby
persand has quit [Quit: persand]
mikecmpbll has quit [Quit: inabit. zz.]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
teclator has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
loechel has joined #ruby
x0f has joined #ruby
browndawg has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
troulouliou_div2 has joined #ruby
loechel has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
felltir has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
<Burgestrand>
vasilakisfil I can't say I entirely understand your question, but ruby's pretty much all about references, so even if each different "instance" of the variable (I doubt there are multiple instances, I believe it's just one) was it's own reference it would be of minimal impact on memory unless you had a bazillion subclasses each of them including the module (at which point your memory usage probably comes from the bazillion
<Burgestrand>
subclasses)
last_staff has joined #ruby
jgnagy has joined #ruby
<Burgestrand>
vasilakisfil i.e. https://eval.in/739302 — you can tell it's the same object_id no matter from where I access it
teclator has joined #ruby
<Bish>
?paste
<ruby[bot]>
Bish: I don't know anything about paste
<Bish>
where do i paste my stuff :(
<Burgestrand>
?code Bish
<ruby[bot]>
Bish: We can't help you without your code, please post it to https://gist.github.com
<Burgestrand>
:D
<Burgestrand>
Bish although I do use eval.in most of the time since it also evaluates the rooby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
aryaching_ has quit [Ping timeout: 260 seconds]
jdm_ has joined #ruby
xall_ has joined #ruby
milardovich has joined #ruby
xall has quit [Ping timeout: 255 seconds]
jdm has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
Lukefahr has joined #ruby
blackmesa has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
jaruga______ has joined #ruby
Pumukel has quit [Remote host closed the connection]
jaruga_______ has joined #ruby
Pumukel has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
jaruga______ has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 260 seconds]
ferr1 has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
mlkkk has joined #ruby
patarr has joined #ruby
Lukefahr has quit []
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Rodya_ has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
<phage>
I'm importing a class from another file located in the same folder as the "main" ruby file. However, it requires I give it the full system path to the file I want to import for it to work. Any way I can tell it to look in the same folder?
<phage>
I'm an idiot. Please disregard the above question.
acalycine has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
acalycine has quit [Client Quit]
A124 has quit [Ping timeout: 276 seconds]
psychicist__ has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
psychicist__ has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
MoskitoHero has quit [Ping timeout: 255 seconds]
hahuang61 has joined #ruby
aglorei has quit [Read error: Connection reset by peer]
aglorei has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
Lukefahr has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
aupadhye has joined #ruby
jameser has joined #ruby
mlkkk has quit [Remote host closed the connection]
milardovich has quit [Read error: No route to host]
milardovich has joined #ruby
felltir has quit [Remote host closed the connection]
SirOliver has joined #ruby
MoskitoHero has joined #ruby
Beams has quit [Quit: .]
xall_ has joined #ruby
peitur has joined #ruby
nettoweb1 has joined #ruby
peitur has quit [Client Quit]
braincrash has joined #ruby
tusharmalik has quit [Ping timeout: 260 seconds]
nettoweb has quit [Ping timeout: 255 seconds]
milardovich has quit [Remote host closed the connection]
SirOlive_ has joined #ruby
milardovich has joined #ruby
<Burgestrand>
phage don't forget to post your answer for all us other idiots, you never know who it might help :)
<phage>
Burgestrand: Fair :) I simply appended "./" in front of the file name :)
SirOliver has quit [Ping timeout: 255 seconds]
<phage>
prepended, must be the correct term
milardov_ has joined #ruby
milardovich has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SirOliver has joined #ruby
milardovich has joined #ruby
SirOlive_ has quit [Ping timeout: 240 seconds]
xall_ has quit [Ping timeout: 268 seconds]
milardov_ has quit [Ping timeout: 255 seconds]
davezd has joined #ruby
Derperperd has joined #ruby
cschneid_ has joined #ruby
xall_ has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
SirOliver has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Rodya_ has joined #ruby
opt9 has joined #ruby
SirOliver has joined #ruby
xall_ has quit [Ping timeout: 255 seconds]
vuoto has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
djellemah_ has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
jose_leeto has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
vasilakisfil has joined #ruby
MoskitoHero has quit [Quit: Konversation terminated!]
SirOliver has quit [Quit: ZZZzzz…]
xen0fon has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
xen0fon has quit [Client Quit]
milardovich has joined #ruby
bkxd has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 240 seconds]
tyang has joined #ruby
tyang_ has joined #ruby
Pumukel has joined #ruby
SirOliver has joined #ruby
Burgestrand has quit [Quit: Closing time!]
SirOliver has quit [Client Quit]
mlkkk has joined #ruby
tyang has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
eugenmayer has joined #ruby
loechel has joined #ruby
acosonic has quit [Read error: Connection reset by peer]
<eugenmayer>
is it possible to create a Thor executable, but not only call ThorComman.start .. but rather also passing some default args?
tvw has quit [Ping timeout: 268 seconds]
mlkkk has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
aryaching_ has joined #ruby
newrubycoder has joined #ruby
flak has joined #ruby
csk has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
Derperperd has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
bheesham has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
flak has quit [Client Quit]
Pumukel has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
tonini has joined #ruby
bheesham has quit [Ping timeout: 260 seconds]
dn` has quit [Read error: Connection reset by peer]
dn` has joined #ruby
jsho has joined #ruby
<apeiros>
phage: it's generally a bad idea to require a path relative to ".". It is brittle. Even more so if your executable doesn't enforce a specific working directory (which usually is the case - rare exceptions are tools like rake)
<soahccc>
apeiros: Just wanted to let you know that your argument splitter is really nicely written, I like it a lot. It was quite easy to implement my few own custom syntax rules with just a few lines. Works like a charm now! Thanks again ;)
bkxd has quit [Ping timeout: 240 seconds]
<apeiros>
:)
<apeiros>
yw
patarr has joined #ruby
polishdub has joined #ruby
phreakocious has joined #ruby
hahuang61 has joined #ruby
Cymew has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Quit: SteenJobs]
Snickers has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
<centrx>
Ruby 2.4 holding up pretty well, no need for emergency minor point releases yet
Rodya_ has quit [Remote host closed the connection]
<centrx>
2.4.0!
eben has joined #ruby
Rodya_ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
<dminuoso>
centrx, I dont know, I segfault it regularly.
<dminuoso>
I don't trust it!
<dminuoso>
But that might have to do with the amount of Fiddle I use ;o
Rodya_ has quit [Remote host closed the connection]
JoshL- is now known as JoshL
JoshL is now known as JoshL_
blackmesa has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
JoshL_ is now known as JoshL
jeyraof^mbpr has joined #ruby
Derperperd has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
<rkeene>
Alright, so Ruby is terrible in implementation... does jruby require ruby to build ?
renchan has joined #ruby
<dminuoso>
rkeene, no.
<dminuoso>
rkeene, jruby just requires maven, ant, make and a c++ compiler possibly.
<fuzzyhorns>
rkeene: "terrible in implementation"?
<fuzzyhorns>
you mean like the GIL?
eben has left #ruby [#ruby]
<rkeene>
No, more basic -- just trying to compile extensions is broken at a fundamental level.
<fuzzyhorns>
oh, like what extension? ive written a couple. it def can be a bit tricky
ych has joined #ruby
<dminuoso>
rkeene, what part of it is broken?
<dminuoso>
Im genuinely curious about your findings.
<rkeene>
It assumes that the compiler you used to build the running Ruby will work to build the Ruby extension, which is fundamentally wrong -- at best you could look at the way the host system's Ruby was built, but the running Ruby is completely irrelevant to compiling
<rkeene>
fuzzyhorns, Yes -- the Ruby extension build system relies on Ruby, since Ruby is running it looks at how the running Ruby was built to determine some parts of how to build the extension... this is, of course, insane since there's no reason to assume that the extension being built will work for the running Ruby or that the same compiler toolchain is being used
tusharmalik has quit [Ping timeout: 260 seconds]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fuzzyhorns>
true enough, it's just chancing it that the extension author themselves was using the same setup, which they likely werent
<dminuoso>
mmm drbrain is not here
<rkeene>
Even worse, the running Ruby version has to match EXACTLY the version of Ruby you are using on the host
ebencooke has joined #ruby
<fuzzyhorns>
ime the Ruby team is not super…helpfully responsive lol
<rkeene>
Yeah
<fuzzyhorns>
so i really feel for you
conta has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
ebencooke is now known as moseg
<dminuoso>
rkeene, but I agree that ruby is a real mess internally.
<rkeene>
So, I'm looking at moving to a less broken Ruby implemenation -- wondering if jRuby is better
<dminuoso>
It's evolved over 2 decades without any real rewrite.
tdy has joined #ruby
kang0 has joined #ruby
<kang0>
Anyone played with windows kodi and android?
<rkeene>
dminuoso, Not really an excuse for this particular brokenness -- Tcl, for example, doesn't fail in this way (extensions use regular GNU autoconf)
<fuzzyhorns>
rkeene: well, i've pretty in depth experience with jruby. my feelings are 1. the jvm is "heavy" in development but a boon in production, and 2. prepare yourself to discover bugs
<dminuoso>
rkeene, its not an excuse, just an observation.
moseg is now known as alexmose
<dminuoso>
though dont get me started on autoconf.
<dminuoso>
its unbelievably horrible.
<rkeene>
Sure -- but better than everything else
alexmose has quit [Quit: Leaving.]
<fuzzyhorns>
rkeene: not a ton of bugs, but it is a possibility. i hit one after 2+ years of using in prod
alexmose has joined #ruby
milardovich has quit [Remote host closed the connection]
Guest69 has joined #ruby
<rkeene>
Maybe I can convince the guys to move their stuff to Go and just drop Ruby altogether :-D
<fuzzyhorns>
the other question is how comfortable you are debugging jvm and if you get any benefit from java extensions
<kang0>
(kang0) How to stream videos from internet to android to Windows to tv
milardovich has joined #ruby
railswebdev has joined #ruby
<dminuoso>
rkeene, but yeah, jruby is healthy internally
<dminuoso>
its extremely well written.
<fuzzyhorns>
rkeene: go is pretty nice, though im still like "why do i have nil in a new language"
<dminuoso>
definitely take a look at it.
last_staff has quit [Quit: last_staff]
<fuzzyhorns>
the jruby team is way, way nicer and more responsive too
<fuzzyhorns>
many different times they helped me step through stuff so i could learn enough to be useful on my own
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
rkeene, also if you have issues, there's an very active community ( #jruby here on freenode ) that's always around.
<dminuoso>
English speaking community even!
<fuzzyhorns>
i ended up implementing a jruby wrapper around a java library at work that was super useful
<dminuoso>
(This means a lot in the ruby world)
<fuzzyhorns>
^ yah
<rkeene>
For compiling Ruby Gems with jRuby, what's involved ?
<dminuoso>
<fuzzyhorns> the jruby team is way, way nicer and more responsive too
<dminuoso>
<fuzzyhorns> many different times they helped me step through stuff so i could learn enough to be useful on my own
<dminuoso>
^-
bkxd has quit [Ping timeout: 260 seconds]
<dminuoso>
rkeene, it would be sensible if you moved this into #jruby :)
kang0 has left #ruby ["AndroIRC"]
bkxd has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
versigtig has joined #ruby
chee is now known as unix
cdg_ has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
unix is now known as Guest42169
gdonald has joined #ruby
Guest42169 is now known as chee
blackmesa has quit [Ping timeout: 260 seconds]
alexmose has quit [Quit: Leaving.]
cdg has quit [Ping timeout: 268 seconds]
alexmose has joined #ruby
stevenhong has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
jhack has joined #ruby
TvL2386 has quit [Remote host closed the connection]
raspado has joined #ruby
ins64 has joined #ruby
aufi has quit [Quit: Leaving]
SteenJobs has joined #ruby
djbkd_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
stevenhong has joined #ruby
velu_aon[m] has joined #ruby
brent__ has joined #ruby
synthroid has quit [Remote host closed the connection]
bigkevmcd has quit [Read error: Connection reset by peer]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
stevenhong has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
rafadc_ has joined #ruby
bigkevmcd has joined #ruby
grh has quit [Ping timeout: 240 seconds]
rafadc has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
szulak has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
synthroid has joined #ruby
aryaching_ has quit [Ping timeout: 260 seconds]
Uranio has joined #ruby
Uranio has left #ruby [#ruby]
Bish has quit [Quit: Lost terminal]
armyriad has joined #ruby
tusharmalik has joined #ruby
blackmesa has joined #ruby
djbkd_ has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
modin has quit [Ping timeout: 245 seconds]
djbkd_ has quit [Ping timeout: 268 seconds]
troulouliou_div2 has quit [Quit: Leaving]
amclain has joined #ruby
bruce_lee has quit [Ping timeout: 268 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
Rodya_ has joined #ruby
repsol has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
mark_66 has quit [Remote host closed the connection]
aglorei has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
aglorei has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
agit0 has joined #ruby
lukelukefahr has joined #ruby
repsol is now known as adrenaline
workmad3 has quit [Ping timeout: 240 seconds]
modin has joined #ruby
MoskitoHero has joined #ruby
Lukefahr has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
al2o3-cr has joined #ruby
glcx has quit [Quit: Quitte]
miguelfernandes has quit [Remote host closed the connection]
miguelfernandes has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
szulak has joined #ruby
xen0fon has joined #ruby
miguelfernandes has quit [Ping timeout: 255 seconds]
<crazyphil>
as I wasn't sure how to modify the existing hash
<crazyphil>
basically I want to take all the nested json under "fields", and bring it up to the top level
<crazyphil>
and then remove "fields"
<newdan>
crazyphil: I don't see how `k.nil?` will ever become true
<jgnagy>
your "until k.nil?" loop doesn't have anything to ever make k.nil
<dminuoso>
crazyphil, how do you want to handle conflicts?
<jgnagy>
exactly
<jgnagy>
you can modify existing hashes just by writing new keys to them
<crazyphil>
well, let me paste the original code I got this from
<newdan>
crazyphil: Maybe you meant `until !f.include?(k)`
<newdan>
Also I highly recommend longer variable names
<jgnagy>
I might just be tired, but I'm still not certain what this code is supposed to accomplish... maybe try describing what you're doing for me again, please?
<dminuoso>
Yes,
<dminuoso>
Use "piyo" instead of "n", and "fuga" instead of "k"
<crazyphil>
oh, I just figured out why it wasn't working
<crazyphil>
because I was trying to parse the top level "fields", without going into the inner json
milardov_ has quit [Read error: Connection reset by peer]
<jgnagy>
hmmm
<crazyphil>
I'll read up on how hashes work a bit more so I don't run into this in the future
kht has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
<jgnagy>
well, I don't think event is a hash
<jgnagy>
if it doesn't support []
ytti_ has quit [Ping timeout: 260 seconds]
<jgnagy>
if you have a means to test the code and get output, you can do `puts "Event Class: #{event.class}"` in the code
<jgnagy>
and see what gets printed to the screen
<jgnagy>
probably some custom class, but that way you can lookup its methods and features
Fernando-Basso has quit [Quit: WeeChat 1.7]
* baweaver
whispers pry
szulak has joined #ruby
<jgnagy>
or that
ytti has joined #ruby
<baweaver>
?pry
<baweaver>
bot?
<ruby[bot]>
Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<jgnagy>
pry is good stuff
abdulmugni has quit [Read error: Connection reset by peer]
<dminuoso>
pry is meh. real men lldb their code!
<baweaver>
Butterflies.
<dminuoso>
those work too
<dminuoso>
just hard to find them this time of the year.
<jgnagy>
if pry is meh, it is on the high-end of meh
whathappens has quit [Remote host closed the connection]
railswebdev has joined #ruby
skweek has joined #ruby
whathappens has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]