<putolov>
There has been an error while running make. Halting the installation.
<putolov>
Error running '__rvm_make -j4', please read /Users/putolov/.rvm/log/1525848854_ruby-2.5.1/make.log There has been an error while running make. Halting the installation.
<putolov>
This "Error running '__rvm_make -j4'. - makes me crazy.
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klaas_ is now known as klaas
<putolov>
dminuoso: 'ruby-install ruby 2.5.1' -> don't work
devpolish has joined #ruby
<konsolebox>
putolov: did that rvm error come from running ruby-install?
<devpolish>
infor
<devpolish>
sec
<dminuoso>
putolov: Oh its possible you can only install up to 2.5.0 with ruby-install currently maybe.
<dminuoso>
putolov: If you just type `ruby-install` do you see a list of available rubies and versions?
<putolov>
dminuoso: I have tried many versions
<konsolebox>
putolov: maybe you have to completely remove rvm stuff first
<devpolish>
I'm using 2.5.1 right now on production
<putolov>
dminuoso: when I type 'ruby-install' - I got - ruby: No such file or directory -- install (LoadError)
<dminuoso>
putolov: Yeah you need to completely get rid of that rvm that infested your machine
<putolov>
dminuoso: OK, do I need to uninstall rvm ?
suukim has joined #ruby
<putolov>
konsolebox: Yes.
ahegyi has joined #ruby
emilford has joined #ruby
devpolish has quit [Remote host closed the connection]
conta has quit [Ping timeout: 246 seconds]
clemens3_ has joined #ruby
Doow has joined #ruby
conta has joined #ruby
dogweather has quit [Remote host closed the connection]
emilford_ has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dogweather has joined #ruby
jsrn has quit [Ping timeout: 255 seconds]
ryzokuken has quit [Remote host closed the connection]
Burgestrand has joined #ruby
amar has quit [Remote host closed the connection]
jsrn has joined #ruby
conta has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
conta has joined #ruby
andikr has joined #ruby
lunarkitty7 has quit [Quit: WeeChat 1.9.1]
jeffreylevesque has quit [Read error: Connection reset by peer]
lunarkitty7 has joined #ruby
lunarkitty7 has quit [Client Quit]
variable has joined #ruby
<variable>
how does one get gem to print its bindir ?
ta_ has joined #ruby
KeyJoo has quit [Remote host closed the connection]
<putolov>
konsolebox: Thx, I have somehow installed and it works to compile from terminal some code.
putolov has quit []
KeyJoo has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dogweather has quit [Ping timeout: 255 seconds]
dogweather has joined #ruby
KeyJoo has joined #ruby
KeyJoo has quit [Remote host closed the connection]
KeyJoo has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
KeyJoo has joined #ruby
dogweather has quit [Ping timeout: 250 seconds]
xt233 has joined #ruby
guille-moe has joined #ruby
tomphp has joined #ruby
zen__ has joined #ruby
dogweather has joined #ruby
zen__ has quit [Client Quit]
xt233 has quit [Quit: Leaving]
aupadhye has joined #ruby
phaul has quit [Ping timeout: 255 seconds]
marr has joined #ruby
za1b1tsu_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Janky has quit []
nima_m has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
Guest9989 has quit [Ping timeout: 250 seconds]
aupadhye is now known as aupadhye|food
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
inerthia has joined #ruby
ineb has joined #ruby
dogweather has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
phaul has joined #ruby
tomphp has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
tomphp has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
nima_m has joined #ruby
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
ciscam has quit [Ping timeout: 255 seconds]
ciscam has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
tomphp has quit [Client Quit]
weaksauce has quit [Ping timeout: 265 seconds]
dogweather has joined #ruby
<kke>
any trick to find out source location when subclassing? (somethin in self.iherited maybe)
dogweather has quit [Ping timeout: 246 seconds]
phaul has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
shaman42 has joined #ruby
<kke>
well caller.first and split(/(?<=\.rb):/) maybe
<apeiros>
what use-case?
<apeiros>
Method#owner and Method#source_location work with inherited methods too
dogweather has joined #ruby
Guest9989 has joined #ruby
mikecmpbll has joined #ruby
<kke>
the source_location of the known methods is the parent_class.rb
phaul has joined #ruby
<apeiros>
that's not an answer to my question, additionally I don't know what you're trying to tell me by that
<kke>
use case is some sort of "addon system", something like "$DIR/addons/xyz-xyz/addon.rb" that goes like "class FooAddon < Addon" but the superclass needs to know the source location so that it can do something like "def resource_files { Dir.glob(File.join(__dir__, 'resources', '*.yml')) }"
dogweather has quit [Ping timeout: 240 seconds]
<kke>
i couldn't figure out a way to use Method.source_location unless there is a method that has to be defined in the child class
<apeiros>
a class does not have a source location, it's as simple as that
<apeiros>
for the reason that classes can be reopened and thus have multiple files opening them
GodFather has quit [Ping timeout: 255 seconds]
<apeiros>
you may be able to abuse caller in the self.inherited hook
<kke>
yep, that's why i thought it could be determined when the inheriting happens
<apeiros>
but I'm not sure that that's a good idea, even if it should work.
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
dogweather has joined #ruby
conta has quit [Ping timeout: 264 seconds]
schneider1 has joined #ruby
tomphp has quit [Ping timeout: 246 seconds]
Mike11 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
emilford has quit [Ping timeout: 246 seconds]
fyrril has quit [Read error: Connection reset by peer]
hramrach has quit [Quit: WeeChat 1.8]
kapil___ has joined #ruby
schneider1 has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 250 seconds]
Cyrus has quit [Ping timeout: 264 seconds]
Cyrus has joined #ruby
alex`` has quit [Ping timeout: 256 seconds]
dogweather has joined #ruby
schneider1 has joined #ruby
<apeiros>
kke: class name you can either use convention (foo_bar.rb -> FooBar constant), or combine loading + self.inherit, i.e. you store "I'm currently loading foo_bar.rb" and use that info in the inherited hook.
phaul has quit [Ping timeout: 250 seconds]
Terminus has joined #ruby
schneider1 has quit [Ping timeout: 250 seconds]
<Terminus>
hello. i'm using OptionParser. how do i raise MissingArgument if no options are given and how do i raise AmbiguousOption if two mutually exclusive options are given at the same time?
<Terminus>
or do i just have to do my error handling after option parsing?
houhoulis has quit [Remote host closed the connection]
houhoulis has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
schneider1 has joined #ruby
houhoulis has quit [Ping timeout: 260 seconds]
dogweather has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
schneider1 has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
schneider1 has joined #ruby
ellcs has joined #ruby
nima_m has joined #ruby
dogweather has joined #ruby
schneider1 has quit [Ping timeout: 260 seconds]
ryzokuken has joined #ruby
schneider1 has joined #ruby
marr has joined #ruby
ramfjord has joined #ruby
Cavallari has quit [Read error: Connection reset by peer]
dionysus69 has quit [Quit: dionysus69]
ldnunes has quit [Ping timeout: 246 seconds]
Cavallari has joined #ruby
donofrio has joined #ruby
schneider1 has quit [Ping timeout: 250 seconds]
fullstack_ has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
aceruser has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
schneider1 has joined #ruby
fullstack_ has joined #ruby
macduck has joined #ruby
amar has joined #ruby
<hays>
TIL exceptions don't really work well across thread boundaries
n0m4d1c has joined #ruby
<hays>
i had a catch outside a bunch of threads that joined back together, idea being that it would accumulate error messages and then pass it up the chain. of course the solution was to just have a bit of shared memory and accumulate to that INSIDE the thread. doh
vondruch has quit [Quit: vondruch]
za1b1tsu_ has quit [Ping timeout: 256 seconds]
chmurifree is now known as chmuriu
chmuriu is now known as chmuri
vondruch has joined #ruby
za1b1tsu_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
dogweather has quit [Ping timeout: 256 seconds]
<dminuoso>
hays: Checkout ::abort_on_exception
schneider1 has quit [Ping timeout: 264 seconds]
<dminuoso>
hays: also why use shared memory? use stm! :D
safetypin has quit [Quit: ZZZzzz…]
n0m4d1c_ has joined #ruby
_whitelogger has joined #ruby
dogweather has joined #ruby
n0m4d1c has quit [Ping timeout: 250 seconds]
aceruser has quit [Quit: aceruser]
Asher has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
sleetdrop has joined #ruby
jamesaxl has joined #ruby
andikr has quit [Remote host closed the connection]
<apeiros>
abort_on_exception really should default to true and I'm not sure whether it should even be globally configurable
<apeiros>
i.e. I'd rather have `Thread.new die_silently: true do …`
jamesaxl has quit [Read error: Connection reset by peer]
<apeiros>
also I'd still love to have a way to start a stopped thread. creating one, stopping it and waking it up *after* it was stopped is unreasonably complex :-/
jamesaxl has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
<dminuoso>
apeiros: Just like TCO should be enabled by default.
sleetdrop has quit [Remote host closed the connection]
<dminuoso>
There's very little value in having it disabled.
<apeiros>
yeah, why isn't it? afaik it has been added since 1.9?
<dminuoso>
apeiros: because it... "messes up" stack traces.
<apeiros>
all I remember was "some optical issues with backtraces"
<dminuoso>
which I think is utterly silly
<apeiros>
yepp
dogweather has quit [Ping timeout: 246 seconds]
<dminuoso>
I've come so accustomed to recursive algorithms that I regularly blow up the ruby stack...
netherwolfe has quit [Read error: Connection reset by peer]
<mozzarella>
I've got some reading to do it seems
<mozzarella>
how old is this graal thing, have I been living under a rock?
RedNifre has joined #ruby
venmx has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
<dminuoso>
mozzarella: If you check out chris' site, he's got tons of really good papers and talks about most of it. Graal is at least 6 years old, but I dont know for how long Oracle has been doing research/work on that.
<dminuoso>
havenwood: Perhaps a missed optimization?
_whitelogger has joined #ruby
<dminuoso>
I mean it's reasonable that different code might lead to different optimized forms, but who knows.
<mozzarella>
jee
<havenwood>
dminuoso: Ah, yeah - I'm really not sure why the first is so crazy fast.
<dminuoso>
havenwood: Well shouldn't that constant fold completely?
<havenwood>
dminuoso: mmmm
<dminuoso>
havenwood: I mean there's no IO happening. So you constantly recompute the same thing, so at some point it could constant fold easter_1 _completely_
<dminuoso>
with some deopt trap should you ever pass something other than 2018
banisterfiend has joined #ruby
<havenwood>
easter_1 is insanely fast on TruffleRuby
<dminuoso>
havenwood: Im just genuinely surprised it doesn't do that for easter_2, which at first glance seems like a missed optimization
<havenwood>
I do wonder what the issue is on easter_2, I really don't have a theory
cschneid_ has quit [Remote host closed the connection]
synthroi_ has joined #ruby
emilford has quit [Ping timeout: 264 seconds]
dogweather has joined #ruby
<dminuoso>
havenwood: That profiling doesnt say much though.
synthroid has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
19:36 havenwood | easter_1 is insanely fast on TruffleRuby
<havenwood>
dminuoso: I wonder how it compares to a C implementation?
<dminuoso>
havenwood: Like I said. If you constantly call the same method with the same year 2018, eventually it will constant fold into some `def easter_1 year; if year == 2018; blah; else; deopt; end; end
amar has joined #ruby
dr3w_ has joined #ruby
<dminuoso>
(Pseudocode of course)
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroi_ has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
<havenwood>
dminuoso: Chris suggested it was divmod, and to open an Issue. Without divmod it goes to just 2.4x slower.
<dminuoso>
havenwood: Do you know how graal works roughly?
ellcs has joined #ruby
<havenwood>
dminuoso: yeah, sea of nodes!
<dminuoso>
Heh
amar has quit [Ping timeout: 256 seconds]
<dminuoso>
havenwood: I really had to smile about how Chris bought into enterprisey OOP
<dminuoso>
havenwood: In this one talk he say that Java was a great language for Graal because nodes can be thought of objects and thus can be modelled in OOP
phaul has quit [Ping timeout: 250 seconds]
<dminuoso>
Such a red herring!
banisterfiend has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 260 seconds]
nitric has joined #ruby
dogweather has joined #ruby
Asher1 has joined #ruby
Asher has quit [Disconnected by services]
Asher1 is now known as Asher
RedNifre has quit [Ping timeout: 260 seconds]
sameerynho has joined #ruby
quobo has quit []
quobo has joined #ruby
dionysus69 has joined #ruby
ramfjord has joined #ruby
amar has joined #ruby
ramfjord_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bmurt has joined #ruby
RedNifre has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 250 seconds]
banisterfiend has joined #ruby
raynold has joined #ruby
Haradani has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suukim has quit [Quit: Konversation terminated!]
bmurt has joined #ruby
KeyJoo has quit [Remote host closed the connection]
zautomata has joined #ruby
gnufied has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
kapil___ has quit [Quit: Connection closed for inactivity]
zautomata has quit [Ping timeout: 240 seconds]
dipnlik has quit [Quit: Connection closed for inactivity]
emilford has quit [Ping timeout: 246 seconds]
dogweather has quit [Ping timeout: 268 seconds]
dogweather has joined #ruby
kurko_ has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
weaksauce has joined #ruby
zautomata has joined #ruby
ellcs has quit [Ping timeout: 250 seconds]
nadir has quit [Quit: Connection closed for inactivity]
dogweather has quit [Ping timeout: 264 seconds]
RedNifre has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dogweather has joined #ruby
zautomata has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ruby
RedNifre has joined #ruby
tipyn has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
za1b1tsu_ has quit [Ping timeout: 255 seconds]
tipyn has quit [Remote host closed the connection]
zautomata has joined #ruby
dogweather has joined #ruby
Haradani has quit []
sagax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
(just click on the linenumber and the url changes)
<aruns>
Ah cool, thanks apeiros
<apeiros>
and yes, that's actually "this variable is unused"
<aruns>
Ah I see.
<apeiros>
it is used indirectly via `super` (super without parens will pass on all arguments)
<havenwood>
aruns: You could use just two underscores. The name following the underscore just gives a hint of what it is that you're not using.
<apeiros>
I wouldn't use underscore here since they are used. but I guess this is to appease rubocop or a similar tool which won't pick up on the `super` subtlety.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
(it'll complain about unused variables, and those tools shut up if you use underscores as first char)
<havenwood>
aruns: If it's always called with all three params, you might consider just explicitly doing: super(name, params, tokens)