« Back to channel list

#ruby - 21 July 2016

« Back 1 day Forward 1 day »
[00:02:50] bgmarx: has joined #ruby
[00:03:23] vjacob: has joined #ruby
[00:03:36] astrobunny: has joined #ruby
[00:04:11] vjacob: has joined #ruby
[00:05:10] Asher: has joined #ruby
[00:06:02] mostlybadfly: has joined #ruby
[00:09:10] moeabdol3: has joined #ruby
[00:13:27] al2o3-cr1: has joined #ruby
[00:13:52] SirOliver: has joined #ruby
[00:14:31] ReK2: has joined #ruby
[00:14:33] abhinavmehta: has joined #ruby
[00:17:00] ledestin: has joined #ruby
[00:17:26] ry4nn: has joined #ruby
[00:20:27] rickmasta: has joined #ruby
[00:24:31] Nawn: has joined #ruby
[00:27:45] nankyokusei: has joined #ruby
[00:30:23] macsteps: has joined #ruby
[00:36:41] chipotle: has joined #ruby
[00:37:27] zacts: has joined #ruby
[00:37:52] SirOliver: has joined #ruby
[00:39:29] Asher: has joined #ruby
[00:40:36] jenrzzz: has joined #ruby
[00:42:58] mattwashere: has joined #ruby
[00:43:53] haydenc: has joined #ruby
[00:44:11] douglascorrea: has joined #ruby
[00:44:34] ss_much: has joined #ruby
[00:46:00] brixen: has joined #ruby
[00:50:51] SilverKey: has joined #ruby
[00:53:20] jhack: has joined #ruby
[00:54:02] zacts: hi rubyists
[00:54:16] bgmarx_: has joined #ruby
[00:57:02] chipotle: has joined #ruby
[00:57:10] Devalo: has joined #ruby
[00:58:13] chipotle: has joined #ruby
[00:58:51] cyphase: has joined #ruby
[01:01:22] arescorpio: has joined #ruby
[01:05:09] abhinavmehta: has joined #ruby
[01:05:12] yfeldblum: has joined #ruby
[01:08:11] chipotle: has joined #ruby
[01:09:25] LoneHerm_: has joined #ruby
[01:11:21] banisterfiend: anyone here familiar with puma? how do i turn off the worker timeout? (for local development so i can debug during a request without the puma worker being killed)
[01:13:23] l4v2: has joined #ruby
[01:17:39] AngryBuzzy: has joined #ruby
[01:21:44] Coldblackice: has joined #ruby
[01:22:10] CloCkWeRX: has joined #ruby
[01:28:37] dikaio: has joined #ruby
[01:29:03] sucks: has joined #ruby
[01:29:14] pawnbox: has joined #ruby
[01:29:14] daffy_duck: has joined #ruby
[01:31:11] A_Drone: has joined #ruby
[01:32:08] neilvilela: has joined #ruby
[01:33:34] Ropeney: has joined #ruby
[01:33:55] memorasus1: has joined #ruby
[01:35:03] gregf: has joined #ruby
[01:36:50] xall: has joined #ruby
[01:36:54] abhinavmehta: has joined #ruby
[01:38:02] neilvilela: has joined #ruby
[01:38:24] dunpeal: has joined #ruby
[01:38:25] KCmetro: has joined #ruby
[01:41:14] niftylettuce: has joined #ruby
[01:42:06] Hobogrammer: has joined #ruby
[01:42:29] kavanagh: has joined #ruby
[01:44:25] Mia: has joined #ruby
[01:44:25] Mia: has joined #ruby
[01:45:28] Rodya_: has joined #ruby
[01:48:56] madgen: has joined #ruby
[01:50:02] ReK2: has joined #ruby
[01:53:57] blackmesa: has joined #ruby
[01:58:38] haydenc: trying to make ruby work in windows makes me want to kill myself
[01:59:23] zacts: lol @ haydenc
[02:00:57] bgmarx: has joined #ruby
[02:01:03] haydenc: is there a decent alternative to rvm for windows? since apparently rvm isn't supported on windows
[02:01:08] haydenc: pik is no longer maintained
[02:01:17] pawnbox: has joined #ruby
[02:01:18] jiblet: has left #ruby: ()
[02:02:33] yoongkang: has joined #ruby
[02:07:36] enterprisey: has joined #ruby
[02:08:19] zacts: haydenc: are you using cygwin, or vanilla windows?
[02:08:23] zacts: and which version of windows?
[02:08:35] AndyBotwin: has joined #ruby
[02:09:03] zacts: (I didn't mean my lol to sound rude, I meant that I think we have all dealt with windows issues at one time or another)
[02:09:09] zacts: but yeah. let's see
[02:09:32] AngryBuzzy: has joined #ruby
[02:09:44] haydenc: yeah normally i'd tell windows to fuck off but I don't have a linux machine at home ATM (laptop died) and have a deadline for getting this small project done
[02:09:59] haydenc: and i'm new to ruby so it's just more headaches there
[02:10:16] A_Drone: has joined #ruby
[02:12:26] zacts: haydenc: I don't know about windows (so I'll have to let someone more knowledgeable than I to fully answer), but I did find this: http://stackoverflow.com/questions/3648744/how-to-have-multiple-versions-of-ruby-and-rails-and-their-combinations-on-windo
[02:12:47] zacts: see: https://bitbucket.org/jonforums/uru/wiki/Downloads
[02:13:02] haydenc: thanks zacts
[02:13:26] zacts: sure, hope it helps, but do wait if someone has a better answer
[02:13:40] haydenc: If anyone wants to help me with homework assignment I'd very very grateful. Not asking you to code anything for me, just answer questions in PM
[02:14:05] zacts: I would help, but I'm working on some projects right now myself for school :-P
[02:14:12] haydenc: no worries
[02:16:40] dionysus69: has joined #ruby
[02:19:58] JeanCarloMachado: has joined #ruby
[02:22:00] bgmarx: has left #ruby: ()
[02:23:20] patteh: has joined #ruby
[02:28:36] nankyokusei: has joined #ruby
[02:28:38] haydenc: nothing works. i'm calmly pulling back the hammer on my gun and pointing it at my temple
[02:28:44] haydenc: i hate this so much
[02:30:30] haydenc: sweet jesus just realized i had mint installed already on a VM
[02:31:05] tmtwd: has joined #ruby
[02:32:13] eam: haydenc: I'll probably answer your questions if you share them in channel
[02:32:17] eam: not via pm though
[02:33:36] haydenc: thank you. I was thinking PM just to avoid spamming the channel
[02:33:46] haydenc: up to you though
[02:34:46] pawnbox: has joined #ruby
[02:39:02] patteh_: has joined #ruby
[02:39:37] pawnbox_: has joined #ruby
[02:41:21] patteh: has joined #ruby
[02:41:36] SilverKey: has joined #ruby
[02:41:42] ramfjord: has joined #ruby
[02:42:10] aries_liuxueyang: has joined #ruby
[02:45:57] Ropeney: has joined #ruby
[02:51:16] rajs: has joined #ruby
[02:53:30] epitron: has joined #ruby
[02:53:58] zacts: haydenc: what kind of course is this, that is using Ruby?
[02:54:06] Guest60828: has joined #ruby
[02:55:06] eam: haydenc: won't be spam, ruby questions are why we're here - often folks can learn ruby by following along!
[02:55:50] zacts: it sounds like a cool course
[02:56:55] blackmesa: has joined #ruby
[03:00:03] karapetyan: has joined #ruby
[03:00:45] khizar: has joined #ruby
[03:01:52] Asher: has joined #ruby
[03:02:31] haydenc: zacts: it's more of an internship really, and it's "homework" in that it's a problem that isn't really something you'd do in the real world. given as a learning exercise
[03:02:59] techietrash: has joined #ruby
[03:03:32] johnny56_: has joined #ruby
[03:03:34] cyphase: has joined #ruby
[03:05:01] rajs_: has joined #ruby
[03:06:36] bogdanteleaga: has joined #ruby
[03:06:47] Mia: has joined #ruby
[03:06:47] Mia: has joined #ruby
[03:08:56] eam: haydenc: so, what is it?
[03:10:14] govg: has joined #ruby
[03:10:26] LoneHermit: has joined #ruby
[03:12:23] c0mrad3: has joined #ruby
[03:18:34] Jayson_Virissimo: has joined #ruby
[03:20:32] Devalo: has joined #ruby
[03:20:56] k3rn31: has joined #ruby
[03:26:02] postapocallyptic: http://pastebin.com/4HExeUDr <--- this code doesn't output the desired results. How can I fix this?
[03:26:02] ruby[bot]: postapocallyptic: as I told you already, please use https://gist.github.com
[03:28:49] A_Drone: has joined #ruby
[03:29:26] epitron: has joined #ruby
[03:34:49] epitron: has joined #ruby
[03:35:03] tmtwd: has joined #ruby
[03:41:09] voodoofish4301: has joined #ruby
[03:44:47] shevy: postapocallyptic why do you use begin/end
[03:45:50] niftylettuce: has joined #ruby
[03:46:54] shevy: postapocallyptic here the threads are part of the array but all dead, run it: https://gist.github.com/shevegen/6e6b7da9d17d477073caf9bb7df73c32
[03:55:15] jenrzzz: has joined #ruby
[03:55:15] jenrzzz: has joined #ruby
[03:55:22] kareeoleez: has joined #ruby
[03:55:57] xall_: has joined #ruby
[03:57:34] gix: has joined #ruby
[03:59:35] mattwashere: has joined #ruby
[03:59:42] Mirubiri: has joined #ruby
[03:59:58] blackmesa: has joined #ruby
[04:04:54] aryaching: has joined #ruby
[04:05:08] conta: has joined #ruby
[04:05:09] jishankai: has joined #ruby
[04:06:29] howdoi: has joined #ruby
[04:11:42] LoneHerm_: has joined #ruby
[04:15:42] xall_: has joined #ruby
[04:19:15] epitron: has joined #ruby
[04:22:01] Rodya_: has joined #ruby
[04:24:22] alfiemax: has joined #ruby
[04:24:39] pawnbox: has joined #ruby
[04:26:43] roamingdog: has joined #ruby
[04:29:29] nankyokusei: has joined #ruby
[04:29:53] kitikonti: has joined #ruby
[04:31:05] k3rn31: has joined #ruby
[04:32:49] ericlee: has joined #ruby
[04:33:07] pawnbox: has joined #ruby
[04:34:10] Pupp3tm4st3r: has joined #ruby
[04:36:25] BTRE: has joined #ruby
[04:36:41] pawnbox: has joined #ruby
[04:43:05] A_Drone: has joined #ruby
[04:44:49] beilabs: has joined #ruby
[04:45:13] madsa: has joined #ruby
[04:45:33] hahuang61: has joined #ruby
[04:53:11] Madplatypus: has joined #ruby
[04:59:54] dminuoso: has joined #ruby
[05:00:17] tmtwd: has joined #ruby
[05:00:32] crdpink: has joined #ruby
[05:07:30] Rodya_: has joined #ruby
[05:08:50] beilabs_: has joined #ruby
[05:09:48] l4v2: has joined #ruby
[05:12:16] LoneHermit: has joined #ruby
[05:13:27] blackmesa: has joined #ruby
[05:16:12] zacts: has joined #ruby
[05:17:20] zacts: hi rubyists
[05:18:00] zacts: I guess I greet too much here
[05:18:00] moeabdol3: has joined #ruby
[05:18:04] zacts: I always forget
[05:22:27] alfiemax: has joined #ruby
[05:25:21] lxsameer: has joined #ruby
[05:27:35] eam: zacts: howdy
[05:29:10] rhg135: has joined #ruby
[05:30:50] apeiros: zacts: re oga: no, I haven't. haven't had any new xml related stuff to do since it exists.
[05:31:13] apeiros: and the old stuff works fine on nokogiri
[05:31:24] jenrzzz: has joined #ruby
[05:31:24] jenrzzz: has joined #ruby
[05:31:27] shevy: zacts have you finally finished all the ruby books
[05:34:06] tmtwd: has joined #ruby
[05:35:26] zotherstupidguy: has joined #ruby
[05:36:11] craigp: has joined #ruby
[05:38:44] elifoster: has joined #ruby
[05:40:02] Pupp3tm4st3r: has joined #ruby
[05:43:02] skade: has joined #ruby
[05:46:03] jaguarmagenta: has joined #ruby
[05:46:50] moeabdol3: has joined #ruby
[05:48:10] rickmasta: has joined #ruby
[05:48:14] Dimik--: has joined #ruby
[05:48:35] xall_: has joined #ruby
[05:50:02] craigp: has joined #ruby
[05:50:21] smathy: has joined #ruby
[05:51:16] toretore: has joined #ruby
[05:53:32] cliluw: has joined #ruby
[05:53:35] jishankai: has joined #ruby
[05:53:42] aupadhye: has joined #ruby
[05:53:55] craigp: has joined #ruby
[05:54:38] bhaak: has joined #ruby
[05:56:01] gregf_: has joined #ruby
[05:56:15] craigp: has joined #ruby
[05:57:04] zacts: shevy: not yet
[05:57:17] zacts: I'm still working on this ruby command line apps book off-and-on
[06:02:29] bused: has joined #ruby
[06:03:35] bused: has joined #ruby
[06:03:53] astrobun_: has joined #ruby
[06:05:56] Hyuk: has joined #ruby
[06:07:00] ur5us: has joined #ruby
[06:08:05] dminuoso: has joined #ruby
[06:09:20] Cohedrin: has joined #ruby
[06:10:12] roamingdog: has joined #ruby
[06:13:17] LoneHermit: has joined #ruby
[06:14:45] anisha: has joined #ruby
[06:14:58] moeabdol3: has joined #ruby
[06:16:25] paatalaBhairavi: has joined #ruby
[06:16:28] blackmesa: has joined #ruby
[06:16:31] paatala_bhairavi: has joined #ruby
[06:16:48] moeabdol: has joined #ruby
[06:16:55] djbkd: has joined #ruby
[06:18:29] dunpeal: has joined #ruby
[06:21:04] yfeldblum: has joined #ruby
[06:22:28] yfeldblum: has joined #ruby
[06:22:45] jishankai: has joined #ruby
[06:24:58] dminuoso_: has joined #ruby
[06:28:37] mrgrieves: has joined #ruby
[06:30:17] nankyokusei: has joined #ruby
[06:30:22] aganov: has joined #ruby
[06:31:25] roamingdog: has joined #ruby
[06:31:29] codecop: has joined #ruby
[06:31:30] Devalo: has joined #ruby
[06:32:27] firstdayonthejob: has joined #ruby
[06:35:27] conta: has joined #ruby
[06:35:31] zacts: has joined #ruby
[06:36:36] hipertracker: has joined #ruby
[06:39:27] xall_: has joined #ruby
[06:39:40] bazzy: has joined #ruby
[06:41:44] yardenbar: has joined #ruby
[06:42:09] cleopatra: has joined #ruby
[06:42:17] cleopatra: hello people
[06:42:21] davedev24: has joined #ruby
[06:44:06] ur5us: has joined #ruby
[06:44:27] raeoks: has joined #ruby
[06:48:17] rickmasta: has joined #ruby
[06:50:13] jenrzzz: has joined #ruby
[06:51:01] dminuoso: has joined #ruby
[06:51:14] patteh: has joined #ruby
[06:53:06] Devalo: has joined #ruby
[06:53:07] zacts: has joined #ruby
[06:53:30] shevy: anyone seen http://bestgems.org/ yet? I just found it via google accidentally
[06:53:46] havenwood: cleopatra: hello
[06:54:41] finnnnnnnnnnn_: has joined #ruby
[06:54:44] cleopatra: hi havenwood :P
[06:55:04] abhinavmehta: has joined #ruby
[06:55:53] Almoullim: has joined #ruby
[06:56:31] k3rn31: has joined #ruby
[06:57:00] ghostly: has joined #ruby
[06:59:07] Coldblackice_: has joined #ruby
[06:59:11] dminuoso: has joined #ruby
[07:03:33] dionysus69: has joined #ruby
[07:04:02] ur5us: has joined #ruby
[07:04:14] nmollerup: has joined #ruby
[07:04:24] skade: has joined #ruby
[07:09:41] epitron: has joined #ruby
[07:11:03] rickmasta: has joined #ruby
[07:11:08] TomyWork: has joined #ruby
[07:11:51] xall_: has joined #ruby
[07:14:42] Macaveli: has joined #ruby
[07:19:30] blackmesa: has joined #ruby
[07:20:03] Hounddog: has joined #ruby
[07:20:18] epitron: has joined #ruby
[07:22:00] antgel: has joined #ruby
[07:25:15] atomx: has joined #ruby
[07:26:01] sucks: has joined #ruby
[07:26:35] tulak: has joined #ruby
[07:27:19] atomx: has joined #ruby
[07:27:38] the_drow: has joined #ruby
[07:28:29] atomx: Hi, I have an array of hashes and each hash has the same keys - What's the most elegant way to get a certain value from all hashes? Instead of iterating of j[0]["name"] and so on
[07:28:48] atomx: I remember I saw something for this in RubyMonk but can't remember :(
[07:29:45] beilabs: has joined #ruby
[07:30:30] abhinavmehta: has joined #ruby
[07:30:37] atomx: Array#map is the only thing that comes to mind really
[07:30:38] tulak: has joined #ruby
[07:32:55] haxrbyte_: has joined #ruby
[07:35:49] Radar: atom_: did you try map?
[07:36:00] troulouliou_div2: has joined #ruby
[07:37:17] mark_66: has joined #ruby
[07:39:13] atomx: yeah map works, I was just wondering about other possible solutions (or maybe some syntax that I don't know of)
[07:40:35] jishankai: has joined #ruby
[07:42:16] Macaveli: has joined #ruby
[07:42:19] dminuoso: has joined #ruby
[07:44:31] andikr: has joined #ruby
[07:44:43] shevy: could .select work with that new thingy... .dig or whatever it was on class Hash
[07:45:47] Dimik--: has joined #ruby
[07:45:53] abhinavmehta: has joined #ruby
[07:48:16] edwinvdgraaf: has joined #ruby
[07:49:31] multi_io_: has joined #ruby
[07:50:13] Zarthus: I wonder if there is a ganja library for ruby
[07:50:41] Zarthus: Hash.smoke would probably be one of the methods in there.
[07:52:59] anisha: has joined #ruby
[07:53:04] atomx: shevy: yeah that might work, but only if it was a hash containing hashes I guess
[07:55:49] twinklerock: has joined #ruby
[07:55:59] epitron: has joined #ruby
[07:56:10] skade: has joined #ruby
[07:56:18] pawnbox: has joined #ruby
[07:56:59] raeoks: has joined #ruby
[07:57:30] abhinavmehta: has joined #ruby
[08:00:52] beilabs: has joined #ruby
[08:02:37] dionysus69: has joined #ruby
[08:02:37] bused: has joined #ruby
[08:02:45] Ishido: has joined #ruby
[08:02:58] blaxter: has joined #ruby
[08:02:58] roshanavand: has joined #ruby
[08:04:17] jhack: has joined #ruby
[08:06:16] madgen: has joined #ruby
[08:10:17] conta: has joined #ruby
[08:11:07] yeticry: has joined #ruby
[08:12:57] roshanavand: has joined #ruby
[08:15:57] beilabs: has joined #ruby
[08:16:57] kab: has joined #ruby
[08:16:57] Couch: has joined #ruby
[08:17:58] Bugboy1028: has joined #ruby
[08:20:38] blur3d: has joined #ruby
[08:20:49] roshanavand: has joined #ruby
[08:22:05] lizard2010: has joined #ruby
[08:23:54] blackmesa: has joined #ruby
[08:24:24] snowy: has joined #ruby
[08:24:58] ddffg: has joined #ruby
[08:25:40] c0mrad3: has joined #ruby
[08:26:26] jaruga___: has joined #ruby
[08:27:29] xue: has joined #ruby
[08:28:31] ReK2GnULinuX: has joined #ruby
[08:28:45] xue: has joined #ruby
[08:29:19] marr: has joined #ruby
[08:31:09] nankyokusei: has joined #ruby
[08:31:30] bweston92: has joined #ruby
[08:31:32] astrobun_: has joined #ruby
[08:35:27] mrgrieves: has joined #ruby
[08:36:59] alfiemax: has joined #ruby
[08:37:38] yeticry: has joined #ruby
[08:38:15] Silthias: has joined #ruby
[08:40:23] Silthias1: has joined #ruby
[08:41:10] spudowiar: has joined #ruby
[08:50:00] aufi: has joined #ruby
[08:54:02] tercenya: has joined #ruby
[08:56:29] senayar: has joined #ruby
[08:59:23] killerkamel: has joined #ruby
[08:59:34] tvw: has joined #ruby
[09:01:04] giz|work: has joined #ruby
[09:02:05] blackmesa: has joined #ruby
[09:02:29] ur5us: has joined #ruby
[09:03:22] Guest60828: has joined #ruby
[09:08:52] shevy: language rankings! http://redmonk.com/sogrady/2016/07/20/language-rankings-6-16/?
[09:10:19] roamingdog: has joined #ruby
[09:11:57] yfeldblum: has joined #ruby
[09:12:16] shevy: interesting that php is so high up there
[09:12:50] minimalism: has joined #ruby
[09:14:12] shevy: worse is better stands the test of time
[09:14:33] beilabs: has joined #ruby
[09:14:56] LoneHermit: has joined #ruby
[09:17:44] matp: has joined #ruby
[09:19:58] epitron: has joined #ruby
[09:20:41] workmad3: has joined #ruby
[09:21:02] madgen: has joined #ruby
[09:26:39] sdothum: has joined #ruby
[09:30:31] mbreedlove: has joined #ruby
[09:30:38] tercenya: has joined #ruby
[09:32:59] yoongkang: has joined #ruby
[09:36:53] epitron: has joined #ruby
[09:39:41] xue: has joined #ruby
[09:40:06] zenlot: has joined #ruby
[09:43:21] eprasad: has joined #ruby
[09:47:45] mrd_: has joined #ruby
[09:48:19] beilabs_: has joined #ruby
[09:48:31] abhinavmehta: has joined #ruby
[09:50:07] roshanavand: has joined #ruby
[09:50:39] davee_: has joined #ruby
[09:53:43] moei: has joined #ruby
[09:54:52] SirOliver: has joined #ruby
[09:55:12] tulak: has joined #ruby
[09:59:06] c355E3B: has joined #ruby
[09:59:54] epitron: has joined #ruby
[10:05:45] astrobun_: has joined #ruby
[10:06:03] epitron: has joined #ruby
[10:07:28] xall_: has joined #ruby
[10:10:20] blackmesa: has joined #ruby
[10:10:49] Azure: has joined #ruby
[10:11:01] aspiers: has joined #ruby
[10:12:00] ur5us: has joined #ruby
[10:15:34] karapetyan: has joined #ruby
[10:16:01] LoneHermit: has joined #ruby
[10:16:22] mbreedlove: has joined #ruby
[10:19:49] bused_: has joined #ruby
[10:19:55] CharlesN: has joined #ruby
[10:20:35] rickmasta: has joined #ruby
[10:27:22] Kedare: has joined #ruby
[10:31:12] xue: has joined #ruby
[10:32:02] nankyokusei: has joined #ruby
[10:36:45] madgen: has joined #ruby
[10:38:53] jaruga____: has joined #ruby
[10:39:16] KCmetro: has joined #ruby
[10:40:25] aufi: has joined #ruby
[10:42:44] CodeAleks: has joined #ruby
[10:45:25] pawnbox: has joined #ruby
[10:48:03] rodfersou: has joined #ruby
[10:50:59] blackmesa: has joined #ruby
[10:51:32] platzhirsch: has joined #ruby
[10:54:00] bruce_lee: has joined #ruby
[10:54:00] bruce_lee: has joined #ruby
[10:56:24] hk238: has joined #ruby
[10:59:29] killerkamel: has joined #ruby
[10:59:58] GodFather: has joined #ruby
[11:00:46] nhhc: has joined #ruby
[11:00:52] moeabdol: has joined #ruby
[11:02:09] jmignault: has joined #ruby
[11:05:38] conta: has joined #ruby
[11:07:31] karapetyan: has joined #ruby
[11:08:40] aspiers: has joined #ruby
[11:09:51] contradictioned: has joined #ruby
[11:12:00] JeanCarloMachado: has joined #ruby
[11:16:31] trillozazza: has joined #ruby
[11:16:43] LoneHermit: has joined #ruby
[11:17:33] JeanCarloMachado: has joined #ruby
[11:18:09] beilabs: has joined #ruby
[11:18:25] jhass: trillozazza: can we help you with anything?
[11:19:13] skade: has joined #ruby
[11:19:16] alfiemax: has joined #ruby
[11:19:25] Regulati_: has joined #ruby
[11:20:03] tvw: has joined #ruby
[11:28:25] lessless: has joined #ruby
[11:29:17] phredus: has joined #ruby
[11:30:15] ldnunes: has joined #ruby
[11:31:23] moeabdol: has joined #ruby
[11:33:04] Asher: has joined #ruby
[11:34:20] jaguarmagenta: has joined #ruby
[11:36:41] mbreedlove: has joined #ruby
[11:38:18] chip_: has joined #ruby
[11:38:53] johnmilton: has joined #ruby
[11:39:04] raeoks: has joined #ruby
[11:39:55] Bish: has joined #ruby
[11:39:57] Hanmac: has joined #ruby
[11:42:00] rbaron: has joined #ruby
[11:42:07] minimalism: has joined #ruby
[11:44:52] mbreedlove: has joined #ruby
[11:45:58] skade: has joined #ruby
[11:47:03] armyriad: has joined #ruby
[11:47:49] raeoks: has joined #ruby
[11:48:07] camilasan: has joined #ruby
[11:52:58] Guest69909: has joined #ruby
[11:53:59] antgel: has joined #ruby
[11:54:14] chipotle: has joined #ruby
[11:54:54] AlexRussia: has joined #ruby
[11:55:58] xall_: has joined #ruby
[11:56:14] Guest69909: has joined #ruby
[11:57:10] vondruch_: has joined #ruby
[11:58:19] yardenbar: has joined #ruby
[11:58:19] Guest69909: has joined #ruby
[12:00:17] Guest69909: has joined #ruby
[12:02:18] Guest69909: has joined #ruby
[12:05:29] synthroid: has joined #ruby
[12:08:15] andywojo: If I use the peach gem (parallel each) can I safely have each 'thread' write to a file at the same time?
[12:08:18] andywojo: Or do I need to do something specia
[12:09:10] pawnbox: has joined #ruby
[12:10:02] AngryBuzzy: has joined #ruby
[12:10:59] cd-rum: has joined #ruby
[12:11:18] toretore: AndyWojo: no
[12:11:21] ljarvis_: AndyWojo: nope
[12:11:34] toretore: all peach does is create some threads and run your code in them
[12:11:36] toretore: quite useless
[12:11:40] toretore: and dangerous
[12:12:04] augcesar: has joined #ruby
[12:12:06] andywojo: So I can't just have them all write to a file? I have a 1000 files I want to loop through and append them all to one master file
[12:12:39] toretore: if you want to use threads, create them yourself and take care of the synchronization yourself
[12:12:45] toretore: don't use peach
[12:12:47] andywojo: Yeah, not gonna do that
[12:12:59] ljarvis_: sounds like a bad idea to use threads for that kind of job
[12:13:06] andywojo: Yeah I'll just do it serially
[12:13:23] toretore: you'll probably not save much cpu time on mri anyway
[12:14:33] czerasz: has joined #ruby
[12:15:06] andywojo: Thanks for the advice
[12:20:32] cd-rum: has joined #ruby
[12:21:18] bkxd: has joined #ruby
[12:23:24] l4v2: has joined #ruby
[12:23:31] umdstu: has joined #ruby
[12:25:07] pawnbox: has joined #ruby
[12:25:44] madsa: has joined #ruby
[12:27:11] postapocallyptic: hi shevy, in the code you fixed for me, on line 24 why do you call the join method right after creating a new ? and on line 28 why run the iterator even? and finally pp array_of_threads.
[12:27:43] postapocallyptic: a new Thread. array_of_threads << Thread.new{ arr[$iter].print_out }.join
[12:28:13] blackgoat: has joined #ruby
[12:29:34] zotherst1: has joined #ruby
[12:30:22] thoraxe: has joined #ruby
[12:31:55] dionysus69: has joined #ruby
[12:33:05] nankyokusei: has joined #ruby
[12:33:08] LoneHermit: has joined #ruby
[12:34:02] vondruch: has joined #ruby
[12:36:13] shevy: postapocallyptic I just modified your code; as you can see when you compare to your code, the output is different
[12:36:20] shevy: that time we have a collection of dead threads
[12:36:26] shevy: in your case, we had nil objects
[12:40:55] madsa: postapocallyptic, that code will create threads that run synchronously which defeats the purpose of the threads
[12:43:30] aufi_: has joined #ruby
[12:47:57] Ishido: has joined #ruby
[12:48:27] inukshuk_: has joined #ruby
[12:49:54] roamingdog: has joined #ruby
[12:50:15] xall_: has joined #ruby
[12:51:08] ur5us: has joined #ruby
[12:51:27] jenrzzz: has joined #ruby
[12:51:53] jaguarmagenta: has joined #ruby
[12:53:29] Tempesta: has joined #ruby
[12:53:52] Guest60828: has joined #ruby
[12:57:37] AgentVenom: has joined #ruby
[12:59:33] killerkamel: has joined #ruby
[13:02:07] McSoFake: has joined #ruby
[13:03:23] postapocallyptic: has joined #ruby
[13:03:40] blackmesa: has joined #ruby
[13:03:46] JakFrist: has joined #ruby
[13:04:57] Mia: has joined #ruby
[13:04:58] Mia: has joined #ruby
[13:05:14] epitron: has joined #ruby
[13:05:24] hahuang65: has joined #ruby
[13:08:01] ramortegui: has joined #ruby
[13:08:56] aupadhye: has joined #ruby
[13:09:46] malconis: has joined #ruby
[13:11:00] malconis: has joined #ruby
[13:12:11] dunpeal: has joined #ruby
[13:15:29] greister: has joined #ruby
[13:16:09] desmondhume: has joined #ruby
[13:20:47] dminuoso: Is there an interface an object must satisfy to be used inside Ranges?
[13:21:00] edwardly: has joined #ruby
[13:21:00] edwardly: has joined #ruby
[13:21:33] dvinciguerra_: has joined #ruby
[13:21:54] greister: has joined #ruby
[13:21:56] Mon_Ouie: Yes, you must implement #<=> (see Comparable) and #succ (returns the successor of the receiver)
[13:22:09] dminuoso: Mon_Ouie: Ah thank you.
[13:22:31] greister: has joined #ruby
[13:24:30] ChiefAlexander: has joined #ruby
[13:24:54] moeabdol: has joined #ruby
[13:26:14] jhass: the latter only if you want to actually be able to expand the range though
[13:26:20] goeast: has joined #ruby
[13:26:39] Macaveli: has joined #ruby
[13:26:57] dminuoso: jhass: Well I have the need to iterate over it. That makes the need for <=> obvious.
[13:27:54] goeast: Hello ! db.execute("SELECT name FROM artists ORDER BY name ASC") I would like this statement to returns an array of strings. Any hints ?
[13:28:59] fmcgeough: has joined #ruby
[13:29:32] jhass: goeast: what's db?
[13:29:46] goeast: database its because I have a sql database
[13:29:52] zotherstupidguy: has joined #ruby
[13:29:55] jhass: no, which class
[13:30:11] dminuoso: Object! :-P
[13:30:19] jhass: ACTION slaps dminuoso
[13:30:37] jaiks: has joined #ruby
[13:30:40] goeast: def sorted_artists(db)
[13:30:42] goeast: puts db.execute("SELECT name FROM artists ORDER BY name ASC")
[13:30:56] goeast: (remove the puts)
[13:32:22] andywojo: So I have a 23GB log file with 2 colums I care about, I'm looping through the file and creating a simple k => v hash (where v is an array of things). But the columns contain many of the same things, and I'm doing a .uniq after it's loaded all of the data into the array... would it be faster to not insert it into the array and check to see if the duplicate
[13:32:22] andywojo: already exists?
[13:32:32] aegis3121: has joined #ruby
[13:33:00] manveru: goeast: where does the `db` variable come from?
[13:33:02] andywojo: Also, I'm loading the file into an array to loop over by doing %x[cat file].split("\n"), I'm thinking that's also bad.
[13:33:15] manveru: goeast: do you use sequel or activerecord?
[13:33:29] goeast: no activerecord
[13:33:39] Guest60828: has joined #ruby
[13:33:49] dminuoso: AndyWojo: First, use File.readlines
[13:33:49] manveru: and what does it return right now?
[13:33:57] goeast: should return something like this ["A Cor Do Som", "AC/DC"]
[13:34:10] dminuoso: AndyWojo: That will avoid a bizarre shell command/output/split logic.
[13:34:44] goeast: ["A Cor Do Som"], ["AC/DC"],
[13:35:17] andywojo: is it quicker to check to see if an array already has an element before inserting or just inserting and doing a uniq at the end?
[13:35:18] manveru: goeast: db.execute('your query').flatten
[13:35:29] goeast: flatten !
[13:35:34] goeast: I was looking for it !
[13:35:43] goeast: thanks manveru !
[13:35:44] ljarvis_: AndyWojo: sounds like you want a Set
[13:35:55] manveru: or db.execute('foo').map{|rows| rows.first }
[13:36:06] SirOliver: has joined #ruby
[13:36:10] goeast: yep ! thank you very much !
[13:36:28] manveru: because if you do a 'select foo, bar from x' it will return an array like [['the foo', 'the bar']]
[13:36:44] ljarvis_: AndyWojo: also, don't use File.readlines as suggested unless your file is small
[13:37:00] andywojo: file is 23gb
[13:37:06] goeast: very clear now
[13:37:08] ljarvis_: yeah.. definitely dont use File.readlines
[13:37:16] andywojo: what should I use/
[13:37:17] ljarvis_: you want File.each_line
[13:37:45] vuoto: has joined #ruby
[13:37:46] ljarvis_: and then you can use a Set
[13:41:08] pdoherty: has joined #ruby
[13:41:14] lewagon: has joined #ruby
[13:41:28] blackmesa: has joined #ruby
[13:41:37] canton7: has joined #ruby
[13:42:19] skade: has joined #ruby
[13:43:24] MrBusiness: has joined #ruby
[13:44:09] yeticry: has joined #ruby
[13:44:34] xall_: has joined #ruby
[13:45:46] andywojo: wow sets are so much faster
[13:45:48] andywojo: why is that?
[13:46:32] jhass: do you understand why some_hash.has_key? "foo" is faster than some_hash.keys.include? "foo" ?
[13:47:06] andywojo: I do not, I am a newbie.
[13:47:09] desmondhume: has joined #ruby
[13:47:18] jhass: do you understand hashtables?
[13:47:26] andywojo: I understand the concept
[13:48:02] jhass: Set is an abstraction over Hash, it uses its keyset to implement the set, so effectively a hashtable
[13:48:33] andywojo: gotcha, that makes sense
[13:48:50] andywojo: so.. it's a structured 'indexed' array?
[13:50:07] jhass: eh, probably the right thing in your head but the terms used make me say no
[13:51:50] jenrzzz: has joined #ruby
[13:51:50] jenrzzz: has joined #ruby
[13:51:51] rickmasta: has joined #ruby
[13:51:54] vuoto: has joined #ruby
[13:52:27] andywojo: Sure, in my head it makes sense. but the terms are probably definitely wrong
[13:52:45] killerkamel: has joined #ruby
[13:52:49] andywojo: I use ruby purely from a sysadmin perspective, so I probably learned a lot of things wrong
[13:52:51] gregf: has joined #ruby
[13:53:05] ljarvis_: question: why Ruby?
[13:53:26] ljarvis_: you're processing a 23gb file, ruby is the last thing in my toolbox I'd want to use
[13:53:37] trifling-jest: has joined #ruby
[13:55:04] desmondhume: has joined #ruby
[13:56:34] SirOliver: has joined #ruby
[13:56:38] andywojo: Well at this point I'm extremely comfortable with ruby, even more so then bash (except for fringe cases with large data sets)
[13:56:49] andywojo: I do want to learn python
[13:56:55] andywojo: but I find it obtuse compared to Ruby
[13:57:12] GodFather: has joined #ruby
[13:57:33] ljarvis_: ah fair enough
[13:57:37] ljarvis_: do you know any other languages?
[13:57:44] jhass: for a task like this python won't be significantly faster anyhow
[13:58:01] andywojo: Bash, some perl,
[13:58:47] andywojo: I converted over to each_line and using sets, and the script is no longer locking my workstation up, so that's good
[13:59:15] ljarvis_: it's a log file, you say?
[13:59:19] Papierkorb: tbh, sounds like a good fit for a shell pipeline out of cut, sed and sort -u
[13:59:31] ljarvis_: yeah bash tools would be way better imo, but still
[13:59:50] andywojo: Yeah it's 23 GB of http logs. I'm looping through them and finding all of the users and URLs each user goes to (no dupes) and creating a CSV with user,url
[13:59:57] ljarvis_: ruby will be all "oh hey bud lemme take all this memory off your hands"
[14:00:17] ljarvis_: that's intense
[14:00:34] ljarvis_: what format is the log in?
[14:00:38] andywojo: I'm running it with time, we'll see how long it takes
[14:00:57] mattwashere: has joined #ruby
[14:00:58] andywojo: what do you mean format?
[14:01:02] andywojo: It's an ASCII file
[14:01:08] ljarvis_: http logs have formats, usually
[14:01:10] Papierkorb: the formatting of a line
[14:01:27] daivyk: has joined #ruby
[14:01:41] andywojo: It's <ip> <something> <user> <something> <something> <something> <something> <url>
[14:01:52] andywojo: So I'm doing a split on each line for the user[2] and the url[6]
[14:02:08] ljarvis_: so you're just doing line.split(" ") or something?
[14:02:15] Papierkorb: AndyWojo: `cut` to the rescue
[14:02:20] mattwash_: has joined #ruby
[14:02:56] andywojo: I'll write it in bash, and compare the times
[14:03:07] ljarvis_: honestly it's probably a relatively simple one liner
[14:03:12] A124: has joined #ruby
[14:03:14] zotherst1: has joined #ruby
[14:03:22] ljarvis_: but I'm not sure of the specifics so can't say for sure
[14:03:23] Papierkorb: AndyWojo: cut -d' ' -f3,8|sort -u
[14:03:27] Guest60828: has joined #ruby
[14:03:38] ChiefAlexander: has joined #ruby
[14:04:08] ljarvis_: right, something like that, then you could re-join and spit out a CSV
[14:04:19] macsteps: has joined #ruby
[14:04:20] ljarvis_: then bill for 1 days work
[14:04:30] abhinavmehta: has joined #ruby
[14:04:37] shevy: are we getting rich again here
[14:04:38] Papierkorb: just |sed 's/ /;/' :P
[14:04:40] shevy: ACTION feels excited!
[14:05:09] andywojo: you're missing the part where I am a ruby newbie, and I now learned some valuable lessons about sets and f.each_lines
[14:05:21] ljarvis_: that's true, success
[14:05:37] ljarvis_: now put the ruby down and use something better :D
[14:05:55] Papierkorb: AndyWojo: And you learned about a use-case where ruby (nor any other language/toolkit which pulls the file into RAM as a whole) does not excel :3
[14:06:04] andywojo: I bet, I could probably find the open file and see where the read position is in the 23GB file to see how far ruby has gotten
[14:06:28] madsa: has joined #ruby
[14:06:35] ljarvis_: you'll probably be able to see at a glance how bit your set is in memory
[14:06:52] SirOliver: has joined #ruby
[14:07:18] cdg: has joined #ruby
[14:09:02] SirOliver: has joined #ruby
[14:09:07] the_drow: has joined #ruby
[14:10:05] lessless: has joined #ruby
[14:12:32] alfiemax: has joined #ruby
[14:13:25] dminuoso: Hash[*[:house_number, :house_number_addon].zip(str.match(/\A#{PATTERN}\z/x)[1..2]).flatten] # I just noticed I still have this in my code. Would you say that I should make this more readable?
[14:13:52] Ishido: has joined #ruby
[14:16:59] davedev24: has joined #ruby
[14:19:04] daffy_duck: has joined #ruby
[14:19:23] zacstewart: has joined #ruby
[14:19:45] Bish: has joined #ruby
[14:20:02] kaleido: has joined #ruby
[14:20:06] jhack: has joined #ruby
[14:26:40] trifling_jest2: has joined #ruby
[14:26:54] CybrGhost: has joined #ruby
[14:27:00] Jet4Fire: has joined #ruby
[14:28:04] ljarvis_: >> m = "14 something".match(/\A(?<house_number>\S+)\s(?<house_addon>\S+)\z/); m.names.zip(m.captures).to_h
[14:28:18] ljarvis: >> m = "14 something".match(/\A(?<house_number>\S+)\s(?<house_addon>\S+)\z/); m.names.zip(m.captures).to_h
[14:28:19] ruby[bot]: ljarvis: # => {"house_number"=>"14", "house_addon"=>"something"} (https://eval.in/609490)
[14:28:27] eljimbo: has joined #ruby
[14:29:14] douglasc_: has joined #ruby
[14:29:53] ljarvis: finally ruby 2.4 added MatchData#named_captures
[14:31:16] agent_white: has joined #ruby
[14:31:52] SirOliver: has joined #ruby
[14:31:59] agent_white: Mornin' folks
[14:32:12] bhrgunatha: has joined #ruby
[14:32:57] nerium: has joined #ruby
[14:33:47] nankyokusei: has joined #ruby
[14:35:48] yorickpeterse: Yeah, no more $~ bollocks
[14:36:45] aryaching: has joined #ruby
[14:37:14] kspencer: has joined #ruby
[14:38:05] tokynet: has joined #ruby
[14:39:10] ljarvis: omg a yorick
[14:39:25] ljarvis: the rarest of pokemon
[14:41:00] ineb: yorick is not a pokemon
[14:41:14] ljarvis: how dare you
[14:41:44] ineb: >> >> m = "14 something"[/\A(?<house_number>\S+)\s(?<house_addon>\S+)\z/]; m.names.zip(m.captures).to_h
[14:41:45] ruby[bot]: ineb: # => /tmp/execpad-2e1c641ff9ea/source-2e1c641ff9ea:2: syntax error, unexpected >> ...check link for more (https://eval.in/609499)
[14:42:18] ineb: how can i trigger the bot
[14:42:23] ljarvis: you cannot
[14:42:34] knight_: has joined #ruby
[14:42:42] Papierkorb: ineb: double >>
[14:42:44] ljarvis: also String#[] doesn't return a matchdata ya sausage
[14:42:54] ineb: thats what i wanted to try
[14:43:11] ineb: dont have ruby 2.4 here
[14:43:20] ljarvis: you dont need it
[14:43:34] ljarvis: ruby 2.4 was mentioned for named_captures
[14:43:42] ljarvis: the bot uses 2.3
[14:43:48] jpterry: has joined #ruby
[14:43:55] ljarvis: which is the latest stable version
[14:46:03] dminuoso: has joined #ruby
[14:48:12] SilverKey: has joined #ruby
[14:48:36] chipotle: has joined #ruby
[14:49:23] DouweM_: has joined #ruby
[14:49:23] DouweM_: has left #ruby: ()
[14:51:34] swills: has joined #ruby
[14:51:37] chipotle: has joined #ruby
[14:51:56] rippa: has joined #ruby
[14:52:25] koma: has joined #ruby
[14:52:40] koma: Some one cna help me with a vagrantfile?
[14:53:11] polishdub: has joined #ruby
[14:53:18] Terens: has joined #ruby
[14:53:27] underplank: has joined #ruby
[14:54:40] isberg: has joined #ruby
[14:57:10] SilverKey: has joined #ruby
[14:59:57] ChiefAlexander: has joined #ruby
[15:00:17] shinnya: has joined #ruby
[15:01:31] pawnbox: has joined #ruby
[15:02:44] ruby[bot]: please join #vagrant for help with it.
[15:03:24] tmtwd: has joined #ruby
[15:03:51] pawnbox: has joined #ruby
[15:05:17] Ishido: has joined #ruby
[15:05:28] pawnbox: has joined #ruby
[15:06:31] unreal_: has joined #ruby
[15:07:39] jaguarmagenta: has joined #ruby
[15:09:02] renier: has joined #ruby
[15:10:22] jordanm: has joined #ruby
[15:11:04] blackmesa: has joined #ruby
[15:12:09] Bounga: has joined #ruby
[15:13:14] chipotle: has joined #ruby
[15:14:07] dunpeal: Truffle Ruby seems to perform really well: over 30 times faster than MRI according to this benchmark: http://jruby.org/bench9000/
[15:14:23] dunpeal: Have people started using it in production?
[15:14:45] chrisseaton: I wouldn't recommend using it in production yet - we don't have things like openssl yet
[15:14:53] bustaraz: has joined #ruby
[15:15:40] dunpeal: chrisseaton: any estimate on when we should take a serious look at potentially deploying it?
[15:15:54] chrisseaton: Maybe the first half of next year
[15:16:17] chrisseaton: But if you tell me what your app does and what libraries you use I can say if there's any blockers on that
[15:16:38] chrisseaton: We're working on a system to test all gems on JRuby+Truffle, so we can tell you if your app should work based on your dependencies
[15:17:12] dunpeal: That's great, but the main app is Rails (with a ton of Ruby and Rails gems), so probably not the most obvious first candidate.
[15:17:42] dunpeal: Truffle Ruby doesn't run Rails yet, right?
[15:17:56] chipotle_: has joined #ruby
[15:18:46] chrisseaton: We pass all of the ActiveSupport, ActiveModel and most of the ActionPack specs, so we're getting there quickly
[15:18:59] davedev24: has joined #ruby
[15:19:08] chrisseaton: ActiveView and Railties basically work, but not all the specs pass
[15:19:27] chrisseaton: But we pass more language specs than JRuby or Rubinius do
[15:19:40] GnuYawk: has joined #ruby
[15:20:04] dunpeal: Also, is the x30 figure at all accurate? Because if so, it's going to launch Ruby to a whole new performance class. x30 MRI would make Ruby faster than pretty much all dynamic languages, even those running on state-of-the-art JITs like V8. In fact, it should make Ruby competitive against Java HotSpot for speed.
[15:20:07] Vingador: has joined #ruby
[15:20:19] chrisseaton: dunpeal: well they're accurate for those benchmarks
[15:20:33] chrisseaton: I'm not sure how much faster an off the shelf Rails app is going to be
[15:20:39] dunpeal: right, but how representative are those benchmarks.
[15:20:40] chipotle: has joined #ruby
[15:20:51] chrisseaton: But Truffle does best on programs with lots of small intermediate arrays and hashes and lots of string concat, and that's what Rails apps do
[15:21:13] chrisseaton: dunpeal: most of those benchmarks are from ChunkyPNG and PSD.rb, which are really gems people are running in production today
[15:22:02] jhass: how much more memory do you use compared to MRI?
[15:22:29] dunpeal: OK, that's promising then. FWIW, if Ruby does get an x30 speedup, Rails speed matters less, because Ruby will start being used for tasks you'd use Java/C++ right now.
[15:22:49] Guest-ru: has joined #ruby
[15:23:41] chrisseaton: jhass: I don't have numbers against MRI, but let me just check out CI which compares against JRuby...
[15:24:57] chrisseaton: jhass: we use about 3x the heap that JRuby uses
[15:25:03] jhass: Thanks, I have to admit I never looked up for JRuby, do you have MRI vs JRuby at hand?
[15:25:16] chrisseaton: Sorry, it's very hard to measure that
[15:25:36] chrisseaton: You can't just compare RSS, because the way that the JVM works is it will use as much heap as you give it
[15:25:46] jhass: just curious about ballparks, about the same, twice as much?
[15:26:05] chrisseaton: Maybe 4 or 5x at the moment?
[15:26:21] chrisseaton: So yeah, you may need a larger instance, but you should be able to serve many more requests much quicker with that bigger instnace
[15:26:22] jhass: does the JVM ever give back to the OS?
[15:26:45] chrisseaton: You mean if you have a surge and then it goes back down? Sorry I don't know
[15:27:12] jhass: I know MRI doesn't and it's something I hate about it
[15:27:23] chrisseaton: tenderlove was making fun a while ago of a comment I made about how adding more memory to a server is easy. My argument is that at the moment how can you reduce the response time for individual customers?
[15:27:30] chrisseaton: You can't buy a faster processor, as we don't really have those any more
[15:27:43] chrisseaton: You can't use more than one processor or core for a single request, as we can't program that well to do that
[15:27:57] chrisseaton: The only degree of freedom you have is you can add more RAM - you can add as many GB of RAM as you want
[15:28:04] chrisseaton: It scales perfectly
[15:28:11] chrisseaton: So let's use that RAM to improve the performance of Ruby
[15:28:23] Papierkorb: well, RAM, while getting much cheaper, is still finite
[15:28:37] chrisseaton: What I hope to do in the future is to run web request benchmarks on different size droplets and AWS instances, and say on each instance how much faster it is, or if the instance is too small
[15:28:40] jhass: yes, that argument is good for the company/commercial perspective
[15:29:14] Papierkorb: The box my private stuff runs on has 16GiB of memory, but those have to last for more things than just one of my ruby apps
[15:29:21] jhass: it's a sad viewpoint for the CLI app, desktop app or self hosted movement perspective
[15:29:45] chrisseaton: Papierkorb: well servers that large are fine - it's the people running 512 MB DO droplets who may be disappointed the Truffle probably won't run fast there
[15:30:07] DoubleMalt: has joined #ruby
[15:30:16] KCmetro: has joined #ruby
[15:30:26] Papierkorb: chrisseaton: I also want to spend less than those 512MiB of memory for a single app :3
[15:31:13] chrisseaton: I guess if Ruby is too slow for you, you're probably already running on many DO droplets, and we'd say that Truffle will make it fast, but you might need just one bigger droplet
[15:31:22] Papierkorb: under load, the I/O bound app I'm working on atm peaks at 350MiB, after which it goes down to 190MiB again. MRI 2.3
[15:31:35] Papierkorb: Not too slow, fast enough. But faster is always better :)
[15:31:56] chrisseaton: Truffle uses a lot of memory to compile, but the other side of it is when the compiled code runs it uses much less memory. So hopefully for lots of concurrent clients it will balance out
[15:32:28] chrisseaton: Eg a Rails view will allocates MB of heap for each request normally could run allocating hardly anything after our optimisations, so actually save heap
[15:32:59] Papierkorb: If one could precompile that stuff, so the daemon process would save some of that memory, it #would be a non-issue
[15:33:02] xall_: has joined #ruby
[15:37:24] harfangk: has joined #ruby
[15:48:59] Vingador: has joined #ruby
[15:49:51] [Butch]: has joined #ruby
[15:50:54] blaxter: has joined #ruby
[15:51:33] sepp2k: has joined #ruby
[15:52:01] abhinavmehta: has joined #ruby
[15:52:40] jenrzzz: has joined #ruby
[15:52:52] rickmasta: has joined #ruby
[15:53:35] Wildfyr: has joined #ruby
[15:53:35] Wildfyr: has left #ruby: ()
[15:59:13] skade: has joined #ruby
[16:00:21] ledestin: has joined #ruby
[16:01:19] dennisvennink: has joined #ruby
[16:02:38] amclain: has joined #ruby
[16:03:11] zacts: has joined #ruby
[16:03:34] Rutix: has joined #ruby
[16:03:34] Rutix: has joined #ruby
[16:03:37] ruby-lang921: has joined #ruby
[16:03:46] spudowiar: has joined #ruby
[16:04:52] Coldblackice_: has joined #ruby
[16:06:14] FooMunki: has joined #ruby
[16:07:32] pdoherty: has joined #ruby
[16:07:36] banisterfiend: has joined #ruby
[16:11:33] xpitr: mri, jruby and rbx are about the only usable versions right?
[16:14:10] blackmesa: has joined #ruby
[16:15:55] harfangk: has joined #ruby
[16:17:10] beilabs: has joined #ruby
[16:19:46] dunpeal: people are using RBX?
[16:20:57] dunpeal: chrisseaton: also, it's weird to me that Truffle already passes motr languages specs than older implementations that are considered more mature, like JRuby and Rubinius.
[16:21:04] dunpeal: s/motr/more/
[16:21:33] blackmesa: has joined #ruby
[16:21:39] kaleido: has left #ruby: ()
[16:21:39] xpitr: i used it until at some point i realized mri is faster... much faster :P
[16:23:21] dunpeal: Yeah, I'm not really sure what the status of that project is any more. Originally it was supposed to be a fast JITing VM for Ruby, something like V8. Since it's not faster, nor complete, what's its purpose at this stage?
[16:24:49] chrisseaton: dunpeal: not all the language specs make a lot of sense but we did them all to show we could
[16:25:35] chrisseaton: dunpeal: I don't think rubinius has a JIT any more, and I never found it be very fast even when it did
[16:25:54] dunpeal: chrisseaton: aren't the specs a bit broken if Truffle currently passes them all, yet some pure-Ruby applications are still breaking on it?
[16:26:31] xpitr: it has no jit? then what does it have?
[16:26:41] xpitr: i thought thats the whole idea
[16:26:58] xpitr: well, real threads are nice :)
[16:27:02] dunpeal: xpitr: it used to be, but they never got it right. I don't think Rubinius is a viable contender anymore. their current homepage has one mention of actual real-world usage, and otherwise just "Testimonials" from Darth Vader and Gandalf
[16:27:11] xall_: has joined #ruby
[16:27:40] xpitr: i see. it is pretty impressive, never had any problems with any app on it. unlike jruby
[16:29:44] dunpeal: Getting JIT right his harder than it seems. Google had a project to do it for Python, and failed. The only reason V8 succeeded is they got a whole bunch of senior engineers who previously worked on Hotspot, and Self before that.
[16:30:20] boogeyman: has joined #ruby
[16:31:05] xpitr: it would be neat if we could just directly run ruby apps on nodejs, via opal :P
[16:31:09] xpitr: but i don't think thats possible
[16:31:35] xpitr: also looking at rvm list known, checked all. goruby is the most sad one i think
[16:32:00] xpitr: anyways guess i'll just stick to mri, its so good and fast these days :)
[16:32:16] AgentVenom: has joined #ruby
[16:32:36] dunpeal: uhm, it's not really fast :)
[16:33:11] mattwashere: has joined #ruby
[16:33:24] xpitr: ok, its fast enough :P
[16:33:50] binaryplease: has joined #ruby
[16:33:52] SCHAAP137: has joined #ruby
[16:34:09] dunpeal: "fast enough" doesn't really exist. there's many tasks that need to be as fast as possible. for example, processing records.
[16:34:13] whathappens: has joined #ruby
[16:34:33] diegoviola: has joined #ruby
[16:34:39] nankyokusei: has joined #ruby
[16:35:03] xpitr: so what other option do we have? jruby-somethingsomething-trouffle?
[16:35:21] Ishido: has joined #ruby
[16:35:33] tjbiddle: has joined #ruby
[16:36:35] beilabs: has joined #ruby
[16:36:56] dunpeal: well, for now, a lot of people are simply using other languages for these tasks. if JRuby-Truffle ultimately becomes x30 times faster than MRI, or even "just" x10 times, Ruby will become a viable alternative for those tasks. Which is pretty huge.
[16:37:25] dunpeal: xpitr: for a bit of perspective: most of Ruby's usage nowadays is for RoR. I suspect performance issues are a major reason for that.
[16:38:09] xpitr: right. no one writes a game in ruby
[16:38:33] chrisseaton: dunpeal: no because there's also core library specs and we don't pass all of them
[16:39:14] jenrzzz: has joined #ruby
[16:39:45] dunpeal: xpitr: right. So if JRuby-Truffle accelerates Ruby to the same ballpark as say Java, then Ruby's usage in all these other areas would skyrocket. that would easily be the most important development for Ruby since it was created. in fact, if the benchmarks are any indication, it would be a major event for dynamic languages as a whole, not just Ruby.
[16:40:15] xpitr: i think even then it might take some time for people to drop the "ruby is slow" mantra
[16:41:08] Papierkorb: java is slow too. they never got rid of that mantra. In fact, Java is fast, except for some cases which are important to some people
[16:41:17] xpitr: uh and also comparing to java will not help that, "java is slow" is everywhere :P
[16:41:27] Papierkorb: Like GUI tools
[16:41:49] xpitr: start time is unacceptably slow, even if its close to native performance in processing stuff
[16:41:55] xpitr: and gui looks horrible
[16:42:12] tycoon177: has joined #ruby
[16:42:20] xpitr: looks bad across all platforms
[16:42:39] Papierkorb: Yes, for gui tools, java is: Code once, runs and looks like shit everywhere
[16:42:57] chrisseaton: We're solving the Java startup time by having a statically compiled version of JRuby Truffle so there no need to have a JVM installed even
[16:43:10] dunpeal: that's amazing
[16:43:19] xpitr: how big is it?
[16:43:25] beilabs: has joined #ruby
[16:43:35] dunpeal: chrisseaton: but how would importing libaries work without a JVM?
[16:43:37] zacts: has joined #ruby
[16:45:09] devbug: has joined #ruby
[16:45:44] aryaching: has joined #ruby
[16:46:16] cdg: has joined #ruby
[16:46:28] Cohedrin: has joined #ruby
[16:46:56] xall_: has joined #ruby
[16:46:58] abhinavmehta: has joined #ruby
[16:47:40] mbreedlove: has joined #ruby
[16:49:16] replay: has joined #ruby
[16:50:13] zacts|pi: has joined #ruby
[16:52:33] nbg: has joined #ruby
[16:54:29] mbreedlove: has joined #ruby
[16:56:17] lxsameer: has joined #ruby
[16:56:48] mbreedlove: has joined #ruby
[16:56:50] harfangk: has joined #ruby
[16:58:51] madsa: has joined #ruby
[16:58:58] ur5us: has joined #ruby
[16:59:19] nettoweb: has joined #ruby
[17:00:14] govg: has joined #ruby
[17:00:44] tercenya: has joined #ruby
[17:01:56] gizmore: has joined #ruby
[17:03:51] jenrzzz: has joined #ruby
[17:04:25] rcvalle: has joined #ruby
[17:04:26] aegis3121: has joined #ruby
[17:05:44] kitikonti: has joined #ruby
[17:06:04] macsteps: has joined #ruby
[17:07:26] firstdayonthejob: has joined #ruby
[17:07:37] klaas: has joined #ruby
[17:08:39] chrisseaton: It's a few hundred MB for the standalone binary
[17:09:05] chrisseaton: You compile in any Java libraries you need, but you can load C exts at runtime
[17:09:14] tercenya: has joined #ruby
[17:11:17] hutch34: has joined #ruby
[17:12:17] snowy: has joined #ruby
[17:13:07] tvon: has joined #ruby
[17:13:17] douglascorrea: has joined #ruby
[17:13:38] FooMunki: has joined #ruby
[17:14:08] rickmasta: has joined #ruby
[17:16:03] aegis3121: has joined #ruby
[17:19:02] zacts_raincity: has joined #ruby
[17:20:28] firstdayonthejob: has joined #ruby
[17:21:02] devbug: has joined #ruby
[17:21:49] skade: has joined #ruby
[17:21:50] zacts: has joined #ruby
[17:22:38] mattwashere: has joined #ruby
[17:23:13] zacts|pi: has joined #ruby
[17:23:34] karapetyan: has joined #ruby
[17:24:23] tvon: has joined #ruby
[17:26:39] mrgrieves: has joined #ruby
[17:28:02] cdg: has joined #ruby
[17:29:42] mdw: has joined #ruby
[17:30:50] symm-: has joined #ruby
[17:31:20] davedev24: has joined #ruby
[17:32:12] davedev24: has joined #ruby
[17:33:29] cajone: has left #ruby: ()
[17:35:44] SilverKey: has joined #ruby
[17:36:00] zacts|pi: has joined #ruby
[17:36:02] hahuang65: has joined #ruby
[17:36:42] tildes: has joined #ruby
[17:36:52] cajone: has joined #ruby
[17:37:01] aegis3121: has joined #ruby
[17:37:18] jaguarmagenta: has joined #ruby
[17:38:33] aryaching: has joined #ruby
[17:39:47] roamingdog: has joined #ruby
[17:40:06] ChiefAlexander: has joined #ruby
[17:41:00] spudowiar: has joined #ruby
[17:41:56] ramfjord: has joined #ruby
[17:41:58] binaryplease2: has joined #ruby
[17:42:26] xall_: has joined #ruby
[17:42:27] GnuYawk: has joined #ruby
[17:42:29] Ebok: has joined #ruby
[17:42:35] Bellatrix--: has joined #ruby
[17:42:57] hellcode: has joined #ruby
[17:46:02] macsteps: has joined #ruby
[17:46:13] abhinavmehta: has joined #ruby
[17:46:35] jenrzzz: has joined #ruby
[17:46:35] jenrzzz: has joined #ruby
[17:46:55] tjbiddle: has joined #ruby
[17:48:29] jaguarmagenta: has joined #ruby
[17:49:06] craigp: has joined #ruby
[17:50:28] desmondhume: has joined #ruby
[17:50:50] tylersmith: has joined #ruby
[17:51:49] fullstack: has joined #ruby
[17:51:50] GnuYawk: has joined #ruby
[17:56:23] KCmetro: has joined #ruby
[17:57:29] whathappens: has joined #ruby
[17:58:11] yoongkang: has joined #ruby
[17:58:16] rcvalle: has joined #ruby
[17:58:33] SilverKey: has joined #ruby
[17:58:49] blackmesa: has joined #ruby
[17:59:03] jenrzzz: has joined #ruby
[17:59:03] jenrzzz: has joined #ruby
[17:59:40] roamingdog: has joined #ruby
[18:00:00] RegulationD: has joined #ruby
[18:00:08] mbreedlove: has joined #ruby
[18:00:59] tacit7: has joined #ruby
[18:03:25] desmondhume: has joined #ruby
[18:03:30] AndyBotwin: has joined #ruby
[18:04:51] madsa: has joined #ruby
[18:05:05] mbreedlo_: has joined #ruby
[18:07:17] mbreedlove: has joined #ruby
[18:07:18] RegulationD: has joined #ruby
[18:10:29] spider-mario: has joined #ruby
[18:10:54] jeremyhall: has joined #ruby
[18:12:42] araujo: has joined #ruby
[18:12:53] mbreedlove: has joined #ruby
[18:13:04] havenwood: String.new capacity: 100_000_000_000_000 # Virtual Memory Size: 90.95 TB
[18:13:22] openstruct: has joined #ruby
[18:13:32] Papierkorb: what does #length report?
[18:13:55] elifoster: has joined #ruby
[18:14:10] araujo: has joined #ruby
[18:15:03] havenwood: Papierkorb: 0
[18:15:12] mbreedlove: has joined #ruby
[18:15:29] Papierkorb: is there a #capacity now?
[18:16:33] havenwood: nope but that'd be really interesting
[18:17:31] mbreedlove: has joined #ruby
[18:17:33] chipotle: has joined #ruby
[18:18:36] eam: havenwood: does that preallocate 100T byte capacity for the string?
[18:18:54] eam: interesting, given Strings are characters ;)
[18:19:39] eam: I wish they were all byte strings
[18:19:48] Axy: has joined #ruby
[18:19:48] Axy: has joined #ruby
[18:21:05] tercenya: has joined #ruby
[18:22:12] havenwood: eam: yeah! it was this issue: https://bugs.ruby-lang.org/issues/12024
[18:22:12] Papierkorb: I wish there was a proper byte array class
[18:22:33] havenwood: Papierkorb: https://github.com/ruby/ruby/blob/trunk/ChangeLog#L438-L441
[18:22:37] marxarelli: has joined #ruby
[18:23:22] Guest60828: has joined #ruby
[18:24:03] blandflakes: has joined #ruby
[18:24:33] Papierkorb: "new method Enumerator::Lazy#uniq" interesting
[18:24:36] rickmasta: has joined #ruby
[18:25:42] jenrzzz: has joined #ruby
[18:26:35] rodferso1: has joined #ruby
[18:29:28] eam: havenwood: nice
[18:31:16] araujo_: has joined #ruby
[18:31:22] KCmetro: has joined #ruby
[18:33:15] micalexander: has joined #ruby
[18:34:17] micalexander: If I am building an app and would like to use helpers from another gem say middleman. How could I pull it in to be able to use it. I am trying to use the helper link_to
[18:34:35] nadir: has joined #ruby
[18:35:01] dionysus69: has joined #ruby
[18:35:31] nankyokusei: has joined #ruby
[18:36:04] jackjackdripper: has joined #ruby
[18:38:01] miqlas-H: has joined #ruby
[18:38:32] jeremyhall: has joined #ruby
[18:39:02] hellcode: anyone here has used any of the pcap libraries available in gems?
[18:39:21] abhinavmehta: has joined #ruby
[18:40:32] zacts: has joined #ruby
[18:41:38] macsteps: has joined #ruby
[18:41:40] kirun: has joined #ruby
[18:41:41] chipotle: has joined #ruby
[18:44:03] GinoMan2440: has joined #ruby
[18:45:41] micalexander: never mind, seem to have got it
[18:47:27] jaruga___: has joined #ruby
[18:50:21] yardenbar: has joined #ruby
[18:50:44] douglascorrea: has joined #ruby
[18:51:29] conta: has joined #ruby
[18:52:26] desmondhume: has joined #ruby
[18:53:11] rickmasta: has joined #ruby
[18:58:42] troulouliou_div2: has joined #ruby
[18:58:49] wrkrcoop: has joined #ruby
[18:59:12] whathappens: has joined #ruby
[18:59:38] wrkrcoop: so i have to build this retry mechanism that publishes a message to sqs if it hasn’t been retried <3 times
[18:59:45] yoongkang: has joined #ruby
[19:00:18] wrkrcoop: im thinking of something something like this https://gist.github.com/ellismarte/ca4da72946893a0c6cc2caea40344c9e
[19:00:47] whathapp_: has joined #ruby
[19:00:52] wrkrcoop: i want to call another method if the condition is false, is yield what i want to use?
[19:02:01] conta: has joined #ruby
[19:02:19] mbreedlove: has joined #ruby
[19:11:19] Amnez777: has joined #ruby
[19:12:35] nanoz: has joined #ruby
[19:13:44] mbreedlove: has joined #ruby
[19:15:14] tmtwd: has joined #ruby
[19:15:51] dhollinger: has joined #ruby
[19:15:56] mbreedlove: has joined #ruby
[19:15:58] pwnd_nsfw: has joined #ruby
[19:16:03] epitron: has joined #ruby
[19:17:31] vuoto: has joined #ruby
[19:17:49] gizless: has joined #ruby
[19:18:06] mbreedlove: has joined #ruby
[19:20:15] mbreedlove: has joined #ruby
[19:20:41] havenwood: wrkrcoop: Nope! Do you just want to return from the method if the if statement condition isn't met?
[19:21:02] wrkrcoop: havenwood: mm i want to send it to the dead letter queue
[19:21:24] wrkrcoop: so i want to call the method that sends it to the DLQ
[19:21:35] jhack: has joined #ruby
[19:22:15] araujo__: has joined #ruby
[19:22:27] mbreedlove: has joined #ruby
[19:22:31] yardenbar: has joined #ruby
[19:23:37] havenwood: wrkrcoop: In your example you're not calling the method with a block, so your `yield` will result in a: LocalJumpError: no block given (yield)
[19:24:24] wrkrcoop: havenwood: yeah, so if i want to call a method if the condtion is not true, and i want the user to decide what method that is, how should i go about that? use procs?
[19:24:35] mbreedlove: has joined #ruby
[19:24:40] aegis3121: has joined #ruby
[19:25:21] vuoto: has joined #ruby
[19:26:48] jeremyhall: has joined #ruby
[19:26:50] lunaelli: has joined #ruby
[19:27:10] vuoto: has joined #ruby
[19:28:03] havenwood: wrkrcoop: Do you want to invoke the method with a mandatorily-provided block to be called in the `else` case?
[19:28:40] wrkrcoop: havenwood: i dont think so if i understand the question, i just want to call a user defined method
[19:28:43] beilabs: has joined #ruby
[19:29:03] havenwood: wrkrcoop: Does it suffice to just pass a symbol corresponding to the method to be called?
[19:29:16] wrkrcoop: havenwood: idk, i was wondering the same thing
[19:29:33] havenwood: wrkrcoop: It does suffice.
[19:29:34] Coldblackice_: has joined #ruby
[19:29:46] wrkrcoop: so i pass the method name like this :dead_letter_queue
[19:30:13] havenwood: >> method(:puts).call 'wrkrcoop'
[19:30:14] ruby[bot]: havenwood: # => wrkrcoop ...check link for more (https://eval.in/609599)
[19:31:04] wrkrcoop: hmm it seems i dont even have to do that
[19:31:34] dsea: has joined #ruby
[19:31:44] havenwood: wrkrcoop: Alternatively you can to_proc the symbol and pass it as the block. If you want it to be optional there's `block_given?`.
[19:32:21] wrkrcoop: this seems to work: https://gist.github.com/ellismarte/f3928fd60f49b09158debae88b70d220
[19:32:41] havenwood: wrkrcoop: https://github.com/search?q=yield+if+block_given%3F&ref=simplesearch&type=Code&utf8=✓
[19:33:00] epochwolf: has joined #ruby
[19:33:03] havenwood: wrkrcoop: yeah, you can just call a method if you know what the method is to be
[19:33:34] havenwood: wrkrcoop: I thought you were trying to have the invoker of the method provide the method to then be called. If you know what you're calling, just do it! :-)
[19:34:01] wrkrcoop: yeah, i want to call the method with a hash as an argument and one of the key’s values to be the method
[19:34:17] vuoto: has joined #ruby
[19:34:37] vuoto: has joined #ruby
[19:36:38] Authenticator: has joined #ruby
[19:37:20] Xiti: has joined #ruby
[19:37:37] dennisvennink: has joined #ruby
[19:37:51] Asher: has joined #ruby
[19:38:27] abhinavmehta: has joined #ruby
[19:38:27] mbreedlove: has joined #ruby
[19:39:59] vuoto_: has joined #ruby
[19:40:05] karapetyan: has joined #ruby
[19:40:13] davedev24: has joined #ruby
[19:40:49] GnuYawk: has joined #ruby
[19:41:29] memorasus: has joined #ruby
[19:42:15] Jonathel: has joined #ruby
[19:42:47] wrkrcoop: why is this: https://gist.github.com/ellismarte/f3928fd60f49b09158debae88b70d220 giving me a wrong number of arguments (given 0, expected 1) for say
[19:43:40] havenwood: wrkrcoop: On line 17 you're calling the method `say` without any arguments when one is required.
[19:44:56] tercenya: has joined #ruby
[19:45:05] JeanCarloMachado: has joined #ruby
[19:46:38] wrkrcoop: havenwood: so why doesnt this call: https://gist.github.com/ellismarte/f3928fd60f49b09158debae88b70d220#file-gistfile1-rb-L5
[19:46:41] wrkrcoop: with the argument
[19:47:06] gizmore: has joined #ruby
[19:47:34] havenwood: wrkrcoop: It's breaking before it gets there because you're calling `say` here without the required argument: https://gist.github.com/ellismarte/f3928fd60f49b09158debae88b70d220#file-gistfile1-rb-L17
[19:47:59] wrkrcoop: how do i get around that? pass it as a symmbol?
[19:48:33] havenwood: >> def say word; word end; arg = :say; public_method(arg).call('wrkrcoop')
[19:48:34] ruby[bot]: havenwood: # => method `say' for class `#<Class:#<Object:0x41ea5344>>' is private (NameError) ...check link for more (https://eval.in/609603)
[19:50:12] rickmasta: has joined #ruby
[19:50:20] JeanCarloMachado: has joined #ruby
[19:51:33] Dimik: has joined #ruby
[19:52:09] havenwood: wrkrcoop: http://ruby-doc.org/core/Object.html#method-i-method
[19:52:21] pdoherty: has joined #ruby
[19:52:33] havenwood: wrkrcoop: http://ruby-doc.org/core/Object.html#method-i-public_methods
[19:52:41] skade: has joined #ruby
[19:53:10] havenwood: wrkrcoop: Meant to link to Object#public_method not the plural there, look one above ^.
[19:54:10] havenwood: It's something of a nicety, but some use #public_method and #public_send when applicable to respect publicly exposed interfaces.
[19:54:33] havenwood: (Since #method and #send will call private methods.)
[19:55:41] havenwood: wrkrcoop: public_send :say, 'hi'
[19:57:17] tercenya: has joined #ruby
[19:57:25] mrgrieves: has joined #ruby
[19:57:30] tmtwd: has joined #ruby
[19:59:05] spudowiar: has joined #ruby
[19:59:45] wrkrcoop: havenwood: yes this seems to work https://gist.github.com/ellismarte/f3928fd60f49b09158debae88b70d220
[19:59:49] wrkrcoop: why not send?
[20:00:00] wrkrcoop: what do you think of my code?
[20:00:17] yoongkang: has joined #ruby
[20:00:18] wrkrcoop: ill change last_resort to something else
[20:01:03] havenwood: wrkrcoop: Yeah, just showing you #method because you can do more this it and I'm not sure what you're actually doing from glancing at your code. #public_send or #send if you actually want to call private methods might be what you're looking for.
[20:01:12] Authenticator: I'm using Net::Ping::External to ping my servers and I'm getting odd results trying to run a bunch at once.
[20:01:34] spudowiar: hmm, I want to do something really "evil" here
[20:01:38] spudowiar: Well, not evil
[20:01:52] KCmetro: has joined #ruby
[20:02:02] spudowiar: I want to intercept the pipe operator in all uses
[20:02:04] Authenticator: I had to modify the gem to call thread.exitstatus.value to prevent it from finishing too quickly. As if it's not waiting after stdin.close ...
[20:02:06] spudowiar: e.g. for any object
[20:02:18] spudowiar: And check if the operand is a certain type
[20:02:30] Rodya_: has joined #ruby
[20:02:30] spudowiar: If so, do something, else fallback to the old pipe operator
[20:02:38] havenwood: wrkrcoop: Just for fun, currying: def consider greeting, name; "#{greeting} #{name}!" end; provide_a_name = method(:consider).curry(2).call 'Hiya'; provide_a_name.call 'wrkrcoop'
[20:02:59] wrkrcoop: what is that?
[20:03:02] spudowiar: Essentially, I want to override a binary operator for the second operand, rather than the first as is usual.
[20:03:04] havenwood: wrkrcoop: Or you can do like: method(:say).owner
[20:03:05] havenwood: wrkrcoop: Or: method(:say).parameters
[20:03:26] wrkrcoop: do those pass the params to the say method?
[20:03:33] havenwood: wrkrcoop: But in your case you'll probably just want to #send or #public_send. Try em in your REPL!
[20:04:34] havenwood: wrkrcoop: Just try `send` and see if it works for you. I'd encourage exploring Method in Pry though! :-)
[20:05:07] havenwood: Authenticator: Are you joining the threads in the main process?
[20:05:19] doublemalt_: has joined #ruby
[20:06:24] banisterfiend: has joined #ruby
[20:06:32] mbreedlove: has joined #ruby
[20:06:45] blackgoat: has joined #ruby
[20:07:18] mtkd: has joined #ruby
[20:08:39] wrkrcoop: yeah send works
[20:09:00] ChiefAlexander: has joined #ruby
[20:09:16] rickmasta: has joined #ruby
[20:09:55] wrkrcoop: havenwood: i feel like this isn’t good enough because i’m forcing the user to always accept message[“body”] as an argument …
[20:12:03] havenwood: Authenticator: "Any threads not joined will be killed when the main program exits."
[20:12:23] dhollinger: has joined #ruby
[20:13:41] solars: has joined #ruby
[20:14:29] vuoto: has joined #ruby
[20:17:06] spudowiar: Anyone got any ideas for me?
[20:18:08] mattwashere: has joined #ruby
[20:20:18] mbreedlove: has joined #ruby
[20:20:28] irregular: has joined #ruby
[20:20:32] skade: has joined #ruby
[20:21:17] irregular: hi guys, I have res = JSON.parse(response.body)\n if res.dig("id") != null then ??? end
[20:21:26] irregular: what is this .dig method ?
[20:21:47] irregular: I get no implicit conversion of String into Integer (TypeError) on the line with res.dig
[20:22:20] jhass: irregular: http://devdocs.io/ruby~2.3/array#method-i-dig http://devdocs.io/ruby~2.3/hash#method-i-dig
[20:22:35] jhass: sounds like you got an array where you expected a hash
[20:22:46] jhass: dig with a single argument is fairly pointless though
[20:23:20] JeanCarloMachado: has joined #ruby
[20:23:37] irregular: jhass:indeed I think that's it, actually the next line is elseif res.dig("data", 0) != nil then ??? but I'll have to look into this error first
[20:23:50] raja: has joined #ruby
[20:23:57] mustmodify: has joined #ruby
[20:24:16] irregular: trying to account for multiple response body types (which come back after a request to a rest api)
[20:24:43] roamingdog: has joined #ruby
[20:24:45] JakFrist: has joined #ruby
[20:26:04] mustmodify: Here's what would make me really happy.
[20:26:05] mustmodify: https://gist.github.com/mustmodify/c08338ef3777d23ca9817fd216b2a576
[20:27:25] Authenticator: havenwood: I was just closing stdin, assuming that would thread.join, but it doesn't seem to...
[20:28:35] jhass: mustmodify: in crystal you could write a macro to almost do that :P
[20:28:43] hutch34: has joined #ruby
[20:28:59] Authenticator: The threads are running to completion, but at the end of the block, not after the stdin.close....
[20:30:33] havenwood: Authenticator: If you haven't already, maybe have the Threads abort on exception to see if something's going amiss: Thread.abort_on_exception = true
[20:30:39] havenwood: In 2.4 get a nice warning instead of aborting with: Thread.report_on_exception = true
[20:30:58] araujo_: has joined #ruby
[20:31:45] skade: has joined #ruby
[20:31:45] havenwood: Seems the latter might be nice to have on by default.
[20:32:12] Authenticator: That's a nice addition. I'm looking forward to trying 2.4 later today.
[20:32:23] spudowiar: Anyone got any ideas for me?
[20:32:36] nobitanobi: has joined #ruby
[20:33:06] spudowiar: I need to override the pipe operator when the second operand is a certain class (or descendant)
[20:33:51] spudowiar: mustmodify: I bet I can make that work :P
[20:34:18] jhass: if you can make that work answering your own question should be a piece of cake
[20:34:23] Authenticator: havenwood: View the source for this: http://www.rubydoc.info/gems/net-ping/1.7.8/Net/Ping/External#ping-instance_method ... I have to add 'thread.join' at line 56 to keep it from completing almost instantly.
[20:34:28] spudowiar: jhass: well, tiny bit different :)
[20:34:34] spudowiar: jhass: but it'd be similar to the Gist
[20:34:38] jhass: nope, actually easier
[20:34:47] jhass: since | is a method, || isn't
[20:34:54] RegulationD: has joined #ruby
[20:35:03] jhass: ObjectSpace.each_object(Class) {|class| class.send(:prepend, MyPipe) }
[20:35:17] tjohnson: has joined #ruby
[20:35:28] spudowiar: jhass: isn't that.. expensive?
[20:35:34] jhass: of course?
[20:35:36] roamingdog: has joined #ruby
[20:35:43] jhass: you didn't expect any sane solution, did you?
[20:35:54] spudowiar: would I be wrong to say yes?
[20:36:16] spudowiar: but there must be some way :/
[20:36:20] nankyokusei: has joined #ruby
[20:36:35] jhass: I just showed it
[20:36:59] jhass: well iirc TracePoint/set_trace_func can't override the return value
[20:37:32] spudowiar: well, worst case I can just wrap the first operand in the pipeline with a method
[20:37:46] jhass: just give it up already, srsly
[20:37:50] roshanavand: has joined #ruby
[20:37:59] jhass: some things are not sanely solvable
[20:38:34] spudowiar: thanks anyway :)
[20:38:37] tch: has joined #ruby
[20:39:52] mustmodify: Sorry, I had to go parent.
[20:40:14] mustmodify: If I wanted to do something like that, I would have to override the || and && operators and pass back an object that was sneaky, right?
[20:40:18] jaguarmagenta: has joined #ruby
[20:40:34] mustmodify: a truthy operator that pretended to be the net result of the last operation
[20:40:52] mustmodify: Or I could inject a module that responded to #explain
[20:40:53] tAn: has joined #ruby
[20:41:24] spudowiar: mustmodify: well, || and && isn't overridable
[20:41:51] jaguarma_: has joined #ruby
[20:41:52] KCmetro: has joined #ruby
[20:42:16] evansbee: has joined #ruby
[20:43:00] KCmetro: has joined #ruby
[20:44:47] ur5us: has joined #ruby
[20:44:57] tcsh: has joined #ruby
[20:46:00] dhollinger: has joined #ruby
[20:46:14] tAn: has joined #ruby
[20:46:24] aegis3121: has joined #ruby
[20:46:30] mustmodify: jhass: was this for spudowiar or me? `ObjectSpace.each_object(Class) {|class| class.send(:prepend, MyPipe) }`
[20:46:31] ItSANgo: has joined #ruby
[20:46:36] spudowiar: mustmodify: me
[20:46:58] moei: has joined #ruby
[20:47:10] zdman135: has joined #ruby
[20:47:31] craigp: has joined #ruby
[20:49:14] mustmodify: yeah, if && and || aren't overrideable, I guess there's nothing to be done.
[20:49:34] tAn: has joined #ruby
[20:49:54] spudowiar: Well, not necessarily
[20:50:16] memorasus: has joined #ruby
[20:50:22] spudowiar: So, imagine you have a boolean explanation block
[20:50:30] spudowiar: You could get the source code (if possible)
[20:50:46] spudowiar: And then do dynamic replacement and eval it (using ParseTree or something) :)
[20:50:56] rickmasta: has joined #ruby
[20:51:13] SilverKey: has joined #ruby
[20:51:23] mustmodify: Ah, so I could go all Rubinius on it.
[20:51:28] yfeldblum: has joined #ruby
[20:51:55] Gadgetoid: has joined #ruby
[20:52:20] spudowiar: What does that mean?
[20:52:51] jhass: https://carc.in/#/r/14ia okay I guess we lack the necessary macro methods atm :P
[20:52:58] mustmodify: I guess Rubinius has all kind of meta tools...
[20:53:52] mustmodify: so maybe one of them would allow me to go back and do that. I'll ask on #rubinius.
[20:55:42] kavanagh: has joined #ruby
[20:56:05] Madplatypus: has joined #ruby
[20:57:22] chrisseaton: mustmodify: I think you want their Gitter channel nowadays
[20:58:13] dvinciguerra_: has joined #ruby
[21:01:11] yoongkang: has joined #ruby
[21:03:19] blackmesa: has joined #ruby
[21:04:01] ramfjord_: has joined #ruby
[21:05:09] wrkrcoop: has joined #ruby
[21:05:11] memorasus: has joined #ruby
[21:06:18] GodFather: has joined #ruby
[21:06:59] seventy: has joined #ruby
[21:07:54] soahccc: Does anyone know (sorry total math scrub) how to ... "inverse" an ease_out_expo easing? Am I correct that these functions requires you to ease from low to high?
[21:08:56] soahccc: I try to ease out and ease in volume levels and it just crushes me with all those scary formulas
[21:09:21] skade: has joined #ruby
[21:09:33] ryker: has joined #ruby
[21:09:53] SilverKey: has joined #ruby
[21:10:00] banisterfiend: has joined #ruby
[21:11:16] SilverKey: has joined #ruby
[21:12:41] jeremyhall: has joined #ruby
[21:13:12] yfeldblum: has joined #ruby
[21:13:34] _whitelogger: has joined #ruby
[21:13:42] yorickpeterse: OK I have a feeling I'm being a total idiot here but my brain is not co-operating. Is there a way using bit masking to go from 0x7ff723f2a260 to 0x7ff723f22280? Note that when doing this only 0x7ff723f22280 is known (so we can't just subtract something from it)
[21:13:56] asianMike: has joined #ruby
[21:14:03] yorickpeterse: (for those wondering, the difference between the two values is 1023 * 32)
[21:14:15] oleksandriuzikov: has joined #ruby
[21:14:19] yorickpeterse: but the offset may also be 4 * 32
[21:16:13] eam: yorickpeterse: 0x7ff723f2a260 & 0x0 | 0x7ff723f22280
[21:17:39] yorickpeterse: eam: the go-to pointer is not known
[21:18:00] yorickpeterse: essentially the idea is to take a pointer to a sequence of aligned memory, then get a pointer to the start of it
[21:18:05] eam: so you mean only 0x7ff723f2a260 is known?
[21:18:12] mustmodify___: has joined #ruby
[21:18:25] yorickpeterse: what we do know is that every value in this range is 32 bytes, and there can be at most 1024 values
[21:19:55] der-landgraf: has joined #ruby
[21:20:02] neanderslob: has joined #ruby
[21:20:03] neanderslob_: has joined #ruby
[21:21:24] xall_: has joined #ruby
[21:21:58] yorickpeterse: not sure if it's even possible without knowing the start :/
[21:22:01] soahccc: Okay I figured it out :D I had to reverse an ease_in_expo instead... Auto lower volume when someone talks in teamspeak? Ruby serves! :)
[21:22:15] memorasus: has joined #ruby
[21:23:17] yfeldblum: has joined #ruby
[21:24:04] swills: has joined #ruby
[21:25:01] eljimbo: has joined #ruby
[21:25:24] banisterfiend: has joined #ruby
[21:25:42] newbism: has joined #ruby
[21:25:46] maloik: has joined #ruby
[21:27:49] newbism: Hi I'm trying to use activerecord alone in my ruby script, I have gem 'activerecord', '4.2.7' in my Gemfile, run bundle update... try to run the app and I get 'require' cannot load such file. Whats wrong here?
[21:28:04] postmodern: has joined #ruby
[21:29:24] electrostat: has joined #ruby
[21:29:42] macsteps: has joined #ruby
[21:30:54] ramfjord: has joined #ruby
[21:31:47] newbism: arg... require active_record is the correct
[21:31:53] vjacob: has joined #ruby
[21:33:38] pawnbox: has joined #ruby
[21:34:30] neanderslob: has joined #ruby
[21:34:43] Guest60828: has joined #ruby
[21:35:37] roshanavand: has joined #ruby
[21:36:09] macsteps: has joined #ruby
[21:37:38] vdamewood: has joined #ruby
[21:37:50] sucks: has joined #ruby
[21:38:24] zeroDi: has joined #ruby
[21:39:02] chipotle: has joined #ruby
[21:39:11] bleep: has joined #ruby
[21:39:59] bleep: How come this doesn't work for when some_variable is 0 or negative? if !some_variable.is_a? Integer || some_variable < 1
[21:41:38] Papierkorb: bleep: You're missing parantheses: !some_variable.is_a?(Integer) || some_variable < 1
[21:41:55] Papierkorb: Else, the || bind stronger, yielding unexpected results
[21:42:31] bleep: I put params around like this and it seems to work too: (!some_variable.is_a? Integer )
[21:42:50] bleep: Papierkorb: not entirely sure what that means
[21:43:10] Papierkorb: !some_variable.is_a?(Integer) || some_variable < 1
[21:43:19] Papierkorb: See the () around Integer
[21:43:25] neanderslob: has joined #ruby
[21:43:35] neanderslob_: has joined #ruby
[21:43:35] bleep: do you mean it was checking whether some_variable was an integer Or "some_variable < 1"
[21:44:23] Papierkorb: bleep: Ruby interpret it like this: !some_variable.is_a?(Integer || some_variable < 1)
[21:44:32] bleep: ah okay, i see
[21:44:32] cd-rum: has joined #ruby
[21:44:34] bleep: thank you
[21:45:42] sucks: has joined #ruby
[21:46:03] havenwood: >> -1.negative?
[21:46:04] ruby[bot]: havenwood: # => true (https://eval.in/609658)
[21:46:07] vjacob: has joined #ruby
[21:46:22] abhinavmehta: has joined #ruby
[21:46:35] havenwood: >> 0.negative? # bleep
[21:46:36] ruby[bot]: havenwood: # => false (https://eval.in/609659)
[21:47:03] havenwood: Ruby 2.3 ftw
[21:47:07] sucks: has joined #ruby
[21:47:08] Authenticator: Where is the net-ping gem built from? Neither the homepage nor the source link point to code which matches the gem I'm using...
[21:47:09] bleep: havenwood: thanks
[21:47:14] jenrzzz: has joined #ruby
[21:47:14] jenrzzz: has joined #ruby
[21:47:59] bleep: havenwood: boo not in 2.2
[21:48:41] SilverKey: has joined #ruby
[21:48:54] yfeldblum: has joined #ruby
[21:48:59] elomatreb: Is there something stopping you from just using 2.3 then? (Assuming you're not building a library)
[21:50:19] bleep: was told to use 2.2 lol
[21:50:28] bleep: not my decision
[21:50:42] johnmilton: has joined #ruby
[21:50:43] cd-rum_: has joined #ruby
[21:51:30] neanderslob: has joined #ruby
[21:52:58] memorasus: has joined #ruby
[21:53:18] ramfjord: has joined #ruby
[21:54:06] rickmasta: has joined #ruby
[21:55:39] cZk: has joined #ruby
[21:56:18] spudowiar: >> 1.to_i < 1
[21:56:20] ruby[bot]: spudowiar: # => false (https://eval.in/609664)
[21:56:28] spudowiar: >> -1.to_i < 1
[21:56:29] ruby[bot]: spudowiar: # => true (https://eval.in/609665)
[21:56:34] spudowiar: >> nil.to_i < 1
[21:56:35] ruby[bot]: spudowiar: # => true (https://eval.in/609666)
[21:56:47] spudowiar: >> nil.to_i < 0
[21:57:20] elomatreb: Is the spam protection of the bot that sensitive? D:
[21:57:28] spudowiar: >> nil.to_i < 0
[21:57:29] ruby[bot]: spudowiar: # => false (https://eval.in/609667)
[21:57:35] jhass: ?experiment
[21:57:35] ruby[bot]: Please use your local irb or pry (see ?pry) to experiment, ruby[bot]'s eval functionality is for demonstration purposes only.
[21:57:36] spudowiar: nil.to_i is 0
[21:57:44] spudowiar: jhass: I was trying to demonstrate
[21:57:51] jhass: and yeah, sadly it is
[21:58:13] johnmilton: has joined #ruby
[21:58:20] spudowiar: jhass: sadly what is? sensitive spam protection? or nil.to_i == 0?
[21:58:24] yoongkang: has joined #ruby
[21:59:14] jhass: and Integer(var) is fugly, both visually and semantically (method pretends to be a class constructor)
[21:59:35] roshanavand: has joined #ruby
[21:59:39] elomatreb: nil casting to 0 is one thing, completely non-numeric strings casting to 0 is another imo
[21:59:56] Zarthus: not sure what you were expecting with 1.to_i < 1
[21:59:58] spudowiar: that;s.. disgusting
[21:59:59] zdman135: has joined #ruby
[22:00:10] spudowiar: Zarthus: was just demoing
[22:00:18] spudowiar: All that was for demo purposes
[22:00:46] jhass: just use an array literal, [example 1, example 2, example 3]
[22:01:21] johnmilton: has joined #ruby
[22:01:28] spudowiar: yeah, in hindsight
[22:02:07] nando293921: has joined #ruby
[22:03:46] neanderslob: has joined #ruby
[22:04:50] spudowiar: >> class Numeric def negative?; self < 0 end end; [-2.0, -1, 0, 1, 2.0].freeze.map { |num| num.negative? }.freeze
[22:04:51] ruby[bot]: spudowiar: # => [true, true, false, false, false] (https://eval.in/609673)
[22:05:33] bleep: Which would you prefer: An interviewer who didn't know the concepts but learned them quickly, or someone who was experienced with the concepts already
[22:05:39] bleep: interviewee*
[22:06:04] spudowiar: Could the experienced interviewee learn new concepts quickly as well?
[22:06:14] bleep: unknown, didn't test for that
[22:06:39] macsteps: has joined #ruby
[22:06:40] spudowiar: bleep: well, it's risky but most companies would opt for the experienced one? idk
[22:06:53] spudowiar: I personally would have tested that :P
[22:07:39] Zarthus: bleep: what does the ad ask for?
[22:07:53] Zarthus: interviewing someone is a lot more complex than "can you do what we want you to do"
[22:09:26] Zarthus: if both are equal fits in the team i'd roll with the one with most experience
[22:09:35] Jonathel: has joined #ruby
[22:09:53] Zarthus: but you do some before screening (of their github, so, etc.) and can judge code quality as well
[22:12:29] yfeldblum: has joined #ruby
[22:12:59] bleep: anyone know of a bash command that takes a boolean as a parameter?
[22:13:37] Zarthus: ¯\_(ツ)_/¯
[22:13:45] troulouliou_div2: has joined #ruby
[22:14:02] solars: has joined #ruby
[22:19:04] blandflakes: has joined #ruby
[22:19:14] SilverKey: has joined #ruby
[22:19:41] ascarter: has joined #ruby
[22:21:24] killerkamel: has joined #ruby
[22:21:28] drbrain: Mirubiri: you asked a few days ago why rspec is less expressive than ruby
[22:22:03] drbrain: ruby doesn't give authors the ability to redefine syntax
[22:22:20] drbrain: so your expressiveness as a ruby API designer is limited
[22:23:14] aibot: has joined #ruby
[22:24:23] Jonathel: is there a way to daemonize a ruby app without any gems?
[22:24:58] al2o3-cr: Jonathel: Process.daemon
[22:25:30] weaksauce: has joined #ruby
[22:25:53] drbrain: don't forget to Dir.chdir '/' and so-forth
[22:26:01] drbrain: oh, I guess Process.daemon does all that now, doesn't it?
[22:26:02] Papierkorb: Process.daemon does that
[22:26:18] Papierkorb: but also, by default, closes stdout. uargh
[22:26:34] nizzlefritz: has joined #ruby
[22:27:14] drbrain: if it is a daemon where would stdout appear?
[22:27:57] Papierkorb: in the current TTy. Though, daemonizing is not something I want my applications do. Annoying enough atom does it.
[22:28:47] Jonathel: so do you schedule it Papierkorb? like via a cron job?
[22:28:56] Papierkorb: Jonathel: what is "it"?
[22:29:05] Jonathel: your application
[22:29:56] Papierkorb: If it's a server, I write a systemd.service unit for it. Dead simple, and easy to debug as I still have stdout and friends if I need it. If it's a CLI application .. why should it daemonize itself? Same for GUI applications
[22:30:12] Papierkorb: And if it should be run periodically, yes, cronjob, or .service and .timer units for it
[22:30:21] Parko: has joined #ruby
[22:30:54] Papierkorb: Jonathel: what kind of application are you writing?
[22:30:59] jaguarmagenta: has joined #ruby
[22:32:10] Jonathel: well i guess mine does not need to be daemonized. The app needs to make "frequent" calls to a web service, download a file process is it and update a database thats the main one
[22:32:48] zenlot6: has joined #ruby
[22:32:56] Papierkorb: Sounds like a cronjob, or if it should be triggered differently to that, a usual system .service
[22:33:00] Jonathel: i just wonder how to implement concurrency and especially if ruby crashes :/
[22:33:22] Jonathel: yeah i guess
[22:33:24] Papierkorb: what does concurrency have to do with daemonizing your application?
[22:33:52] Papierkorb: ruby doesn't crash (... Usually!), if it does you have an issue you need to debug regardless
[22:33:55] neanderslob_: has joined #ruby
[22:34:39] Jonathel: well if i spawn a new thread for a task and the main process crashes not sure how to handle it
[22:35:14] neanderslob: has joined #ruby
[22:35:21] Jonathel: well yeah i guess if its cron it can "recover" with some logic hopefully
[22:35:24] Papierkorb: Are you using threads or processes?
[22:36:29] Papierkorb: If the main thread crashes, you forgot to catch an error or to do a nil check. Fix it.
[22:36:49] mustmodify___: has left #ruby: ()
[22:37:14] nankyokusei: has joined #ruby
[22:38:19] Papierkorb: The dispatcher shall not crash. There's no real recovery from this. So, it better not crash ;)
[22:39:16] oleksandriuzikov: I would use a separate script to schedule tasks in a db and many workers for the task processing
[22:40:23] danman: has joined #ruby
[22:40:34] Papierkorb: Jonathel: also make sure that you actually need workers. If all you do is 1) download file 2) stuff it into some database 3) do this every hour or so, you could be well served by using a cronjob calling a simple ruby script doing just that
[22:41:15] memorasus: has joined #ruby
[22:41:23] cyphase: has joined #ruby
[22:41:25] Jonathel: yeah the thing is that it might download several files and process them depending on what the service returns
[22:41:38] Papierkorb: Your systems service scheduler is there to help you. Make use of it. If you're on a recent distro, chances are good you're on systemd, in which case, you are all set
[22:41:57] Jonathel: the idea is to have each thread grab the file process them and update the db saying it finished
[22:42:07] drbrain: Papierkorb: yep, I agree
[22:42:33] genpaku: has joined #ruby
[22:42:37] Jonathel: yeah i guess i might have a look on that, not that experienced with systemd despite its capabilities
[22:43:00] Papierkorb: Jonathel: So you don't need much of a dispatcher. A simple: files.map{|url| Thread.new{ ... } }.each(&:join) # probably already suffices
[22:43:59] Papierkorb: Jonathel: Happy to help with systemd. You'll need a .service file. If you want to schedule that like a cronjob, a .timer file afterwards.
[22:45:13] Jonathel: Thank you Papierkorb you gave me some ideas. I ll have a look on systemd i feel guilty for not playing with it
[22:45:29] bleep: is there considered an accepted/default formatting for commenting the top of a file to describe what the class does?
[22:45:35] jenrzzz: has joined #ruby
[22:45:37] Papierkorb: The man pages are quite good, but overwhelming at first. Instead, check how other .service files are written, they're in /usr/lib/systemd/system, yours will be placed in /etc/systemd/system
[22:45:41] shevy: bleep I do that
[22:46:04] bleep: shevy: in what way?
[22:46:31] elomatreb: bleep: Rubocop default configuration makes it an error to not have documentation for a class, so I'd say it's accepted
[22:46:56] elomatreb: In the rare case you really don't want/need docs you can always just say "# nodoc"
[22:47:06] bleep: elomatreb: i meant more, what's the accepted format? Having a big row of ########################### as a doc block? or something else?
[22:47:14] sdwrage: has joined #ruby
[22:47:23] shevy: bleep for instance that was one class I wrote today to batch-compile several programs (just an Array you supply; or via the commandline respectively): https://gist.github.com/shevegen/78aa32325e36e8a3c8e5cb8e8c6de17f
[22:47:57] elomatreb: I'd say that lines like that hurt legibility more than they help, but that's probably opinion
[22:48:08] Papierkorb: bleep: http://www.rubydoc.info/gems/yard/file/docs/GettingStarted.md
[22:48:12] shevy: bleep I only write a short header usually and I use another class to extract that header and display it on the commandline, if I request it via that class
[22:48:43] shevy: I don't think there is any standard. most people probably do not write any comments at all
[22:48:48] Papierkorb: In-source documentation is only really worthwhile if you have a tool which can generate something readable out of it
[22:49:10] pdoherty: has joined #ruby
[22:50:03] elomatreb: But there are so many tools that can use in-source docs (eg. IDE stuff and similar) that I'd say it's almost always worth it
[22:50:57] elomatreb: shevy: btw, "Encoding: ISO-8859-1"?
[22:51:48] elomatreb: Huh, didn't even know that there are more than one valid encoding comment formats
[22:52:25] shevy: you can get a list of the valid encoding formats
[22:52:43] Papierkorb: Just use UTF-8 for everything...
[22:52:51] elomatreb: I just meant that I thought that "# -*- ..." was the only valid format for that
[22:53:16] shevy: Encoding.list
[22:53:21] Mirubiri: drbrain: I don't get the point
[22:53:31] mattwashere: has joined #ruby
[22:53:45] shevy: elomatreb I think it scans for the minimum tokens required... I have seen different variants all working fine
[22:54:34] nibbo: has joined #ruby
[22:54:40] elomatreb: But still, what reason is there to use 8859-1 in a newly written program?
[22:54:49] abhinavmehta: has joined #ruby
[22:54:56] nemish: has joined #ruby
[22:54:58] shevy: what reason is there not to?
[22:55:25] drbrain: elomatreb: your input documents are ISO-8859-1 and your new program is modifying them
[22:55:43] drbrain: when the strings in your code are also ISO-8859-1 you have the easiest time
[22:55:53] elomatreb: That utf-8 is the generally accepted standard that also supports all characters 8859 does?
[22:56:35] elomatreb: drbrain: I guess, but I really don't see that happening anywhere accept when interacting with some really old legacy systems
[22:56:43] shevy: that has not been my experience
[22:57:25] Rodya_: has joined #ruby
[22:57:26] drbrain: I'm not very familiar with what programmers outside English-speaking countries uses as their typical document encoding
[22:57:33] Papierkorb: drbrain: UTF-8.
[22:57:51] drbrain: Papierkorb: even in Japan, China, Korea?
[22:57:55] Papierkorb: Please, for the love of everything holy, use it. There's not enough time to tinker with the encoding selection to get it right
[22:58:31] Papierkorb: drbrain: European countries seem to mostly use UTF-8 by now. No idea about asian countries, some may still use their local encoding :|
[22:58:37] shevy: everything works fine there
[22:58:43] drbrain: Papierkorb: that's my understanding
[22:58:52] Papierkorb: But, that's no reason to not use UTF-8 everywhere you can :)
[22:58:59] neanderslob: has joined #ruby
[22:59:21] creat: has joined #ruby
[22:59:27] elomatreb: Given how broken the ISO encodings were in Europe, I really don't want to have to use some local Asian encoding
[22:59:40] drbrain: shevy: last I heard there were some round-trip issues with CJK countries because Unicode made some poor choices
[23:00:14] Papierkorb: Well, afaik, many of their characters are encoded as 3 bytes in utf-8
[23:00:33] Papierkorb: which more often than not, increases file size significantly for them
[23:00:52] elomatreb: But emoji originated from Japan, so I'd imagine they'd be on the forefront of unicode acceptance
[23:01:06] shevy: well they used to have $KCODE in the old days :)
[23:01:07] Papierkorb: sadly they are...
[23:01:20] shevy: not sure if this is still needed in ruby past 1.9.x era
[23:01:31] neanderslob_: has joined #ruby
[23:02:19] xpitr: ugh i hate encodings so much
[23:02:24] xpitr: and why i love charlock_holmes
[23:03:14] electrostat: has joined #ruby
[23:04:54] l4v2: has joined #ruby
[23:09:11] neanderslob: has joined #ruby
[23:09:36] neanderslob_: has joined #ruby
[23:10:55] neanderslob: has joined #ruby
[23:12:53] Sembei: has joined #ruby
[23:15:03] pawnbox: has joined #ruby
[23:16:01] killerkamel: has joined #ruby
[23:16:08] ProofTechnique: has joined #ruby
[23:16:40] asianMike: has left #ruby: ()
[23:28:19] blackmesa: has joined #ruby
[23:29:58] bastelfreak: has joined #ruby
[23:30:22] macsteps: has joined #ruby
[23:30:27] reppard: has joined #ruby
[23:31:33] bleep: I have a very small Ruby project that doesn't use any gems, but I want to use the memfs gem for unit testing. Would it make more sense to put the test in a /test folder and have the Gemfile there, or to use the root directory to store the Gemfile?
[23:32:44] elomatreb: bleep: put the Gemfile in the root directory, but put the gem you want in a :development group?
[23:32:51] KnownSyntax_: has joined #ruby
[23:32:51] KnownSyntax_: has joined #ruby
[23:33:41] bleep: elomatreb: thanks
[23:36:42] mattwashere: has joined #ruby
[23:37:35] roamingdog: has joined #ruby
[23:38:26] cdg_: has joined #ruby
[23:38:56] paradisaeidae_: has joined #ruby
[23:39:40] yfeldblum: has joined #ruby
[23:41:10] yfeldblum: has joined #ruby
[23:41:53] whathappens: has joined #ruby
[23:42:39] paradisaeidae: has joined #ruby
[23:44:56] asianMike: has joined #ruby
[23:45:27] douglascorrea: has joined #ruby
[23:46:53] aries_liuxueyang: has joined #ruby
[23:47:02] skweek: has joined #ruby
[23:48:26] Xiti: has joined #ruby
[23:49:23] isberg: has joined #ruby
[23:50:41] Jayson_Virissimo: has joined #ruby
[23:50:46] pawnbox: has joined #ruby
[23:52:07] whippythellama: has joined #ruby
[23:53:28] Rodya_: has joined #ruby
[23:55:06] koooge: has joined #ruby
[23:57:52] yardenbar: has joined #ruby
[23:59:41] bleep: I'm using RubyMine and trying to run `rake test` is throwing an error. Googling shows it might be because test/unit version is too new for my version of Ruby (2.2.2)
[23:59:48] bleep: How do I change the version of test/unit?