Kestrel-029 has quit [Read error: Connection reset by peer]
AndBobsYourUncle has quit [Quit: Textual IRC Client: www.textualapp.com]
drcode has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
pete_ has joined #ruby
pete_ has quit [Client Quit]
skweek has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
ur5us has quit [Remote host closed the connection]
JeanCarl1Machado has quit [Ping timeout: 268 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
Cohedrin has joined #ruby
cam27 has quit [Quit: cam27]
Rodya_ has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asdx35 has joined #ruby
ghoti has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
Rodya_ has quit [Ping timeout: 260 seconds]
<asdx35>
I'm writing python code at work these days but I miss ruby a lot
aguynamedben has joined #ruby
apparition has joined #ruby
duderonomy has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
minimalism has joined #ruby
knight33 has joined #ruby
mrconfused has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<asdx35>
not sure if I should just rewrite the project, what would you guys suggest?
<asdx35>
it's something I feel I can do quickly
<Radar>
How big of a project is it (LoC)? Do management require the project to be written in Python?
gizmore|2 has joined #ruby
oborot has joined #ruby
<Radar>
asdx35: ^
<Radar>
Do you work with other people who only know Python?
<asdx35>
~5k LoC
alveric4 has joined #ruby
alveric3 has quit [Ping timeout: 260 seconds]
<asdx35>
our manager just quit but he used to prefer python and was biased towards it, "python is faster than ruby" he claimed, but I bet the last time he used ruby was in the 1.8 days
gizmore has quit [Ping timeout: 240 seconds]
<asdx35>
Radar: yes, but they could adapt
<bougyman>
if doing something computationally expensive, neither python nor ruby (the common implementations) are the right choice, usually.
<bougyman>
so that's a lame argument.
<asdx35>
right
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghoti has joined #ruby
oborot has quit [Ping timeout: 260 seconds]
jzigmund has quit [Ping timeout: 245 seconds]
uZiel has joined #ruby
dviola has joined #ruby
<asdx35>
I argued with this person a lot at work, I think that might have been one of the reasons of why he decided to quit
asdx35 has quit [Quit: leaving]
mrconfused has quit [Ping timeout: 272 seconds]
oliv_____ has joined #ruby
<Radar>
:\
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
jenrzzz has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<michael_mbp>
Something I'm working on, I'm making calls from Ruby to C++, crunching in C14, and then passing JSON back to the Rails app
<michael_mbp>
planning to extend with gRPC at somepoint. Take away here, don't get fixated on a singular language.
<michael_mbp>
complex modelling took me a under a couple hours in Ruby, vs. porting said logic to C++.
jenrzzz has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
fmccann has joined #ruby
Nicmavr has joined #ruby
Nicmavr has quit [Changing host]
Nicmavr has joined #ruby
jusa has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
mrconfused has joined #ruby
fern has joined #ruby
fern has quit [Client Quit]
jenrzzz has quit [Ping timeout: 268 seconds]
hugo_dc has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 268 seconds]
d^sh has quit [Ping timeout: 268 seconds]
d^sh_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
cschneid_ has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
PorcoRex has joined #ruby
<PorcoRex>
Good evening Ruby.
cschneid_ has quit [Ping timeout: 258 seconds]
oliv_____ has quit [Remote host closed the connection]
iliketur_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
BSAlb has quit [Read error: Connection reset by peer]
jameser has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
oborot has joined #ruby
itarato has joined #ruby
genpaku has quit [Remote host closed the connection]
pen has joined #ruby
genpaku has joined #ruby
bruno-_ has quit [Ping timeout: 268 seconds]
gnufied has joined #ruby
mwlang has joined #ruby
ledestin has joined #ruby
bougyman has quit [Ping timeout: 255 seconds]
jhack has quit [Quit: Leaving]
uxp_ has quit [Read error: Connection reset by peer]
uxp has joined #ruby
vahe has joined #ruby
gnufied has quit [Ping timeout: 272 seconds]
bougyman has joined #ruby
bougyman is now known as Guest20275
KeyJoo has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
mrconfused has joined #ruby
gnufied has joined #ruby
Rodya_ has joined #ruby
itarato has quit [Ping timeout: 260 seconds]
mrconfused has quit [Ping timeout: 255 seconds]
Talltree has quit [Remote host closed the connection]
cyphase has joined #ruby
Rodya_ has quit [Ping timeout: 272 seconds]
Talltree has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
gnufied has quit [Quit: Leaving]
mim1k has joined #ruby
d^sh_ has quit [Ping timeout: 240 seconds]
ResidentBiscuit has joined #ruby
d^sh has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
olivi____ has joined #ruby
ResidentBiscuit has quit [Quit: So long and thanks for all the fsh]
olivi____ has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
cgfbee has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
ascarter has joined #ruby
jphase has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
nanoz has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambanx has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
cyphase has quit [Ping timeout: 246 seconds]
Talltree has quit [Ping timeout: 240 seconds]
Talltree has joined #ruby
tessi_zz has quit [Ping timeout: 260 seconds]
jeffreylevesque has joined #ruby
tessi_zz has joined #ruby
cyphase has joined #ruby
cgfbee has joined #ruby
romeoh has quit [Remote host closed the connection]
Rodya_ has joined #ruby
nullobject has joined #ruby
oborot has quit [Ping timeout: 260 seconds]
eightlimbed has joined #ruby
<eightlimbed>
hi
<havenwood>
eightlimbed: hey
minimalism has joined #ruby
jgt1 has joined #ruby
eightlimbs has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
guest3456 has joined #ruby
guest3456 has left #ruby [#ruby]
<eightlimbs>
hi
eightlimbed has quit [Ping timeout: 240 seconds]
<PorcoRex>
eightlimbs, hello.
pwnd_nsfw` has joined #ruby
jgt1 has quit [Ping timeout: 246 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eightlimbs>
hi PorcoRex
jphase has quit []
eightlimbs has quit [Ping timeout: 240 seconds]
hugo_dc has quit [Remote host closed the connection]
redaudit has quit [Quit: Cya]
charliesome has joined #ruby
cahoots has joined #ruby
<cahoots>
hi, is there a library that will sample the code every so often and just show me what it's doing? like, every second it prints out what the script is doing at that moment
<cahoots>
i just need to very broadly understand what the bottlenecks
raspado has joined #ruby
<baweaver>
cahoots: depends
<baweaver>
mostly it's literally just throwing puts statements in it to log out
<cahoots>
baweaver, it would just be more convenient to attach something. it can also be a decently large file where many bottlenecks may arise
<PorcoRex>
baweaver, I think he wants to profile the app.
<baweaver>
ruby-prof in that case
<baweaver>
but for what it's doing at specific points, literally it's just logging
Dimik has joined #ruby
raspado has quit [Ping timeout: 246 seconds]
<cahoots>
yeah it looks like ruby-prof will work, thanks :)
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
yeticry has quit [Ping timeout: 246 seconds]
dhollinger has joined #ruby
yeticry has joined #ruby
ski7777 has joined #ruby
iliketurtles has joined #ruby
renchan has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
nofxx has joined #ruby
uZiel has joined #ruby
nofxxx has quit [Ping timeout: 260 seconds]
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
fern has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fern has quit [Client Quit]
Rodya_ has joined #ruby
cahoots has quit [Ping timeout: 246 seconds]
luckyruby has quit [Quit: Leaving...]
fern has joined #ruby
nofxxx has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
fern has quit [Client Quit]
nofxx has quit [Ping timeout: 246 seconds]
xall has joined #ruby
ascarter has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
romeoh has joined #ruby
paradisaeidae_ has left #ruby [#ruby]
nanoz has quit [Quit: <3]
paradisaeidae has left #ruby [#ruby]
P1ro has joined #ruby
Cohedrin has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
romeoh has quit [Ping timeout: 240 seconds]
nofxxxx has joined #ruby
marr has joined #ruby
nofxxx has quit [Ping timeout: 268 seconds]
ben______ has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben_____ has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
aufi has quit [Client Quit]
pen has quit []
juggler has joined #ruby
ascarter has joined #ruby
xall has quit [Quit: xall]
oleo has quit [Quit: irc client terminated!]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
rdw200169__ has joined #ruby
rdw200169_ has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
brent__ has joined #ruby
anisha has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
brent__ has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
jgt1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
pankaj_ has joined #ruby
jgt1 has quit [Ping timeout: 258 seconds]
patarr has quit [Ping timeout: 240 seconds]
<foxmask>
bonjello
enterprisey has quit [Remote host closed the connection]
muelleme has joined #ruby
_whitelogger has joined #ruby
romeoh has joined #ruby
nofxxx has joined #ruby
romeoh has quit [Ping timeout: 246 seconds]
nofxxxx has quit [Ping timeout: 240 seconds]
perniciouscaffei has joined #ruby
jgt1 has joined #ruby
enterprisey has joined #ruby
Bock has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pankaj_ has quit [Quit: Leaving]
pankaj_ has joined #ruby
conta has joined #ruby
iliketurtles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PorcoRex has quit [Quit: Leaving]
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
muelleme has quit [Ping timeout: 240 seconds]
ski7777 has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Ping timeout: 246 seconds]
KeyJoo has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
Rodya_ has joined #ruby
perniciouscaffei has joined #ruby
charliesome has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
juggler has quit [Remote host closed the connection]
andikr has joined #ruby
nofxx has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxxx has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
bkxd has joined #ruby
TomyWork has joined #ruby
biberu has joined #ruby
ThirstySurfer has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
romeoh has joined #ruby
nobitanobi has joined #ruby
romeoh has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Ping timeout: 255 seconds]
alazred has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
aufi has joined #ruby
mark_66 has joined #ruby
ur5us has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
nofxxxx has joined #ruby
Cohedrin has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Remote host closed the connection]
herbmillerjr has joined #ruby
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silentoxygen has joined #ruby
pandaant has joined #ruby
pankaj_ has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 246 seconds]
ThirstySurfer has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
mim1k has joined #ruby
Rodya_ has joined #ruby
zacts has joined #ruby
ThirstySurfer has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
patarr has joined #ruby
nofxxx has joined #ruby
brent__ has joined #ruby
mikecmpbll has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
nofxxxx has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
brent__ has quit [Ping timeout: 246 seconds]
ThirstySurfer has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
workmad3 has joined #ruby
DaniG2k has joined #ruby
Silthias1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Silthias has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
romeoh has joined #ruby
nofxxxx has joined #ruby
<TheBrayn>
should I escape “/” in regexpes if I use %r{} instead of //?
nofxxx has quit [Ping timeout: 260 seconds]
romeoh has quit [Ping timeout: 240 seconds]
<dminuoso>
TheBrayn: !tias
<dminuoso>
TheBrayn: ?tias
<dminuoso>
?tias TheBrayn
<ruby[bot]>
TheBrayn: Why don't you try it and see for yourself?
<TheBrayn>
it both works that's why I'm asking for best practices
<dminuoso>
TheBrayn: If it's required its not a best practice but a requirement.
<dminuoso>
If it's not required, then you can't "escape it"
<dminuoso>
So this is not a question of best practices, but whether you have to esacpe or not.
<dminuoso>
Or well I guess its optional in that case.
<TheBrayn>
orly
<dminuoso>
TheBrayn: One of the reasons %r{} exists is that you dont have to escape those slashes.
<dminuoso>
well I guess it never even occured to me to even try and escape something that needs no escaping
ur5us has quit [Remote host closed the connection]
mim1k has joined #ruby
charliesome has joined #ruby
lxsameer has joined #ruby
flying has joined #ruby
silentoxygen has quit []
nekomune has quit [Read error: Connection reset by peer]
nofxxx has joined #ruby
oded has quit [Quit: Konversation terminated!]
dionysus69 has quit [Remote host closed the connection]
nofxxxx has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
antgel has joined #ruby
tomphp has joined #ruby
cyclonis has joined #ruby
oborot has joined #ruby
aupadhye has joined #ruby
TreyG_ has quit [Ping timeout: 272 seconds]
TreyG has joined #ruby
aupadhye has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
oborot has quit [Ping timeout: 255 seconds]
Kug3lis has joined #ruby
alazred has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aupadhye has joined #ruby
yogg-saron has joined #ruby
dionysus69 has quit [Remote host closed the connection]
armando has quit [Ping timeout: 268 seconds]
cfec0b8d has quit [Quit: Leaving]
nofxx has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
nofxxx has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
tvw has quit []
pragmaticus has joined #ruby
armando has joined #ruby
bambanx has quit [Quit: Leaving]
deepinuser has joined #ruby
<selim>
I'll try to disable the online fetching with -l but it does just ignore that if I do a gem install -l <gemname> it's still checking on api.rubygem.org but I do not have Internet access on those systems so I get a timeout of more than 30 minutes for every package
<selim>
can someone tell me how to disable that for good?
<selim>
is that a bug, I have that issue mostly on SLES systems
<marahin>
How is that? Why `a` returns empty hash, even though it _contains_ a value?
oliv_____ has joined #ruby
<canton7>
you haven't actually added anything to the hash
<marahin>
canton7 how come then?
jeffreylevesque_ has quit [Ping timeout: 240 seconds]
<marahin>
how come I can reference to '1280x720' key in variable a?
<tobiasvl>
huh
<canton7>
Note that 'Hash.new([])' returns the *same* array instance whenever an unknown key is requested
<canton7>
it doesn't generate a new array instance - it keeps using the same one
jzigmund has joined #ruby
<canton7>
you want the form 'Hash.new{ |h,k| h[k] = [] }', which generates a new array instance each time you request an unknown key
<marahin>
ah.
<marahin>
canton7 so this is somehow related to reference?
bastrud has joined #ruby
mrconfused has quit [Ping timeout: 260 seconds]
<canton7>
yeah, that's part of it
<marahin>
OK. Cool.
<marahin>
canton7 thank you for showing me the solution :)
<canton7>
with your first attempt, you'll now notice that `a['foo']` returns `[{'key' => 'value'}]`
<canton7>
when you accessed `a['1280x720']` you were given that array instance you passed to Hash.new, but it didn't add a new key to the hash. You modified that array instance (changing the default value)
<vikas027>
How do I return two values in a method and please rubocop as well https://dpaste.de/kMJH
nicesignal has quit [Ping timeout: 258 seconds]
<vikas027>
Try 2 works fine, but rubocop complains that return is redundant
<vikas027>
wow , that was super quick canton7. Thanks much
<dminuoso>
vikas027: Or you know, stop blindly following rubocop.
<dminuoso>
vikas027: Configure it to tell you what you care about.
<dminuoso>
I like explicit returns.
<vikas027>
dminuoso, I like it too... but my team doesn't. They try to please rubocop as much as they can..
bkxd_ has joined #ruby
lacuna has joined #ruby
DeeJayh has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
apparition has joined #ruby
DeeJayh has joined #ruby
<dminuoso>
vikas027: There's nothing wrong with that then. Consistency matters more than personal preference.
alazred has joined #ruby
Fysicus has joined #ruby
<dminuoso>
I just see it far too often that people "please rubocop" instead of stating "following convention"
<vikas027>
dminuoso: True. And I am still a beginner in Ruby, have to abide all rules :)
eightlimbed has joined #ruby
gnufied has joined #ruby
<canton7>
yeah, I do think it's important that when you're starting a language, you drop all of your preconceptions about style and try to use the idioms of the language. Later on, you can decide which bits of style you do and don't like
<vikas027>
cantom7: Rightly said
mrconfused has joined #ruby
oborot has joined #ruby
<dminuoso>
Though for what its worth, the default rubocop configuration is quite decent already.
eightlimbed has quit [Ping timeout: 246 seconds]
nullobject has joined #ruby
jgt3 has quit [Ping timeout: 260 seconds]
oborot has quit [Ping timeout: 240 seconds]
xenops has joined #ruby
fusta has joined #ruby
jeffreylevesque has joined #ruby
alazred has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
pandaant has joined #ruby
tomphp has joined #ruby
ramortegui has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
vikas027 has quit [Read error: Connection reset by peer]
mrconfused has quit [Ping timeout: 245 seconds]
DeeJayh has quit [Ping timeout: 246 seconds]
DeeJayh has joined #ruby
oliv_____ has quit [Remote host closed the connection]
vall has joined #ruby
JeanCarloMachado has quit [Quit: Lost terminal]
JeanCarl1Machado has quit [Quit: Lost terminal]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 246 seconds]
toretore has joined #ruby
cdg has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
jgt3 has joined #ruby
jamesaxl has joined #ruby
<Jakaria>
thanks, man..... that was very helpful....
* Bish
things of blocks as proc literals
fusta has quit [Ping timeout: 240 seconds]
* Bish
might be wrong though.
<elomatreb>
Procs are objects, blocks are not unless you make them into one using the &block syntax
olivi____ has joined #ruby
stoffus_ has quit [Ping timeout: 246 seconds]
SaschaVoid has joined #ruby
Rodya_ has joined #ruby
griffindy has joined #ruby
__Yiota has joined #ruby
yogg-saron has joined #ruby
jrafanie has joined #ruby
<Bish>
elomatreb: that description is misleading, blocks cannot become an object
olivi____ has quit [Ping timeout: 255 seconds]
<Bish>
you can provide a proc that acts as a block, but blocks wont become objects during that
olivi____ has joined #ruby
<elomatreb>
Yes, I meant "make them into a proc object", *effectively* turning them into one just like the proc method turns a block into a Proc
Rodya_ has quit [Ping timeout: 255 seconds]
yogg-saron has quit [Client Quit]
<Bish>
> blocks are not unless you make them into one using the &block syntax, <thats not the only way block can become procs, it's even the most complicated
mim1k has quit [Read error: Connection reset by peer]
<elomatreb>
OK, stabby lambda I'd agree with, but the others are just methods that *could* do the same with &block internally (I have no idea how similar the C level stuff that does that is though)
bheesham has joined #ruby
lightstalker has joined #ruby
<Bish>
even though it wouldn't be the only way, which your description stated
yogg-saron has quit [Client Quit]
dasher00 has quit [Ping timeout: 240 seconds]
vall has quit [Ping timeout: 260 seconds]
<Bish>
and no they couldn't do it with &block.. because &block turns them into proc, which would proc need to call proc
dasher00 has joined #ruby
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby
toretore has quit [Read error: Connection reset by peer]
bmgoog has left #ruby [#ruby]
hutch34 has joined #ruby
<dminuoso>
15:58:49 Bish | elomatreb: that description is misleading, blocks cannot become an object │ armyriad
<dminuoso>
>> Proc{}
<ruby[bot]>
dminuoso: # => undefined method `Proc' for main:Object (NoMethodError) ...check link for more (https://eval.in/800212)
<elomatreb>
Did it actually, or did we get an object the holds/represents a block?
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
elomatreb: a block is a special control structure. All a proc is is a block with an object header
<elomatreb>
Or did we construct a Proc object *from* a block?
<Bish>
dminuoso knows the c internals very well.
<dminuoso>
elomatreb: A proc is basically just an RObject with a pointer to a block.
<elomatreb>
See, that's the answer I wanted. I should read that Ruby internals book some time
<hxegon>
There's a ruby internals book? *googles*
<dminuoso>
hxegon: Yes. Ruby under a microscope
<dminuoso>
It's a bit dated, the source code examples dont match well anymore but conceptually it's largely still correct.
User458764 has joined #ruby
__Yiota has joined #ruby
mim1k has joined #ruby
mustmodify has joined #ruby
ascarter has joined #ruby
<Bish>
dminuoso: how good will ruby3 multithreading be?
marr has quit [Ping timeout: 240 seconds]
<dminuoso>
Bish: I barely know anything about Ruby 3.
yogg-saron has joined #ruby
<mustmodify>
I went to a [jewelery conference](https://goo.gl/uJjJef) one time because it was important to her. I told her it was time for her to come to a code conference with me. :) She said she would go if it wasn't *entirely* about coding... some inspirational speakers or less in-the-woods discussions. Are you aware of anything like that?
olivi____ has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 246 seconds]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has joined #ruby
yogg-saron has quit [Client Quit]
lacuna has joined #ruby
<havenwood>
mustmodify: Rails Camp is just camp for adults. It's very in-the-woods though. ;-)
armyriad has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
armyriad has joined #ruby
blackwind_123 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cahoots has joined #ruby
TomyLobo has joined #ruby
jgt3 has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgr has joined #ruby
mrconfused has quit [Ping timeout: 258 seconds]
<cahoots>
hi, i'm working with a compile command that includes a file path i want to extract, and that file path may have escaped spaces. if it didn't have spaces, i could just do ([^\s]+) to get it, but since it does how can i easily get it out?
Uranio has joined #ruby
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eightlimbed has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 246 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
sleetdrop has joined #ruby
ascarter has joined #ruby
jrafanie has joined #ruby
anisha_ has quit [Quit: Leaving]
pankaj has quit [Ping timeout: 246 seconds]
mustmodify has left #ruby [#ruby]
Uranio has left #ruby ["while you read this, a kitty dies"]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
pankaj has joined #ruby
<al2o3-cr>
cahoots: show us what you're working with and what your desired output is
nanoz has joined #ruby
DeeJayh has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
lacuna has joined #ruby
renchan has quit [Quit: Leaving...]
jackjackdripper has joined #ruby
ascarter has joined #ruby
vahe has quit [Quit: Leaving.]
alazred has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
tgragnato has quit [Ping timeout: 246 seconds]
quobo has joined #ruby
nowhere_man has joined #ruby
nullobject has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
nanoz has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
theunraveler has joined #ruby
<cahoots>
al2o3-cr, so i have a string like "gcc -o file path/to/with\ spaces/file.c -more -flags"
<cahoots>
and i want to extract that whole path
hobodave has joined #ruby
<cahoots>
in fact, i want to split up the entire string by non-escaped spaces into tokens
aupadhye has quit [Ping timeout: 246 seconds]
mrconfused has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
majuk has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
aarwine_ has joined #ruby
Rodya_ has joined #ruby
<aarwine_>
I'm trying to simplify some api access by writing a gem. Currently the gem has an initialize that sets up class variables, but i'm wondering if I should be using attr_accessor instead
<aarwine_>
This is for the credentials to auth against the api with
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has quit [Read error: Connection reset by peer]
elsevero has joined #ruby
gusrub has joined #ruby
<baweaver>
y'mean instance variable?
<baweaver>
attr_* methods just create instance variables and method accessors
<havenwood>
aarwine_: You might consider using a Singleton Class.
<havenwood>
aarwine_: Use @ instance variables unless you really have a reason to use @@ class instance variables (it's not common).
nobitano_ has quit [Remote host closed the connection]
hongkongphooy has quit [Quit: Konversation terminated!]
tildes has quit [Ping timeout: 260 seconds]
SaschaVoid has joined #ruby
uZiel has quit [Ping timeout: 240 seconds]
BSaboia has quit [Read error: Connection reset by peer]
PatrikasZvaigzde has quit [Ping timeout: 240 seconds]
zooman_68 has joined #ruby
PatrikasZvaigzde has joined #ruby
duderonomy has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
jaruga has quit [Quit: jaruga]
uZiel has joined #ruby
itarato has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Quit: Leaving.]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eightlimbed has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
pankaj has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
cahoots has quit [Quit: leaving]
pankaj has joined #ruby
mikecmpbll has joined #ruby
brent__ has quit [Remote host closed the connection]
bastrud has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
jackjackdripper has joined #ruby
ledestin has joined #ruby
tgragnato has joined #ruby
cdg has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 260 seconds]
gusrub_ has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Quit: Leaving...]
gusrub has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
kirun has joined #ruby
Bock has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
rkazak has joined #ruby
jamesaxl has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
benlieb has joined #ruby
nullobject has joined #ruby
zooman_68 has quit [Ping timeout: 260 seconds]
itarato has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
xall has joined #ruby
KeyJoo has quit [Ping timeout: 240 seconds]
jrafanie_ has joined #ruby
eightlimbed has quit [Ping timeout: 240 seconds]
jrafanie has quit [Ping timeout: 246 seconds]
rkazak has quit [Quit: Sleep.....ing....]
Dimik has joined #ruby
gusrub_ has quit [Remote host closed the connection]
raatiniemi_ has quit [Quit: raatiniemi_]
newrubycoder has joined #ruby
jgt3 has joined #ruby
skweek has joined #ruby
itarato has quit [Quit: WeeChat 1.8]
gil_ has quit [Ping timeout: 260 seconds]
raatiniemi has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
gusrub has joined #ruby
jgt3 has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
nullobject has quit [Ping timeout: 240 seconds]
jaruga has joined #ruby
SaschaVoid has quit [Ping timeout: 240 seconds]
<jrm>
When I run rake secret, for a ruby application (mastodon), it complains about not finding a library, libcld3.so, which is in /usr/local/lib/ruby/gems/2.3/gems/cld3-3.1.2/lib/libcld3.so. Here are the details: http://ftfl.ca/paste/mastodon_rake_secret.html
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tildes has quit [Ping timeout: 272 seconds]
cdg has joined #ruby
nobitanobi has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
gusrub has quit [Remote host closed the connection]
nullobject has quit [Ping timeout: 245 seconds]
oborot has quit [Ping timeout: 246 seconds]
<atmosx>
Hello, I have a list of domain names, 100-150k domains. I want to scan very quickly (I wanna know if a domain query is part of that list). What would the fastest approach? A Redis or an SQL? there are some in-memory SQL implementation IIRC
<elomatreb>
You could implement some sort of binary search yourself, if you sort them beforehand
DeeJayh has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
<atmosx>
right, I didn't thought about this.
nh_cham has joined #ruby
benlieb has quit [Quit: benlieb]
<nh_cham>
Hey guys, the Preeventualist Lost+Found page is down again.
cam27 has quit [Quit: cam27]
ozcanesen has joined #ruby
oborot has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<baweaver>
nh_cham: Is this a Ruby question?
<nh_cham>
Sorry, no question.
tomphp has joined #ruby
ascarter has joined #ruby
nh_cham has quit [Quit: AtomicIRC: The nuclear option.]
patarr has joined #ruby
gusrub has joined #ruby
AndroUser2 has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gil_ has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gusrub has quit [Ping timeout: 268 seconds]
ascarter has joined #ruby
aswen has quit [Quit: WeeChat 1.6]
benlieb has joined #ruby
<zenspider>
does someone have a 1.9 around somewhere I can poke at?
benlieb has quit [Client Quit]
SaschaVoid has quit [Quit: die();]
ascarter has quit [Client Quit]
oliv_____ has quit [Remote host closed the connection]
Puffball has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
romeoh has quit []
Puffball has joined #ruby
montyboy has quit [Quit: WeeChat 1.7.1]
DeeJayh has joined #ruby
<atmosx>
zenspider: by poke you have get ssh access to?
<atmosx>
*mean*
<zenspider>
not necessarily... Just need to know if something is valid in 1.9
<zenspider>
where EventInterpreter subclasses SexpProcessor
<zenspider>
dminuoso: why won't that work?
sepp2k has quit [Ping timeout: 240 seconds]
<dminuoso>
zenspider: Oh, I was thinking about once passed it could be piped back to Ruby in its raw form. But that's definitely not possible.
<SloggerKhan>
When working with binary in Ruby is there an easy way of making the result of an op like ~0x0040 give 0xFFBF instead of 0xFBF? (Related, why does it give 0xFBF over 0xBF, even for ~0x40?)
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
zenspider: Oh neat. You wrote a recursive descent parser for Ruby? :)
<zenspider>
no :( that's nearly impossible. I wrote a racc parser
<dminuoso>
Ohh. I was looking at your ruby2ruby and didnt realize what was going on..
aleandros has quit [Client Quit]
<dminuoso>
zenspider: I tried to debug a parsing bug before. After 8 hours of debugging bison state tables I simply gave up.
<dminuoso>
I mean a ruby parsing bug
<zenspider>
it's pretty horrible
<zenspider>
I have some tools and methods to figure stuff out, since I'm just trying to match ruby... but still horrible
fusta has joined #ruby
<dminuoso>
zenspider: Indeed. After that I understood why so many large projects such as GCC and clang have switched to hand writtern (weaker) RDPs..
<dminuoso>
You can't even do sensible diagnostics with a LR parser
quobo has quit [Quit: Connection closed for inactivity]
<zenspider>
yup. the fact that GCC and clang have flipped to RDP gives me hope that it may be possible for ruby... but I'm not willing to put the time into doing a LR -> LL flip for free
patr0clus has joined #ruby
oliv_____ has quit [Remote host closed the connection]
SeepingN has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
elsevero has quit [Quit: elsevero]
hutch34 has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
pifon is now known as mississippian|SU
mississippian|SU is now known as mississippiman|S
mississippiman|S is now known as M|SS|SS|PP|
<oborot>
Is it safe to use an ruby pre-built on Ubuntu 14.04 in Ubuntu 16?
polishdub has quit [Quit: Leaving]
<oborot>
Trying to install the backup gem on some LAMP servers but seems like overkill to downlod and build a dedicated ruby when I just need it for the occasional backup
patarr has quit [Ping timeout: 268 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
DeeJayh has joined #ruby
<oborot>
It takes a quite a while to build the backup gem too since it seems to require some native extensions to work
<oborot>
Tried to get the traveling ruby by Phusion to work for this, but no dice
<oborot>
havenwood: I'm trying to automate the setup with an ansible script. It would be preferable to just ship one pre-built ruby binary to rule them all during server provisioning
cagomez has joined #ruby
majuk has quit [Remote host closed the connection]
<havenwood>
oborot: You could use Travis or RVM's precompiled, statically linked binaries. Here're Travis's: http://rubies.travis-ci.org/
<havenwood>
oborot: They have 14.04 as do RVM.
<oborot>
I'll try them, thanks
<oborot>
I probably wouldn't even need a ruby version manager on the remote server either...
go|dfish has quit [Ping timeout: 240 seconds]
raspado has quit [Remote host closed the connection]
<oborot>
I could probably just set the GEM_PATH or whatever
<havenwood>
oborot: Or you can install Ruby from source with ruby-install to /usr/local easily.