« Back to channel list

#ruby - 01 June 2018

« Back 1 day Forward 1 day »
[00:07:37] eelster: has joined #ruby
[00:16:40] cagomez: has joined #ruby
[00:16:52] yosafbridge: has joined #ruby
[00:22:31] p0p0pr37_: has joined #ruby
[00:22:31] p0p0pr37_: has joined #ruby
[00:23:05] eckhardt: has joined #ruby
[00:23:30] NingaLeaf: has joined #ruby
[00:26:19] amar: has joined #ruby
[00:35:40] blackmesa1: has joined #ruby
[00:38:43] eckhardt: has joined #ruby
[00:49:44] orbyt_: has joined #ruby
[00:50:30] sytherax: has joined #ruby
[00:58:22] hlmjr: has joined #ruby
[01:04:33] GodFather: has joined #ruby
[01:14:41] eelster: has joined #ruby
[01:21:21] eam: Net::HTTP uses Timeout :(
[01:23:18] havenwood: eam: HTTP.rb ftw
[01:25:46] sytherax: has joined #ruby
[01:29:03] coderphive: has joined #ruby
[01:30:46] havenwood: eam: https://github.com/ankane/the-ultimate-guide-to-ruby-timeouts#http
[01:31:19] havenwood: eam: interesting: https://github.com/ankane/the-ultimate-guide-to-ruby-timeouts#nethttp
[01:40:33] beauby_: has joined #ruby
[01:43:01] BloopMonsterOMG: has joined #ruby
[01:45:34] eam: offending code: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L934-L941
[01:47:21] eam: maybe in my copious free time I can send over a version that opens the socket nonblocking and selects
[01:52:23] ciscam: has joined #ruby
[01:56:17] bmurt: has joined #ruby
[01:56:52] Creatornator: has joined #ruby
[02:04:19] Jameser: has joined #ruby
[02:06:08] ramfjord: has joined #ruby
[02:08:16] karapetyan: has joined #ruby
[02:08:44] agent_white: has joined #ruby
[02:11:45] Creatornator: has joined #ruby
[02:16:09] Azure|dc: has joined #ruby
[02:19:27] shakes: has joined #ruby
[02:21:05] p0p0pr37_: has joined #ruby
[02:21:05] p0p0pr37_: has joined #ruby
[02:26:32] roshanavand: has joined #ruby
[02:28:29] cadillac_: has joined #ruby
[02:28:48] t0xik: has joined #ruby
[02:30:18] hays: has joined #ruby
[02:30:24] hays: is there a better way to do this: until a>b+c; end
[02:31:01] hays: a being a method that reads the state of something
[02:48:15] BloopMonsterOMG: has joined #ruby
[03:00:15] cadillac_: has joined #ruby
[03:05:04] shinnya: has joined #ruby
[03:15:34] braincrash: has joined #ruby
[03:17:44] anisha__: has joined #ruby
[03:18:17] EXCHGR: has joined #ruby
[03:21:39] Autolycus: has joined #ruby
[03:40:54] cagomez: has joined #ruby
[03:44:11] hays: has joined #ruby
[03:44:40] gix: has joined #ruby
[03:45:33] jrheaton: has joined #ruby
[03:49:40] zenspider: has joined #ruby
[03:49:56] ciscam: has joined #ruby
[03:50:00] lypsis: has joined #ruby
[03:52:46] linuxdaemon: has joined #ruby
[03:52:56] pwnd_nsfw`: has joined #ruby
[03:54:33] BloopMonsterOMG: has joined #ruby
[04:00:02] rkazak: has joined #ruby
[04:00:21] BloopMonsterOMG: has joined #ruby
[04:04:36] apeiros: has joined #ruby
[04:08:22] dendazen: has joined #ruby
[04:14:41] BloopMonsterOMG: has joined #ruby
[04:18:02] cliluw: has joined #ruby
[04:20:32] claw: has joined #ruby
[04:20:41] p0p0pr37: has joined #ruby
[04:20:41] p0p0pr37: has joined #ruby
[04:27:15] alfiemax_: has joined #ruby
[04:32:50] karapetyan: has joined #ruby
[04:33:58] beauby: has joined #ruby
[04:39:37] Synthead: has joined #ruby
[04:39:49] Synthead: is there a way to "force less" on an object in pry?
[04:39:50] memo1: has joined #ruby
[04:40:00] Synthead: I want to use / on it, but it's not long enough to be piped through less
[04:40:29] kt: has joined #ruby
[04:43:13] alfiemax: has joined #ruby
[04:57:30] kt: has joined #ruby
[04:57:43] beauby: has joined #ruby
[05:03:23] conta: has joined #ruby
[05:06:29] conta: has joined #ruby
[05:11:48] BloopMonsterOMG: has joined #ruby
[05:12:41] alfiemax: has joined #ruby
[05:15:21] reber: has joined #ruby
[05:19:13] aupadhye: has joined #ruby
[05:19:14] alfiemax_: has joined #ruby
[05:20:07] sparc: has joined #ruby
[05:20:56] sparc: Hello. I'm real confused about the Process::Status object in 2.1.8.
[05:21:47] sparc: When I run %x(/bin/false)
[05:21:47] sparc: It shows me that $?.exitstatus is equal to 0.
[05:22:17] alex``: has joined #ruby
[05:22:29] sparc: I think that should be zero, but even according to https://ruby-doc.org/core-2.1.8/Process/Status.html
[05:22:29] sparc: It seems like it should be zero.
[05:22:45] sparc: erm, I meant, I think that should be 1.
[05:23:11] sparc: Does anyone else know what's going on?
[05:25:14] sauvin: has joined #ruby
[05:28:47] cschneid: has joined #ruby
[05:30:45] Autolycus: has joined #ruby
[05:32:40] aufi: has joined #ruby
[05:33:30] havenwood: sparc: I get 127. ¯\_(ツ)_/¯
[05:34:22] havenwood: sparc: Or 1, depending on the OS.
[05:34:48] sparc: Does that say 127 too? https://www.irccloud.com/pastebin/flFjIKdq/
[05:34:49] ruby[bot]: sparc: we in #ruby do not like irccloud.com, it has no syntax highlighting, distracting formatting and loads slowly for most. Please use https://gist.github.com
[05:35:35] havenwood: sparc: How about from your shell?: /bin/false; echo $?
[05:35:53] sparc: That says 1
[05:35:54] plexigras: has joined #ruby
[05:36:03] sparc: $ /bin/false; echo $?
[05:36:36] havenwood: oh, i just got 127 because i didn't have a /bin/false >.>
[05:36:40] havenwood: and 1 since i did
[05:36:55] havenwood: (false as shell builtin in zsh)
[05:37:09] sparc: interesting
[05:37:22] havenwood: command -V false
[05:37:29] havenwood: #>> false is a shell builtin
[05:37:39] sparc: maybe I can work around it
[05:38:05] havenwood: actually, it's a shell builtin in bash too
[05:38:06] havenwood: it just may also be in /bin/false
[05:38:07] havenwood: in addition
[05:38:53] sparc: I have both, i'm just specifying the full path to /bin/false, because I don't know if %x is going to send the command through a shell
[05:39:20] sparc: thanks for the info!
[05:39:29] sparc: it's good to know other platforms are working well
[05:42:26] Azure: has joined #ruby
[05:42:36] emilford: has joined #ruby
[05:46:48] jenrzzz: has joined #ruby
[05:46:53] amar: has joined #ruby
[05:49:11] sagax: has joined #ruby
[05:52:46] eckhardt: has joined #ruby
[05:52:48] emilford: has joined #ruby
[05:54:23] alfiemax: has joined #ruby
[05:54:38] Defenestrate: has joined #ruby
[05:55:30] KeyJoo: has joined #ruby
[05:56:38] havenwood: https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/
[05:57:00] havenwood: \o/ /o\ \o/
[06:01:22] jenrzzz: has joined #ruby
[06:01:22] jenrzzz: has joined #ruby
[06:03:23] kapil___: has joined #ruby
[06:09:51] emilford: has joined #ruby
[06:10:21] Creatornator: has joined #ruby
[06:11:58] mattp__: has joined #ruby
[06:18:13] p0p0pr37_: has joined #ruby
[06:18:37] aakp: has joined #ruby
[06:22:30] mattp__: has joined #ruby
[06:22:43] Defenestrate: has joined #ruby
[06:22:43] Defenestrate: has joined #ruby
[06:31:55] schleppel: has joined #ruby
[06:34:09] karapetyan: has joined #ruby
[06:36:41] snickers: has joined #ruby
[06:37:07] tomphp: has joined #ruby
[06:38:07] mtkd: has joined #ruby
[06:39:33] mattp__: has joined #ruby
[06:40:36] b100s: has joined #ruby
[06:41:07] b100s: hi2all; is there reason to use return? e.g. `def foo return 'foo' end;` or `def foo 'foo' end`.
[06:44:42] conta: has joined #ruby
[06:51:43] conta: has joined #ruby
[06:54:04] biberu: has joined #ruby
[06:54:41] havenwood: b100s: If you're not returning early, nope.
[06:55:13] amar: has joined #ruby
[06:55:24] mattp__: has joined #ruby
[06:56:12] yohji: has joined #ruby
[07:06:50] mattp__: has joined #ruby
[07:07:41] amar_: has joined #ruby
[07:17:00] alfiemax_: has joined #ruby
[07:17:43] amar: has joined #ruby
[07:17:53] vondruch: has joined #ruby
[07:19:41] ellcs: has joined #ruby
[07:22:06] alfiemax: has joined #ruby
[07:24:43] snickers: has joined #ruby
[07:26:54] amar: has joined #ruby
[07:27:08] saTchymoto: has joined #ruby
[07:27:58] phaul: has joined #ruby
[07:30:30] emilford: has joined #ruby
[07:31:16] TomyWork: has joined #ruby
[07:32:18] nowhere_man: has joined #ruby
[07:38:23] amar: has joined #ruby
[07:38:58] amar_: has joined #ruby
[07:41:35] ciscam: has joined #ruby
[07:47:19] anisha__: has joined #ruby
[07:47:35] BTRE: has joined #ruby
[07:47:35] Nussi: has joined #ruby
[07:47:35] segy: has joined #ruby
[07:47:35] Guest23105: has joined #ruby
[07:47:35] shoogz: has joined #ruby
[07:47:35] Fire-Dragon-DoL: has joined #ruby
[07:47:35] pocketprotector: has joined #ruby
[07:47:35] SuperLag: has joined #ruby
[07:47:35] nickjj: has joined #ruby
[07:47:35] Hobbyboy: has joined #ruby
[07:47:35] rikai_: has joined #ruby
[07:47:35] andywojo: has joined #ruby
[07:47:36] Yonk__: has joined #ruby
[07:47:36] cibs: has joined #ruby
[07:47:36] thi: has joined #ruby
[07:47:36] goez: has joined #ruby
[07:47:36] x0F: has joined #ruby
[07:47:36] matti: has joined #ruby
[07:47:36] justizin: has joined #ruby
[07:47:36] valkyr2e: has joined #ruby
[07:47:36] miah: has joined #ruby
[07:47:36] n13z: has joined #ruby
[07:47:36] kspencer: has joined #ruby
[07:47:36] peteretep: has joined #ruby
[07:47:36] cttttt: has joined #ruby
[07:47:36] solidsnack: has joined #ruby
[07:47:36] jabreity: has joined #ruby
[07:47:36] craysiii: has joined #ruby
[07:47:36] podman: has joined #ruby
[07:47:36] nebben: has joined #ruby
[07:47:36] kent\n: has joined #ruby
[07:47:36] twe4ked: has joined #ruby
[07:47:36] Scient: has joined #ruby
[07:47:37] Diabolik: has joined #ruby
[07:47:37] JJonah: has joined #ruby
[07:47:37] Travis-42: has joined #ruby
[07:47:37] danzilio: has joined #ruby
[07:47:37] codepete: has joined #ruby
[07:47:37] charles81_: has joined #ruby
[07:47:37] pizzaops: has joined #ruby
[07:47:37] Prira: has joined #ruby
[07:47:37] Fridtjof: has joined #ruby
[07:47:37] bougyman: has joined #ruby
[07:47:37] oz: has joined #ruby
[07:47:37] Guest53256: has joined #ruby
[07:47:37] DukeDave: has joined #ruby
[07:47:37] yo61: has joined #ruby
[07:47:37] rjungemann: has joined #ruby
[07:47:37] tycoon177: has joined #ruby
[07:47:37] m4rCsi_: has joined #ruby
[07:47:37] baweaver: has joined #ruby
[07:47:45] alfiemax: has joined #ruby
[07:48:23] Fridtjof: has joined #ruby
[07:48:25] shoogz: has joined #ruby
[07:49:29] giraffe: has joined #ruby
[07:49:51] yo61: has joined #ruby
[07:52:31] Dark_Arc: has joined #ruby
[07:55:53] tomphp: has joined #ruby
[08:03:24] mikecmpbll: has joined #ruby
[08:05:31] ramfjord: has joined #ruby
[08:07:31] eblip: has joined #ruby
[08:13:09] p0p0pr37_: has joined #ruby
[08:20:30] guille-moe: has joined #ruby
[08:31:02] amar_: has joined #ruby
[08:34:07] jottr: has joined #ruby
[08:35:46] karapetyan: has joined #ruby
[08:40:41] trautwein: has joined #ruby
[08:41:31] trautwein: has joined #ruby
[08:41:39] roshanavand: has joined #ruby
[08:41:50] Xiti`: has joined #ruby
[08:42:44] blackmesa1: has joined #ruby
[08:43:13] aakp: has joined #ruby
[08:48:28] sysvalve: has joined #ruby
[08:49:29] amar: has joined #ruby
[08:51:37] aufi: has joined #ruby
[08:52:14] NL3limin4t0r: has joined #ruby
[08:58:44] Xiti: has joined #ruby
[09:02:39] aakp: has joined #ruby
[09:03:22] phaul: has joined #ruby
[09:04:49] tvw: has joined #ruby
[09:08:07] EXCHGR: has joined #ruby
[09:13:26] mtkd: has joined #ruby
[09:15:57] Puffball: has joined #ruby
[09:30:12] alfiemax: has joined #ruby
[09:37:31] rideh: has joined #ruby
[09:41:16] OS-35301: has joined #ruby
[09:51:40] venmx: has joined #ruby
[09:52:34] alfiemax: has joined #ruby
[09:53:46] redlegion: has joined #ruby
[09:56:32] arkinor: has joined #ruby
[09:58:01] mrBen2k2k2k_: has joined #ruby
[10:05:31] trautwein: has joined #ruby
[10:06:18] trautwein: has joined #ruby
[10:07:23] p0p0pr37_: has joined #ruby
[10:07:23] p0p0pr37_: has joined #ruby
[10:09:01] arekushi: has joined #ruby
[10:09:03] trautwein: has joined #ruby
[10:09:04] anisha__: has joined #ruby
[10:09:38] trautwein: has joined #ruby
[10:10:13] trautwein: has joined #ruby
[10:12:07] trautwein_: has joined #ruby
[10:13:35] KeyJoo: has joined #ruby
[10:13:51] biberu: has joined #ruby
[10:14:13] dionysus69: has joined #ruby
[10:14:33] KeyJoo: has joined #ruby
[10:21:31] emilford: has joined #ruby
[10:22:53] Furai: has joined #ruby
[10:25:46] Furai: Hey, is there a way to tell bundler to install all the stuff locally? the same as "bundle install --path vendor/ruby"? Maybe add it somehow to the Gemfile? I did some quick googling but couldn't find definitive answer. Forgive me if, but I don't understand much of it yet
[10:28:25] dminuoso: Furai: You can specify --path I believe
[10:28:47] dminuoso: Furai: Im not sure what you are asking, since that's precisely what you already mentioned.
[10:29:33] Furai: Can I specify that path in Gemfile?
[10:29:42] mniip: has joined #ruby
[10:29:43] Furai: So I can just do `bundle install`?
[10:29:46] cschneid: has joined #ruby
[10:31:05] trautwein: has joined #ruby
[10:31:15] emilford: has joined #ruby
[10:31:35] Londino: has joined #ruby
[10:36:21] karapetyan: has joined #ruby
[10:37:27] karapety_: has joined #ruby
[10:39:17] emilford: has joined #ruby
[10:40:24] asio: has joined #ruby
[10:40:29] apeiros: Furai: depending on what you want to do, check `bundle help package`
[10:40:55] apeiros: "Copy all of the .gem files needed to run the application into the vendor/cache directory."
[10:41:40] dminuoso: Furai: whats wrong with --path as a CLI flag?
[10:41:43] karapetyan: has joined #ruby
[10:41:59] eelster: has joined #ruby
[10:43:31] alex``: has joined #ruby
[10:44:41] Furai: I'm new here, I thought that process like that makes sense: you checkout repo, do `bundle install` and you're done. No need for any extra parameters. By default it seems it wants to install the gems globally, at least on linux. I thought it could be avoided by specifying where to install policy per project, somewhere in Gemfile or something.
[10:44:51] Furai: I might be just thinking of this whole thing backwards.
[10:45:10] apeiros: Furai: oh, by locally you mean "for the current user"?
[10:45:47] GodFather: has joined #ruby
[10:45:56] apeiros: that will depend on how you installed ruby. if you installed ruby to have gems for all users, then bundler will do that too iirc. I haven't had a non-user ruby in a long time so I'm not entirely sure.
[10:46:41] havenwood: Furai: I don't like that this is the case, but Bundler's --path is a "remembered" flag. Once set, it'll persist in your .bundle/config as the BUNDLE_PATH.
[10:47:19] havenwood: Furai: Bundler will install to $GEM_HOME if you don't pick a path, so you can just set that where you'd like.
[10:48:16] Furai: Ok, thanks. Maybe I shouldn't have installed ruby + bundler system-wide.
[10:48:21] dionysus69: has joined #ruby
[10:48:40] Furai: Anyway, thanks a lot for help and clearing out the confusion on my end.
[10:48:42] apeiros: as dminuoso & havenwood said, you can tell bundler to install gems not system-wide.
[10:50:10] havenwood: Furai: It's normal in dev to install gems from multiple projects to GEM_HOME, then use prefixing `bundle exec` or setting RUBYGEMS_GEMDEPS=- to use just the gems specified in the Gemfile.lock for a particular project.
[10:50:42] havenwood: Furai: You don't have to have them in different locations to ensure you get exactly the right versions for the project.
[10:51:39] havenwood: Furai: It's true you checkout a project and just run `bundle install` or just plain `bundle` is the same.
[10:52:00] havenwood: Furai: Then to make sure you're using exactly and only the gems from the Gemfile.lock, prefix commands with: bundle exec
[10:52:26] jamesaxl: has joined #ruby
[10:52:49] dminuoso: Furai: Think about responsibilities. It may make more sense to defer this to the user.
[10:53:05] dminuoso: Furai: That is, if the user wants to install them locally thats their decision. Dont pin a specific installation path to your project.
[11:02:56] trautwein: has joined #ruby
[11:06:05] jottr: has joined #ruby
[11:06:39] ramfjord: has joined #ruby
[11:12:09] karapetyan: has joined #ruby
[11:12:24] Eslam: has joined #ruby
[11:14:42] clemens3: has joined #ruby
[11:15:32] OS-35301: has joined #ruby
[11:20:35] aufi: has joined #ruby
[11:27:21] roshanavand: has joined #ruby
[11:32:04] ldnunes: has joined #ruby
[11:32:17] beefjoe: has joined #ruby
[11:36:49] cyberg: has joined #ruby
[11:38:22] dendazen: has joined #ruby
[11:39:03] tomphp: has joined #ruby
[11:40:02] Cavallari: has joined #ruby
[11:42:38] tvw: has joined #ruby
[11:45:30] rfoust: has joined #ruby
[11:46:24] fmcgeough: has joined #ruby
[11:47:04] NingaLeaf: has joined #ruby
[11:49:04] cliluw: has joined #ruby
[11:50:09] tomphp: has joined #ruby
[11:50:11] Lytol: has joined #ruby
[11:52:11] donofrio_: has joined #ruby
[11:53:20] jamesaxl: has joined #ruby
[11:54:10] za1b1tsu: has joined #ruby
[11:54:37] quobo: has joined #ruby
[11:55:04] arne: when asking nokogiri for a value of an attribute
[11:55:16] arne: i get an escaped version of that attribute
[11:55:26] arne: why doesn't it unescape it?
[11:57:48] psychicist__: has joined #ruby
[12:01:24] synthroid: has joined #ruby
[12:02:08] arne: i mean if i write a xml doc with nokogiri i would like to get the same value out that i put in, don't i?
[12:02:46] AJA4350: has joined #ruby
[12:05:32] Mike11: has joined #ruby
[12:09:33] KevinSjoberg: has joined #ruby
[12:10:28] jcalla: has joined #ruby
[12:10:50] redlegion: has joined #ruby
[12:13:47] fmcgeough: has joined #ruby
[12:15:33] suukim: has joined #ruby
[12:16:52] za1b1tsu: has joined #ruby
[12:18:23] cyberg: has joined #ruby
[12:20:58] RougeR: has joined #ruby
[12:20:58] RougeR: has joined #ruby
[12:21:00] bonhoeffer: has joined #ruby
[12:24:00] jottr: has joined #ruby
[12:25:36] Ryzokuken: has joined #ruby
[12:26:12] jrafanie: has joined #ruby
[12:32:21] TomyWork: has joined #ruby
[12:37:35] za1b1tsu: has joined #ruby
[12:44:58] karapetyan: has joined #ruby
[12:46:04] memo1: has joined #ruby
[12:47:24] mikecmpb_: has joined #ruby
[12:50:16] clemens3: has joined #ruby
[12:50:53] eelster: has joined #ruby
[12:53:57] millerti: has joined #ruby
[12:54:09] ur5us: has joined #ruby
[12:57:32] rfoust: has joined #ruby
[13:03:19] mikecmpbll: has joined #ruby
[13:03:53] OMGBloopMonster: has joined #ruby
[13:05:10] TinkerT: has joined #ruby
[13:08:05] Jameser: has joined #ruby
[13:08:24] bonhoeffer: has joined #ruby
[13:14:59] biberu: has joined #ruby
[13:16:27] fmcgeough: has joined #ruby
[13:18:42] bmurt: has joined #ruby
[13:23:52] mtkd: has joined #ruby
[13:27:55] gr33n7007h: has joined #ruby
[13:30:36] kith: has joined #ruby
[13:32:25] rippa: has joined #ruby
[13:34:26] alfiemax: has joined #ruby
[13:35:24] jrheaton: has joined #ruby
[13:40:42] coderphive: has joined #ruby
[13:51:15] OMGBloopMonster: has joined #ruby
[13:55:14] amatas: has joined #ruby
[13:57:34] Axy: has joined #ruby
[13:57:34] Axy: has joined #ruby
[14:04:00] Sylario: has joined #ruby
[14:05:23] trautwein: has joined #ruby
[14:07:39] k0mpa: has joined #ruby
[14:09:17] Cavallari1: has joined #ruby
[14:10:55] Rapture: has joined #ruby
[14:13:11] phaul: has joined #ruby
[14:14:49] mozzarella: has joined #ruby
[14:16:39] BloopMonster: has joined #ruby
[14:18:59] howdoi: has joined #ruby
[14:22:46] dreamthese: has joined #ruby
[14:24:45] grilix_: has joined #ruby
[14:30:22] cadillac_: has joined #ruby
[14:32:36] DTZUZO: has joined #ruby
[14:33:01] trautwein: has joined #ruby
[14:33:54] beefjoe70: has joined #ruby
[14:35:00] za1b1tsu: has joined #ruby
[14:35:01] trautwein: has joined #ruby
[14:35:14] derp10327: @arne, seems like it's part of libxml2's code
[14:35:42] beefjoe: has joined #ruby
[14:35:48] Dbugger: has joined #ruby
[14:36:13] amatas: has joined #ruby
[14:38:28] jerematic: has joined #ruby
[14:40:42] synthroid: has joined #ruby
[14:41:09] ellcs: has joined #ruby
[14:46:25] cschneid: has joined #ruby
[14:47:10] chouhoulis: has joined #ruby
[14:49:14] donofrio: has joined #ruby
[14:49:33] karapetyan: has joined #ruby
[14:49:46] eblip: has joined #ruby
[14:55:10] Asher: has joined #ruby
[14:57:51] rfoust: has joined #ruby
[15:00:05] chouhoulis: has joined #ruby
[15:04:15] chouhoul_: has joined #ruby
[15:04:19] eelster: has joined #ruby
[15:11:15] emilford: has joined #ruby
[15:13:15] amar: has joined #ruby
[15:15:15] amar: has joined #ruby
[15:18:31] emilford: has joined #ruby
[15:21:27] NingaLeaf: has joined #ruby
[15:23:46] chouhoulis: has joined #ruby
[15:23:48] KevinSjoberg: has joined #ruby
[15:25:52] biberu: has joined #ruby
[15:33:55] DoubleMalt: has joined #ruby
[15:34:31] Bounga: has joined #ruby
[15:37:55] banisterfiend: has joined #ruby
[15:38:41] Creatornator: has joined #ruby
[15:39:03] AJA4350: has joined #ruby
[15:43:18] motstgo: has joined #ruby
[15:46:30] amar: has joined #ruby
[15:46:48] rfoust: has joined #ruby
[15:48:16] emilford: has joined #ruby
[15:51:01] RougeR: has joined #ruby
[15:51:01] RougeR: has joined #ruby
[15:52:30] troys: has joined #ruby
[15:56:21] synthroid: has joined #ruby
[16:01:24] jrafanie: has joined #ruby
[16:10:39] p0p0pr37_: has joined #ruby
[16:10:39] p0p0pr37_: has joined #ruby
[16:14:15] jcarl43: has joined #ruby
[16:21:21] ur5us: has joined #ruby
[16:23:09] Creatornator: has joined #ruby
[16:31:54] desperek: has joined #ruby
[16:34:02] KevinSjoberg: has joined #ruby
[16:34:36] Zaab1t: has joined #ruby
[16:39:57] emilford: has joined #ruby
[16:40:16] alfiemax: has joined #ruby
[16:40:58] amar_: has joined #ruby
[16:41:31] cagomez: has joined #ruby
[16:41:44] Azure: has joined #ruby
[16:47:50] nowhere_man: has joined #ruby
[16:48:53] amar: has joined #ruby
[16:49:21] eelster: has joined #ruby
[16:52:25] sanscoeur: has joined #ruby
[16:52:40] Utility: has joined #ruby
[16:53:02] sanscoeur: has joined #ruby
[16:53:40] Rapture: has joined #ruby
[16:54:29] glacius: has joined #ruby
[16:57:52] minimalism: has joined #ruby
[16:59:28] Cavallari: has joined #ruby
[17:02:15] ldepandis: has joined #ruby
[17:06:00] tdy: has joined #ruby
[17:08:48] TomyLobo: has joined #ruby
[17:12:56] emilford: has joined #ruby
[17:17:03] biberu: has joined #ruby
[17:19:46] jatto: has joined #ruby
[17:24:31] al2o3-cr: very very nice :)
[17:24:55] emilford: has joined #ruby
[17:25:14] mtkd: has joined #ruby
[17:26:29] gizmore: has joined #ruby
[17:27:41] VladGh: has joined #ruby
[17:31:37] emilford: has joined #ruby
[17:35:17] \void: has joined #ruby
[17:36:30] mikecmpbll: has joined #ruby
[17:37:07] Sylario: I have a net/http error and I am not sure if it is from my code or from my system (I also asked on #rubyonrails) : https://stackoverflow.com/questions/50648477/i-cannot-use-http-net-on-my-dev-machine
[17:38:20] nowhereman: has joined #ruby
[17:39:52] emilford: has joined #ruby
[17:40:27] \void: has joined #ruby
[17:41:03] amar_: has joined #ruby
[17:41:51] Azure: has joined #ruby
[17:43:50] baweaver: looks like havenwood got it on RubyOnRails
[17:46:14] eckhardt: has joined #ruby
[17:48:59] havenwood: Surprisingly, in both Ruby and JRuby: 2147483648.times.count #=> -2147483648
[17:49:09] havenwood: In TruffleRuby: 2147483648.times.count #=> 2147483648
[17:49:38] havenwood: Rubinius has been at it a *very* long time and still no result.
[17:50:01] amelliaa: has joined #ruby
[17:50:20] emilford: has joined #ruby
[17:54:30] havenwood: Rubinius still thinking hard. Maybe they should bring back the JIT. ;-P
[17:55:29] Zarthus: that's embarassing
[17:55:31] alfiemax: has joined #ruby
[17:55:48] headius: that shouldn't cost anything
[17:55:57] headius: maybe they're iterating all values to get the count
[17:56:12] Zarthus: well, i expect it to take *some* time
[17:56:14] headius: the size/count feature was added relatively recently and you need to explicitly populate it everywhere you enumeratorize
[17:56:42] headius: I don't quite get the negative value though
[17:57:16] headius: that is not even 64 bit boundary...it's 32 bit
[17:57:31] havenwood: >> 2147483647.times.count
[17:57:32] headius: we do love to match MRI weirdness though
[17:57:34] ruby[bot]: havenwood: # => (https://eval.in/1013994)
[17:57:39] havenwood: >> 2147483648.times.count
[17:57:42] ruby[bot]: havenwood: # => (https://eval.in/1013995)
[17:57:59] havenwood: Ah, takes too long for eval.in.
[17:58:09] Zarthus: takes 30s on my vps
[17:58:17] minimalism: has joined #ruby
[17:59:42] trautwein: has joined #ruby
[17:59:49] headius: count doesn't seem to be size
[18:00:12] headius: it's Enumerable
[18:00:16] headius: so it actually does run the iterator
[18:00:19] havenwood: the lazily calculated size seems right on all of em
[18:00:20] headius: that seems like it should be fixed to use size
[18:00:42] headius: like if there's a size defined, why would count return anything else
[18:01:15] Zarthus: regarding 32 bit vs 64 bit integers, i bet they use a signed int in c code
[18:01:42] Zarthus: or is it short
[18:02:04] havenwood: headius: maybe to sanity check your size? that's the only reason I can think of. otherwise it totally makes sense to just optimize it to the know size
[18:02:37] trautwein: has joined #ruby
[18:02:41] havenwood: I will report back if Rubinius ever finishes.
[18:03:02] dtzuzu: has joined #ruby
[18:03:49] headius: I mean if it's intended as a verb it makes sense to iterate, right?
[18:03:54] headius: if it's a noun it should just be .size
[18:04:05] eelster: Zarthus: the size of `int` in C isn't standard. You can find out how big it is on your system by compiling and then running this program https://hastebin.com/fahapazohu.c
[18:04:20] eckhardt: has joined #ruby
[18:04:26] p0p0pr37_: has joined #ruby
[18:04:27] p0p0pr37_: has joined #ruby
[18:05:15] tdy: has joined #ruby
[18:05:19] eelster: Or you should probably use "%lu" instead of "%d" in the specifier, but it doesn't really matter as the number isn't going to be that large, but that's bad practice on my part.
[18:05:24] orbyt_: has joined #ruby
[18:05:40] trautwein: has joined #ruby
[18:05:42] headius: havenwood: I'm unclear why it overflows though
[18:05:46] headius: I think in our case it's a bug
[18:06:05] headius: we are *always* 64-bit integers internally...not 32, not 31, not 62
[18:06:27] emilford: has joined #ruby
[18:06:33] headius: our count aggregates with an int...now should I change it and have some weirdo report it as a bug?
[18:06:47] karapetyan: has joined #ruby
[18:06:53] Zarthus: personally i'm just really wondering how you ran into this issue
[18:07:13] havenwood: Zarthus: I was iterating over my worries.
[18:07:22] havenwood: Zarthus: It got out of hand.
[18:07:30] headius: self.worries.count
[18:07:43] Zarthus: -2.x million worries isn't that bad
[18:07:48] headius: if you use rubinius at least you'll never know how many there are
[18:07:51] headius: ba dum dum
[18:08:11] havenwood: Rubinius is using over 3GB of RAM. I might call it...
[18:08:33] Zarthus: you think it's actually cloning the array for each step?
[18:08:53] Zarthus: that means it's going to go up in a spiral
[18:09:02] headius: maybe they're aggregating all the values into an array to be summed later
[18:09:04] headius: I have no idea
[18:09:09] Zarthus: inb4 havenwood gets OOM killed
[18:09:23] havenwood: Virtual Memory Size: 7.77 GB
[18:09:27] headius: I'm going to get banned again
[18:09:34] havenwood: Real Memory Size: 3.59 GB
[18:09:36] headius: double secret probation
[18:09:52] karapetyan: has joined #ruby
[18:10:02] havenwood: Unix System Calls: 3813633
[18:10:06] havenwood: And growing rapidly.
[18:10:53] jrafanie: has joined #ruby
[18:11:04] havenwood: Zarthus: I didn't find it: https://bugs.ruby-lang.org/issues/14805
[18:11:26] headius: I have to know why
[18:11:43] kt: has joined #ruby
[18:12:01] headius: I wonder if I'm allowed to clone it
[18:12:57] dminuoso: eelster: the size of int in C is well defined. `int` is (historically) at least as large as a short.
[18:13:01] Zarthus: >One takes for granted that integers will be promoted into bigints in Ruby when needed.
[18:13:05] Zarthus: TIL this is a ruby feature
[18:13:36] headius: and a pain in the ass to optimize
[18:13:38] eelster: dminuoso: I meant it wasn't the same size on all machines.
[18:13:54] zenspider: has joined #ruby
[18:14:08] eelster: Standard was the wrong word to use.
[18:14:08] headius: use "int32" inC if you want to be specific right?
[18:14:16] dminuoso: headius: Heh yeah. I frequently see int promotion as a primary problem for optimizations. :(
[18:14:39] headius: if not for int promotion we could turn a lot of code into just 64-bit long math
[18:14:43] headius: but dat overflow
[18:15:29] dminuoso: headius: Well there are intN_t types, but they may not exist.
[18:15:47] dminuoso: `int` is basically an antiquated `int_fast16_t` but the meaning was never enforced well
[18:15:48] karapetyan: has joined #ruby
[18:18:30] dminuoso: headius: Why not go the speculative optimization route? HotSpot and Graal do this rather well
[18:18:52] dminuoso: I mean if you use the hotspot technique, then the deopt trap becomes just a simple load
[18:18:53] headius: well we're balancing complexity a bit
[18:19:02] headius: at this point we get a lot of that magic for free by just running JRuby on Graal
[18:19:16] headius: like we can run mandelbrot benchmark and similar things as fast as Truffle
[18:19:33] headius: faster than our manual numeric specialization even
[18:20:07] headius: so yeah we lean on deopt and safepoints heavily in standard JRuby, and the VMs are starting to catch up with what we need
[18:20:47] baweaver: What ban? Where ban?
[18:20:51] baweaver: I heard ban
[18:21:20] headius: it's an old and crazy story
[18:21:24] baweaver: ACTION slowly puts hammer down
[18:21:47] headius: I'm not sure it's even searchable anymore
[18:21:51] Xiti: has joined #ruby
[18:25:27] headius: aw man is there no bundle viz that doesn't require all the gems to be installable?
[18:25:29] headius: I just want the dep graph
[18:25:43] headius: trying to run rubygems.org on JRuby but something depends on kgi
[18:25:52] havenwood: Rubinius got it! ~5GB and 35min: 2147483648
[18:26:03] headius: havenwood: victory!
[18:26:10] headius: now tweet it
[18:26:29] headius: I have no idea why it would consume *any* memory for that
[18:27:42] VeryBewitching: has joined #ruby
[18:28:26] emilford: has joined #ruby
[18:30:41] bonhoeffer: has joined #ruby
[18:31:42] Trevoke`: has joined #ruby
[18:31:51] Syrum: has joined #ruby
[18:31:55] Creatornator: has joined #ruby
[18:34:36] emilford: has joined #ruby
[18:36:57] headius: https://gist.github.com/headius/7296808402fd2fae496310cf0baa7239
[18:38:03] havenwood: headius: nice! :-)
[18:41:20] al2o3-cr: well it's going past integer boundry
[18:41:51] al2o3-cr: so it's calling int2fix
[18:42:20] Syrum: has joined #ruby
[18:42:38] KevinSjoberg: has joined #ruby
[18:43:14] al2o3-cr: so integer + 1 overflows
[18:44:06] Syrum: has joined #ruby
[18:45:09] headius: al2o3-cr: seems like it should be fixed right?
[18:45:35] emilford: has joined #ruby
[18:45:37] michaelmeep__: has joined #ruby
[18:45:38] al2o3-cr: of course, yeah.
[18:46:11] Syrum: has joined #ruby
[18:46:38] michaelmeep__: Is there a replacement for `xargs file` in ruby? (I.e parsing a file type without relying on the extension?)
[18:46:56] kihacviz: has joined #ruby
[18:47:27] apeiros: michaelmeep__: uh, since when is xargs used for that? do you mean `file`?
[18:48:04] michaelmeep__: Sorry, yeah that’s right
[18:48:17] michaelmeep__: Trying to convert an old bash script
[18:48:20] apeiros: there's a gem which uses the same lib as file iirc
[18:48:35] apeiros: filemagic iirc. I use it somewhere, let me check.
[18:49:20] jenrzzz: has joined #ruby
[18:49:20] jenrzzz: has joined #ruby
[18:49:38] apeiros: ruby-filemagic
[18:50:13] tomphp: has joined #ruby
[18:50:27] apeiros: https://rubygems.org/gems/ruby-filemagic
[18:50:43] havenwood: magic(4) ftw
[18:52:29] havenwood: man 5 magic
[18:55:40] michaelmeep__: Why does it require rails?
[18:56:16] mtkd: has joined #ruby
[18:56:48] apeiros: how do you figure it would?
[18:57:13] michaelmeep__: N/m, was looking at the wrong gem
[18:57:56] jrheaton: has joined #ruby
[18:59:09] Eiam: it doesn't, libmagic is uh, a well known thing
[18:59:10] emilford: has joined #ruby
[18:59:14] Eiam: that has nothing to do with ruby or rails
[18:59:58] michaelmeep__: I initially gem install filemagic (which oddly requires rails) instead of gem install ruby-filemagic
[19:00:14] Eiam: `file` is a macOS thing
[19:00:39] michaelmeep__: Initially ran*
[19:00:47] Eiam: but it does look to use magic tests so
[19:00:51] apeiros: Eiam: huh? since when?
[19:01:22] Eiam: apeiros: browsin the man page, it looks like an apple addition ?
[19:01:36] apeiros: Eiam: well, it runs just fine on my linux boxen
[19:01:51] memo1: has joined #ruby
[19:01:53] Eiam: nah I was wrong
[19:01:55] Eiam: There has been a file command in every UNIX since at least Research Version 4 (man page dated November, 1973). The System V version introduced one significant major change: the external list of magic types. This slowed the program down slightly but made it a
[19:01:56] Eiam: lot more flexible.
[19:02:26] apeiros: `open` is an apple thing, though afaik there are *nix variants by now
[19:02:47] Eiam: First appeared in NextStep.
[19:03:31] apeiros: tbqh, I still think abandoning the metadata part of files was a stupid move by apple
[19:03:42] apeiros: that's one thing they did *a shitload* better than all other OSes
[19:04:13] NingaLeaf: has joined #ruby
[19:04:15] Eiam: wasn't it just resource forks
[19:04:19] Eiam: metadata under another name?
[19:04:24] Eiam: and now its xattrs instead
[19:04:30] apeiros: yeah, and files are just bytes
[19:04:39] apeiros: your "just" is asinine :-p
[19:04:51] bmurt: has joined #ruby
[19:05:07] apeiros: but yes, resource forks was the way the used to store metadata. and xattrs is not the same. that's bound to the FS, not the file. it's not transported.
[19:05:22] Eiam: all data is just bytes under another name!! jet fuel can't melt steel beams!
[19:05:49] Eiam: apeiros: xattrs are transported to many modern places.. box & dropbox support them
[19:05:54] banisterfiend: has joined #ruby
[19:06:14] Eiam: i did an analysis a year ago cause I had to and most places I looked had default support for xattrs or were heading in that direction..
[19:06:30] apeiros: so if you have special tooling maybe. that's great, so 0.001% of all ways to transmit files support it. awesome :-p
[19:06:49] emilford: has joined #ruby
[19:07:16] apeiros: but yeah, great, so only ~20y after having dropped metadata, we finally get a part of it back
[19:07:17] Eiam: cp, ditto... =p
[19:07:22] headius: magic numbers that aren't so magic
[19:07:55] Eiam: headius: I like to think of magic numbers as being magical to people when they first discover their existence
[19:08:42] Trevoke``: has joined #ruby
[19:09:16] headius: 0xCAFEBABE
[19:09:18] b10s_: has joined #ruby
[19:09:23] headius: name that magic number
[19:09:28] apeiros__: has joined #ruby
[19:09:49] amar: has joined #ruby
[19:09:55] Eiam: more of a deadbeef kind of guy myself
[19:10:28] AJA4351: has joined #ruby
[19:10:44] vondruch: has joined #ruby
[19:11:17] tdy: has joined #ruby
[19:11:31] jrafanie: has joined #ruby
[19:13:44] emilford: has joined #ruby
[19:15:49] kt: has joined #ruby
[19:17:38] tomphp: has joined #ruby
[19:18:30] GodFather: has joined #ruby
[19:18:40] headius: good old deadbeef
[19:19:03] SCHAPiE: has joined #ruby
[19:20:32] KeyJoo: has joined #ruby
[19:26:04] dviola: has joined #ruby
[19:26:16] mikkel-: has joined #ruby
[19:27:51] emilford: has joined #ruby
[19:30:37] spiette: has joined #ruby
[19:32:09] vikaton: has joined #ruby
[19:32:52] mtkd: has joined #ruby
[19:37:00] emilford: has joined #ruby
[19:37:32] tAn: has joined #ruby
[19:39:30] shenghi: has joined #ruby
[19:42:23] cagomez: has joined #ruby
[19:48:55] SeepingN: has joined #ruby
[19:51:38] ellcs: has joined #ruby
[19:53:36] jerematic: has joined #ruby
[19:54:29] jerematic: has joined #ruby
[19:55:21] jcalla: has joined #ruby
[19:58:47] emilford: has joined #ruby
[20:00:19] phaul: has joined #ruby
[20:00:39] Trevoke``: has left #ruby: ("ERC (IRC client for Emacs 26.1)")
[20:02:03] roshanavand: has joined #ruby
[20:03:44] karapetyan: has joined #ruby
[20:06:44] emilford: has joined #ruby
[20:09:45] motstgo: has left #ruby: ("WeeChat 1.9")
[20:17:21] cagomez: has joined #ruby
[20:17:39] Mia: has joined #ruby
[20:17:57] sanscoeur: has joined #ruby
[20:18:07] emilford: has joined #ruby
[20:18:08] mtkd: has joined #ruby
[20:18:55] mjolnird: has joined #ruby
[20:19:33] bonhoeffer: has joined #ruby
[20:19:55] alfiemax: has joined #ruby
[20:21:01] dendazen: has joined #ruby
[20:21:41] alfiemax: has joined #ruby
[20:28:47] jidar: has joined #ruby
[20:34:25] eelster: has joined #ruby
[20:36:14] Azure: has joined #ruby
[20:36:39] tomphp: has joined #ruby
[20:38:15] emilford: has joined #ruby
[20:45:47] Creatornator: has joined #ruby
[20:46:38] mtkd: has joined #ruby
[20:50:10] emilford: has joined #ruby
[20:52:19] bmurt: has joined #ruby
[20:56:03] eckhardt: has joined #ruby
[21:03:05] dinfuehr: has joined #ruby
[21:05:08] dendazen: has joined #ruby
[21:08:11] emilford: has joined #ruby
[21:15:22] michael_mbp: has joined #ruby
[21:16:47] emilford: has joined #ruby
[21:19:37] bonhoeffer: has joined #ruby
[21:20:07] SteenJobs: has joined #ruby
[21:21:20] weaksauce: has joined #ruby
[21:22:25] dendazen: has joined #ruby
[21:26:38] GodFather: has joined #ruby
[21:35:06] emilford: has joined #ruby
[21:42:30] emilford: has joined #ruby
[21:43:24] jenrzzz: has joined #ruby
[21:43:59] wilbert: has joined #ruby
[21:46:26] p0p0pr37_: has joined #ruby
[21:48:21] emilford: has joined #ruby
[21:50:58] phaul: has joined #ruby
[22:00:47] tAn: has joined #ruby
[22:01:00] cagomez: has joined #ruby
[22:06:11] bonhoeffer: has joined #ruby
[22:07:51] emilford: has joined #ruby
[22:08:20] mtkd: has joined #ruby
[22:11:55] aruns: has joined #ruby
[22:12:12] aruns: Hi, does Ruby provide anything by default for creating and maintaining user sessions?
[22:13:16] Paraxial: has joined #ruby
[22:13:24] aruns: How about SQLite?
[22:13:29] aruns: It's pretty nice and lightweight.
[22:13:59] aruns: Ignore last two messages.
[22:15:30] emilford: has joined #ruby
[22:15:33] havenwood: aruns: Rack has Rack::Session with options for Cookie, Memcache or Pool.
[22:15:53] havenwood: aruns: https://www.rubydoc.info/gems/rack/Rack/Session/Cookie
[22:15:57] havenwood: aruns: https://www.rubydoc.info/gems/rack/Rack/Session/Memcache
[22:16:03] havenwood: aruns: https://www.rubydoc.info/gems/rack/Rack/Session/Pool
[22:16:04] aruns: havenwood: Awesome, thanks.
[22:22:24] venmx: has joined #ruby
[22:23:32] karapetyan: has joined #ruby
[22:23:51] emilford: has joined #ruby
[22:24:51] tAn: has joined #ruby
[22:33:07] KevinSjoberg: has joined #ruby
[22:33:29] emilford: has joined #ruby
[22:37:13] dviola: has joined #ruby
[22:40:08] TheBetrayer: has joined #ruby
[22:41:28] eblip: has joined #ruby
[22:45:01] emilford: has joined #ruby
[22:49:49] samosaphile: has joined #ruby
[22:57:58] sanscoeur: has joined #ruby
[22:59:28] emilford: has joined #ruby
[23:01:41] jenrzzz: has joined #ruby
[23:04:28] nogic: has joined #ruby
[23:07:40] emilford: has joined #ruby
[23:13:06] emilford: has joined #ruby
[23:13:11] jenrzzz: has joined #ruby
[23:14:29] cschneid: has joined #ruby
[23:14:36] dendazen: has joined #ruby
[23:19:05] Xiti: has joined #ruby
[23:20:00] coderphive: has joined #ruby
[23:20:31] emilford: has joined #ruby
[23:26:15] nertzy: has joined #ruby
[23:26:46] connor_goodwolf: has joined #ruby
[23:31:26] emilford: has joined #ruby
[23:32:47] amar: has joined #ruby
[23:40:17] emilford: has joined #ruby
[23:40:31] t0xik: has joined #ruby
[23:45:19] emilford: has joined #ruby
[23:47:00] orbyt_: has joined #ruby
[23:57:16] SteenJobs: has joined #ruby