« Back to channel list

#ruby - 09 April 2017

« Back 1 day Forward 1 day »
[00:02:48] libastral: has joined #ruby
[00:03:43] impermanence: has joined #ruby
[00:10:47] claudevandort: has joined #ruby
[00:13:54] cosmodanger: has joined #ruby
[00:20:41] mostlybadfly: has joined #ruby
[00:24:59] PresidentBiscuit: has joined #ruby
[00:28:58] milardovich: has joined #ruby
[00:29:07] CloCkWeRX: has joined #ruby
[00:29:25] RobertBirnie: has joined #ruby
[00:29:54] libastral: has joined #ruby
[00:30:00] AndBobsYourUncle: has joined #ruby
[00:30:45] AndBobsYourUncle: has joined #ruby
[00:31:33] AndBobsYourUncle: has joined #ruby
[00:32:29] AndBobsYourUncle: has joined #ruby
[00:32:44] xenops: has joined #ruby
[00:33:18] AndBobsYourUncle: has joined #ruby
[00:33:31] xenops: has joined #ruby
[00:34:20] xenops: has joined #ruby
[00:35:09] xenops: has joined #ruby
[00:35:56] xenops: has joined #ruby
[00:42:55] BSaboia: has joined #ruby
[00:50:49] AndBobsYourUncle: has joined #ruby
[00:53:16] esObe_: has joined #ruby
[00:56:07] raul782: has joined #ruby
[00:58:59] GodFather: has joined #ruby
[01:00:01] Pumukel: has joined #ruby
[01:02:35] jgt1: has joined #ruby
[01:08:34] Pumukel: has joined #ruby
[01:09:17] jdm: has joined #ruby
[01:13:46] gdonald: has joined #ruby
[01:13:59] postmodern: has joined #ruby
[01:16:24] jdm: has joined #ruby
[01:17:17] acalycine: has joined #ruby
[01:17:23] RobertBirnie: has joined #ruby
[01:19:04] hahuang61: has joined #ruby
[01:19:48] impermanence: what is a program program called? Like in python it's a module, in java it's a class file, in puppet it's a manifest...does ruby have something like that?
[01:19:56] impermanence: ^ ruby program that should have read.
[01:25:20] nankyokusei: has joined #ruby
[01:28:38] herbmillerjr: has joined #ruby
[01:31:23] jenrzzz: has joined #ruby
[01:35:51] JeanCarloMachado: has joined #ruby
[01:37:52] hfp_work: has joined #ruby
[01:38:22] hfp: has joined #ruby
[01:43:31] acalycine: Hey. Shouldn't I get a match in this: https://gist.github.com/anonymous/abe3b7c344ee6be29fd24dc302258592
[01:52:36] herbmillerjr: has joined #ruby
[01:55:25] llua: in_progress[0].include? 'foo' would
[01:56:02] acalycine: Ah. But how can I not specify the group ([0)? Because it could be in any of those.
[01:56:09] acalycine: i.e. recursively search
[01:56:31] llua: in_progress.flatten.include? 'foo'
[01:56:50] raul782: has joined #ruby
[01:57:24] PresidentBiscuit: has joined #ruby
[01:57:40] acalycine: I get `NoMethodError: undefined method `include' for #<Array:0x007fec8b876638>`
[01:58:18] llua: forgot the ?
[01:58:35] mzo: has joined #ruby
[01:59:01] acalycine: That works, thanks.
[02:00:13] acalycine: Now, how could I search for "Adelaide", and get the "820" associated with it?
[02:08:12] Guest96: has joined #ruby
[02:08:57] libastral: has joined #ruby
[02:11:10] RobertBirnie: has joined #ruby
[02:12:54] Guest96: has joined #ruby
[02:14:31] Jameser: has joined #ruby
[02:18:18] xall: has joined #ruby
[02:19:31] t-recx: has joined #ruby
[02:24:01] impermanence: has joined #ruby
[02:25:35] RobertBirnie: has joined #ruby
[02:37:53] jdelStrother: has joined #ruby
[02:39:05] spicerack: has joined #ruby
[02:39:41] Pumukel: has joined #ruby
[02:48:22] nofxx: acalycine, ary.select { |a| a.include? 'Adelaide' }.first
[02:48:50] acalycine: Ahh. And then I just select the first from that?
[02:49:15] nofxx: ops... guess #find , well check which returns only the array
[02:49:46] nofxx: acalycine, try find, like select will get you [[a]], find will [a]
[02:50:02] nofxx: select is for multiple results
[02:50:13] acalycine: That works beautifully. Thanks! :D
[02:50:55] rexb0t: has joined #ruby
[02:51:44] nofxx: acalycine, if you always searching the second element, you may change include? with a[1] == 'Adelaide'
[02:52:08] acalycine: Well the data will change, but yeah, good idea. Thanks.
[02:56:31] hndk: has joined #ruby
[02:57:38] cam27: has joined #ruby
[03:00:20] shinnya: has joined #ruby
[03:12:04] gix: has joined #ruby
[03:19:56] hahuang61: has joined #ruby
[03:21:20] gk_1wm_su: has joined #ruby
[03:23:13] gk_1wm_su: has left #ruby: ()
[03:26:08] herbmillerjr: has joined #ruby
[03:26:12] nankyokusei: has joined #ruby
[03:26:16] enterprisey: has joined #ruby
[03:33:13] charliesome: has joined #ruby
[03:43:59] kristofferR: has joined #ruby
[03:45:04] gk_1wm_su: has joined #ruby
[03:47:33] gk_1wm_su: has left #ruby: ()
[03:49:24] ptx0: has joined #ruby
[03:50:05] herbmillerjr: has joined #ruby
[03:50:48] Nezith: has joined #ruby
[03:53:50] spicerack: has joined #ruby
[03:58:50] raul782: has joined #ruby
[04:02:34] enterprisey: has joined #ruby
[04:08:52] _djbkd: has joined #ruby
[04:09:07] milardovich: has joined #ruby
[04:15:17] ruby[bot]: -b MichaelSmith_!*@*$#ruby-banned
[04:15:42] milardovich: has joined #ruby
[04:23:01] gdonald: has joined #ruby
[04:26:03] jdm: has joined #ruby
[04:32:50] electrostat: has joined #ruby
[04:37:09] Nezith: has joined #ruby
[04:39:16] agent_white: has joined #ruby
[04:47:00] gdonald: has joined #ruby
[04:54:43] _djbkd: has joined #ruby
[04:59:05] bkxd: has joined #ruby
[05:03:24] dar123: has joined #ruby
[05:04:15] jenrzzz: has joined #ruby
[05:04:31] cmhobbs: has joined #ruby
[05:05:02] rakm: has joined #ruby
[05:05:24] Nezith: has joined #ruby
[05:05:31] cmhobbs: i've got an array of strings and i'm trying to make sub arrays based on if a string is matched. so if i have ["foo", "bar", "baz"], i want to make a sub array for every foo resulting in [["foo", "bar"], "baz"]
[05:05:37] cmhobbs: anyone know of an efficient way to go about that?
[05:06:08] cmhobbs: i've been messing with each_index and select, producing some crazy iterators and i don't think i'm going about things right
[05:06:25] cmhobbs: is it possible to get the next element while inside an iterator?
[05:07:55] go|dfish: cmhobbs: perhaps you're looking for .each_cons
[05:08:51] cmhobbs: yeah, i was just looking at that in the docs, thanks
[05:08:53] bruce_lee: has joined #ruby
[05:08:53] bruce_lee: has joined #ruby
[05:15:11] _whitelogger: has joined #ruby
[05:17:55] monban: has joined #ruby
[05:18:28] nofxx: go|dfish, man...wish I new that already heh thank you
[05:21:00] hahuang61: has joined #ruby
[05:22:10] nofxx: go|dfish, might change a lot of code... will search for "[i (+|-) 1]" =D
[05:27:04] nankyokusei: has joined #ruby
[05:34:29] skweek: has joined #ruby
[05:39:46] ayonkhan: has joined #ruby
[05:49:46] solocshaw: has joined #ruby
[05:53:06] rhyselsmore: has joined #ruby
[06:00:36] raul782: has joined #ruby
[06:21:13] _whitelogger: has joined #ruby
[06:27:36] BaroMeter: has joined #ruby
[06:54:13] jusa: has joined #ruby
[06:54:31] User458764: has joined #ruby
[06:56:08] BubonicPestilenc: has joined #ruby
[06:57:57] PresidentBiscuit: has joined #ruby
[06:58:03] bkxd: has joined #ruby
[07:10:34] xenops: has joined #ruby
[07:10:50] jgnagy: has joined #ruby
[07:15:43] griff: has joined #ruby
[07:16:35] bkxd: has joined #ruby
[07:21:34] dionysus69: has joined #ruby
[07:21:50] hahuang61: has joined #ruby
[07:24:02] Mia: has joined #ruby
[07:25:13] solocshaw: has joined #ruby
[07:25:16] whiteline: has joined #ruby
[07:27:59] nankyokusei: has joined #ruby
[07:33:04] Mon_Ouie: has joined #ruby
[07:35:20] antgel: has joined #ruby
[07:35:57] jusa: has joined #ruby
[07:41:08] cfec0b8d: has joined #ruby
[07:41:52] jamesaxl: has joined #ruby
[07:43:39] bz: has joined #ruby
[07:48:31] cyphase: has joined #ruby
[07:48:35] grh: has joined #ruby
[07:53:53] esObe_: has joined #ruby
[08:01:36] toretore: has joined #ruby
[08:03:09] BaroMeter: has joined #ruby
[08:03:29] djbkd_: has joined #ruby
[08:05:24] romain_t: has joined #ruby
[08:07:25] bkxd: has joined #ruby
[08:08:28] CloCkWeRX: has joined #ruby
[08:11:19] pwnd_nsfw`: has joined #ruby
[08:11:54] vuoto: has joined #ruby
[08:12:06] Bozo: has joined #ruby
[08:13:19] Qchmqs: has joined #ruby
[08:15:09] hutch34: has joined #ruby
[08:20:02] xenops: has joined #ruby
[08:20:37] harfangk: has joined #ruby
[08:21:04] DARPA: has joined #ruby
[08:30:43] Guest96: has joined #ruby
[08:32:59] rgr_: has joined #ruby
[08:33:30] Mon_Ouie: has joined #ruby
[08:38:18] govg: has joined #ruby
[08:43:22] harfangk: has joined #ruby
[08:49:55] User458764: has joined #ruby
[08:51:33] milardovich: has joined #ruby
[08:55:30] solocshaw: has joined #ruby
[09:00:40] vuoto: has joined #ruby
[09:03:22] raul782: has joined #ruby
[09:03:58] rhyselsmore: has joined #ruby
[09:04:44] Rutix: has joined #ruby
[09:04:44] Rutix: has joined #ruby
[09:05:53] acalycine: has joined #ruby
[09:06:11] acalycine: Does Ruby have a way of ordering array elements by numbers? https://gist.github.com/anonymous/dea8257b4dfa63b58502e04cb2eb218b
[09:06:40] Xeago: has joined #ruby
[09:08:11] apeiros: sort & sort_by
[09:08:19] apeiros: @ acalycine
[09:08:38] apeiros: if you want a more specific answer, provide more specific information
[09:08:41] acalycine: I want to put that ^ in order from highest to lowest.
[09:08:54] acalycine: i.e. the first number in each group of arrays, or whatever it's called
[09:09:19] apeiros: your arrays don't contain numbers, they contain strings
[09:09:48] apeiros: so sort_by and return the first element converted to an int in the sort_by block
[09:10:45] acalycine: I need it as a string later.
[09:11:06] Hanmac: acalycine: its no problem, it only temporally converted to a int
[09:11:22] acalycine: How would I use #sort_by in this case?
[09:11:42] djbkd_: has joined #ruby
[09:12:05] apeiros: exactly the way I described it
[09:12:42] Jackneill: has joined #ruby
[09:14:43] acalycine: I don't understand the syntax for sort_by.
[09:15:00] ddffg: has joined #ruby
[09:16:09] SteenJobs: has joined #ruby
[09:16:14] Mon_Ouie: &ri Array#sort_by
[09:16:14] `derpy: http://ruby-doc.org/core-2.4.0/Enumerable.html#method-i-sort_by
[09:16:28] Mon_Ouie: Look at the example with word.length
[09:16:40] PaulCapestany: has joined #ruby
[09:18:45] acalycine: But sequential order? That's .length
[09:19:46] acalycine: `completed.sort_by { |completed.first.to_i| }`
[09:19:50] acalycine: That's what I can make out
[09:20:47] Mon_Ouie: No, between the || pipes, you have the parameter names for the block i.e. in this case what you want to call the elements of your array
[09:20:48] jgt1: has joined #ruby
[09:21:41] apeiros: yes, the example sorts by length (hence sort_by + .length)
[09:22:09] apeiros: and you've almost got it. .sort_by { |number,| number.to_i }
[09:22:40] hahuang61: has joined #ruby
[09:22:59] acalycine: Could I make it go backwards?
[09:23:04] Hanmac: apeiros: oh interesting, in my shortest form i did |number,*| ... interesting that you can leave it out too
[09:23:38] lxsameer: has joined #ruby
[09:23:44] apeiros: acalycine: either you use fancy maths (-num) or Array#reverse
[09:24:02] apeiros: hanmac: hah, I thought you something :D
[09:24:35] Hanmac: currently there is no reverse_sort(_by) imo a bit sad imo
[09:25:11] acalycine: Array#reverse. Let's try that out, haha.
[09:28:47] nankyokusei: has joined #ruby
[09:34:32] acalycine: Why am I getting "1148"? I should be getting "1159", as that's the first array group with "Brisbane" on it. https://gist.github.com/anonymous/4442551ef3e4540b1305cc6952b77966
[09:35:44] Mon_Ouie: What is team?
[09:36:07] acalycine: "Brisbane", sorry.
[09:36:31] Mon_Ouie: >> ["1159", "St Kilda", "Brisbane ", nil, nil].include? "Brisbane"
[09:36:32] ruby[bot]: Mon_Ouie: # => false (https://eval.in/771246)
[09:36:41] Mon_Ouie: ^ that array does not contain "Brisbane"
[09:36:51] acalycine: Oh. Whitespace.
[09:37:05] acalycine: How can I account for the whitespace in all the second parts?
[09:37:20] apeiros: how about you ensure there are none?
[09:37:30] acalycine: Not my data.
[09:37:30] esObe_: has joined #ruby
[09:37:32] apeiros: seems to me like they're there by mistake anyway
[09:37:37] acalycine: They would be.
[09:37:43] djbkd_: has joined #ruby
[09:37:43] apeiros: the moment it's in your system, it's your data :-p
[09:37:48] acalycine: I'm scraping it, but yes.
[09:37:54] acalycine: Sure, I want to fix it *now* it is.
[09:38:04] elomatreb: >> ["test ", nil].map {|value| value&.chomp }
[09:38:05] ruby[bot]: elomatreb: # => ["test ", nil] (https://eval.in/771247)
[09:38:29] apeiros: that step where you "ensure there is none" is called normalization. and you totally should do it.
[09:38:36] apeiros: beats working around broken data.
[09:39:00] acalycine: How do I do normalisation in Ruby, then?
[09:39:19] toretore: gam enstal normalize
[09:39:21] apeiros: there are no silver bullets or magic pixie dust.
[09:39:36] apeiros: you see how the data entering your system is mangled and you fix it
[09:39:47] apeiros: you've now noticed one way: surrounding whitespace
[09:39:54] esObe_: has joined #ruby
[09:40:02] elomatreb: The only difference between "working around broken data" and "normalization" is where you're doing it in this case
[09:40:06] apeiros: .strip removes surrounding whitespace
[09:40:48] apeiros: elomatreb: correct. normalization is "do it once and in a clear place". the other way is "do it every effing time you work with the data spread over all your code"
[09:41:12] acalycine: I'm not working with the data past that, so it would be corrected, and never used again.
[09:41:29] Axy: has joined #ruby
[09:41:29] Axy: has joined #ruby
[09:41:32] apeiros: ACTION shrugs
[09:41:42] nofxxx: has joined #ruby
[09:41:44] apeiros: I won't convince you of using good practices
[09:41:44] elomatreb: I'd still recommend fixing these errors/inconsistencies directly after where you scrape it
[09:41:56] acalycine: Nah, I agree with you
[09:42:03] apeiros: I tell you the proper praxis, and then it's up to you whether you want to use it or eff it up
[09:46:03] Mia: has joined #ruby
[09:46:14] vuoto: has joined #ruby
[09:48:57] Axy: has joined #ruby
[09:48:57] Axy: has joined #ruby
[09:50:47] Hanmac: apeiros: new change in ruby trunk: case xyz; when "0.0.1".."0.0.5" does not create String or Range objects anymore ;P
[09:51:09] apeiros: interesting. case/when is already heavily optimized.
[09:52:02] Mon_Ouie: What if you redefine Range#===? does range = "0.0.1".."0.0.5"; case object; when range then …; end start to behave differently?
[09:52:19] Mon_Ouie: (differently from having a range literal, that is)
[09:54:59] p0p0pr37: has joined #ruby
[09:54:59] p0p0pr37: has joined #ruby
[09:55:58] p0p0pr37: has joined #ruby
[09:58:44] esObe_: has joined #ruby
[10:01:19] Hanmac: Mon_Ouie: quick test with defining a new === method in Range (not redifine) it still does use the new method (means it does fallback if you overwrite the === method)
[10:02:55] Mon_Ouie: Okay, so the semantics didn't change at all, it's just an optimization for the normal use cases
[10:03:55] raul782: has joined #ruby
[10:08:43] aryaching: has joined #ruby
[10:10:00] Guest96: has joined #ruby
[10:12:28] mikecmpbll: has joined #ruby
[10:13:52] kristofferR: has joined #ruby
[10:15:50] hutch34: has joined #ruby
[10:24:35] milardovich: has joined #ruby
[10:31:35] spicerack: has joined #ruby
[10:31:58] Lord_of_Life: has joined #ruby
[10:36:24] ledestin: has joined #ruby
[10:37:57] Ishido: has joined #ruby
[10:43:42] Ishido: has joined #ruby
[10:46:37] sepp2k: has joined #ruby
[10:52:28] Bozo: has joined #ruby
[10:54:58] p0p0pr37_: has joined #ruby
[10:54:58] p0p0pr37_: has joined #ruby
[10:56:33] aglorei: has joined #ruby
[10:57:10] jespada: has joined #ruby
[10:58:14] PresidentBiscuit: has joined #ruby
[11:03:22] rgtk: has joined #ruby
[11:07:47] Guest96: has joined #ruby
[11:12:37] jespada: has joined #ruby
[11:13:12] Ishido: has joined #ruby
[11:14:27] milardovich: has joined #ruby
[11:14:55] hutch34: has joined #ruby
[11:20:23] milardovich: has joined #ruby
[11:24:24] hahuang61: has joined #ruby
[11:24:51] figuresofstick: has joined #ruby
[11:27:28] herbmillerjr: has joined #ruby
[11:29:40] nankyokusei: has joined #ruby
[11:34:13] fusta: has joined #ruby
[11:36:07] milardovich: has joined #ruby
[11:48:01] __Yiota: has joined #ruby
[11:50:24] leah2: has joined #ruby
[11:53:31] charliesome: has joined #ruby
[12:03:23] milardovich: has joined #ruby
[12:04:49] greister: has joined #ruby
[12:05:30] acalycine: has joined #ruby
[12:07:20] whenIdoIsudo: has joined #ruby
[12:11:54] User458764: has joined #ruby
[12:12:32] shinnya: has joined #ruby
[12:13:14] am55: has joined #ruby
[12:14:57] |RicharD|: has joined #ruby
[12:19:30] acalycine: has joined #ruby
[12:19:42] jakkn: has joined #ruby
[12:20:28] Lord_of_Life: has joined #ruby
[12:23:18] acalycine: has joined #ruby
[12:26:34] fusta: has joined #ruby
[12:34:55] grh: has joined #ruby
[12:36:50] acalycine: has joined #ruby
[12:37:01] RobertBirnie: has joined #ruby
[12:40:44] herbmillerjr: has joined #ruby
[12:46:37] Alina-malina: has joined #ruby
[12:46:40] claudevandort: has joined #ruby
[12:48:19] j: has joined #ruby
[12:49:00] Alina-malina: has joined #ruby
[12:49:00] leah2: has joined #ruby
[12:54:54] Xiti: has joined #ruby
[12:58:19] xall: has joined #ruby
[13:03:10] ryan_notabot: has joined #ruby
[13:03:31] jx: has joined #ruby
[13:04:47] x0F: has joined #ruby
[13:06:25] raul782: has joined #ruby
[13:13:25] Pumukel: has joined #ruby
[13:14:13] Pumukel: has joined #ruby
[13:15:00] Pumukel: has joined #ruby
[13:15:48] Pumukel: has joined #ruby
[13:16:36] Pumukel: has joined #ruby
[13:18:33] nadir: has joined #ruby
[13:23:42] sepp2k1: has joined #ruby
[13:25:15] hahuang61: has joined #ruby
[13:29:09] dionysus69: has joined #ruby
[13:30:13] spicerack: has joined #ruby
[13:30:25] hogetaro: has joined #ruby
[13:30:32] nankyokusei: has joined #ruby
[13:36:57] joneshf-laptop: has joined #ruby
[13:49:09] hutch34: has joined #ruby
[13:53:08] ltd: has joined #ruby
[13:53:23] cam27: has joined #ruby
[13:54:30] Jackneill_: has joined #ruby
[13:56:12] jgt1: has joined #ruby
[13:57:00] cseder: has joined #ruby
[13:58:43] lightheaded: has joined #ruby
[13:58:44] libastral: has joined #ruby
[14:00:46] howdoi: has joined #ruby
[14:01:34] eizua: has joined #ruby
[14:03:53] yeticry: has joined #ruby
[14:08:48] PresidentBiscuit: has joined #ruby
[14:09:42] lenwood: has joined #ruby
[14:11:24] linux: has joined #ruby
[14:12:52] t-recx: has joined #ruby
[14:14:03] whiteline: has joined #ruby
[14:16:37] __Yiota: has joined #ruby
[14:17:43] houhoulis: has joined #ruby
[14:20:41] vuoto: has joined #ruby
[14:22:51] User458764: has joined #ruby
[14:22:53] DLSteve: has joined #ruby
[14:23:22] User458764: has joined #ruby
[14:30:52] marr: has joined #ruby
[14:34:29] lightheaded: has joined #ruby
[14:35:00] hutch34: has joined #ruby
[14:37:19] dionysus69: has joined #ruby
[14:38:22] tristanp: has joined #ruby
[14:38:54] tristanp: has joined #ruby
[14:39:11] ltd: has joined #ruby
[14:40:55] ascio: has joined #ruby
[14:41:36] mikecmpbll: has joined #ruby
[14:41:40] ascio: man webpacker looks awesome
[14:44:22] claudevandort: has joined #ruby
[14:46:52] Asher: has joined #ruby
[14:47:22] tristanp: has joined #ruby
[14:48:41] yokel: has joined #ruby
[14:48:42] genpaku: has joined #ruby
[14:49:46] grh: has joined #ruby
[14:50:39] nowhereman: has joined #ruby
[14:51:32] lightheaded: has joined #ruby
[14:56:57] jgt1: has joined #ruby
[15:00:13] jgnagy: has joined #ruby
[15:00:47] zapata: has joined #ruby
[15:01:03] ascio: has joined #ruby
[15:01:22] ltd: has joined #ruby
[15:06:10] BSaboia: has joined #ruby
[15:07:14] ascio: has left #ruby: ()
[15:08:31] raul782: has joined #ruby
[15:11:22] b3l914n: has joined #ruby
[15:12:23] Ishido: has joined #ruby
[15:15:48] naftilos76: has joined #ruby
[15:21:01] hurricanehrndz: is rvm something people are now avoiding?
[15:21:34] hurricanehrndz: I see a lot of tutorials and people opting for rbenv/ruby-install + chruby
[15:21:46] havenwood: hurricanehrndz: plenty of people still use rvm. there are now simpler options like ruby-install for install and yeah chruby for switching.
[15:22:27] hurricanehrndz: I have used rvm exclusively and have never had an issue
[15:23:01] havenwood: hurricanehrndz: RVM even has chruby support: https://rvm.io/workflow/chruby
[15:23:36] matthewd: hurricanehrndz: My personal advice is if it works for you, great -- but I do advise newcomers to prefer rbenv or chruby
[15:24:01] elomatreb: RVM is great as long as it works but becomes very painful when it breaks
[15:24:43] matthewd: And more features = more opportunity for breakage
[15:24:54] hurricanehrndz: cool, i have tried ruby-install didn't have a good experience, I'm on suse and the script doesn't seem to support suse very well
[15:25:32] hurricanehrndz: rbenv seems okay the workflow is a little different and it has taken some time getting use to
[15:26:04] nicolai86: has joined #ruby
[15:26:10] hahuang61: has joined #ruby
[15:26:17] hurricanehrndz: the one thing I have been confused is about doing this with rbenv https://rvm.io/deployment/god
[15:26:17] allisio: hurricanehrndz: What sort of errors did you get with ruby-install on SUSE?
[15:27:15] hurricanehrndz: allisio: well it zypper package manager is not supported for building dependencies
[15:28:06] hurricanehrndz: is there an rbenv wrapper?
[15:28:57] hurricanehrndz: By the way guys, thanks for all the feedback
[15:28:59] matthewd: I recommend directly invoking versioned ruby executables in production, such that you never care what a bare 'ruby' would execute
[15:29:46] matthewd: (whether that's a system-package-provided '/usr/bin/ruby2.3', or a self-compiled one living somewhere more obscure)
[15:30:00] hurricanehrndz: matthewd: ah.. of course
[15:30:27] hurricanehrndz: matthewd: blonde moment
[15:31:27] nankyokusei: has joined #ruby
[15:37:12] BSAlb: has joined #ruby
[15:37:17] ruby[bot]: -b *!*@213.149.193.146$#ruby-banned
[15:37:28] havenwood: hurricanehrndz: yeah, ruby-install does not support zypper, but it wouldn't be hard to add support
[15:37:37] havenwood: hurricanehrndz: it should work well if you install the deps
[15:38:22] havenwood: hurricanehrndz: https://github.com/postmodern/ruby-install/pull/106
[15:40:40] xall: has joined #ruby
[15:40:45] havenwood: this ^ PR adds zypper support, but it included additional bundler stuff that needs to get removed before it can be merged
[15:42:33] BSab: has joined #ruby
[15:42:55] hurricanehrndz: havenwood: cool
[15:43:17] hurricanehrndz: havenwood: thanks for the info, I will check it out
[15:43:26] havenwood: at least it's a cheat sheet to the deps you need ;-)
[15:44:04] hurricanehrndz: last time i tried didn't have much time to waste, which is the worst time for a program to leave a good impression
[15:46:11] havenwood: hurricanehrndz: i could put together a simplified version of that PR if you have any interest in testing it. seems nice to add zypper support. it's ruby-install's oldest open PR.
[15:47:01] lightheaded: has joined #ruby
[15:47:07] hurricanehrndz: havenwood: cool, I would appreciated it
[15:50:13] houhoulis: has joined #ruby
[15:51:28] milardovich: has joined #ruby
[15:53:01] DARPA: has joined #ruby
[15:53:28] hndk: has joined #ruby
[15:55:26] rwb: has joined #ruby
[15:57:58] jgt1: has joined #ruby
[16:00:09] Limix: has joined #ruby
[16:02:21] havenwood: hurricanehrndz: working on it now
[16:02:38] hurricanehrndz: havenwood: awesome
[16:03:46] hurricanehrndz: havenwood: do you use ruby-install with chruby and gem_home
[16:03:57] hurricanehrndz: havenwood: exclusively??
[16:04:11] havenwood: hurricanehrndz: i don't use gem_home, but otherwise, yes
[16:04:14] cseder: has joined #ruby
[16:04:48] joneshf-laptop: has joined #ruby
[16:04:53] hurricanehrndz: havenwood: how do you manage gem sets?
[16:06:10] havenwood: hurricanehrndz: i don't use gem sets, i install gems globally unless i have a reason to do otherwise and use a Gemfile.lock to limit the gems i'm using for an app to just the exact versions needed
[16:06:47] havenwood: hurricanehrndz: RubyGems has built-in Gemfile/Gemfile.lock support or the Bundler gem is the more popular option.
[16:07:14] havenwood: hurricanehrndz: https://bundler.io/gemfile.html
[16:09:06] hurricanehrndz: hurricanehrndz: thanks for the info, definitely give it a shot
[16:12:53] wbnns: has joined #ruby
[16:15:29] havenwood: hurricanehrndz: https://github.com/havenwood/ruby-install/tree/portal_zypper
[16:15:34] mzo: has joined #ruby
[16:16:11] havenwood: that ^ should work with zypper now
[16:17:13] havenwood: hurricanehrndz: if you can test building ruby, jruby, rbx and mruby and all is well then i think this is ready to go!
[16:17:48] hurricanehrndz: havenwood: awesome, i'll install and test now
[16:18:11] havenwood: hurricanehrndz: thanks!
[16:19:58] jgt1: has joined #ruby
[16:21:33] jusa: has joined #ruby
[16:21:49] ebbflowgo: has joined #ruby
[16:24:33] rippa: has joined #ruby
[16:25:12] hurricanehrndz: havenwood: seems like the wrong repository data is being loaded, it is still looking for build-essential
[16:25:38] hurricanehrndz: havenwood: the packages you have listed under zypper seem good to me
[16:25:49] havenwood: does your system also have apt?
[16:26:30] havenwood: will normal openSUSE systems have apt?
[16:26:46] havenwood: it's a problem if they will and zypper never gets selected
[16:26:50] hurricanehrndz: good question, i think if you install snappy
[16:27:31] hurricanehrndz: zypper should come before apt-get, no other distro uses zypper
[16:27:55] fergal: has joined #ruby
[16:29:05] SteenJobs: has joined #ruby
[16:30:17] havenwood: hurricanehrndz: pushed a fix
[16:31:28] hurricanehrndz: havenwood: try again
[16:31:35] hurricanehrndz: havenwood: i will
[16:32:19] lenwood: has joined #ruby
[16:32:28] fusta: has joined #ruby
[16:38:54] pifon: has joined #ruby
[16:39:11] aglorei: has joined #ruby
[16:39:51] ddrmanxbxfr: has joined #ruby
[16:42:10] SuperLag_: has joined #ruby
[16:43:59] Bozo: has joined #ruby
[16:44:20] nankyokusei: has joined #ruby
[16:47:06] hurricanehrndz: havenwood: seems to be good
[16:47:13] hurricanehrndz: havenwood: thanks
[16:48:14] fergal: hi guys, if i have this data: https://gist.github.com/anonymous/288c5d006299ece7f28f7bf2e644c2cf how can i use ruby to arrange the users into lists of their groups like so: https://gist.github.com/anonymous/25dacb5e56d1bbec7b163a47a1ec290f i’m not familiar with ruby idioms to know which one is the correct way to rearrange the collection in a clean way
[16:48:58] cdg: has joined #ruby
[16:50:41] fergal: this is what i have so far, and it gives me what i want, but i’m not sure it’s as succinct as it could be: https://gist.github.com/anonymous/728b10db5fe31860b68bf75efe5a3952
[16:52:37] j416: looks fairly readable to me.
[16:53:27] jusa: has joined #ruby
[16:56:19] _sfiguser: has joined #ruby
[16:56:48] hutch34: has joined #ruby
[16:57:11] nankyokusei: has joined #ruby
[16:57:22] havenwood: fergal: each_with_object(Hash.new { |k, v| k[v] = [] }) { |(name, h), groups| groups[h['group']] << name }
[16:57:42] fergal: havenwood: coooool, i’’ try that, thanks!
[16:59:56] nankyokusei: has joined #ruby
[17:01:00] nankyokusei: has joined #ruby
[17:01:50] cerulean: has joined #ruby
[17:02:01] cerulean: write some more gems with offensive names
[17:02:42] havenwood: cerulean: bad idea! next.
[17:02:49] cerulean: why is it a bad idea
[17:03:05] apeiros: fergal: you can put all 3 files into a single gist btw.
[17:03:07] cerulean: gems with offensive names are hilarious
[17:03:22] apeiros: cerulean: kk, I'll push cerulean-is-an-idiot right now
[17:03:25] matthewd: cerulean: They're not, and you're not. Move on.
[17:03:47] cerulean: then why did people do it in the first place
[17:03:55] cerulean: i've never seen that in any other language
[17:04:45] Mon_Ouie: Because other languages don't call their libraries gems
[17:05:13] cerulean: ive never seen a library with an offensive name outside of ruby
[17:05:33] nowhereman: has joined #ruby
[17:06:14] cerulean: so do you guys like fluentd
[17:06:22] cerulean: on a different note
[17:08:12] havenwood: ?crosspost cerulean
[17:08:12] ruby[bot]: cerulean: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[17:10:28] claudevandort: has joined #ruby
[17:12:59] raul782: has joined #ruby
[17:13:22] tildes: has joined #ruby
[17:18:51] Pumukel: has joined #ruby
[17:27:09] hahuang61: has joined #ruby
[17:29:31] gnulinuxman: has joined #ruby
[17:29:48] ruby[bot]: You can find a list of recommended books at http://ruby-community.com/pages/links
[17:29:56] gnulinuxman: matthewd, thanks
[17:34:29] stupidsenpai: has joined #ruby
[17:35:28] mephistophocles: has joined #ruby
[17:38:35] cerulean: has joined #ruby
[17:38:43] cerulean: does anyone remember a guy named James "dreamr" O'Kelly?
[17:40:30] armyriad: has joined #ruby
[17:41:19] cam27: has joined #ruby
[17:53:39] linetrace: has joined #ruby
[17:56:10] stupidsenpai: has joined #ruby
[17:56:30] marr: has joined #ruby
[17:57:45] _sfiguser: has joined #ruby
[17:58:45] fergal: has joined #ruby
[17:59:35] harfangk: has joined #ruby
[18:03:56] jamesaxl: has joined #ruby
[18:05:31] jottr: has joined #ruby
[18:10:09] duderonomy: has joined #ruby
[18:12:32] muelleme_: has joined #ruby
[18:14:52] rgtk: has joined #ruby
[18:18:14] enterprisey: has joined #ruby
[18:22:00] cseder: cerulean what about him and how does this relate to #Ruby?
[18:22:12] Ishido: has joined #ruby
[18:22:23] ddffg: has joined #ruby
[18:22:32] rakm: has joined #ruby
[18:24:24] User458764: has joined #ruby
[18:25:39] minimalism: has joined #ruby
[18:29:37] PresidentBiscuit: has joined #ruby
[18:34:44] Verity: has joined #ruby
[18:36:13] milardovich: has joined #ruby
[18:37:16] mephistophocles: has joined #ruby
[18:37:29] blackwind_123: has joined #ruby
[18:37:55] grh: has joined #ruby
[18:39:17] cerulean: i just found out last night he's wanted by the FTC... ive hanged out with him twice in real life, he told me he was a fugitive in arizona but really it turns out to be oregon or something
[18:39:28] cerulean: threatened me in his house in denver, turns out he was wanted for assault
[18:40:13] cerulean: just wondering if anyone knew him, he thanked a LOT of people i recognized from the community on his github
[18:41:12] hndk: has left #ruby: ("Leaving")
[18:41:23] milardovich: has joined #ruby
[18:42:28] jusa: has joined #ruby
[18:42:49] ltem: has joined #ruby
[18:43:30] balazs: has joined #ruby
[18:43:39] lightheaded: has joined #ruby
[18:45:32] cfec0b8d: has joined #ruby
[18:58:27] arup_r: has joined #ruby
[18:59:05] SteenJobs: has joined #ruby
[19:02:55] mim1k: has joined #ruby
[19:13:07] aredridel: has joined #ruby
[19:16:02] muelleme_: has joined #ruby
[19:19:04] Channel6: has joined #ruby
[19:26:07] nankyokusei: has joined #ruby
[19:27:59] hahuang61: has joined #ruby
[19:34:49] nowhere_man: has joined #ruby
[19:35:25] psychicist__: has joined #ruby
[19:40:49] Bozo: has joined #ruby
[19:41:06] mephistophocles: has joined #ruby
[19:41:23] nebiros: has joined #ruby
[19:42:08] milardovich: has joined #ruby
[19:44:10] SteenJobs: has joined #ruby
[19:56:26] BSaboia: has joined #ruby
[19:56:56] BSaboia: has joined #ruby
[19:57:19] nebiros_: has joined #ruby
[19:57:44] aredridel: has joined #ruby
[20:00:18] Lord_of_Life: has joined #ruby
[20:01:31] futilegames: has joined #ruby
[20:09:44] _tk421_: has joined #ruby
[20:10:52] GodFather: has joined #ruby
[20:11:36] Mission-Critical: has joined #ruby
[20:12:28] BTRE: has joined #ruby
[20:12:37] Bob8989|2: has joined #ruby
[20:12:41] Bob89893: has joined #ruby
[20:13:36] iamayam: has joined #ruby
[20:15:41] raul782: has joined #ruby
[20:16:17] b3l914n: has joined #ruby
[20:16:53] Arpanet69: has joined #ruby
[20:22:13] t-ask: has joined #ruby
[20:24:48] armando: has joined #ruby
[20:26:10] dionysus69: has joined #ruby
[20:27:08] PresidentBiscuit: has joined #ruby
[20:29:52] rgtk: has joined #ruby
[20:32:38] milardovich: has joined #ruby
[20:33:19] tAn: has joined #ruby
[20:43:06] hndk: has joined #ruby
[20:45:50] cisco: has joined #ruby
[20:49:28] Bozo: has joined #ruby
[20:49:45] rgr: has joined #ruby
[20:50:45] nebiros: has joined #ruby
[20:54:39] electrostat: has joined #ruby
[20:56:27] jaequery: has joined #ruby
[20:57:33] rakm: has joined #ruby
[20:58:25] rakm: has joined #ruby
[20:58:27] t-ask: HI, I'm trying got install bundle to "~/.rbenv/shims/bundle" for some hours and I'm lost, why I can't get it installed right there. is this the right channel to ask for help?
[20:59:08] rakm: has joined #ruby
[20:59:57] rakm: has joined #ruby
[21:00:44] rakm: has joined #ruby
[21:02:50] mzo: has joined #ruby
[21:09:56] matthewd: t-ask: Sure. What are you running, and what's it doing?
[21:10:51] t-ask: I'm up to install https://github.com/tootsuite/mastodon/blob/master/docs/Running-Mastodon/Production-guide.md and searched for solution the last hours.
[21:11:30] t-ask: everything seems to be fine so far except that I get the bundle installed within that folder
[21:11:51] t-ask: my 'gem env' https://bpaste.net/show/ac38c76c8657
[21:11:58] Lord_of_Life: has joined #ruby
[21:13:07] matthewd: Okay, that's the problem: that's not using an rbenv-managed 'gem' command
[21:13:12] t-ask: I'm on Arch btw. in '/etc/gem' I have "gem: --user-install"
[21:14:37] cseder: has joined #ruby
[21:16:17] t-ask: Can you guide me a bit? Should I install something else?
[21:16:18] raul782: has joined #ruby
[21:16:36] t-ask: or is it PATH related
[21:16:45] matthewd: Yeah, it's path related
[21:16:58] matthewd: So check `which ruby` & `which gem`, for a start
[21:17:27] t-ask: both in /usr/bin/...
[21:17:47] matthewd: Sounds like rbenv just isn't active at all, then
[21:17:57] GodFather: has joined #ruby
[21:18:03] cerulean: anyone use fluentd-ui?
[21:18:16] cerulean: i don't seem to have any error log in fluentd-ui?
[21:20:05] griff: has joined #ruby
[21:21:15] t-ask: matthewd: should I install the rbenv coming with Arch or install it manually?
[21:21:47] matthewd: Either should be fine
[21:21:50] br0d1n: has joined #ruby
[21:21:54] matthewd: But you need to init it in your shell
[21:23:38] NightMonkey: has joined #ruby
[21:26:59] nankyokusei: has joined #ruby
[21:27:12] rgtk: has joined #ruby
[21:28:06] PresidentBiscuit: has joined #ruby
[21:28:50] hahuang61: has joined #ruby
[21:31:14] Emmanuel_Chanel: has joined #ruby
[21:32:45] NightMonkey: has joined #ruby
[21:36:28] Lord_of_Life: has joined #ruby
[21:36:39] ghornet: has joined #ruby
[21:39:27] br0d1n: has joined #ruby
[21:40:07] timvisher: has joined #ruby
[21:42:04] tAn: has joined #ruby
[21:42:18] moei: has joined #ruby
[21:46:40] Verity: has left #ruby: ("Leaving")
[21:51:27] GodFather: has joined #ruby
[21:53:44] ebbflowgo: has joined #ruby
[21:54:54] Pierreb|home: has joined #ruby
[21:55:24] jusa: has joined #ruby
[21:55:57] Pierreb|home: how can i execute a script from within ruby and pass along a variable? like system '/opt/ruby/scriptfile variable'
[21:56:32] raul782: has joined #ruby
[21:56:41] herbmillerjr: has joined #ruby
[21:57:23] jhass: sounds dangerous
[21:59:27] daed: that sounds ripe for injection attacks
[21:59:55] daed: i mean that's pretty much the foundation of injection attacks lol
[22:01:01] matthewd: Pierreb|home: system('/opt/ruby/scriptfile', variable)
[22:01:50] Pierreb|home: thanks matthewd ill try that
[22:02:20] rakm: has joined #ruby
[22:05:38] skweek: has joined #ruby
[22:06:17] t-ask: matthewd: is that supposed to be that way? https://bpaste.net/show/0dacda80a475
[22:07:11] matthewd: Yes.. and that should be at the front of your PATH
[22:07:30] raul782: has joined #ruby
[22:10:45] HoierM: has joined #ruby
[22:15:04] skweek: has joined #ruby
[22:24:35] SteenJobs: has joined #ruby
[22:24:38] jtd: has joined #ruby
[22:26:10] charliesome: has joined #ruby
[22:28:13] tristanp: has joined #ruby
[22:28:38] PresidentBiscuit: has joined #ruby
[22:33:01] nbro_: has joined #ruby
[22:33:25] nbro_: Does Ruby support OO better than Python?
[22:33:43] Nilium: How would you measure betterness?
[22:34:24] nbro_: for example, Python does not really support in the language abstract classes, but as libraries
[22:34:31] nbro_: it does not support interfaces
[22:35:06] nbro_: there are well-known features that have been proved more dangerous than useful, like multiple inheritance
[22:35:10] nbro_: instead of interfaces
[22:35:21] nbro_: this is what I mean by "better"
[22:35:56] nbro_: if Ruby sucks as much as Python as a language
[22:36:16] nbro_: then there would really be no point in starting using it
[22:37:07] Nilium: So you mean is it more like Java?
[22:37:26] nbro_: Nilium: well, Java has a better OO system than Python, that’s for sure
[22:37:28] t-ask: matthewd: ok, I think now I messed it up
[22:37:47] Nilium: I'm not sure Java is what I think of when OOP comes up
[22:37:55] matthewd: nbro_: Probably best to use Java then
[22:37:55] Toledo: has joined #ruby
[22:38:05] nbro_: matthewd: I also use Java
[22:38:08] Nilium: Ruby is more in line with how I view OOP.
[22:38:09] daed: i switched to ruby from python, much prefer it
[22:38:11] nbro_: but I would like to give a try to Ruby
[22:38:19] daed: better looking language, better OOP in my opinion, syntax wise
[22:38:24] nbro_: I would like to know if there are any advantages compared to Python
[22:38:28] daed: perhaps not feature wise, but it definitely looks more pleasant
[22:38:35] nbro_: which I’ve been already using
[22:38:49] daed: nbro_: i wrote python for 4 years before switching to ruby and have not looked back
[22:38:50] Nilium: Is there a reason you'd switch now?
[22:38:58] daed: matter of taste in my case
[22:39:03] Nilium: And is it worth the cost of switching?
[22:39:26] daed: i found ruby to be far more intuitive so it was worth the switch for me
[22:39:30] daed: long term
[22:39:42] nbro_: Ruby and Python look more or less the same, honestly
[22:39:50] daed: nbro_: i disagree wholeheartedly
[22:39:53] nbro_: I would like to know if Ruby supports like private fields
[22:39:56] Nilium: I switched my office to Go, since in the long term, scripting languages don't make sense for us.
[22:39:56] daed: "5".methods.sort
[22:39:57] nbro_: real private things
[22:39:58] daed: try that in python
[22:40:04] Nilium: At least not for core systems.
[22:40:29] jtd: has joined #ruby
[22:40:50] Guest96: has joined #ruby
[22:41:14] Nilium: So I think you need to evaluate this less in terms of OOP and more in terms of what your actual requirements are. That's going to be more involved than if it's like Java.
[22:41:30] daed: also evaluate the team, who is going to be maintaining it, long term plans, etc
[22:41:46] nbro_: Nilium: I was trying to find a scripting language similar to Python, but better
[22:41:58] nbro_: even though Python is quite good
[22:42:01] daed: 'better' is subjective
[22:42:02] nbro_: for many things
[22:42:09] daed: i find ruby to be more pleasant to work with, so it's 'better' for me
[22:42:16] Nilium: Better depends on requirements, OOP isn't really a very useful requirement
[22:42:18] daed: some people seem to think python is just fine for their needs
[22:42:47] nbro_: actually guys
[22:42:48] jtd: has joined #ruby
[22:43:02] nbro_: I just don’t want to specify in more details what I’m saying because I’m tired and lazy
[22:43:12] nbro_: so I’m saying "better" just to get a fast answer
[22:43:23] Nilium: That's actually a really bad way of getting an answer
[22:43:27] daed: yeah, seriously
[22:43:40] daed: you're asking #ruby if ruby is better
[22:43:43] Nilium: At any rate, if you don't want to talk about it, you're on your own in researching your problem
[22:43:44] daed: that's going to be a biased answer
[22:43:58] daed: go ask #python if ruby is better, they will say no
[22:44:21] t-ask: its like asking which car is better
[22:44:24] Nilium: And if it were data science needs, I'd even agree with #python just because of history
[22:44:25] nbro_: I was really interested in a language similar to Python which supports OOP in a more similar way to Java than to C++
[22:44:44] daed: nbro_: those are statically typed compiled languages
[22:44:48] daed: ruby and python are interpreted
[22:45:03] daed: you're not really comparing the right things
[22:45:11] nbro_: I’m lazy and tired, I told you, of course I know those kind of questions are not productive
[22:45:23] daed: i still write java/scala
[22:45:30] daed: i still write python on occasion (for saltstack)
[22:45:36] daed: 'right tool for the job' applies in most cases
[22:46:19] Nilium: Well, I haven't found a case where I'd really want saltstack, but that's also because of history
[22:46:26] nbro_: I think I understood that learning Ruby would be useful only if I get a job where the required language is Ruby
[22:46:31] Nilium: ACTION has a very unuseful grudge
[22:46:35] nbro_: in other words, it’s not worth learning it just for fun
[22:46:53] daed: Nilium: we've gone through puppet, chef, and ansible extensively
[22:47:08] daed: Nilium: and finally decided on switching, sadly
[22:47:20] daed: despite being all ruby devs
[22:47:48] daed: Nilium: our issue was remote execution at scale
[22:47:52] Nilium: I'd have used either chef or ansible, but that's also just because of what I already know
[22:47:54] daed: saltstack solved that a lot better/faster
[22:48:03] daed: we have scaling issues with puppet
[22:48:15] nbro_: but it wouldn’t take much to learn at least its basics to understand better Ruby code on the web
[22:48:21] nbro_: so maybe I will give it a try anyway
[22:48:28] daed: nbro_: i find the language enjoyable
[22:48:53] nbro_: I’m going to sleep
[22:48:53] daed: actually, out of all languages, ruby is the most fun
[22:49:03] tAn: has joined #ruby
[22:49:07] Nilium: Probably Go or C++ for me in terms of fun
[22:49:32] Nilium: But that's because of network programming and game dev, so it's a weird hobby.
[22:49:55] daed: i did C++ professionally for a few years
[22:49:59] daed: i don't intend on going back, lol
[22:50:14] daed: much prefer go over C++
[22:50:21] nbro_: has left #ruby: ()
[22:50:23] Nilium: I wouldn't mind it. The only thing to ever make me consider quitting a job was PHP.
[22:50:33] daed: oh god, php
[22:50:35] daed: i did that for 8+ years
[22:50:36] daed: never again
[22:50:45] daed: what a complete disaster of a language
[22:50:54] Nilium: I switched us from PHP to Go, so I at least got something improved. So, didn't quit.
[22:51:09] daed: admittedly, go and php's missions are different
[22:51:20] daed: i wouldn't want to write a full blown giant web app in golang exclusively
[22:51:28] Nilium: Yeah, we were using it in high volume processing stuff.. not the right tool for the job.
[22:51:42] daed: we used rails at tribune (latimes.com etc)
[22:51:56] Nilium: Our UI is still in PHP, which I'm OK with. Ruby would probably make life easier there, but the cost of switching is too high.
[22:52:10] daed: i'd be checking out rust before i ever considered C++ again
[22:52:33] Nilium: t-ask: Too hard to hire for, too hard to implement a lot of tree-like structures, etc.
[22:52:47] Nilium: And, at the time, Rust wasn't stable.
[22:52:54] daed: last i looked at rust was 3 years ago
[22:52:56] daed: i'm sure it's come quite a ways
[22:53:05] Nilium: It's a good language, not the right language for us.
[22:53:21] daed: we have a guy who's really interested in it
[22:53:26] daed: unfortunately we are doing big data stuff
[22:53:26] Nilium: If memory safety were the concern, I'd use it. If getting things done were the concern, I wouldn't. I still think it's too early.
[22:53:31] daed: there's no rust ecosystem in big data
[22:53:32] daed: it's all JVM
[22:53:50] Nilium: Yeah. All of our analytics stuff is still Java for that reason.
[22:54:06] t-ask: sure. Just saying Rust looks like a lang I would prefer over C++
[22:54:30] Nilium: I would still use C++ just because I use it for game dev. Rust feels like a mountain of pain for that sort of stuff.
[22:54:30] t-ask: while not comparable
[22:54:43] GodFather: has joined #ruby
[22:55:04] daed: hadoop, kafka, spark, flink, HDFS, hbase, cassandra, beam, drill, flume, ORC, parquet, samza, sqoop, lucene, phoenix, pig, zookeeper, accumulo
[22:55:05] Nilium: It might get better with the next few versions as they address the brick wall learning curve.
[22:55:07] daed: the java ecosystem is insane
[22:55:12] daed: no escaping it for me
[22:55:22] Nilium: And it's great that they're aware of the learning curve.
[22:55:51] Nilium: Rust's community is pretty awesome in its willingness to actually address problems with itself and the language.
[22:56:25] daed: makes me wanna pick up a rust book
[22:56:36] daed: wait my employer pays for safari
[22:56:38] daed: maybe there's something on there
[22:57:27] daed: "Programming Rust" May 2017
[22:57:31] daed: looks like a good candidate
[22:58:06] t-ask: http://rustbyexample.com/
[22:58:25] daed: who made this?
[22:58:58] t-ask: it actually just the link from their main page
[22:59:02] daed: so macros are templates kinda eh
[22:59:12] ghornet: has joined #ruby
[23:11:38] t-ask: lol that ASM button:) https://play.rust-lang.org/
[23:12:33] cseder: has joined #ruby
[23:17:04] __Yiota: has joined #ruby
[23:17:30] charliesome: has joined #ruby
[23:17:50] cam27: has joined #ruby
[23:18:26] baweaver: daed: then don't use Java
[23:18:33] baweaver: Scala, Kotlin
[23:18:50] baweaver: both of which have support for Spark and other big data platforms
[23:19:07] baweaver: Hadoop is a mess
[23:20:08] baweaver: HBase/HDFS can be replaced with Cassandra, and things such as KairosDB build on Cassandra to make a better time series store than OpenTSDB
[23:20:51] baweaver: Zookeeper and Kafka have some really wonky tooling that's essentially a book of shell scripts not properly strung together.
[23:21:20] baweaver: so yeah, that entire ecosystem is a mess. Apache is notorious for bad docs and confusing explinations
[23:21:58] baweaver: Wasn't Lucene overridden by Solr though?
[23:22:11] baweaver: too many danged tools to keep track of anymore
[23:23:12] baweaver: TL;DR: Scala murders Java for fluent big data tasks, hands down. You'll write substantially less code, and what you do write will be easier to compose and understand with a bit of investment in FP classes.
[23:23:20] pwnd_nsfw`: has joined #ruby
[23:23:49] baweaver: Kotlin is basically Scala without the kitchen sink and better Java interop. Jetbrains made it as their answer
[23:23:56] baweaver: ACTION wanders off
[23:27:47] nankyokusei: has joined #ruby
[23:29:34] PresidentBiscuit: has joined #ruby
[23:29:52] hahuang61: has joined #ruby
[23:31:13] t-recx: has joined #ruby
[23:32:30] claudevandort: has joined #ruby
[23:34:35] charliesome: has joined #ruby
[23:34:43] Mia: has joined #ruby
[23:34:43] Mia: has joined #ruby
[23:37:44] jtd: has joined #ruby
[23:40:08] tAn: has joined #ruby
[23:44:48] ebbflowgo: has joined #ruby