baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sanscoeur has quit [Ping timeout: 268 seconds]
<SeepingN> Welcome to Freenode. Learn to code, chat with acquaintances, and become a hate monger, all in one convenient service.
<SeepingN> better? ;)
sanscoeu_ has quit [Ping timeout: 268 seconds]
AxelAlex has left #ruby [#ruby]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
hahuang61 has joined #ruby
cdg has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
gnufied has quit [Remote host closed the connection]
Psybur has joined #ruby
pastorin_ has quit [Remote host closed the connection]
pastorinni has joined #ruby
n0m4d1c has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 248 seconds]
<scrptktty__> Hello party cats.
<scrptktty__> Any good talks from past conferences that I should watch?
<scrptktty__> I am looking to have my mind blown
<scrptktty__> :D
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pastorinni has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
chat___ has quit [Ping timeout: 265 seconds]
<X-Jester> if you are using mutual SSL as a connect mechanism between a ruby listener and ruby client, what's the best way to extract the subject and check it against an auth table? just regexp cert.subject.to_s ?
<X-Jester> i just want to grab probably the CN from the x509 principal and rbac based on it
cschneid has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
mcr1 has quit [Ping timeout: 255 seconds]
mjolnird has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
mcr has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mcr has quit [Client Quit]
mcr1 has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
xelkarin has quit [Quit: WeeChat 1.9.1]
sameerynho has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
cschneid has joined #ruby
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Zaab1t has quit [Quit: Zaab1t]
cschneid has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
n0m4d1c has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
lroca has joined #ruby
John_Ivan has quit [Ping timeout: 265 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mcr1 has quit [Ping timeout: 260 seconds]
cthulchu| has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
vondruch_ has joined #ruby
cschneid has joined #ruby
vondruch_ has quit [Client Quit]
mjolnird has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 245 seconds]
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
naprimer has quit [Quit: Leaving]
hahuang61 has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit []
karapetyan has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
karapetyan has joined #ruby
cagomez has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mcr1 has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
karapetyan has joined #ruby
naprimer has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
lroca has quit [Quit: lroca]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jordanm has joined #ruby
cpruitt has quit [Remote host closed the connection]
cpruitt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
cpruitt has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 248 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cschneid has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Psybur has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has joined #ruby
Diogo has quit [Quit: Connection closed for inactivity]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
cpruitt has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jameser has joined #ruby
hahuang61 has joined #ruby
cschneid has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 260 seconds]
cschneid has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
cpruitt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
gnufied has quit [Ping timeout: 256 seconds]
stairmast0r has quit [Quit: bye]
jeffreylevesque has quit [Read error: Connection reset by peer]
cschneid has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
netherwolfe_ has joined #ruby
cschneid has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
dmitriy_ has joined #ruby
netherwolfe_ has quit [Ping timeout: 245 seconds]
cschneid has quit [Ping timeout: 268 seconds]
sylario has quit [Quit: Connection closed for inactivity]
iMadper has joined #ruby
bmurt has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
stairmast0r has joined #ruby
RougeR has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
dmitriy_ has quit [Ping timeout: 245 seconds]
gizmore has joined #ruby
cpruitt has joined #ruby
minimalism has joined #ruby
kies has quit [Ping timeout: 240 seconds]
gizmore|2 has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
cpruitt has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
ramfjord has joined #ruby
bmurt has joined #ruby
bonhoeffer has joined #ruby
cagomez has joined #ruby
<bonhoeffer> why is this printing the whole line when a match occurs: ruby -ne "print $1 if /001 (\d{2}\/\d{2}\/2017)\s\d{2}\/\d{2}\/2017/" data.txt
ramfjord has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
govg has quit [Ping timeout: 260 seconds]
bonhoeffer has quit [Quit: Page closed]
jenrzzz has quit [Ping timeout: 256 seconds]
voker57 has quit [Ping timeout: 276 seconds]
cdg has joined #ruby
meinside has joined #ruby
jeffreylevesque has joined #ruby
bonhoeffer has joined #ruby
<bonhoeffer> i'm still struggling with how to get a match with ruby -ne "print $1 if /hello (world)/"
<bonhoeffer> the whole line prints
cdg has quit [Ping timeout: 252 seconds]
<bonhoeffer> should i use =~
nchambers is now known as uplime
rhizome has joined #ruby
arescorpio has quit [Quit: Leaving.]
govg has joined #ruby
ryzokuken13 has joined #ruby
darkhanb has joined #ruby
cschneid has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
bonhoeffer has quit [Ping timeout: 260 seconds]
AJA4350 has quit [Quit: AJA4350]
cpruitt has quit [Ping timeout: 260 seconds]
ryzokuken has joined #ruby
Gnut has joined #ruby
cagomez has joined #ruby
cpruitt has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
kies has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
ryzokuken13 has quit [Ping timeout: 240 seconds]
fclausen has joined #ruby
schneider has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
karapetyan has joined #ruby
milardovich has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has joined #ruby
s2013 has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
milardovich has quit [Ping timeout: 252 seconds]
Sonja has joined #ruby
Sonja has quit [Client Quit]
kapil___ has joined #ruby
Cohedrin has joined #ruby
cpruitt has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpruitt has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
cpruitt has joined #ruby
cpruitt has quit [Ping timeout: 248 seconds]
awebdev has joined #ruby
orbyt_ has joined #ruby
dviola has joined #ruby
ramfjord has joined #ruby
awebdev has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ramfjord has quit [Ping timeout: 256 seconds]
suukim has joined #ruby
cpruitt has joined #ruby
cdg has joined #ruby
sidx64 has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
cpruitt has quit [Ping timeout: 256 seconds]
cdg has quit [Ping timeout: 265 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has quit [Quit: Leaving]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
scrptktty__ has quit [Quit: Connection closed for inactivity]
iMadper has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
iMadper has joined #ruby
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
<havenwood> bon, ah they left.
<havenwood> ruby -ne "print Regexp.last_match[1] if /hello (world)/"
hahuang61 has joined #ruby
nowhere_man has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
nowhereman_ has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
newpy has joined #ruby
<newpy> if I'm making a web UI (with a little javascript), what advantages might ruby have over python?
troys has quit [Quit: Bye]
<havenwood> newpy: Either should be perfectly fine. This is #ruby so folk here tend to prefer Ruby.
<havenwood> (I prefer Ruby!) :-)
<newpy> +1 for humility
<cjohnson> newpy: The better tool is the one you are more familiar with
<cjohnson> That said ruby does tend to have a more developed ecosystem around web stuff
<cjohnson> Better tooling, platform options, wider selection of libs and such that are commonly used for web stuff
<newpy> havenwood, cjohnson, are there good interactive tutorials?
<havenwood> newpy: http://tryruby.org/ starts with the very basics.
<newpy> or I guess just solid textbooks would do
<havenwood> newpy: Here's a list of books: https://goo.gl/wpGhoQ
<havenwood> newpy: And links to other resources: https://ruby-community.com/pages/links
aufi has joined #ruby
Gnut has quit [Ping timeout: 260 seconds]
ryzokuken has quit [Quit: Connection closed for inactivity]
LocaMocha has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
aufi has quit [Remote host closed the connection]
vondruch has joined #ruby
LocaMocha has quit [Remote host closed the connection]
LocaMocha has joined #ruby
LocaMocha has quit [Remote host closed the connection]
LocaMocha has joined #ruby
LocaMocha has quit [Read error: Connection reset by peer]
LocaMocha has joined #ruby
LocaMocha has quit [Read error: Connection reset by peer]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
govg has quit [Ping timeout: 248 seconds]
cschneid has joined #ruby
govg has joined #ruby
mtkd has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
anisha has joined #ruby
caoraivoso has joined #ruby
<caoraivoso> rubycoder38 with my fancy new nick here
* caoraivoso waves
<havenwood> o/
<caoraivoso> \o
hahuang61 has joined #ruby
_whitelogger has joined #ruby
sidx64 has joined #ruby
_whitelogger_ has quit [Remote host closed the connection]
sidx64_ has quit [Ping timeout: 260 seconds]
newpy has left #ruby ["Closing Window"]
kloeri_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kloeri has quit [Ping timeout: 606 seconds]
conta has joined #ruby
orbyt_ has joined #ruby
cpruitt has joined #ruby
johnny56 has quit [Ping timeout: 276 seconds]
cpruitt has quit [Ping timeout: 268 seconds]
schneider has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.0.1]
<llua> he is loony
jamesaxl has joined #ruby
schneider has quit [Ping timeout: 245 seconds]
halbbalda has quit [Remote host closed the connection]
andikr has joined #ruby
minimalism has joined #ruby
nahra has quit [Remote host closed the connection]
ramfjord has joined #ruby
<dminuoso> havenwood: It seems you're wanting Ruby to be weakly typed. Ruby is strongly typed and is likely to stay that way.
<dminuoso> havenwood: Say what?
ta_ has joined #ruby
<dminuoso> havenwood: I would argue that duck typing is about the weakest typing you could possibly have.
<dminuoso> And there's plenty places where things are silently coerced into other types
rippa has joined #ruby
<dminuoso> Which is why things like to_hash, to_ary and others are in place
* dminuoso waits for the inevitable counter argument
ramfjord has quit [Ping timeout: 240 seconds]
<dminuoso> But it is a hilarious bug report.
karapetyan has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
<caoraivoso> why duck typing and not dog typing?
sidx64 has quit [Client Quit]
<dminuoso> caoraivoso: If it barks like a dog and bites like a dog, it is a doh?
milardovich has quit [Remote host closed the connection]
cpruitt has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
<caoraivoso> I'm a dog and sometimes I bark, but ruby makes me a happy dog
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> havenwood: Though ultimately in a singly typed language, the notion of "weak/strong" is useless.
<dminuoso> So I guess it is a moot point.
swemoney has joined #ruby
Burgestrand has joined #ruby
hahuang61 has joined #ruby
s2013 has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
cpruitt has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
s2013 has quit [Ping timeout: 265 seconds]
aufi has joined #ruby
mtkd has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has joined #ruby
G_ is now known as G
aufi has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swemoney has quit [Quit: Textual IRC Client: www.textualapp.com]
aufi has joined #ruby
claudiuinberlin has joined #ruby
clemens3 has joined #ruby
vondruch_ has joined #ruby
sylario has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
aufi has quit [Ping timeout: 276 seconds]
vondruch has quit [Remote host closed the connection]
aufi has joined #ruby
vondruch has joined #ruby
aufi_ has joined #ruby
apeiros_ has joined #ruby
vondruch has quit [Ping timeout: 245 seconds]
aufi has quit [Ping timeout: 260 seconds]
ogres has quit [Quit: Connection closed for inactivity]
marr has joined #ruby
mikecmpbll has joined #ruby
maufart__ has joined #ruby
vondruch has joined #ruby
alex`` has joined #ruby
aufi_ has quit [Ping timeout: 256 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
tomphp has joined #ruby
suukim has quit [Quit: Konversation terminated!]
tomphp has quit [Client Quit]
maum has quit [Remote host closed the connection]
Zaab1t has joined #ruby
LocaMocha has joined #ruby
LocaMocha has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
tomphp has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
devil_tux has joined #ruby
cpruitt has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
sidx64 has joined #ruby
cpruitt has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
tomphp has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
cpruitt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
aufi_ has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
amatas has joined #ruby
maufart__ has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
aufi_ has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
alex`` has quit [Ping timeout: 255 seconds]
cpruitt has joined #ruby
RougeR has joined #ruby
iMadper has quit [Ping timeout: 240 seconds]
fribmendes has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
gregf_ has joined #ruby
ramfjord has joined #ruby
ltt has joined #ruby
Beams has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 245 seconds]
karapetyan has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
ams__ has joined #ruby
cadillac_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
ncopa2 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
suukim has joined #ruby
<ncopa2> hi, im looking into stack size issue in ruby on musl libc. will ruby spawn threads internally (eg recursive funcs)?
<ncopa2> pthreads
<ncopa2> will ruby spawn any threads without Thread.new?
rahul_bajaj has quit [Quit: Leaving]
<dminuoso> ncopa2: Yes.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
kinduff[m] has joined #ruby
<kinduff[m]> good morning
<ncopa2> ruby 2.5.0 introduces a stack overflow check
hahuang61 has joined #ruby
<ncopa2> with ruby 2.4 there could be up to ~1000 call deep
<ncopa2> with ruby 2.5 its only ~130
<ncopa2> and it causes problems
<ncopa2> musl libc only has 128k thread stack
<ncopa2> but main thread still has 8Mb
jenrzzz has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
<dminuoso> ncopa2: in 2.4 there were some non trivial changes to the way stackoverflows are detected.
workmad3 has joined #ruby
<ncopa2> i figured
<ncopa2> i think the current stack size calculation is broken
<dminuoso> ncopa2: There isn't much documentation about it, I just know the patches exist (without any bug report - in English)
<dminuoso> ncopa2: Are you using recursion?
<ncopa2> this is the bug i'm working on: https://bugs.ruby-lang.org/issues/14387
<dminuoso> ncopa2: Let me dig up the relevant commit
<dminuoso> ncopa2: 9c927f8c8b
<ncopa2> testcase: http://tpaste.us/DeYO
<ncopa2> yes i foudn that commit
<dminuoso> That commit was necessary to prevent VM corruption in some weird cases.
<ncopa2> i think that is perfectly fine
<ncopa2> thread_pthread.c has a get_stack() which i think is broken
aufi_ has joined #ruby
<dminuoso> ncopa2: Can you elaborate how?
<ncopa2> main thread, the process (eg no pthread_create() called) has 8MB stack size
<dminuoso> ncopa2: Can you try unapplying the commit I referenced, and see if it changes the possible stack depth?
<ncopa2> default pthread stack size is 128k (80k on older musl)
<ncopa2> pthread_attr_getstacksize() returns the *stack* size, which is 128k
<ncopa2> and ruby thinks that is all it has
<ncopa2> i'll test rever the commit
cschneid has joined #ruby
<dminuoso> ncopa2: Also what system are you on?
<ncopa2> alpine linux, x86_64
bigblind has joined #ruby
DaniG2k has joined #ruby
<ncopa2> using musl libc instead of glibc
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
<dminuoso> ncopa2: This is impossible with this ifdefitis going on. I'd have to rebuild with musl myself.
<dminuoso> Cant do this without lldb/gdb.
cpruitt has joined #ruby
<dminuoso> This is Ruby code at its worst.
rabajaj has joined #ruby
<dminuoso> ncopa2: You wouldn't happen to have a docker container you could just send me, would you?
<ncopa2> almost. this one here builds ruby for you in alpine: https://github.com/koshigoe/ruby-2.5.0-stack-level-too-deep/blob/master/trunk/Dockerfile
<ncopa2> he has a different test
cpruitt has quit [Ping timeout: 268 seconds]
<ncopa2> but its the same problem
<dminuoso> ncopa2: Is that also against musl?
<ncopa2> yes
<ncopa2> FROM alpine ....
<dminuoso> Ah. Yeah nvm
<ncopa2> what i wonder is if pthread_attr_getstacksize() is supposed to return the *current* running thread, or the stack size you will get when you do pthread_create
<ncopa2> if its the former, then musl should be fixed (but then you also have a problem to know when thread stack size is too small)
<ncopa2> if its the latter, then ruby get_Stack is broke
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
ltt has joined #ruby
jenrzzz has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
<dminuoso> ncopa2: Im gonna go grab some lunch. It will take a real while, because Im doing compiling GHC in the background, so there's not much CPU time available on my machine. ;-)
<ncopa2> reverting the 9c927f8c8b makes the test case pass
_phaul has joined #ruby
<ncopa2> i think checking the stack size is good, but we need calculate the stack size of the current running thread correctly
<dminuoso> ncopa2: Yeah. Sadly you cant just revert the commit, because that will allow the GC while you're at the stack end to completely trash the RubyVM.
<ncopa2> i dont think reverting it is the proper solution
<ncopa2> we may also need have a minimal required thread stack size, and pthread_attr_setstacksize() if default thread stack is too small
<ncopa2> but that is different issue
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
<ncopa2> some comments i did to show which #ifdef musl ends up with + printf debugging im currently doing: http://tpaste.us/B6xW
agent_white has quit [Ping timeout: 265 seconds]
sidx64 has joined #ruby
agent_white has joined #ruby
Fusselgesicht has joined #ruby
cpruitt has quit [Ping timeout: 245 seconds]
Dimik has quit [Ping timeout: 260 seconds]
adlerdias has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
sidx64 has joined #ruby
schneider has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
cpruitt has joined #ruby
jameser has joined #ruby
hahuang61 has joined #ruby
jameser has quit [Client Quit]
<ncopa2> correction. musl pthread stack size is still only 80k
cpruitt has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jameser has quit [Client Quit]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
ledestin has quit [Client Quit]
ltt has joined #ruby
Psybur has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
voker57 has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
dviola has quit [Quit: WeeChat 2.0.1]
cpruitt has joined #ruby
shinnya has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
nme13 has joined #ruby
<nme13> hello
<nme13> need help with date comparison
<nme13> seems Ruby has its own reality for this...
<matti> Might be :)
zautomata1 has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
zautomata has quit [Ping timeout: 252 seconds]
anisha has quit [Quit: This computer has gone to sleep]
ldnunes has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<apeiros_> nme13: do you intend to actually ask a question?
apeiros_ is now known as apeiros
alex`` has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Cavallari has joined #ruby
Papierkorb has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
nme13 has quit [Quit: Leaving]
<dminuoso> apeiros: Btw.. apparently turning off the monitor in a macbook is controlled by a magnet..
nadir has joined #ruby
<dminuoso> apeiros: If you have one macbook on your lap (with the lid closed), and keep another one ontop, the display will just shut off
<dminuoso> (Which happens rather frequently when Im sitting in the train with a coworker, and he hands me his macbook, while I close the lid of mine and place his ontop)
<apeiros> somewhere in the back of my head I actually knew that :D
<apeiros> and I guess nme13 didn't actually need any help :-/
cpruitt has joined #ruby
fribmendes is now known as frm
ts__ has joined #ruby
<dminuoso> apeiros: If you were to use a minimalistic parser combinator library to parse things, down to even things you would otherwise regex with, how relevant would performance be?
cpruitt has quit [Ping timeout: 248 seconds]
<dminuoso> Im not convinced I can make this work with Ruby's execution model.
bonhoeffer has joined #ruby
apparition has joined #ruby
hahuang61 has joined #ruby
ferr1 has joined #ruby
<bonhoeffer> ruby -nle "print $1 if /abc(\d+)/" textfile.txt <-- gives the whole line, any tips?
thinkpad has quit [Quit: lawl]
<dminuoso> ncopa2: Btw, Ill take a look after work, if you still happen to be around.
<apeiros> dminuoso: that would depend a lot on what I'd intend to use the parser for
<apeiros> but so far in most of my use cases where I had to write my own parser, I specifically did it because performance of existing solutions was bad
<dminuoso> apeiros: I guess its a catch 22.
<bonhoeffer> there is also something like: ruby -pe 'next unless $_ =~ /regexp/' < file.txt
terens has joined #ruby
<terens> hello
cpruitt has joined #ruby
<ncopa2> dminuoso: great, thanks. I think the problem is that pthread_getattr_np(pthread_self()) does not give the "correct" stack size on musl
<ncopa2> it give you the number the kernel guarantee you
<dminuoso> apeiros: I guess what I really need, is to fake monadic combination without actually doing it.
<dminuoso> Because I cant afford blowing up the callstack.
hahuang61 has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
dcluna has quit [Read error: Connection reset by peer]
<bonhoeffer> i'm thinking it isn't possible to print a match in one line -- takes perl or GNU egrep
lpmusic_ has quit [Ping timeout: 252 seconds]
cpruitt has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
jameser has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
<apeiros> bonhoeffer: hm? `ruby -ne 'print $_[regex]' inputfile` works fine for me
dcluna has joined #ruby
DaniG2k has quit [Ping timeout: 268 seconds]
thinkpad has joined #ruby
<bonhoeffer> ruby -ne "print $_[/001/]" text.txt zsh: bad math expression: operand expected at `/001/'
<dminuoso> apeiros: Do you find it visually pleasing?
mtkd has joined #ruby
<bonhoeffer> ruby -ne "print $_[001]" All.txt -> -e:1:in `<main>': uninitialized constant A (NameError)
<bonhoeffer> missing something
<apeiros> bonhoeffer: you're having difficulties with your shell I think…
<apeiros> you probably should use single quotes
<bonhoeffer> maybe
<apeiros> -ne ', instead of -ne "
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> apeiros: (To elaborate, >> sequences two parsers, but ignores the output of the first, while >-> lets you tap into the previous parsers result, and then run a new parser)
<apeiros> dminuoso: that looks haskellish? :D
<dminuoso> apeiros: Its 100% ruby!
<apeiros> I figure from the .rb in the filename
<apeiros> do you use the superators gem or did you roll your own proxying code?
<bonhoeffer> apeiros: got it -- but is there a way to extract a match $1 from that
<dminuoso> apeiros: what proxying code are you talking about?
<dminuoso> apeiros: There's no magic here.
<dminuoso> apeiros: It's pure and honest ruby.
<apeiros> bonhoeffer: $_[regex, 1]
<apeiros> dminuoso: >->
<apeiros> that's a method chain, no?
<dminuoso> apeiros: That's just > followed by a lambda ;)
<apeiros> …
<apeiros> oh.
<apeiros> :D
jameser has joined #ruby
<apeiros> dminuoso: can't really judge how pleasing I find the whole. it looks nice.
<apeiros> but my experience with parsers is, that small parsers always look nice. the moment you reveal the full grammar they become a horrible abyss which doesn't stop staring back at you.
<bonhoeffer> wow apeiros -- is there a link on this? i haven't seen this feature before -- thanks a lot for the nudge
<dminuoso> apeiros: That's the beauty about parser combinators. They retain their looks. The only limitations is that you cant parse all grammars with it.
jenrzzz has quit [Ping timeout: 248 seconds]
<bonhoeffer> it is working, but all on one line -- puts gives me lots of blank spaces
<apeiros> I did wonder why you used print.
<apeiros> I assumed it was intentional.
jenrzzz has joined #ruby
karapetyan has quit [Remote host closed the connection]
<apeiros> but adding a newline when you have a match surely isn't that difficult, no?
<dminuoso> apeiros: The thing is, it's just a technique of combinatorically constructing recursive descent parsers.
karapetyan has joined #ruby
<bonhoeffer> apeiros: fair point -- + "\n"
<dminuoso> apeiros: And because of that, it's easy to construct complex parsers without things ever looking more complicated than what you have just seen.
<bonhoeffer> no, i'm missing something -- there seems to be a conditional hidden in there, if I had + "\n" i get problems with the nil case
<dminuoso> kind of wish I could somehow rig <* and *> in
<apeiros> bonhoeffer: ruby -ne 'print($_ =~ regex ? "#$1\n" : nil)'
<bonhoeffer> fair enough
<apeiros> there are probably more compact ways
<apeiros> but it's not like I want to waste time golfing this
<bonhoeffer> yeah -- works well, thanks
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 268 seconds]
<bonhoeffer> apeiros: just for my understanding what do you call the operation $_[regex, 1] so I can look up the docs on that
<bonhoeffer> it looks like implicit =~ on a string
<apeiros> &ri String#[] bonhoeffer
<apeiros> remember, [] is just a method in ruby
<apeiros> as are []=, +, - etc.
<bonhoeffer> thanks
<apeiros> so all you have to do is determine which class the receiver has and voilà, there you look it up (don't forget ancestry)
<bonhoeffer> str[regexp, capture] → new_str or nil -- great -- thanks
Mia has quit [Ping timeout: 240 seconds]
eblip is now known as eb0t-
AJA4350 has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
konsolebox has joined #ruby
DaniG2k has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
morfin has joined #ruby
<morfin> hello
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morfin> i need some help here: i can't install mysql2 on FreeBSD because bundle install saying -liconv is not found but i have it installed from ports
cpruitt has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
jeffreylevesque has quit [Ping timeout: 240 seconds]
<morfin> i guess better ask on #freebsd
cpruitt has joined #ruby
<terens> maybe needs some headers etc
cpruitt has quit [Ping timeout: 260 seconds]
Beams has quit [Quit: .]
Azure has quit [Ping timeout: 265 seconds]
tobiasvl has quit [Quit: reboot]
Beams has joined #ruby
Cavallari1 has joined #ruby
Beams has quit [Client Quit]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Beams has joined #ruby
Cavallari has quit [Ping timeout: 260 seconds]
Cavallari1 is now known as Cavallari
nowhereman_ has joined #ruby
hahuang61 has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
tvl has joined #ruby
cpruitt has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
tvl is now known as tobiasvl
ltt has joined #ruby
thinkpad has quit [Ping timeout: 245 seconds]
cpruitt has quit [Ping timeout: 268 seconds]
thinkpad has joined #ruby
<href> OA
papajo has joined #ruby
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
bmurt has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
guille-moe has quit [Remote host closed the connection]
guille-moe has joined #ruby
karapetyan has quit [Remote host closed the connection]
DaniG2k has joined #ruby
chouhoulis has joined #ruby
cpruitt has joined #ruby
chouhoul_ has joined #ruby
frm is now known as fribmendes
<terens> is there a way to proff
chouhoulis has quit [Ping timeout: 256 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 256 seconds]
ltt has joined #ruby
guille-moe has quit [Quit: guille-moe]
cpruitt has joined #ruby
guille-moe has joined #ruby
<apeiros> terens: what is proff?
DaniG2k has quit [Ping timeout: 260 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
bonhoeffer has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
aufi_ has quit [Ping timeout: 240 seconds]
bmurt has quit [Ping timeout: 256 seconds]
cpruitt has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
papajo has quit [Remote host closed the connection]
jcalla has joined #ruby
DaniG2k has quit [Quit: leaving]
sidx64 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<ineb> How to get to Proff Gatekjøkken in Bergen. By Bus or Train.
cpruitt has joined #ruby
jeffreylevesque has joined #ruby
Puffball has joined #ruby
cpruitt has quit [Ping timeout: 248 seconds]
vondruch has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Beams has quit [Quit: .]
hahuang61 has joined #ruby
Beams has joined #ruby
netherwolfe has joined #ruby
bigblind has quit [Quit: Ping timeout (120 seconds)]
bigblind has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
<Ethan> ineb: google.com
hahuang61 has quit [Ping timeout: 248 seconds]
aufi_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb> that is correct. that is correct
aupadhye has joined #ruby
sidx64 has joined #ruby
<apeiros> lol wut?
govg has quit [Ping timeout: 240 seconds]
<tobiasvl> Bergen, wow
<tobiasvl> my country
govg has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
cpruitt has joined #ruby
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
jottr has joined #ruby
cpruitt has quit [Ping timeout: 260 seconds]
alex`` has joined #ruby
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 240 seconds]
alex`` has quit [Client Quit]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
krawchyk has joined #ruby
jordanm has quit [Quit: Konversation terminated!]
jordanm has joined #ruby
JoshS has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
DLSteve_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
darix has quit [Quit: may the packets be with you...]
Beams has quit [Quit: .]
terens has quit [Remote host closed the connection]
alex`` has joined #ruby
memo1 has joined #ruby
Beams has joined #ruby
suukim has quit [Quit: Konversation terminated!]
ramfjord has joined #ruby
pastorinni has joined #ruby
milardov_ has joined #ruby
milardovich has quit [Ping timeout: 245 seconds]
apeiros__ has joined #ruby
apeiros__ has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
gnufied has quit [Client Quit]
memo1 has quit [Quit: WeeChat 1.4]
gnufied has joined #ruby
ta_ has quit [Remote host closed the connection]
memo1 has joined #ruby
darix has joined #ruby
apparition has quit [Quit: Bye]
hahuang61 has joined #ruby
John_Ivan has joined #ruby
Rapture has joined #ruby
tvl has joined #ruby
tvl has quit [Client Quit]
hahuang61 has quit [Ping timeout: 260 seconds]
John_Ivan has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
devil_tux has quit [Quit: leaving]
konsolebox has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
sonne has joined #ruby
karapetyan has joined #ruby
synthroid has joined #ruby
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
rrutkowski has joined #ruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
apeiros has joined #ruby
karapetyan has quit [Remote host closed the connection]
konsolebox has joined #ruby
apeiros has quit [Remote host closed the connection]
karapetyan has joined #ruby
cthulchu has joined #ruby
ddsad has joined #ruby
apeiros has joined #ruby
Gnut has joined #ruby
lroca has joined #ruby
lpmusic has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
RougeR has quit [Ping timeout: 256 seconds]
jamesaxl has joined #ruby
pastorinni has quit [Remote host closed the connection]
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #ruby
mustmodify_ has joined #ruby
Drazha has joined #ruby
brent__ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Drazha> Hi guys, I have a Ruby related question
<Drazha> the code can be seen here: https://pastebin.com/QfrRtYgH
<ruby[bot]> Drazha: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/3326476303ebe3f37011ba5caa57cb8d
<ruby[bot]> Drazha: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
rrutkowski has quit [Quit: rrutkowski]
<Drazha> in the first example, I get a list of 175 rows, each row as it should be...
rrutkowski has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
<Drazha> in second example, I get 175 rows populated with the data from the last data row
<Drazha> anyone has any suggestions?
<dminuoso> &ri select_all
<_derpy> No results
jamesaxl has joined #ruby
rrutkowski has quit [Remote host closed the connection]
<dminuoso> Drazha: select_all is not part of standard ruby API. What gem are you using, and can you elaborate what that last statement means exactly?
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
<Drazha> @dminuoso its part of the Ruby DBI Gem
ltt has joined #ruby
rrutkowski has joined #ruby
\void has joined #ruby
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
gnufied has quit [Quit: Leaving]
<Drazha> @dminuoso: so basically conn=connDB(1), and that is ccoming from require 'dbi', def connDB(db), and then I have a connection definition under value 1, etc... doesnt really matter
roshanavand has joined #ruby
rrutkowski has quit [Client Quit]
<Drazha> dminuoso: what I am more concerned about, why is the array not assigned to the variable so I can iterate through it with .each? This is Ruby 1.9.1 btw...
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
ogres has joined #ruby
rrutkowski has joined #ruby
<apeiros> uh, 1.9.1 is not a release for production
<apeiros> also it's been EOL for years now. you should absolutely upgrade your ruby
rrutkowski has quit [Remote host closed the connection]
gnufied has joined #ruby
rrutkowski has joined #ruby
synthroid has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 256 seconds]
Mike11 has joined #ruby
milardov_ has quit []
<Drazha> apeiros: yes, I am aware of that, painfully, however I am hoping someone can help out
hahuang61 has joined #ruby
Puffball has quit [Remote host closed the connection]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> Drazha: I don't have ruby dbi and I'm preparing to go jogging, so sorry, not me :-|
ltt has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
aloy has quit [Quit: WeeChat 2.0.1]
stan has quit [Ping timeout: 245 seconds]
aloy has joined #ruby
synthroid has joined #ruby
conta has quit [Ping timeout: 276 seconds]
bheesham has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Puffball has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
cschneid has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
thesubr00t has joined #ruby
ryzokuken has joined #ruby
ryzokuken has quit [Client Quit]
ryzokuken has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jrafanie has joined #ruby
troys has joined #ruby
John_Ivan has quit [Ping timeout: 240 seconds]
nit3rid3 has joined #ruby
tcopeland has quit [Quit: tcopeland]
\void has quit [Ping timeout: 240 seconds]
ddsad has quit [Quit: Page closed]
eckhardt has joined #ruby
\void has joined #ruby
GodOfSea has joined #ruby
Drazha has quit [Quit: Page closed]
<GodOfSea> hey
<GodOfSea> anyone knows any good documentation application, linux or windows doesnt matter
<llua> confluence
\void has quit [Ping timeout: 252 seconds]
cagomez has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
\void has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
drewmcmillan has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
tcopeland has joined #ruby
ltt has joined #ruby
orbyt_ has joined #ruby
\void has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
fribmendes has quit [Quit: fribmendes]
\void has joined #ruby
GodOfSea has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
oleo has joined #ruby
shoogz has quit [Excess Flood]
lroca has quit [Ping timeout: 276 seconds]
adlerdias__ has joined #ruby
hahuang61 has joined #ruby
nfsnobody has quit [Ping timeout: 265 seconds]
GodOfSea has joined #ruby
shoogz has joined #ruby
cadillac_ has quit [Ping timeout: 252 seconds]
cadillac_ has joined #ruby
<GodOfSea> llua confluence is free ?
mcr1 has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
cpruitt has quit []
adlerdias has quit [Ping timeout: 240 seconds]
adlerdias__ is now known as adlerdias
cagomez has quit []
hahuang61 has quit [Ping timeout: 252 seconds]
cagomez has joined #ruby
<bheesham> GodOfSea: it's free for 7 days:https://www.atlassian.com/software/confluence/pricing
<GodOfSea> bheesham I am poor
lytol has joined #ruby
<dminuoso> GodOfSea: What will you be using it for? An open source project?
alfiemax has quit [Ping timeout: 256 seconds]
<dminuoso> GodOfSea: And what exactly do you want to document?
<GodOfSea> Just for my own notes, for future references , I have been working as a freelancing sysadmin for the past 2 months , now i feel like I should use start documenting everything
jamesaxl has quit [Read error: Connection reset by peer]
<dminuoso> GodOfSea: Well confluence is really cheap if you have less than 10 users. It's something like 10 bucks a year.
nadir has quit [Quit: Connection closed for inactivity]
jamesaxl has joined #ruby
<dminuoso> Wait. 10 bucks one time for self hosting.
karapetyan has quit [Remote host closed the connection]
<GodOfSea> another alternative ?
ldepandis has joined #ruby
<GodOfSea> There is always open source
nfsnobody has joined #ruby
ts__ has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
mtkd has quit []
adlerdias has quit [Read error: Connection reset by peer]
adlerdias has joined #ruby
karapetyan has joined #ruby
adlerdias_ has joined #ruby
guille-moe has quit [Ping timeout: 245 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
eckhardt has joined #ruby
adlerdias has quit [Ping timeout: 268 seconds]
adlerdias_ is now known as adlerdias
aupadhye has quit [Remote host closed the connection]
psychicist__ has quit [Read error: Connection reset by peer]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
scrptktty__ has joined #ruby
psychicist__ has joined #ruby
andikr has quit [Remote host closed the connection]
darkhanb has joined #ruby
clemens3 has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Beams has quit [Quit: .]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
conta has joined #ruby
sanscoeur has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
workmad3_ has joined #ruby
tcopeland has quit [Quit: tcopeland]
workmad3 has quit [Ping timeout: 256 seconds]
mcr1 has joined #ruby
apeiros has joined #ruby
memo1 has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
kossae has joined #ruby
darix has quit [Quit: may the packets be with you...]
karapetyan has quit [Remote host closed the connection]
mooser has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
thesubr00t has quit [Quit: Ex-Chat]
Mike11 has quit [Ping timeout: 245 seconds]
nowhereman has joined #ruby
nowhereman is now known as Guest94223
mooser has quit [Remote host closed the connection]
ferr1 has left #ruby ["WeeChat 2.0.1"]
nowhere_man has quit [Ping timeout: 256 seconds]
marxarelli|afk is now known as marxarelli
hahuang61 has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
tcopeland has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
RougeR has quit [Ping timeout: 260 seconds]
rgr has joined #ruby
fyrril2 has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
mustmodify_ has left #ruby [#ruby]
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
Cavallari1 has joined #ruby
<havenwood> Ruby is back in the TIOBE top ten: https://www.tiobe.com/tiobe-index/
<havenwood> (I still think TIOBE is worthless.) ;-P
lytol has quit [Remote host closed the connection]
<Ethan> why in the world is Java #1?
jenrzzz has joined #ruby
<havenwood> Ethan: Java is #2 on RedMonk as well.
alex`` has quit [Ping timeout: 256 seconds]
<Ethan> ...why?
<havenwood> I suppose because it's widely used by servers and embedded devices, then there's Android on top.
Cavallari has quit [Ping timeout: 276 seconds]
Cavallari1 is now known as Cavallari
<havenwood> A lot of folk use Java, for better or worse. ¯\_(ツ)_/¯
<riotjones> I don't like java
planigan has quit [Ping timeout: 245 seconds]
<riotjones> it's too overbloated
aufi_ has quit [Quit: Leaving]
<riotjones> like the whole jvm
<riotjones> ram eater
ta_ has joined #ruby
<havenwood> JRuby and TruffleRuby on the other hand. <3
lele has quit [Ping timeout: 256 seconds]
Cavallari1 has joined #ruby
lele` has joined #ruby
<morfin> can i somehow pass -L/usr/local/lib to gem?
planigan has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
sirecote has joined #ruby
pastorinni has joined #ruby
Cavallari has quit [Ping timeout: 260 seconds]
Cavallari1 is now known as Cavallari
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood> morfin: What's the -L flag? Do you mean -I or where does that one come from?
<morfin> -L is linker flag specifying where i can find libraries
Cavallari1 has joined #ruby
c0dec has quit [Ping timeout: 265 seconds]
mooser has joined #ruby
ramfjord has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
nadir has joined #ruby
Cavallari has quit [Ping timeout: 260 seconds]
Cavallari1 is now known as Cavallari
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has quit []
mtkd has joined #ruby
c0dec has joined #ruby
za1b1tsu has quit [Quit: Leaving]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sidx64 has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sidx64_ has joined #ruby
cadillac_ has joined #ruby
c0dec has quit [Ping timeout: 256 seconds]
n008f4g_ has joined #ruby
mcr1 has quit [Ping timeout: 252 seconds]
sidx64 has quit [Ping timeout: 276 seconds]
<morfin> no idea how make this work
c0dec has joined #ruby
<morfin> -- --with-ldflags=-L/usr/local/lib probably worked but hm
<morfin> this looks like an ugly hack
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
c0dec has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alex`` has joined #ruby
<havenwood> morfin: ah, LDFLAG, right right
<havenwood> morfin: how about?: LDFLAGS="-L/usr/local/lib" gem ...
kies has quit [Quit: baaaaiiiiiiiiiii~]
<havenwood> mm
hahuang61 has quit [Ping timeout: 255 seconds]
jeffreylevesque has quit [Ping timeout: 265 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
aguestuser has quit [Ping timeout: 255 seconds]
cagomez has quit [Remote host closed the connection]
<morfin> well
<morfin> this may work too )
nowhere_man has joined #ruby
cagomez has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
_phaul has quit [Ping timeout: 256 seconds]
raynold has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
aguestuser has joined #ruby
Guest94223 has quit [Ping timeout: 240 seconds]
kies has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bmurt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
GodOfSea has quit [Quit: Leaving]
c0dec has joined #ruby
jenrzzz has joined #ruby
<\void> Ruby-ers!
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<\void> I'm junping into ruby, but google has issues telling me which is the tab character in use for ruby =?
<\void> s/junping/jumping/
mtkd has quit []
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
SuperLag has quit [Ping timeout: 245 seconds]
<_phaul> \void: I think you need to tell us more, what you want to do, and at which part you are stuck. Because I don't understand your question
_phaul is now known as phaul
<Ethan> \void: \t
<phaul> ah, so it's about how to escape tab. :)
<Ethan> i think
<Ethan> that's my best guess anyways
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pastorinni has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
<\void> Ethan: phaul Nah, sorry, it's about indenting your files
<\void> Do you use 2 spaces, 4 spaces as tabs? Some other thing?
<Ethan> 2
<\void> Thx
conta has quit [Remote host closed the connection]
<Ethan> welcome to ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
SuperLag has joined #ruby
hahuang61 has quit [Ping timeout: 265 seconds]
<\void> \o/
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
dmitriy_ has joined #ruby
bmurt has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nowhereman_ has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
alfiemax has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.9.1]
badeball has quit [Remote host closed the connection]
cpallares has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
kliq has joined #ruby
Arney has joined #ruby
<Arney> isn't jruby supposed to be faster than MRI?
<dminuoso> Arney: Some things are faster, others are not.
<Arney> no matter what i do.. i end up having code that is faster in MRI
<dminuoso> Arney: If you are curious about why, head straight to #jruby - they are better equipped to tell you details.
<Arney> well i don't know, i don't care if i can use it
jamesaxl has quit [Ping timeout: 256 seconds]
<Arney> and it doesn't seem like i can
bmurt has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
adlerdias has quit [Quit: adlerdias]
<dminuoso> Arney: Do you have some sample code?
<Arney> well, it's basicially my isPrime code from #haskell, that you know
tvw has quit [Remote host closed the connection]
<Arney> !(2..(n**(1.fdiv(2))).ceil).lazy.map { |x| n%x }.any?(&:zero?)
<Arney> this basicially
<Arney> mapped from 0..20000
<dminuoso> Arney: Any explanation I could give is based on assumptions. Head to jruby, they should be able to shed some light into this.
<Arney> yeah as i said.. i expected jruby to be faster in 99% of the cases
<Arney> this is really not what i expected qq
jenrzzz has quit [Ping timeout: 268 seconds]
Psybur has quit [Ping timeout: 240 seconds]
<Arney> why can't we have fast rubies :(
<dminuoso> Arney: There is truffleruby
mcr1 has joined #ruby
<Arney> coool
<Arney> llvm cooooool
<Arney> coooooooooooooool
<Arney> i wish it was real
<Arney> uhh they have chunky_png benchmarks
<dminuoso> Arney: Trust me, the llvm is the boring part.
<Arney> whats cool about it?
racheel has joined #ruby
<dminuoso> Arney: truffleruby is based on a next gen polyglot JIT, with absolutely amazing optimizations
<racheel> is it common to install gems with sudo?
<dminuoso> It can even do cross language inlining and shenanigans.
<Arney> is it like rbx, having a vm in C ?
<Arney> racheel: i do it, maybe not :o
<dminuoso> racheel: No.
<racheel> hmm, when I'm not using sudo I get an error: "You don't have write permissions for the /var/lib/gems/2.3.0 directory."
<racheel> I just installed ruby with "sudo apt install ruby" on a fresh distro install
<dminuoso> Arney: The core is GraalVM which is a high performance VM that targets many languages simultaneously.
<Ethan> racheel: user --user-install
<Arney> is it OS? i already read about that
Puffball has quit [Remote host closed the connection]
<dminuoso> Arney: It's a JIT compiler + polyglot runtime for JVM.
<Arney> bleh why does it always have to be jvm
<Arney> so.. when it's compiled it's jar-ish ?
<dminuoso> Arney: Do you have any factual reasons to be "against JVM" for a second?
<Arney> dminuoso: it's owned by oracle?
<Arney> not OS?
<dminuoso> Arney: It's an Oracle research project, yes.
<Arney> i mean there is icedtea, but have no clue how they compare to each other
mrCyborg has joined #ruby
<Arney> it was designed to run java code? and maybe not optimized for things like ruby?
<dminuoso> Arney: Its not a JDK. It's just a JIT compiler + runtime. It's basically a platform to develop langauges on.
<racheel> Ethan: thanks
<Ethan> np
aufi has joined #ruby
<Arney> dminuoso: uhm.. so the ruby code does not run on jvm? but the compiler does? :o confused now
<mrCyborg> Hey everyone! I just wrote my first ruby program! Would anyone mind doing a quick code review on it? _all_ feedback is welcome! https://gist.github.com/anonymous/1bc5bf908b41d2c47072b5114391a330
<dminuoso> mrCyborg: Dont monkeypatch core classes like String.
<Arney> that's someone who came from C :D
ts__ has joined #ruby
<dminuoso> Arney: The performance is downright incredible.
<Ethan> racheel: also consider using rvm or rbenv
<Arney> dminuoso: uhh that's promising
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
<mrCyborg> dminuoso, interesting, when looking at posts like https://stackoverflow.com/questions/1489183/colorized-ruby-output monkey patching seemed pretty acceptable in ruby, but I guess stackoverflow doesn't have the highest code standers ;-)
<Arney> do it when it's absolutly neccessary, but don't add something like " i have this cool list of colors"
<Arney> a normal module defined by you would be essentially the same
<Arney> that's opinion / experience
<Arney> i would also not inherit from base classes, always leads to trouble
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<mrCyborg> Why? While I see the issue with monkey patching base classes, I don't really see how inheriting from one could cause trouble
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<mrCyborg> Do base classes change much between ruby updates?
<Arney> there might be none, but i don't see the advantage either
<Arney> what do colors have to do with strings?
<Arney> why wouldn't you patch them to IO
<Arney> mrCyborg: imagine you write a library/gem, which does this
<Arney> another developer things the same.. but gives the same attribute different colors
<Arney> s/things/thinks
dviola has joined #ruby
ts__ has left #ruby ["Leaving"]
<mrCyborg> Well, these are just the standard terminal colors. Defined by the user theme.
<mrCyborg> But I get your point
<Arney> yeah even if you're "right", whatever that means
<Arney> the class u wanted to patch is "IO"
<Arney> which would be closer to terminal
mtkd has joined #ruby
<mrCyborg> Anyway, ignoring the monkey patching of String, is there anything else about my code that I could improve?
jottr has quit [Quit: WeeChat 2.0.1]
<Arney> im guessing you come from java?
<dminuoso> mrCyborg: Its too small to talk much about, but it's very non-idiomatic.
<Arney> have no real critism of your code, other than it doesn't look very ruby-ish, whatever dminuoso says :D
<mrCyborg> Not really, i'm still in High School and i'm trying to get away from JavaScript
<mrCyborg> > doesn't look very ruby-ish
<mrCyborg> That's exactly the feedback I want
<dminuoso> mrCyborg: But nothing that strikes me as horribly wrong. Its some typical beginner code.
<mrCyborg> How would I make it more ruby-ish? I know the isn't an easy answer but can you point me into the right direction
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<Arney> for example i NEVER read ruby code like "for e in y"
<Arney> people always tend to use
<Arney> [1,2,3].each { |x| puts x }
<dminuoso> The difference is minor, and semantically its the same.
<Arney> the rescue blocks which you like to put everyhwere, i feel like a ruby developer would abstract them away
<Arney> using them once on top and not in combination with the begin...rescue..end style
<Arney> more like def method param; ...; rescue lol; end;
<mrCyborg> > Array.each
<mrCyborg> Ah noted, kind of the same as in JavaScript in that regard.
<mrCyborg> Mind to elaborate?
nowhere_man has quit [Remote host closed the connection]
<Arney> no that's correct, while it was later added to j
<Arney> s
<Arney> i remember it not being there like this
nowhere_man has joined #ruby
<mrCyborg> I'm talking about es6
<dminuoso> mrCyborg: It's clean, it's fine - don't bikeshed.
<Arney> but i've seen worse of my colleagues which should be used to ruby til now, so it's fine
jcalla has quit [Ping timeout: 265 seconds]
<dminuoso> mrCyborg: The main thing is just, is the type of task you are doing doesn't play well with Ruby's object oriented nature and Smalltalk heritage.
<dminuoso> So it looks non-idiomatic. Bunch of methods and nothing else.
<dminuoso> mrCyborg: I like that you are using Struct. :-)
jcalla has joined #ruby
<mrCyborg> Thanks, I did some searching to see what was the recommended way
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
lroca has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
<dminuoso> mrCyborg: There's some things I personally started to do differently. Like I would probably use `case` in this spot http://chrisseaton.com/rubytruffle/jokerconf17/
<dminuoso> Weird clipboard.
<Arney> when i got enlightened in ruby.. i started to imagining
<Arney> ruby objects like boxes.. that send messages to each other (which is basicially the smalltalk idea)
<Arney> boxes = attributes + methods
<Arney> that's really ALL there is
<Arney> and blocks makes it easy to configure them
<mrCyborg> Yup, I really like how everything is a class in ruby.
<chrisseaton> Arney: there’s also a native version of TruffleRuby that doesn’t need jars or a JVM
<dminuoso> o/ chrisseaton
<mrCyborg> It just feels so elegant
<mrCyborg> Anyway, thanks dminuoso and Arney for your feedback! I really appreciate it!
discopatrick has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<dminuoso> chrisseaton: By the way, how do fit into Graal? Is there some infrastructure to do cross language type checking?
<dminuoso> I a verb.
<dminuoso> Meant to ask how types fit into Graal.
<mrCyborg> Got any good ruby tutorials/live coding sessions? YouTube gives me videos like "Learn Ruby in 10 minutes" which doesn't seem like the best source of knowledge.
<dminuoso> mrCyborg: We have a curated list of books..
<dminuoso> ?books
<ruby[bot]> You can find a list of recommended books at http://ruby-community.com/pages/links
<dminuoso> mrCyborg: Bleh. Ignore that, its outdated. Check the topic
<mrCyborg> Ah, thank you!
<mrCyborg> I should have looked in the topic myself before asking...
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<mrCyborg> Yeah, I know I sound cheap but got anything... "free"? I'm not ready to sped €20 on a book.
troulouliou_div2 has joined #ruby
<caoraivoso> Arney: I also get the feeling of that boxes idea sending messages when writing ruby code, although I still have some trouble understanding procs/blocks
<dminuoso> caoraivoso: Do you know what a function is?
<caoraivoso> yes
<dminuoso> caoraivoso: Can you, with your own words, describe that?
eckhardt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<caoraivoso> I wlil try
<caoraivoso> will*
ramfjord has joined #ruby
<zenspider> rawr
<caoraivoso> a function is just some piece of code that can take input in the form of arguments and also return output
<zenspider> dminuoso: I think that whole site is up on github if you want to send in a PR to update the books
<dminuoso> caoraivoso: Also. What can you do with a function?
<caoraivoso> call it?
<dminuoso> caoraivoso: Yup.
<dminuoso> caoraivoso: That's all blocks and procs are too.
<dminuoso> caoraivoso: Nothing more, nothing less.
<dminuoso> caoraivoso: Blocks and procs *are* functions.
<zenspider> boxes?
<caoraivoso> I thought they were something more complicated/fancy
<caoraivoso> interesting
<zenspider> is this one of those "I don't like the word 'object'" things? or am I missing something?
jottr has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<dminuoso> caoraivoso: Let me show you:
<caoraivoso> ok
<dminuoso> >> func = -> e { e * 2 }
<ruby[bot]> dminuoso: # => #<Proc:0x406edae4@/tmp/execpad-e9ae2de4fd29/source-e9ae2de4fd29:2 (lambda)> (https://eval.in/968895)
<dminuoso> This looks like a function that takes an argument, e, and multiplies it by 2 right?
<dminuoso> >> func = -> e { e * 2 }; func.call(10)
<ruby[bot]> dminuoso: # => 20 (https://eval.in/968896)
alfiemax has quit [Remote host closed the connection]
<dminuoso> Or if you prefer this style:
<dminuoso> >> func = -> e { e * 2 }; func[10]
<ruby[bot]> dminuoso: # => 20 (https://eval.in/968897)
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<caoraivoso> dminuoso: I see
<dminuoso> And that's called a lambda, which is a cousin of Proc. Blocks are the same thing.
<dminuoso> Except "call" is called "yield"
<dminuoso> Because why not.
<caoraivoso> why does it use that syntax? e.g. func = -> e rather than just func(e) ?
darix has joined #ruby
<dminuoso> caoraivoso: Because Matz said so.
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
WA9ACE has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
jcalla has quit [Ping timeout: 240 seconds]
fclausen has joined #ruby
<caoraivoso> I see, nice
<dminuoso> caoraivoso: Blocks are the same thing, the subtle difference is just that syntactically you have to put them outside the parens for a method call (but it still is just passing a function as a parameter)
mooser has quit [Ping timeout: 240 seconds]
aufi has quit [Remote host closed the connection]
<caoraivoso> I'd like to see more examples of how blocks and procs compare
<dminuoso> caoraivoso: a proc is a block with an object shell.
<dminuoso> caoraivoso: you can turn one into the other.
<caoraivoso> nice
pilne has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<caoraivoso> thanks for your help, I'll give it a try
dviola has quit [Quit: WeeChat 2.0.1]
jottr has quit [Quit: WeeChat 2.0.1]
ironcamel has quit [Quit: leaving]
fribmendes has joined #ruby
dviola has joined #ruby
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
\void has joined #ruby
ldnunes has quit [Quit: Leaving]
vikaton has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
John_Ivan has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nit3rid3 has quit [Quit: Leaving]
racheel has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<miah> so i encountered code like this `_(foo).must_equal 'bar'` in some tests and i'm curious because I haven't seen this before. can anybody help clarify what `_()` is doing? https://github.com/chef/inspec/blob/master/test/unit/resources/shadow_test.rb#L10
rgr has quit [Quit: rgr]
mooser has joined #ruby
<zenspider> miah: I might be able to help ;)
<miah> please =)
<zenspider> here's a hint: `_` is also aliased to `expect` (and `value`)
alfiemax has joined #ruby
<zenspider> so, rewritten: expect(foo).must_equal 'bar'
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<zenspider> expect(some_value) => value monad => `must_equal expected` => result
c0dec has quit [Ping timeout: 240 seconds]
<miah> ok interesting
<zenspider> this change will allow me to remove all the must/wont methods that are up on Object right now
<zenspider> personally, at that point, I don't see *any* extra value in the spec-style. Just use assertions
<zenspider> maybe use describe/it instead of classes/methods, tho there's real drawbacks there too
<zenspider> (while describe acts like a class, it corrupts normal method inheritance)
<miah> ya i usually write unit style but most of the tests in this code are spec style
sidx64 has joined #ruby
<zenspider> Mike Moore likes a hybrid between the two. I think he calls it assert-spec style
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<zenspider> does that explanation make sense tho?
mooser has quit [Ping timeout: 256 seconds]
<zenspider> the next release of minitest is gonna add deprecation warnings to the global methods and the next release after that will remove the methods
<miah> yes that makes sense thank you!
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 268 seconds]
fribmendes has quit [Read error: Connection reset by peer]
tessi_zz has quit [Remote host closed the connection]
sidx64_ has quit [Ping timeout: 240 seconds]
<zenspider> cool. glad to help
<zenspider> ok... gotta go get "in the zone" for this interview... later
<miah> good luck =)
sidx64_ has joined #ruby
c0dec has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sidx64 has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alex`` has quit [Quit: WeeChat 2.0.1]
synthroid has quit []
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badeball has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<zenspider> miah: how much setup crap do I need to to run those tests?
sidx64_ has quit [Ping timeout: 240 seconds]
cagomez has quit [Read error: Connection reset by peer]
cagomez_ has joined #ruby
<zenspider> n/m...
sameerynho has quit [Ping timeout: 252 seconds]
AJA4350 has joined #ruby
kossae has quit []
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
mrCyborg has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
pastorinni has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
anjen has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<miah> =)
ams__ has quit [Quit: Connection closed for inactivity]
hahuang61 has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Coldbla5 has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
Coldbla5 has quit [Remote host closed the connection]
Coldbla5 has joined #ruby
Cavallari has quit [Quit: Cavallari]
hahuang61 has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rrutkowski has quit [Quit: rrutkowski]
Coldbla5 has quit [Max SendQ exceeded]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Coldbla5 has joined #ruby
eckhardt has joined #ruby
fclausen has quit [Quit: leaving]
xco has joined #ruby
<xco> i have a string like this "#{t('text.timestamp')} (daily)"
cadillac_ has quit [Read error: Connection reset by peer]
<xco> in place of “daily” i want to interpolate something using #{} but keep the opening/closing brackets, how do i achieve this?
amatas has quit [Quit: amatas]
<phaul> >> "... (#{1+1})"
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
Dimik has joined #ruby
<phaul> >> p "[...] (#{1+1})"
<phaul> why is @ruby[bot] ignoring me ? :'(
<Arney> dminuoso: how did those trufflebois get rid of GIL?
clemens3 has quit [Ping timeout: 240 seconds]
<Arney> or didn't they?
<phaul> but anyways, xco kust put the #{stuff} inside the () parens
<phaul> *just*
tvw has joined #ruby
<Arney> phaul: you need to be authenticated with freenode services
<Arney> for the bot to listen to you
<Arney> >> p "[...] (#{1+1})"
<ruby[bot]> Arney: # => "[...] (2)" ...check link for more (https://eval.in/968921)
<phaul> Arney: thanks I thought I was I try again
phaul has quit [Quit: WeeChat 2.0.1]
phaul has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<phaul> >> 1 + 1
<ruby[bot]> phaul: # => 2 (https://eval.in/968922)
<Arney> >> method(:puts).call("#{$/}")
mtkd has quit [Read error: Connection reset by peer]
<ruby[bot]> Arney: # => ...check link for more (https://eval.in/968923)
mtkd has joined #ruby
p0s1x has joined #ruby
p0s1x has quit [Client Quit]
gnufied has quit [Remote host closed the connection]
<Arney> >> p $$
<ruby[bot]> Arney: # => 7194 ...check link for more (https://eval.in/968924)
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Azure has joined #ruby
<havenwood> Arney: You can't get rid of a GIL if you never had one!
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<Arney> only thing i hate matz for
gnufied has joined #ruby
<xco> phaul: thanks
<havenwood> Arney: CRuby is the only broadly-used implementations with a GVL. JRuby, Rubinius and TruffleRuby don't have one.
<havenwood> Arney: It won't be global in CRuby once there are guilds.
<phaul> xco: you are welcome
Gnut has quit [Ping timeout: 276 seconds]
kliq has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<miah> can i join the dark brotherhood guild in CRuby?
cthulchu has quit [Ping timeout: 276 seconds]
DTZUZO has joined #ruby
tomphp has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
nowhere_man has joined #ruby
mtkd has quit []
krawchyk has quit [Quit: krawchyk]
nowhereman_ has quit [Ping timeout: 252 seconds]
jamesaxl has quit [Quit: WeeChat 2.0.1]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
suhdood has joined #ruby
drewmcmillan has joined #ruby
[Butch] has quit [Ping timeout: 256 seconds]
cthulchu has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
suhdood has quit [Quit: Leaving]
jenrzzz has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 260 seconds]
che_ has joined #ruby
SynSynack has joined #ruby
<che_> ruby[bot],
John_Ivan has quit [Read error: Connection reset by peer]
darix has quit [Quit: brb]
darix has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryzokuken has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jenrzzz has quit [Ping timeout: 256 seconds]
<Arney> havenwood: if truffle doesn't have one, how do they lock with c extensions
<Arney> or don't they
<chrisseaton> Arney: we actually do have a lock on C extensions at the moment I'm afraid
lroca has quit [Ping timeout: 260 seconds]
<Arney> chrisseaton: we as in, you're one of the persons involved in truffleruby?
<chrisseaton> I think (but not sure) that Rubinius doesn't have a lock on C extensions, so they must have made it work, but for us it just doesn't seem to work well on many C extensions
<chrisseaton> Sorry, yeah
<Arney> yeah rubinius doesn't have one
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<Arney> but it also sucks, pretty much
<zenspider> there's no pretty much about it. :P
<Arney> i was really hyped about rubinius but it's really underwhelming
alfiemax has quit [Ping timeout: 240 seconds]
<Arney> it does use the cpu really well, you can turn off your central heating
<Arney> but it's 100x times slower than MRI in usual work
<Arney> i am confusued on how to use graalvm
<Arney> but i will get there
<chrisseaton> Arney: there's quite a lot of docs these days for Ruby users https://github.com/oracle/truffleruby/tree/master/doc/user
<Arney> yeah and they're all like " get graal"
<Arney> logging into oracle. i guess?
<chrisseaton> Yeah... I'm afraid you need to 'sign up' to OTN to download it at the moment, because it's based on OracleJDK. There will be a standalone binary Ruby release soon that doesn't need a JVM and will be wget-able
<Arney> i will wait for that
<Arney> context is i trued jruby today and was also underwhelmed
phaul has quit [Ping timeout: 256 seconds]
<Arney> i always figured jvm speed with jruby would be like ALWAYS quicker
<Arney> but i didn't manage to write code that runs faster in jruby
<Arney> maybe if i used threads.. but that's not enough for me
<Arney> maybe that graalvm thing will make me happy, im hyped!
<chrisseaton> If your code isn't faster in JRuby then ask them for help - they will be keen to fix it
<chrisseaton> I'm not saying GraalVM will be faster for you first time either
<Arney> well.. but that's not how it is supposed to be i think, if i wanted to change my style of code to be quicker than ruby
<Arney> i wouldn't write ruby? or am i weird there?
<chrisseaton> No I mean ask JRuby for help and they'll fix bugs in JRuby for you to make it fast for your code
<Arney> oh i see, hm
<chrisseaton> It is possible to write code that will defeat almost any JIT though - such as repeatedly redefining methods - and sometimes people do seem to end up writing code that does that
<zenspider> Arney: yup yup. that's what happens when I project gets poisoned by toxic personalities
<pilne> truffle ruby is one of the main draws for me to ruby, besdies the fact it fits my brain better :D
<Arney> zenspider: i don't follow
phaul has joined #ruby
<zenspider> Arney: that's probably for the best. As far as I'm concerned, rubinius is dead and irrelevant at this point.
<Arney> no i mean the toxic personalities thingie, what do you mean by that?
<pilne> it's a fun platform for looking into "ruby in ruby" at this point sadly
<Arney> ohyeah that shit would be so cool if it worked
<zenspider> I mean just that. not sure what you're not getting.
<Arney> for example that project is not a verb :>
<zenspider> pilne: ruby in ruby... with lots of C++ and LLVM... ya know... NOT ruby in ruby. :P
<pilne> "Halunke" is an interesting little language written in Ruby for looking into using ruby as a base for another language (:
<pilne> yeh...
<zenspider> pilne: oh? URL?
<Arney> zenspider: well, no.. the vm is written in cpp
<Arney> there whole ruby there is is written in ruby in rbx
<Arney> that part is really awesome about rb
<Arney> x
<chrisseaton> pilne: if you like Ruby-in-Ruby then TruffleRuby is definitely for you - it's over half Ruby code
<Arney> if it really was quick/stable it would be the "best" implementation
<zenspider> um... I wrote good portion of that
n008f4g_ has quit [Ping timeout: 276 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
<Arney> zenspider: of what.. rbx? and what about that is not ruby?
<zenspider> now I won't touch it with a 10 foot pole.
<pilne> i just like the fact that truffleruby has some ridiculous cross-platform performance potential really
<chrisseaton> zenspider: you should poke around in our core and see how much you recognise now https://github.com/oracle/truffleruby/tree/master/src/main/ruby/core
<zenspider> Arney: you do understand that C++ isn't ruby. so, "Ruby in ruby" is a lie
cagomez_ has quit [Read error: Connection reset by peer]
Psybur has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
<zenspider> chrisseaton: heh. probably very little of it by now. it's been a long time.
<Arney> zenspider: are you talking about these "include c++method here" things, i think that's fair
<pilne> and there's projects like helix, opal, crystal, that capture the ruby way to some extent to just make programming fun (:
<Arney> pilne: define ruby way please
<zenspider> Arney: I don't think I'm getting across to you... which is fine
<Arney> zenspider: i just don't understand where rubinius iss not "close to 100% ruby"
cagomez has joined #ruby
<baweaver> oh hey, all the fun is happening
<Arney> apart from hardcore optimization like Hash/Array i never came across much c++ implementations
hahuang61 has joined #ruby
<chrisseaton> Arney: if you mean just being literally, if you look at the code base, it's a lot of C++
<Arney> yeah, the VM, but what else
<pilne> this line has always summed it up for me: So in Ruby we see simplicity embodied from the programmer’s view (if not from the view of those maintaining the interpreter). Yet we also see the capacity for compromise." from: https://www.infoq.com/articles/what-is-the-ruby-way
<zenspider> If it really were "ruby in ruby", it'd be 100% ruby.
<baweaver> chrisseaton: Were you around the bay area? I know there's an Oracle office in Dublin/Pleasanton area
<chrisseaton> Arney: well the VM is a pretty big bit of it...
maum has joined #ruby
<zenspider> kinda important... that VM being 0% ruby and all.
<baweaver> zenspider: to be fair you have to bootstrap somewhere
<chrisseaton> baweaver: I interned in Redwood Shores in 2013, been working from home in Cheshire since
<zenspider> baweaver: you can bootstrap IN ruby
<baweaver> Ah, well shoot me and havenwood a message if you find yourself over this way.
<chrisseaton> baweaver: it would be possible to write a Ruby to native compiler (you could write it in Ruby) and write your whole VM in Ruby
<zenspider> we've been doing this bootstrap thing since the 60s
<chrisseaton> We have a whole JVM implemented in Java
<baweaver> Mmm, good point
<baweaver> Compilers aren't my area
<Arney> pilne: i am too stupid to understand that :D but i will read your link
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chrisseaton> Very experienced people like Cliff Click (one of the main Hotspot people) have said they don't think they'll ever write another VM in C++ again - we're past that as an industry
<zenspider> glad for that
<Arney> like.. jvm gets accepted as the standard?
<chrisseaton> I think he meant people writing VMs in higher level languages
<Arney> and those get interpreted by?
<chrisseaton> Well they'd be compiled to native
<Arney> ah, so technology got evolved to the point that we don't need vms anymore?
<Arney> yeah that's a thing i'd like
<chrisseaton> For instance PyPy is a Python interpreter written in Python and compiled to native code (simplifying for the sake of argument)
<pilne> ("the ruby way" is also a book about ruby programming)
<zenspider> Did self ever finish doing a pure self bootstrap?
<zenspider> smalltalk (squeak at least), pascal & family, pypy, there's a lot of examples of this
<zenspider> derp: lisp/scheme
<zenspider> racket is migrating to chez scheme for their backend... that's close
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Quit: Leaving]
Psybur_ has joined #ruby
<chrisseaton> I think a problem is it's a lot of work to build a proper native compiler in your own language, for your own language, and at the end of it at best, it'll be functional because it's not going to do anything amazing, it'll just compile what you want
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Psybur has quit [Ping timeout: 252 seconds]
Vapez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
nadir has quit [Quit: Connection closed for inactivity]
<Arney> EITHER WAY:t thanks for the chat gn
Arney has quit [Quit: leaving]
cagomez has joined #ruby
c0ncealed has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
c0ncealed has joined #ruby
<zenspider> chrisseaton: I'm still periodically poking at viewpoint's COLA concept.
Fusselgesicht has quit [Quit: leaving]
mroutis has joined #ruby