« Back to channel list

#ruby - 09 May 2018

« Back 1 day Forward 1 day »
[00:00:33] cagomez: has joined #ruby
[00:04:44] safetypin: has joined #ruby
[00:04:49] nadir: has joined #ruby
[00:05:49] ged: has joined #ruby
[00:09:22] GodFather: has joined #ruby
[00:12:07] tomphp: has joined #ruby
[00:12:41] rdavila: has joined #ruby
[00:19:34] mahlon: has joined #ruby
[00:20:02] WebDawg: has joined #ruby
[00:20:32] p0p0pr37_: has joined #ruby
[00:20:32] p0p0pr37_: has joined #ruby
[00:20:51] redlegion: has joined #ruby
[00:21:11] _aeris_: has joined #ruby
[00:21:12] Caius: has joined #ruby
[00:21:12] Caius: has joined #ruby
[00:21:30] jnollette: has joined #ruby
[00:22:24] yadnesh: has joined #ruby
[00:22:39] n0m4d1c: has joined #ruby
[00:23:02] _aeris_: has joined #ruby
[00:24:40] pharma_joe: has joined #ruby
[00:30:10] jenrzzz: has joined #ruby
[00:31:02] c0ncealed1: has joined #ruby
[00:39:05] safetypin: has joined #ruby
[00:42:32] mahlon: has joined #ruby
[01:07:00] alfiemax: has joined #ruby
[01:07:48] cagomez: has joined #ruby
[01:08:16] ramfjord: has joined #ruby
[01:17:27] roamingdog: has joined #ruby
[01:25:32] duderonomy: has joined #ruby
[01:26:12] alfiemax: has joined #ruby
[01:29:45] pharma_joe: has joined #ruby
[01:29:52] knight33_: has joined #ruby
[01:35:56] Dimik: has joined #ruby
[01:43:12] dinfuehr_: has joined #ruby
[01:49:10] GodFather: has joined #ruby
[01:51:38] mostlybadfly: has joined #ruby
[01:51:38] chris349: has joined #ruby
[01:55:27] gizmore|2: has joined #ruby
[02:02:43] Sonar: has joined #ruby
[02:02:48] bmurt: has joined #ruby
[02:03:08] chouhoul_: has joined #ruby
[02:03:39] alfiemax_: has joined #ruby
[02:04:02] \void: has joined #ruby
[02:04:31] klaas: has joined #ruby
[02:07:40] dipnlik: has joined #ruby
[02:15:41] MzrE: has joined #ruby
[02:19:39] n0m4d1c: has joined #ruby
[02:31:41] yxhuvud: has joined #ruby
[02:42:24] j416: has joined #ruby
[03:00:09] cadillac_: has joined #ruby
[03:09:53] orbyt_: has joined #ruby
[03:11:28] veex: has joined #ruby
[03:20:30] c0ncealed1: has joined #ruby
[03:25:41] Yzguy: has joined #ruby
[03:39:01] cschneid_: has joined #ruby
[03:49:15] gix-: has joined #ruby
[03:51:00] dogweather: has joined #ruby
[03:57:03] safetypin: has joined #ruby
[04:03:57] cadillac_: has joined #ruby
[04:05:24] veex: has joined #ruby
[04:07:15] bmurt: has joined #ruby
[04:08:34] rippa: has joined #ruby
[04:16:02] p0p0pr37_: has joined #ruby
[04:20:46] alfiemax: has joined #ruby
[04:30:49] scott4000: has joined #ruby
[04:38:51] Ryzokuken: has joined #ruby
[04:41:51] Yzguy: has joined #ruby
[04:48:11] alfiemax: has joined #ruby
[05:03:39] arescorpio: has joined #ruby
[05:08:17] anisha_: has joined #ruby
[05:12:07] Yzguy: has joined #ruby
[05:12:09] schleppel: has joined #ruby
[05:18:45] conta: has joined #ruby
[05:20:32] arooni: has joined #ruby
[05:52:39] aufi: has joined #ruby
[05:53:00] konsolebox: has joined #ruby
[05:53:01] dionysus69: has joined #ruby
[05:53:12] halbbalda: has joined #ruby
[05:56:32] Sembei: has joined #ruby
[05:59:33] reber: has joined #ruby
[06:00:43] alfiemax: has joined #ruby
[06:03:46] apeiros: has joined #ruby
[06:05:00] tvw: has joined #ruby
[06:11:03] Lemn: has joined #ruby
[06:13:37] p0p0pr37_: has joined #ruby
[06:13:38] p0p0pr37_: has joined #ruby
[06:14:40] apeiros__: has joined #ruby
[06:14:52] alex``: has joined #ruby
[06:15:12] klaas_: has joined #ruby
[06:15:15] amar: has joined #ruby
[06:15:49] eckhardt: has joined #ruby
[06:17:17] sauvin: has joined #ruby
[06:18:34] biberu: has joined #ruby
[06:20:36] Defenestrate: has joined #ruby
[06:21:47] conta: has joined #ruby
[06:31:27] Sonar: has joined #ruby
[06:35:26] phaul: has joined #ruby
[06:35:34] KeyJoo: has joined #ruby
[06:36:36] KeyJoo: has joined #ruby
[06:39:16] putolov: has joined #ruby
[06:39:43] ramfjord: has joined #ruby
[06:39:43] putolov: Hi there I have problem to install Ruby on MacOS Sierra High over Terminal.
[06:43:49] jsrn: has joined #ruby
[06:44:39] apeiros__: putolov: you'll usually get better results by asking a concrete question
[06:47:42] amelliaa: has joined #ruby
[06:52:30] putolov: Thx, apeiros__, I use this tutorial http://railsapps.github.io/installrubyonrails-mac.html
[06:53:14] putolov: After I tipe rvm install ruby-2.5.1
[06:53:17] dminuoso: Why do so many shitty tutorials recommend rvm.
[06:53:41] putolov: I don't know, I am beginner on Ruby
[06:54:14] dminuoso: putolov: Do you have brew?
[06:54:16] lupine: it's all-in-one which helps some people
[06:54:28] putolov: Yes, I have a brew
[06:54:31] lupine: I've never liked it. slooooowly migrating to asdf
[06:54:31] dminuoso: lupine: It's an all-in-one big honking magic package that breaks and newbies are completely lost.
[06:54:48] lupine: but *until it breaks*, they're on the rails, and that's all that matters, right?
[06:54:49] putolov: Yes, I am completely lost
[06:54:50] dminuoso: putolov: Ditch your entire rvm stack. Then type `brew install ruby-install; ruby-install ruby-2.5.1`
[06:55:36] dminuoso: putolov: ruby-install can also simply be installed with the instructions from: https://github.com/postmodern/ruby-install
[06:55:52] dminuoso: putolov: It's a minimal script that does nothing but prepare a raw ruby for you. No magic involved.
[06:56:14] meinside: has joined #ruby
[06:56:25] dminuoso: putolov: Or actually its `ruby-install ruby 2.5.1` sorry =)
[06:58:54] putolov: I will try it. Please dminuoso please how to answer to particular nick on IRC I was out long time ?
[06:59:14] dminuoso: putolov: Most clients support tab completion just like bash does.
[06:59:31] putolov: dminuoso: OK, it works. Thx.
[07:00:06] putolov: Error running '__rvm_make -j4',
[07:00:06] putolov: please read /Users/putolov/.rvm/log/1525848854_ruby-2.5.1/make.log
[07:00:06] putolov: There has been an error while running make. Halting the installation.
[07:00:16] 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.
[07:00:56] putolov: This "Error running '__rvm_make -j4'. - makes me crazy.
[07:02:48] putolov: dminuoso: 'ruby-install ruby 2.5.1' -> don't work
[07:03:28] devpolish: has joined #ruby
[07:03:37] konsolebox: putolov: did that rvm error come from running ruby-install?
[07:04:18] dminuoso: putolov: Oh its possible you can only install up to 2.5.0 with ruby-install currently maybe.
[07:04:33] dminuoso: putolov: If you just type `ruby-install` do you see a list of available rubies and versions?
[07:04:37] putolov: dminuoso: I have tried many versions
[07:05:02] konsolebox: putolov: maybe you have to completely remove rvm stuff first
[07:05:38] devpolish: I'm using 2.5.1 right now on production
[07:05:56] putolov: dminuoso: when I type 'ruby-install' - I got - ruby: No such file or directory -- install (LoadError)
[07:06:15] dminuoso: putolov: Yeah you need to completely get rid of that rvm that infested your machine
[07:06:39] putolov: dminuoso: OK, do I need to uninstall rvm ?
[07:06:58] suukim: has joined #ruby
[07:07:22] putolov: konsolebox: Yes.
[07:07:50] ahegyi: has joined #ruby
[07:08:29] emilford: has joined #ruby
[07:11:32] clemens3_: has joined #ruby
[07:12:39] Doow: has joined #ruby
[07:12:45] conta: has joined #ruby
[07:13:58] emilford_: has joined #ruby
[07:16:03] jenrzzz: has joined #ruby
[07:16:03] jenrzzz: has joined #ruby
[07:17:44] dogweather: has joined #ruby
[07:19:58] burgestrand: has joined #ruby
[07:21:24] jsrn: has joined #ruby
[07:21:49] conta: has joined #ruby
[07:21:57] andikr: has joined #ruby
[07:23:38] lunarkitty7: has joined #ruby
[07:24:50] variable: has joined #ruby
[07:25:01] variable: how does one get gem to print its bindir ?
[07:25:33] tAn: has joined #ruby
[07:26:56] KeyJoo: has joined #ruby
[07:26:58] lunarkitty7: has joined #ruby
[07:28:31] suukim: has joined #ruby
[07:28:32] emilford: has joined #ruby
[07:32:26] konsolebox: PATH=$(ruby -e 'puts Gem.bindir'):$PATH
[07:34:19] dogweather: has joined #ruby
[07:39:12] cschneid_: has joined #ruby
[07:41:18] yohji: has joined #ruby
[07:43:51] dogweather: has joined #ruby
[07:45:52] putolov: konsolebox: Thx, I have somehow installed and it works to compile from terminal some code.
[07:49:21] jenrzzz: has joined #ruby
[07:49:21] jenrzzz: has joined #ruby
[07:52:32] dogweather: has joined #ruby
[07:52:42] KeyJoo: has joined #ruby
[07:56:59] KeyJoo: has joined #ruby
[07:57:52] KeyJoo: has joined #ruby
[08:02:38] xt233: has joined #ruby
[08:03:38] guille-moe: has joined #ruby
[08:04:29] tomphp: has joined #ruby
[08:04:49] zenom: has joined #ruby
[08:05:00] dogweather: has joined #ruby
[08:13:02] aupadhye: has joined #ruby
[08:15:00] marr: has joined #ruby
[08:16:36] za1b1tsu_: has joined #ruby
[08:25:21] tomphp: has joined #ruby
[08:30:11] amar: has joined #ruby
[08:30:46] amar: has joined #ruby
[08:32:16] inerthia: has joined #ruby
[08:35:33] ineb: has joined #ruby
[08:39:52] ramfjord: has joined #ruby
[08:41:05] dogweather: has joined #ruby
[08:43:31] phaul: has joined #ruby
[08:43:39] tomphp: has joined #ruby
[08:50:02] nima_m: has joined #ruby
[08:52:51] ur5us: has joined #ruby
[08:53:31] ur5us: has joined #ruby
[08:55:44] ciscam: has joined #ruby
[08:55:49] tomphp: has joined #ruby
[08:58:53] tomphp: has joined #ruby
[09:02:44] dogweather: has joined #ruby
[09:03:18] kke: any trick to find out source location when subclassing? (somethin in self.iherited maybe)
[09:13:21] shaman42: has joined #ruby
[09:13:21] kke: well caller.first and split(/(?<=\.rb):/) maybe
[09:15:26] apeiros: what use-case?
[09:15:48] apeiros: Method#owner and Method#source_location work with inherited methods too
[09:16:06] dogweather: has joined #ruby
[09:16:35] Guest9989: has joined #ruby
[09:16:38] mikecmpbll: has joined #ruby
[09:16:58] kke: the source_location of the known methods is the parent_class.rb
[09:18:02] phaul: has joined #ruby
[09:18:45] apeiros: that's not an answer to my question, additionally I don't know what you're trying to tell me by that
[09:19:12] 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')) }"
[09:20:33] 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
[09:20:51] apeiros: a class does not have a source location, it's as simple as that
[09:21:07] apeiros: for the reason that classes can be reopened and thus have multiple files opening them
[09:21:41] apeiros: you may be able to abuse caller in the self.inherited hook
[09:21:48] kke: yep, that's why i thought it could be determined when the inheriting happens
[09:21:55] apeiros: but I'm not sure that that's a good idea, even if it should work.
[09:22:21] kke: yep, seems dirty.
[09:24:26] kke: better ideas?
[09:24:36] dogweather: has joined #ruby
[09:24:49] apeiros: basically `def self.inherited(subclass); defined_in = caller_locations(0,1).first.absolute_path; …`
[09:24:58] apeiros: better ideas would be to use the loading mechanism
[09:25:12] apeiros: at some point you have to tell your plugin system to "load plugins in XY"
[09:25:21] apeiros: reuse that information
[09:25:26] kke: at that point it could inject the location
[09:25:39] apeiros: ACTION afk for lunch
[09:26:07] jsrn: has joined #ruby
[09:28:33] kke: but then it would also have to know the class name
[09:30:55] schneider1: has joined #ruby
[09:31:36] jsrn: has joined #ruby
[09:33:29] jottr: has joined #ruby
[09:44:52] Tempesta: has joined #ruby
[09:44:58] jamesaxl: has joined #ruby
[09:50:30] tomphp: has joined #ruby
[09:51:16] ciscam: has joined #ruby
[09:54:51] mostlybadfly: has joined #ruby
[09:57:28] tomphp: has joined #ruby
[09:57:37] dogweather: has joined #ruby
[09:59:41] schneider1: has joined #ruby
[10:02:58] Mike11: has joined #ruby
[10:05:54] kapil___: has joined #ruby
[10:07:27] Cyrus: has joined #ruby
[10:08:18] dogweather: has joined #ruby
[10:09:10] schneider1: has joined #ruby
[10:09:36] 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.
[10:10:03] ruby[bot]: -bb $a:Bish$#ruby-banned Bish!*@*$#ruby-banned
[10:12:18] Terminus: has joined #ruby
[10:14:09] 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?
[10:15:32] Terminus: or do i just have to do my error handling after option parsing?
[10:15:44] GodFather: has joined #ruby
[10:16:18] ur5us: has joined #ruby
[10:17:27] tvw: has joined #ruby
[10:17:44] Guest27: has joined #ruby
[10:18:13] conta: has joined #ruby
[10:18:28] twe4ked: has joined #ruby
[10:18:33] schneider1: has joined #ruby
[10:23:07] InfinityFye: has joined #ruby
[10:23:09] hfp_work: has joined #ruby
[10:23:24] dogweather: has joined #ruby
[10:23:52] tomphp: has joined #ruby
[10:24:30] InfinityFye: has left #ruby: ()
[10:24:48] jinie: has joined #ruby
[10:24:50] GodFather_: has joined #ruby
[10:27:50] schneider1: has joined #ruby
[10:29:50] Terminus: actually, that was wrong. i'd rather display help if no options are given.
[10:30:22] Guest27: has joined #ruby
[10:30:40] AJA4350: has joined #ruby
[10:36:19] dogweather: has joined #ruby
[10:37:10] schneider1: has joined #ruby
[10:37:47] GodFather: has joined #ruby
[10:40:12] Megamosaren: has joined #ruby
[10:42:35] saTchymoto: has joined #ruby
[10:44:09] emilford: has joined #ruby
[10:45:15] duderonomy: has joined #ruby
[10:46:27] schneider1: has joined #ruby
[10:48:43] Terminus: got everything sorted out. nevermind my question. just took some thinking.
[10:49:20] jsrn: has joined #ruby
[10:53:47] dogweather: has joined #ruby
[10:54:08] Sonar1: has joined #ruby
[10:56:11] klaas: has joined #ruby
[10:56:14] burgestrand: has joined #ruby
[10:56:22] kurko_: has joined #ruby
[10:59:26] Burgestr_: has joined #ruby
[11:04:34] conta: has joined #ruby
[11:05:30] schneider1: has joined #ruby
[11:07:36] houhoulis: has joined #ruby
[11:08:26] Sylario: has joined #ruby
[11:14:24] schneider1: has joined #ruby
[11:14:51] Guest27: has joined #ruby
[11:17:55] RougeR: has joined #ruby
[11:21:09] Cavallari: has joined #ruby
[11:21:21] apparition: has joined #ruby
[11:23:47] schneider1: has joined #ruby
[11:31:33] GodFather: has joined #ruby
[11:31:45] Megamosaren: has joined #ruby
[11:33:04] schneider1: has joined #ruby
[11:33:10] phaul: has joined #ruby
[11:33:12] roamingdog: has joined #ruby
[11:34:02] roamingdog: has joined #ruby
[11:38:36] VladGh: has joined #ruby
[11:38:46] dogweather: has joined #ruby
[11:38:50] ldnunes: has joined #ruby
[11:42:24] schneider1: has joined #ruby
[11:42:39] Cavallari1: has joined #ruby
[11:43:22] jsrn: has joined #ruby
[11:48:19] Cavallari: has joined #ruby
[11:51:39] schneider1: has joined #ruby
[11:56:33] vondruch: has joined #ruby
[11:58:31] Terminus: has left #ruby: ()
[11:59:21] dogweather: has joined #ruby
[12:01:05] schneider1: has joined #ruby
[12:07:24] Silthias: has joined #ruby
[12:07:34] Silthias: has left #ruby: ()
[12:08:18] synthroid: has joined #ruby
[12:10:03] BTRE: has joined #ruby
[12:10:18] schneider1: has joined #ruby
[12:11:19] duderonomy: has joined #ruby
[12:13:49] dionysus69: has joined #ruby
[12:13:51] jsrn: has joined #ruby
[12:16:10] houhoulis: has joined #ruby
[12:19:36] schneider1: has joined #ruby
[12:20:56] dogweather: has joined #ruby
[12:21:48] tomphp: has joined #ruby
[12:28:36] jamesaxl: has joined #ruby
[12:28:59] schneider1: has joined #ruby
[12:29:06] ellcs: has joined #ruby
[12:30:34] nima_m: has joined #ruby
[12:31:50] dogweather: has joined #ruby
[12:37:07] Ryzokuken: has joined #ruby
[12:38:19] schneider1: has joined #ruby
[12:39:06] marr: has joined #ruby
[12:40:11] ramfjord: has joined #ruby
[12:42:28] Cavallari: has joined #ruby
[12:42:57] donofrio: has joined #ruby
[12:44:00] dionysus69: has joined #ruby
[12:44:39] aceruser: has joined #ruby
[12:45:06] schneider1: has joined #ruby
[12:45:21] fullstack_: has joined #ruby
[12:47:06] macduck: has joined #ruby
[12:50:06] amar: has joined #ruby
[12:50:38] hays: TIL exceptions don't really work well across thread boundaries
[12:51:36] n0m4d1c: has joined #ruby
[12:52:26] 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
[12:53:49] vondruch: has joined #ruby
[12:54:27] za1b1tsu_: has joined #ruby
[12:56:25] dminuoso: hays: Checkout ::abort_on_exception
[12:57:24] dminuoso: hays: also why use shared memory? use stm! :D
[12:58:48] n0m4d1c_: has joined #ruby
[12:59:15] _whitelogger: has joined #ruby
[12:59:44] dogweather: has joined #ruby
[13:05:12] sleetdrop: has joined #ruby
[13:05:15] jamesaxl: has joined #ruby
[13:06:07] apeiros: abort_on_exception really should default to true and I'm not sure whether it should even be globally configurable
[13:06:33] apeiros: i.e. I'd rather have `Thread.new die_silently: true do …`
[13:07:16] 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 :-/
[13:07:39] jamesaxl: has joined #ruby
[13:10:30] tomphp: has joined #ruby
[13:11:32] dminuoso: apeiros: Just like TCO should be enabled by default.
[13:11:38] dminuoso: There's very little value in having it disabled.
[13:11:50] apeiros: yeah, why isn't it? afaik it has been added since 1.9?
[13:12:00] dminuoso: apeiros: because it... "messes up" stack traces.
[13:12:04] apeiros: all I remember was "some optical issues with backtraces"
[13:12:07] dminuoso: which I think is utterly silly
[13:13:03] dminuoso: I've come so accustomed to recursive algorithms that I regularly blow up the ruby stack...
[13:13:16] apeiros: yeah, ruby is terrible with recursion
[13:17:28] tomphp: has joined #ruby
[13:21:03] dogweather: has joined #ruby
[13:21:07] tomphp: has joined #ruby
[13:23:28] jsrn: has joined #ruby
[13:30:55] ciscam: has joined #ruby
[13:30:57] chmurifree: has joined #ruby
[13:31:24] nadir: has joined #ruby
[13:31:27] tomphp: has joined #ruby
[13:32:58] dionysus70: has joined #ruby
[13:32:59] jsrn: has joined #ruby
[13:34:20] nima_m: has joined #ruby
[13:35:03] k0mpa: has joined #ruby
[13:37:05] Megamosaren: has joined #ruby
[13:40:32] arooni: has joined #ruby
[13:43:18] tomphp: has joined #ruby
[13:44:25] duderonomy: has joined #ruby
[13:45:19] dogweather: has joined #ruby
[13:45:38] tomphp: has joined #ruby
[13:46:21] samosaphile: has joined #ruby
[13:46:25] aruns: has joined #ruby
[13:46:43] aruns: Hi, I am using Ruby 2.3.3 on Windows, I am trying to install Jekyll but it lists DevKit as a requirement.
[13:47:05] aruns: What is the best course of action to take if I need to install a version of DevKit that is compatible with 2.3.3?
[13:47:47] aruns: From what I have read on the rubyinstaller site, DevKit does not support 2.4* and greater
[13:48:09] aruns: But I am not sure if DevKit supports any of the minor releases of Ruby 2.3.*
[13:48:32] n0m4d1c: has joined #ruby
[13:48:55] psychicist__: has joined #ruby
[13:50:23] roamingdog: has joined #ruby
[13:52:11] duderonomy: has joined #ruby
[13:53:30] oleo: has joined #ruby
[13:54:35] tomphp: has joined #ruby
[13:59:10] orbyt_: has joined #ruby
[14:00:10] dogweather: has joined #ruby
[14:00:10] ahegyi: has joined #ruby
[14:00:14] Asher: has joined #ruby
[14:00:40] chouhoulis: has joined #ruby
[14:00:57] konsolebox: aruns: try asking the devkit devs if you're unsure about what the documentation says
[14:03:40] emilford: has joined #ruby
[14:05:13] tdy: has joined #ruby
[14:09:15] Rapture: has joined #ruby
[14:10:35] eiko: has joined #ruby
[14:11:00] theRoUS: has joined #ruby
[14:12:35] dogweather: has joined #ruby
[14:12:51] synthroid: has joined #ruby
[14:13:25] iMadper: has joined #ruby
[14:16:02] gnufied: has joined #ruby
[14:17:05] eiko_: has joined #ruby
[14:18:29] theRoUS: has joined #ruby
[14:18:38] phaul: has joined #ruby
[14:18:54] tomphp: has joined #ruby
[14:25:20] dogweather: has joined #ruby
[14:27:42] ldnunes: has joined #ruby
[14:33:03] jamiejackson81: has joined #ruby
[14:34:59] jamiejackson: has joined #ruby
[14:35:14] alfiemax: has joined #ruby
[14:35:39] tomphp: has joined #ruby
[14:37:27] orbyt_: has joined #ruby
[14:42:31] dogweather: has joined #ruby
[14:44:05] tomphp: has joined #ruby
[14:48:47] cschneid_: has joined #ruby
[14:49:19] schneider1: has joined #ruby
[14:52:42] bmurt: has joined #ruby
[14:56:51] dogweather: has joined #ruby
[14:56:55] veex: has joined #ruby
[15:00:31] chouhoulis: has joined #ruby
[15:07:36] TomyLobo: has joined #ruby
[15:11:29] tomphp: has joined #ruby
[15:14:00] dogweather: has joined #ruby
[15:15:45] tomphp: has joined #ruby
[15:23:25] venmx: has joined #ruby
[15:26:42] vondruch: has joined #ruby
[15:27:23] tomphp: has joined #ruby
[15:27:29] apeiros: has joined #ruby
[15:28:24] jcarl43: has joined #ruby
[15:30:08] jcalla: has joined #ruby
[15:33:23] cadillac_: has joined #ruby
[15:36:08] dogweather: has joined #ruby
[15:41:40] cagomez: has joined #ruby
[15:42:02] dcunit3d: has joined #ruby
[15:42:37] cagomez: has joined #ruby
[15:43:34] emilford: has joined #ruby
[15:46:29] leah2: oO didnt date.rb compute easter?
[15:47:02] cagomez: has joined #ruby
[15:48:16] havenwood: leah2: The Holiday, Easter?
[15:48:26] leah2: apparently not
[15:49:20] dogweather: has joined #ruby
[15:51:43] havenwood: leah2: We need a Moon class first. ;-P
[15:52:11] havenwood: The first Sunday following the Paschal full moon.
[15:52:22] leah2: i googled the computus function
[15:53:18] RougeR: has joined #ruby
[15:53:21] havenwood: require 'moon'
[15:57:02] synthroid: has joined #ruby
[16:02:30] [Butch]: has joined #ruby
[16:03:58] dogweather: has joined #ruby
[16:06:40] bga57: has joined #ruby
[16:09:08] eckhardt: has joined #ruby
[16:12:00] banisterfiend: has joined #ruby
[16:12:41] schneider1: has joined #ruby
[16:16:33] dipnlik: has joined #ruby
[16:23:15] marr: has joined #ruby
[16:23:25] plexigras: has joined #ruby
[16:24:12] dogweather: has joined #ruby
[16:24:40] amar: has joined #ruby
[16:25:15] eckhardt_: has joined #ruby
[16:29:20] n0m4d1c: has joined #ruby
[16:31:46] chris349: has joined #ruby
[16:33:00] jrm: has joined #ruby
[16:35:54] Asher1: has joined #ruby
[16:42:30] suukim: has joined #ruby
[16:46:29] regedit: has joined #ruby
[16:47:19] orbyt_: has joined #ruby
[16:49:28] netherwolfe: has joined #ruby
[16:56:22] agent_white: has joined #ruby
[17:00:17] dr3wo: has joined #ruby
[17:02:13] dogweather: has joined #ruby
[17:03:28] quobo: has joined #ruby
[17:03:38] pilne: has joined #ruby
[17:04:10] shoogz: has joined #ruby
[17:04:48] phaul: has joined #ruby
[17:12:05] dogweather: has joined #ruby
[17:14:08] mondongo: has joined #ruby
[17:14:23] \void: has joined #ruby
[17:15:19] havenwood: leah2: https://gist.github.com/havenwood/23bb57241f6ca6c75bc24d4e1c6b301c
[17:17:16] havenwood: Wow, easter 1 realllly wins in TruffleRuby...
[17:17:27] havenwood: easter_1 2.867B (± 8.8%)
[17:17:34] havenwood: That's a "B"...
[17:18:21] havenwood: 2.8 billions Easters per second is impressive! That's some real folding...
[17:19:33] mozzarella: the kind of Easter I'm thinking of?
[17:19:34] clemens3: has joined #ruby
[17:20:39] havenwood: if you're thinking the moon-based, religious Easter in the Roman tradition
[17:20:52] Guest9989: has joined #ruby
[17:21:14] havenwood: mozzarella: leah2 was asking earlier if Date in stdlib knew about Easter
[17:21:40] dminuoso: havenwood: Of course its slower.
[17:21:42] dminuoso: havenwood: It has one line more code.
[17:21:59] havenwood: 188x slower for one line! (TruffleRuby really cares about that line.)
[17:22:09] havenwood: dminuoso: Why bench when you have wc?
[17:23:21] havenwood: I stand by the Moon class as part of the appropriate solution. ;-P
[17:23:41] havenwood: Or maybe an Ishtar class.
[17:25:15] havenwood: dminuoso: you're right - i'll make the line count the same
[17:25:17] dminuoso: havenwood: Wheres the comparison with MRI?
[17:25:31] dogweather: has joined #ruby
[17:25:47] havenwood: dminuoso: I'll update line count and post TruffleRuby numbers. ;-P
[17:26:05] mozzarella: what is truffleruby?
[17:26:12] dminuoso: mozzarella: Ever heard of GraalVM?
[17:26:23] howdoi: has joined #ruby
[17:26:28] dminuoso: mozzarella: https://github.com/oracle/graal
[17:26:41] netherwolfe: has joined #ruby
[17:26:59] dminuoso: mozzarella: For graal there is a framework called truffle: https://github.com/oracle/graal/tree/master/truffle
[17:27:48] dminuoso: mozzarella: For further information refer to http://chrisseaton.com/truffleruby/
[17:29:31] mozzarella: I've got some reading to do it seems
[17:29:48] mozzarella: how old is this graal thing, have I been living under a rock?
[17:30:21] RedNifre: has joined #ruby
[17:31:01] mikecmpbll: has joined #ruby
[17:32:22] 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.
[17:33:14] havenwood: dminuoso: https://gist.github.com/havenwood/23bb57241f6ca6c75bc24d4e1c6b301c
[17:33:24] havenwood: mozzarella: http://chrisseaton.com/truffleruby/
[17:33:34] dminuoso: havenwood: I'd say file a bug report?
[17:33:45] havenwood: dminuoso: with who?
[17:33:53] dminuoso: havenwood: truffleruby
[17:34:16] dminuoso: Or do they have some channel here or on slack maybe?
[17:34:26] dminuoso: Sadly chris' has been absent for a while now
[17:34:31] havenwood: dminuoso: https://gitter.im/graalvm/truffleruby
[17:34:39] duderonomy: has joined #ruby
[17:34:40] dminuoso: Ah that then
[17:34:50] havenwood: dminuoso: What bug though?
[17:35:06] dminuoso: havenwood: Perhaps a missed optimization?
[17:35:20] mozzarella: 185.61x slower
[17:35:21] _whitelogger: has joined #ruby
[17:35:23] dminuoso: I mean it's reasonable that different code might lead to different optimized forms, but who knows.
[17:35:25] havenwood: dminuoso: Ah, yeah - I'm really not sure why the first is so crazy fast.
[17:35:58] dminuoso: havenwood: Well shouldn't that constant fold completely?
[17:36:18] havenwood: dminuoso: mmmm
[17:36:22] 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_
[17:36:32] dminuoso: with some deopt trap should you ever pass something other than 2018
[17:36:34] banisterfiend: has joined #ruby
[17:36:39] havenwood: easter_1 is insanely fast on TruffleRuby
[17:36:57] dminuoso: havenwood: Im just genuinely surprised it doesn't do that for easter_2, which at first glance seems like a missed optimization
[17:37:25] havenwood: I do wonder what the issue is on easter_2, I really don't have a theory
[17:37:52] synthroid: has joined #ruby
[17:38:12] dogweather: has joined #ruby
[17:38:13] dminuoso: havenwood: That profiling doesnt say much though.
[17:39:10] synthroid: has joined #ruby
[17:40:35] dminuoso: 19:36 havenwood | easter_1 is insanely fast on TruffleRuby
[17:41:15] havenwood: dminuoso: I wonder how it compares to a C implementation?
[17:41:32] 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
[17:41:41] amar: has joined #ruby
[17:41:47] dr3wo: has joined #ruby
[17:41:49] dminuoso: (Pseudocode of course)
[17:44:08] emilford: has joined #ruby
[17:44:42] havenwood: dminuoso: Chris suggested it was divmod, and to open an Issue. Without divmod it goes to just 2.4x slower.
[17:45:48] dminuoso: havenwood: Do you know how graal works roughly?
[17:45:57] ellcs: has joined #ruby
[17:46:01] havenwood: dminuoso: yeah, sea of nodes!
[17:46:24] dminuoso: havenwood: I really had to smile about how Chris bought into enterprisey OOP
[17:46:46] 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
[17:46:59] dminuoso: Such a red herring!
[17:47:34] banisterfiend: has joined #ruby
[17:51:20] nitric: has joined #ruby
[17:52:17] dogweather: has joined #ruby
[17:53:16] Asher1: has joined #ruby
[17:58:57] sameerynho: has joined #ruby
[17:59:42] quobo: has joined #ruby
[17:59:44] dionysus69: has joined #ruby
[18:01:03] ramfjord: has joined #ruby
[18:05:31] amar: has joined #ruby
[18:06:02] ramfjord_: has joined #ruby
[18:06:13] jenrzzz: has joined #ruby
[18:06:13] jenrzzz: has joined #ruby
[18:06:51] bmurt: has joined #ruby
[18:08:18] RedNifre: has joined #ruby
[18:10:50] banisterfiend: has joined #ruby
[18:14:43] raynold: has joined #ruby
[18:16:16] Haradani: has joined #ruby
[18:18:22] bmurt: has joined #ruby
[18:20:49] zautomata: has joined #ruby
[18:22:38] gnufied: has joined #ruby
[18:29:28] dogweather: has joined #ruby
[18:31:18] kurko_: has joined #ruby
[18:34:31] weaksauce: has joined #ruby
[18:35:55] zautomata: has joined #ruby
[18:47:02] dogweather: has joined #ruby
[18:53:15] _whitelogger: has joined #ruby
[18:59:05] RedNifre: has joined #ruby
[18:59:16] tipyn: has joined #ruby
[19:02:56] zautomata: has joined #ruby
[19:04:06] dogweather: has joined #ruby
[19:06:52] sagax: has joined #ruby
[19:11:29] eckhardt: has joined #ruby
[19:13:28] banisterfiend: has joined #ruby
[19:15:00] phaul: has joined #ruby
[19:15:36] ldepandis: has joined #ruby
[19:16:46] tipyn: has joined #ruby
[19:17:13] GodFather: has joined #ruby
[19:19:52] cschneid_: has joined #ruby
[19:20:24] mondongo: has joined #ruby
[19:22:02] kliq: has joined #ruby
[19:22:04] emilford: has joined #ruby
[19:25:32] dogweather: has joined #ruby
[19:26:18] cschneid_: has joined #ruby
[19:28:16] schneider1: has joined #ruby
[19:32:09] kurko__: has joined #ruby
[19:38:18] dogweather: has joined #ruby
[19:39:14] dionysus69: has joined #ruby
[19:40:19] tAn: has joined #ruby
[19:41:49] tipyn_: has joined #ruby
[19:43:31] orbyt_: has joined #ruby
[19:44:37] duderonomy: has joined #ruby
[19:46:28] alex``: has joined #ruby
[19:47:21] emilford: has joined #ruby
[19:49:33] postmodern: has joined #ruby
[19:50:21] tipyn: has joined #ruby
[19:51:45] tipyn__: has joined #ruby
[19:51:49] kapil___: has joined #ruby
[19:53:46] duderonomy: has joined #ruby
[19:55:38] dogweather: has joined #ruby
[20:00:07] GodFather: has joined #ruby
[20:06:20] dcunit3d: has joined #ruby
[20:08:03] tAn: has joined #ruby
[20:08:27] sanscoeur: has joined #ruby
[20:08:29] dogweather: has joined #ruby
[20:09:18] gizmore: has joined #ruby
[20:10:57] SeepingN: has joined #ruby
[20:12:50] ARCADIVS: has joined #ruby
[20:13:38] zautomata: has joined #ruby
[20:14:27] dviola: has joined #ruby
[20:20:50] ramfjord: has joined #ruby
[20:21:14] roamingdog: has joined #ruby
[20:21:58] dogweather: has joined #ruby
[20:22:51] dviola: has joined #ruby
[20:29:34] ramfjord_: has joined #ruby
[20:32:20] tAn: has joined #ruby
[20:33:56] dr3wo: has joined #ruby
[20:36:24] dogweather: has joined #ruby
[20:41:42] Omnilord: has joined #ruby
[20:41:51] alfiemax: has joined #ruby
[20:44:19] Guest9989: has joined #ruby
[20:49:14] dogweather: has joined #ruby
[20:49:32] ur5us: has joined #ruby
[20:51:43] amar: has joined #ruby
[20:52:17] ciscam: has joined #ruby
[20:53:06] tomphp: has joined #ruby
[20:57:14] jenrzzz: has joined #ruby
[20:57:14] jenrzzz: has joined #ruby
[20:58:01] roamingdog: has joined #ruby
[20:59:39] Haradani: has joined #ruby
[21:00:14] kurko_: has joined #ruby
[21:00:25] orbyt_: has joined #ruby
[21:00:57] gizmore|2: has joined #ruby
[21:01:54] dogweather: has joined #ruby
[21:03:00] banisterfiend: has joined #ruby
[21:05:20] kmurphy4: has joined #ruby
[21:08:19] dogweather: has joined #ruby
[21:09:11] CrazyEddy: has joined #ruby
[21:19:22] havenwood: dminuoso: All three now completely folded away: https://github.com/oracle/truffleruby/issues/1371
[21:22:31] apeiros: I guess that's one of the issues with good optimizers - your benchmark gets optimized away…
[21:23:16] boontdustie: has joined #ruby
[21:23:56] bmurt: has joined #ruby
[21:26:13] alfiemax: has joined #ruby
[21:26:14] x0F_: has joined #ruby
[21:29:05] tipyn: has joined #ruby
[21:30:51] ur5us: has joined #ruby
[21:31:05] ur5us: has joined #ruby
[21:31:37] emilford: has joined #ruby
[21:31:45] jenrzzz_: has joined #ruby
[21:32:51] boontdustie: has joined #ruby
[21:32:57] bmurt: has joined #ruby
[21:33:22] alfiemax: has joined #ruby
[21:33:26] tAn: has joined #ruby
[21:34:37] tdy: has joined #ruby
[21:35:38] RougeR: has joined #ruby
[21:38:13] havenwood: apeiros: No kidding - billions of iterations per second.
[21:38:48] havenwood: It made me double check that it was actually doing anything.
[21:44:06] banisterfiend: has joined #ruby
[21:44:47] amar: has joined #ruby
[21:45:07] chouhoul_: has joined #ruby
[21:45:55] chouhoul_: has joined #ruby
[21:51:26] aruns: has joined #ruby
[21:51:52] minimalism: has joined #ruby
[21:52:07] aruns: Hi, I am reviewing the source code for a Ruby gem, in its initialize method some of the argument names begin with an underscore.
[21:52:12] aruns: What is the significance of this?
[21:52:23] aruns: I take it this is for URIs?
[21:53:01] apeiros: aruns: usually underscores as first char means "unused variable"
[21:53:16] apeiros: but with arguments, that doesn't seem to make sense
[21:53:34] aruns: This is what I am looking at - https://github.com/rob-murray/jekyll-twitter-plugin/blob/master/lib/jekyll-twitter-plugin.rb - on line 149
[21:53:37] sagax: what do your think about this? http://fnproject.io/
[21:54:24] apeiros: aruns: you can link the line directly: https://github.com/rob-murray/jekyll-twitter-plugin/blob/master/lib/jekyll-twitter-plugin.rb#L149
[21:54:35] apeiros: (just click on the linenumber and the url changes)
[21:54:36] aruns: Ah cool, thanks apeiros
[21:54:50] apeiros: and yes, that's actually "this variable is unused"
[21:55:04] aruns: Ah I see.
[21:55:07] apeiros: it is used indirectly via `super` (super without parens will pass on all arguments)
[21:55:36] 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.
[21:56:32] 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.
[21:56:50] apeiros: (it'll complain about unused variables, and those tools shut up if you use underscores as first char)
[21:57:03] havenwood: aruns: If it's always called with all three params, you might consider just explicitly doing: super(name, params, tokens)
[21:57:50] havenwood: and this project does use rubocop: https://github.com/rob-murray/jekyll-twitter-plugin/blob/master/.rubocop.yml
[21:58:24] havenwood: i think apeiros' spotted the real reason ;-)
[22:00:00] havenwood: since they aren't explicitly used, i don't really mind the underscores
[22:00:02] havenwood: super is an odd case
[22:00:55] apeiros: ACTION would also not write `def initialize(*_args); end`, but instead use `def initialize(*); end`
[22:01:55] Asher: has joined #ruby
[22:02:27] venmx: has joined #ruby
[22:03:07] apeiros: ACTION off, cya kiddos!
[22:04:05] aruns: Thanks for the help, guys.
[22:04:57] alfiemax: has joined #ruby
[22:07:36] dogweather: has joined #ruby
[22:11:34] saltsa: has joined #ruby
[22:13:49] dviola: has joined #ruby
[22:15:35] govg: has joined #ruby
[22:22:04] gizmore: has joined #ruby
[22:22:55] dogweather: has joined #ruby
[22:25:45] cthulchu: has joined #ruby
[22:30:28] Haradani: has joined #ruby
[22:31:19] Haradani: has joined #ruby
[22:31:28] alfiemax: has joined #ruby
[22:32:03] sanscoeur: has joined #ruby
[22:32:58] Haradani: has joined #ruby
[22:36:34] \void: has joined #ruby
[22:44:12] weaksauce: has joined #ruby
[22:47:02] voker57: has joined #ruby
[22:51:42] ramfjord: has joined #ruby
[22:59:25] alfiemax: has joined #ruby
[23:01:19] duderonomy: has joined #ruby
[23:02:38] tfitts: has joined #ruby
[23:05:56] GodFather: has joined #ruby
[23:11:26] sanscoeur: has joined #ruby
[23:13:56] ciscam: has joined #ruby
[23:19:52] alfiemax: has joined #ruby
[23:22:51] banisterfiend: has joined #ruby
[23:26:59] pharma_joe: has joined #ruby
[23:38:35] SuperL4g: has joined #ruby
[23:40:42] duderonomy: has joined #ruby
[23:45:56] roamingdog: has joined #ruby
[23:49:04] ramfjord: has joined #ruby
[23:50:47] orbyt_: has joined #ruby
[23:59:05] paradisaeidae: has joined #ruby
[23:59:10] paradisaeidae_: has joined #ruby