« Back to channel list

#ruby - 29 July 2017

« Back 1 day Forward 1 day »
[00:02:42] guacamole: has joined #ruby
[00:04:01] Safouane: has left #ruby: ()
[00:08:14] cahoots: has joined #ruby
[00:08:45] Pacra: has joined #ruby
[00:17:04] jenrzzz: has joined #ruby
[00:17:49] knight33: has joined #ruby
[00:19:41] WeiJunLi: has joined #ruby
[00:24:56] AnoHito_: has joined #ruby
[00:26:10] FastJack: has joined #ruby
[00:30:12] bruno-: has joined #ruby
[00:31:24] milardovich: has joined #ruby
[00:31:55] planigan: has joined #ruby
[00:32:29] cagomez: has joined #ruby
[00:39:40] jcao219: has joined #ruby
[00:41:27] mim1k: has joined #ruby
[00:42:14] eelster: has joined #ruby
[00:45:25] romain_t: has joined #ruby
[00:52:07] milardovich: has joined #ruby
[01:04:39] muzik: has joined #ruby
[01:05:10] Moosashi: has joined #ruby
[01:08:43] enodata: has joined #ruby
[01:09:20] t-recx: has joined #ruby
[01:11:13] rfoust: has joined #ruby
[01:12:59] milardovich: has joined #ruby
[01:14:33] deep-book-gk_: has joined #ruby
[01:15:39] PorcoRex: has joined #ruby
[01:15:51] PorcoRex: Good evening Ruby.
[01:16:30] deep-book-gk_: has left #ruby: ()
[01:16:32] t-recx: hey PorcoRex
[01:18:21] ResidentBiscuit: has joined #ruby
[01:21:34] tlr: has joined #ruby
[01:27:48] milardovich: has joined #ruby
[01:30:07] elcontrastador: has joined #ruby
[01:38:01] gizmore|2: has joined #ruby
[01:38:31] kculpis: has joined #ruby
[01:39:09] milardovich: has joined #ruby
[01:40:35] d^sh: has joined #ruby
[01:42:15] jenrzzz: has joined #ruby
[01:42:15] jenrzzz: has joined #ruby
[01:43:36] ElFerna: has joined #ruby
[01:43:37] gusrub: has joined #ruby
[01:43:51] ramfjord: has joined #ruby
[01:50:10] ramfjord: has joined #ruby
[01:50:19] milardovich: has joined #ruby
[01:50:34] brent__: has joined #ruby
[01:52:06] bronson: has joined #ruby
[01:52:49] tlr: has joined #ruby
[01:56:09] ramfjord: has joined #ruby
[01:56:48] bruno-: has joined #ruby
[01:58:09] tlr: has joined #ruby
[02:00:45] Moosashi: has joined #ruby
[02:03:04] ElFerna: has joined #ruby
[02:03:56] dstrunk: has joined #ruby
[02:10:56] nadir: has joined #ruby
[02:25:00] deep-book-gk_: has joined #ruby
[02:25:07] deep-book-gk_: has left #ruby: ()
[02:26:42] bkxd: has joined #ruby
[02:31:55] Jameser: has joined #ruby
[02:35:35] jinie_: has joined #ruby
[02:42:04] mim1k: has joined #ruby
[02:53:13] dstrunk: has joined #ruby
[02:53:41] adam12: Well this is a first. Rubygems is completely ignoring the `bindir` option in my spec.
[03:10:51] bkxd_: has joined #ruby
[03:10:52] CrazyEddy: has joined #ruby
[03:11:35] apparition: has joined #ruby
[03:12:40] pkd: has joined #ruby
[03:14:59] ElFerna: has joined #ruby
[03:17:09] duderonomy: has joined #ruby
[03:19:43] gix: has joined #ruby
[03:20:55] eljimmy: has joined #ruby
[03:22:50] bkxd: has joined #ruby
[03:23:08] pkd: has joined #ruby
[03:25:02] Sirecote: has joined #ruby
[03:37:08] deep-book-gk_: has joined #ruby
[03:42:17] deep-book-gk_: has left #ruby: ()
[03:49:55] DeeJayh: has joined #ruby
[03:53:03] bronson: has joined #ruby
[03:54:22] eckhardt: has joined #ruby
[03:58:06] apparition: has joined #ruby
[04:01:01] t-recx: has joined #ruby
[04:01:20] DeeJayh_: has joined #ruby
[04:03:22] Paraxial: has joined #ruby
[04:06:08] uZiel: has joined #ruby
[04:10:30] dstrunk: has joined #ruby
[04:11:45] xuanrui: has joined #ruby
[04:11:55] ramfjord: has joined #ruby
[04:15:47] gusrub: has joined #ruby
[04:18:00] ramfjord: has joined #ruby
[04:23:15] opekktar: has joined #ruby
[04:23:59] ramfjord: has joined #ruby
[04:26:01] charliesome: has joined #ruby
[04:36:23] Axy: has joined #ruby
[04:36:24] mim1k: has joined #ruby
[04:44:40] uZiel: has joined #ruby
[04:45:25] ramfjord: has joined #ruby
[04:51:31] ramfjord: has joined #ruby
[04:51:43] bkxd: has joined #ruby
[05:05:07] DTZUZO: has joined #ruby
[05:06:55] roreilly: has joined #ruby
[05:07:00] ramfjord: has joined #ruby
[05:08:12] roreilly: thoughts on best way to clean this string up? "\"foo@bar-stuff.com\""
[05:08:24] roreilly: coming from a crap vendor csv
[05:13:24] Bock: has joined #ruby
[05:17:24] roreilly: has joined #ruby
[05:17:37] roreilly: anyone around?
[05:21:10] _whitelogger: has joined #ruby
[05:21:48] jenrzzz: has joined #ruby
[05:23:48] jordanm: roreilly: what about it needs to be cleaned up?
[05:26:11] am55: has joined #ruby
[05:33:56] dionysus69: has joined #ruby
[05:36:31] tunaBee__: has joined #ruby
[05:49:54] Alina-malina: has joined #ruby
[05:50:23] jenrzzz: has joined #ruby
[05:50:23] jenrzzz: has joined #ruby
[05:53:04] milardovich: has joined #ruby
[05:54:17] Alina-malina: has joined #ruby
[05:54:22] bronson: has joined #ruby
[05:54:44] milardovich: has joined #ruby
[05:55:41] Alina-malina_: has joined #ruby
[05:59:09] vuoto: has joined #ruby
[06:02:25] Axy: has joined #ruby
[06:06:38] brent__: has joined #ruby
[06:11:00] djbkd: has joined #ruby
[06:11:06] ur5us: has joined #ruby
[06:11:50] aurelien: has joined #ruby
[06:14:04] marr: has joined #ruby
[06:15:32] milardovich: has joined #ruby
[06:20:27] nofxxxx: has joined #ruby
[06:21:42] Alina-malina_: has joined #ruby
[06:23:23] TomyLobo2: has joined #ruby
[06:27:12] _whitelogger: has joined #ruby
[06:42:48] alex``: has joined #ruby
[06:50:34] rippa: has joined #ruby
[06:55:43] cadillac_: has joined #ruby
[06:57:09] milardovich: has joined #ruby
[07:07:03] jenrzzz: has joined #ruby
[07:11:27] andrzejku: has joined #ruby
[07:11:39] djbkd: has joined #ruby
[07:13:08] Puffball: has joined #ruby
[07:15:24] InfinityFye: has joined #ruby
[07:21:53] bkxd: has joined #ruby
[07:22:52] mustaffa: has joined #ruby
[07:25:37] KeyJoo: has joined #ruby
[07:33:00] jenrzzz: has joined #ruby
[07:33:00] jenrzzz: has joined #ruby
[07:35:16] pavlik: has joined #ruby
[07:36:07] djbkd: has joined #ruby
[07:39:02] milardovich: has joined #ruby
[07:41:38] dionysus69: has joined #ruby
[07:43:34] Qchmqs__: has joined #ruby
[07:47:44] tgragnato: has joined #ruby
[07:50:17] govg: has joined #ruby
[07:51:16] high_fiver: has joined #ruby
[07:55:19] bronson: has joined #ruby
[07:57:34] ltem: has joined #ruby
[07:59:45] milardovich: has joined #ruby
[08:08:54] bkxd: has joined #ruby
[08:10:34] andrzejku: has joined #ruby
[08:11:26] NeverTired: has joined #ruby
[08:14:50] lantastic: has joined #ruby
[08:15:06] lantastic: does rbenv take a long time to install ruby versions?
[08:17:04] Puffball: has joined #ruby
[08:27:23] ams__: has joined #ruby
[08:29:51] charliesome: has joined #ruby
[08:34:59] vuoto: has joined #ruby
[08:37:13] djbkd: has joined #ruby
[08:38:40] warrshrike: has joined #ruby
[08:38:49] warrshrike: has anyone here used ffi?
[08:40:55] warrshrike: *to call c++ code
[08:41:03] warrshrike: *or any other c++/ruby interop?
[08:41:37] milardovich: has joined #ruby
[08:43:58] al2o3-cr: warrshrike: what you try to call from c++?
[08:44:26] Mon_Ouie: I'm not aware of any FFI that supports calling C++ functions, typically you'd either have a C binding of the C++ API or directly write a binding for Ruby using its C API
[08:45:09] warrshrike: al2o3-cr: basically im wondering if the following is possible. write a C/C++ function that takes a ruby class instance as argument
[08:45:24] warrshrike: and use that function in ruby. is this making sense?
[08:45:41] warrshrike: i have a ruby function which is too slow so looking to redo it in c/cpp
[08:46:19] warrshrike: Mon_Ouie: oh well i could use C too
[08:46:49] warrshrike: the main thing is whether c/++ could take a non-primitive (i.e. a class) as argument
[08:47:19] al2o3-cr: warrshrike: i'm not too sure tbh
[08:47:29] al2o3-cr: it should be able to
[08:47:40] al2o3-cr: i can't see why not
[08:47:41] Mon_Ouie: If you use Ruby's C API, you get functions to call methods or retrieve the value of instance variables
[08:48:10] warrshrike: al2o3-cr: yeah because i was wondering how would c would know what ruby classes mean
[08:48:24] Mon_Ouie: If you want to use something like FFI you'd have to use Ruby's FFI to create classes that match the structs, etc. used by your C code
[08:48:49] warrshrike: Mon_Ouie: so you're saying i can call an instance method from a ruby class in c api?
[08:49:12] Mon_Ouie: Sure, using rb_funcall*
[08:49:56] warrshrike: Mon_Ouie: so i have a node class which implements .equal. with rb_funcall my c code can take a node and call equals on it?
[08:51:02] brent__: has joined #ruby
[08:51:52] Mon_Ouie: Yes, you can
[08:53:01] Mon_Ouie: That does mean you'll have to pay the overhead of calling a Ruby method every time you compare two nodes, the performances would probably be worse than if you had a node structure in C
[08:53:30] Mon_Ouie: Ultimately it depends on how much of your existing code you want to change for the sake of performance
[08:54:39] cagomez: has joined #ruby
[08:55:31] warrshrike: Mon_Ouie: so in FFI I'll need an equavalent node thingy. i guess i could do this
[08:55:39] warrshrike: performance is pretty abysmal atn
[08:55:54] warrshrike: im looking at weeks to run analysis
[08:56:59] jcao219: has joined #ruby
[08:56:59] warrshrike: Mon_Ouie: I wonder if the alternative is possible? use a ruby class in c? im only stuck to ruby because of parsing code ive written in that class
[08:57:20] warrshrike: perhaps it was unwise to do perf sensitive work in ruby at all :/
[08:57:28] warrshrike: but it WAS convenient to coe
[08:59:03] Mon_Ouie: As I said, Ruby's C API lets you call methods and access ivars. You can use this to simulate whatever you were doing in Ruby from C functions.
[08:59:47] warrshrike: Mon_Ouie: cool cool thanks a lot man
[09:00:27] Mon_Ouie: No problem ;)
[09:00:29] bkxd: has joined #ruby
[09:01:47] Mon_Ouie: al2o3-cr: By the way, did you submit the issue? I wrote a patch that seems to fix it and still have the unit tests pass: https://gist.github.com/anonymous/b35bb7c6501db0afb346e59401ed5705
[09:02:22] milardovich: has joined #ruby
[09:03:12] al2o3-cr: Mon_Ouie: not yet, i was really busy yesterday
[09:03:35] al2o3-cr: i'll submit it today though
[09:03:40] Mon_Ouie: It happened because refined methods run a different code path regardless of whether any refinement is active, and that code path did not check method visibility when calling methods from one of its parent classes
[09:06:47] FrankD__: has joined #ruby
[09:07:00] al2o3-cr: Mon_Ouie: would you be able to submit please, i'd have to sign up and what not, if it's not to much trouble?
[09:07:03] jenrzzz: has joined #ruby
[09:07:30] Mon_Ouie: Sure, I can ;) I just didn't want to write it at the same time as you did
[09:08:14] al2o3-cr: Mon_Ouie: np, i'll leave it in your good hands then :)
[09:09:50] lantastic: has joined #ruby
[09:10:28] cagomez: has joined #ruby
[09:12:39] al2o3-cr: hey, credit for the refinement modification btw
[09:13:38] al2o3-cr: now i understand why it happens
[09:19:57] Mon_Ouie: Here's a link to the submitted issue if you're interested: https://bugs.ruby-lang.org/issues/13776
[09:21:55] al2o3-cr: thank you Mon_Ouie
[09:22:14] Junaos: has joined #ruby
[09:23:06] lxsameer: has joined #ruby
[09:23:23] milardovich: has joined #ruby
[09:33:38] conta: has joined #ruby
[09:40:22] bkxd: has joined #ruby
[09:44:04] milardovich: has joined #ruby
[09:46:33] NightMonkey: has joined #ruby
[09:52:19] ar1a: has joined #ruby
[09:56:20] bronson: has joined #ruby
[09:57:17] vuoto: has joined #ruby
[10:04:10] norm: has joined #ruby
[10:04:55] milardovich: has joined #ruby
[10:05:02] keyjoo_: has joined #ruby
[10:08:23] lele: has joined #ruby
[10:21:52] d^sh: has joined #ruby
[10:25:49] milardovich: has joined #ruby
[10:26:23] DrCode: has joined #ruby
[10:27:01] ramfjord: has joined #ruby
[10:29:22] Jameser: has joined #ruby
[10:35:57] wnd: has joined #ruby
[10:36:14] yeticry_: has joined #ruby
[10:37:11] cahoots: has joined #ruby
[10:39:50] kkiero: has joined #ruby
[10:45:11] dionysus69: has joined #ruby
[10:46:49] milardovich: has joined #ruby
[10:50:57] slima: has joined #ruby
[10:50:57] slima: has joined #ruby
[11:02:03] dionysus70: has joined #ruby
[11:06:16] lantastic: has joined #ruby
[11:06:36] vuoto: has joined #ruby
[11:07:24] tildes: has joined #ruby
[11:07:34] milardovich: has joined #ruby
[11:07:48] SCHAPiE: has joined #ruby
[11:14:34] cagomez: has joined #ruby
[11:23:32] JBlazeCoder21: has joined #ruby
[11:24:35] nacer: has joined #ruby
[11:28:01] roshanavand: has joined #ruby
[11:28:30] antoniooohhh: has joined #ruby
[11:30:19] cagomez: has joined #ruby
[11:31:27] iMadper`: has joined #ruby
[11:32:57] Jameser: has joined #ruby
[11:33:50] JBlazeCoder21: has joined #ruby
[11:37:38] normie1: has joined #ruby
[11:43:49] rabajaj: has joined #ruby
[11:45:41] kkiero: has joined #ruby
[11:45:51] cagomez: has joined #ruby
[11:46:53] jcao219: has joined #ruby
[11:47:23] sepp2k: has joined #ruby
[11:48:37] JBlazeCoder21: has joined #ruby
[11:48:58] vuoto: has joined #ruby
[11:55:09] domgetter: has joined #ruby
[11:57:38] bronson: has joined #ruby
[11:57:50] selim: has joined #ruby
[11:57:57] vuoto: has joined #ruby
[12:02:41] VladGh: has joined #ruby
[12:02:47] arup_r: has joined #ruby
[12:07:02] moeabdol: has joined #ruby
[12:07:36] vuoto: has joined #ruby
[12:09:24] milardovich: has joined #ruby
[12:14:11] arup_r: I am having issue to copy and paste floating point values from 1 excel column to another column. All values are rounding to 1 in new column. Can anyone help me how can I preserve the value? Code: https://gitlab.com/aruprakshit/alleleregistry/blob/master/Rakefile#L60 and sample output https://gitlab.com/aruprakshit/alleleregistry/snippets/1669726
[12:16:49] andrzejku: has joined #ruby
[12:20:05] GodFather: has joined #ruby
[12:25:05] jinie_: has joined #ruby
[12:25:15] _sfiguser: has joined #ruby
[12:26:08] anuxivm: has joined #ruby
[12:30:50] mikar: has joined #ruby
[12:32:57] mikar: hi, I'm trying to always show 2 decimals in a BigDecimal when it's printed on the screen: BigDecimal.new('16.5').to_s('F') => 16.5 but I'd like it to show 16.50, without casting it to float and possibly loosing precision (eg with '%.2f' % decimal). Any idea if it's possible? I'm reading the whole doc and stackoverflow but I can't find a way :/
[12:34:53] Papierkorb: mika_: in the worst case, you can always modify the display string
[12:34:56] vuoto: has joined #ruby
[12:35:43] Papierkorb: mika_: e.g. `a = deci.to_s('F'); a += '0' if a =~ /\.\d$/`
[12:36:23] mikar: Papierkorb: that's very hackish, I hoped that there was something available directly from BigDecimal ;)
[12:38:30] vuoto: has joined #ruby
[12:43:35] Jameser: has joined #ruby
[12:45:02] dionysus69: has joined #ruby
[12:46:56] Jameser: has joined #ruby
[12:49:43] rgr: has joined #ruby
[12:55:35] phinxy: has joined #ruby
[12:58:00] ElFerna: has joined #ruby
[13:00:32] sonOfRa: mika_: how about "%n.f" % foo.truncate(n)
[13:00:37] sonOfRa: Where n is the number of digits that you want
[13:01:30] sonOfRa: Oh, I guess that performs a cast
[13:01:40] milardovich: has joined #ruby
[13:01:59] JBlazeCoder21: has joined #ruby
[13:08:52] normie1: has joined #ruby
[13:11:51] tildes: has joined #ruby
[13:20:22] roshanavand1: has joined #ruby
[13:21:53] Hanmac: has joined #ruby
[13:22:36] milardovich: has joined #ruby
[13:29:38] norm: has joined #ruby
[13:34:10] alex``: has joined #ruby
[13:40:37] Murda: has joined #ruby
[13:43:36] milardovich: has joined #ruby
[13:48:53] dionysus69: has joined #ruby
[13:50:51] ujjain: has joined #ruby
[13:50:51] ujjain: has joined #ruby
[13:55:32] apparition: has joined #ruby
[13:58:25] bronson: has joined #ruby
[14:00:16] ujjain: has joined #ruby
[14:00:16] ujjain: has joined #ruby
[14:03:10] ncthom91: has joined #ruby
[14:15:30] bkxd: has joined #ruby
[14:25:10] milardovich: has joined #ruby
[14:27:02] m27frogy: has joined #ruby
[14:28:34] pabs: has joined #ruby
[14:29:33] tacoboy: has joined #ruby
[14:33:07] DLSteve: has joined #ruby
[14:33:24] ujjain: has joined #ruby
[14:33:24] ujjain: has joined #ruby
[14:34:07] high_fiver: has joined #ruby
[14:38:44] someuser: has joined #ruby
[14:43:44] yxhuvud: has joined #ruby
[14:46:09] milardovich: has joined #ruby
[14:48:32] normie1: has joined #ruby
[14:51:17] bkxd: has joined #ruby
[14:55:40] rgr_: has joined #ruby
[15:03:48] boombox_: has joined #ruby
[15:05:39] cam27: has joined #ruby
[15:06:50] benjen: has joined #ruby
[15:09:06] yabbes: has joined #ruby
[15:18:20] brendan-: has joined #ruby
[15:23:10] milardovich: has joined #ruby
[15:23:44] mustaffa: has joined #ruby
[15:27:01] balo: sorry i thought there is a bot here
[15:27:20] balo: > puts "hello"
[15:27:29] balo: come on :D
[15:28:09] balo: anyway. do you have any idea why this does not return the string "grape" as well?
[15:28:11] balo: /\[([\w-]*)\]/.match("[apple][grape]").to_a
[15:30:06] canton7: balo, you want #scan, probably
[15:30:51] antgel: has joined #ruby
[15:31:37] balo: indeed, thanks canton7 ... it was not that intuitive for me :D
[15:36:30] JBlazeCoder21: has joined #ruby
[15:36:42] psychicist__: has joined #ruby
[15:48:09] sgen: has joined #ruby
[15:53:03] bkxd: has joined #ruby
[15:56:58] high_fiver: has joined #ruby
[15:59:17] bronson: has joined #ruby
[16:00:01] kapil___: has joined #ruby
[16:05:35] S007: has joined #ruby
[16:05:48] kahra: has joined #ruby
[16:07:33] djbkd: has joined #ruby
[16:08:36] ascarter: has joined #ruby
[16:14:11] tlr: has joined #ruby
[16:14:19] houhoulis: has joined #ruby
[16:25:44] milardovich: has joined #ruby
[16:29:48] cdolan: has joined #ruby
[16:30:36] dionysus69: has joined #ruby
[16:36:51] psychicist__: has joined #ruby
[16:38:20] normie1: has joined #ruby
[16:40:54] normie1: has joined #ruby
[16:41:30] normie1: has joined #ruby
[16:42:36] statelesscode: has joined #ruby
[16:45:35] normie1: has joined #ruby
[16:46:17] tildes: has joined #ruby
[16:46:19] normie1: has joined #ruby
[16:46:44] ltem: has joined #ruby
[16:47:44] domgetter: has joined #ruby
[16:48:43] eljimmy: has joined #ruby
[16:49:51] statelesscode: has joined #ruby
[16:54:49] bvcosta: has joined #ruby
[16:57:21] vuoto: has joined #ruby
[16:57:39] normie1: has joined #ruby
[16:58:03] sleepee: has joined #ruby
[17:02:50] workmad3: has joined #ruby
[17:03:28] Pacra: has joined #ruby
[17:04:41] yabbes: has joined #ruby
[17:06:33] djbkd: has joined #ruby
[17:07:39] milardovich: has joined #ruby
[17:10:56] kahra: has joined #ruby
[17:17:04] lantastic: has joined #ruby
[17:20:00] bkxd: has joined #ruby
[17:23:33] noe: has joined #ruby
[17:28:19] milardovich: has joined #ruby
[17:29:04] kiltzman: has joined #ruby
[17:29:22] psychicist__: has joined #ruby
[17:33:17] kahra: has joined #ruby
[17:33:59] bvcosta: has joined #ruby
[17:35:24] MichaelBurge: has joined #ruby
[17:36:59] DLSteve: has joined #ruby
[17:41:56] weathermaker: has joined #ruby
[17:42:29] markit: has joined #ruby
[17:43:23] runescape07rsps: has joined #ruby
[17:43:40] markit: hi, not related to ruby but I know some of you are very good with regular expressions. I need to find this EXACT url, but probably escapes and other stuff makes me find nothing. What is the right syntax? The phrase I need to find is (without quotes) 'Go to http://local-one-other.com/ NOW!'
[17:45:09] markit: mmm should be Go to http:\/\/local-one-other.com\/ NOW! but seems not working, maybe there is another reason for it
[17:46:19] gizmore|2: i take a look.... look at wechall.net meanwhile :P
[17:47:14] gizmore|2: regex should be /^http:\/\/local-one-other.com$/
[17:47:26] gizmore|2: no? @ markit
[17:47:52] markit: gizmore|2: apologise, I just noticed that the text is 'Go to (double spaces!) http...'
[17:48:08] markit: sigh, sorry for the noise :(
[17:48:21] high_fiver: has joined #ruby
[17:48:36] gizmore|2: i was about to troll because there was so low activity
[17:48:44] b3ck: has joined #ruby
[17:48:50] gizmore|2: like... "Why is ruby so slow compared to php?"
[17:50:17] alex``: has joined #ruby
[18:00:00] gizmore|2: i decided against ruby for my latest project, because php toolchain is superior (F5 toolchain)
[18:00:26] gizmore|2: you only need to know F5 to operate on the toolchain :)
[18:00:58] bronson: has joined #ruby
[18:00:59] gizmore|2: and i got it down to 10ms here... rails feels so slow compared to that
[18:01:16] gizmore|2: active record sucks?
[18:02:38] cdolan: perl > ruby (waits for outrage)
[18:03:29] gizmore|2: i never tried perl seriously
[18:03:40] gizmore|2: is it even considered a language, still?
[18:09:28] milardovich: has joined #ruby
[18:11:54] yabbes: has joined #ruby
[18:14:10] code_zombie: has joined #ruby
[18:14:27] bkxd: has joined #ruby
[18:18:46] roshanavand: has joined #ruby
[18:30:27] milardovich: has joined #ruby
[18:31:16] havenwood: gizmore|2: please don't troll
[18:31:34] gizmore|2: it was only partially trolling
[18:31:50] gizmore|2: i really decided against ruby because of bloat toolchain and bad performance
[18:32:07] gizmore|2: mostly because activerecord and rails is bloat and slow?
[18:32:17] gizmore|2: ruby itself is slow too, no?
[18:32:20] havenwood: gizmore|2: that's absurd
[18:32:21] havenwood: gizmore|2: Rails is not Ruby... Stop trolling.
[18:32:30] gizmore|2: i think ruby is quite slow
[18:32:36] havenwood: Well, you're wrong.
[18:32:56] havenwood: gizmore|2: Not compared to what you're considering. You're just doing it wrong.
[18:32:58] gizmore|2: active_record is?
[18:33:11] havenwood: gizmore|2: Again, how do you equate that with Ruby? One library...
[18:33:39] gizmore|2: from my experience playing with it
[18:34:01] gizmore|2: it felt slower than php, overall
[18:34:18] havenwood: gizmore|2: Again, you're talking about Rails.
[18:34:36] havenwood: gizmore|2: Did you compare ngx_mruby? It's faster than your php solution. You're just not comparing an equivalent thing.
[18:34:38] gizmore|2: mainly i was using activerecord heavily... and it is slow
[18:34:51] gizmore|2: another big point why i decided against ruby:
[18:34:57] gizmore|2: ruby is not typesafe
[18:35:21] gizmore|2: php even goes one step further
[18:35:30] gizmore|2: telling your function if it is notNull
[18:35:46] gizmore|2: function myPHPFunc(Type $arg=null)
[18:36:19] gizmore|2: i really hate to say this... but PHP > JS+ruby, when it comes to typesafety
[18:36:19] havenwood: gizmore|2: So you find ActiveRecord slow (you're probably again doing it wrong) and in your mind that SQL generator makes the Ruby language slow.
[18:36:20] havenwood: gizmore|2: That's just silly.
[18:36:36] havenwood: gizmore|2: PHP does not have proper static typing. That's a very strange bragging point.
[18:37:01] havenwood: gizmore|2: You should learn a statically typed language. You might like that. But stop with the FUD.
[18:37:10] havenwood: gizmore|2: (PHP is not one.)
[18:37:22] gizmore|2: php did really make progress in terms of performance and type system
[18:37:25] havenwood: gizmore|2: Also a general purpose language might serve you further than a web language.
[18:37:36] havenwood: gizmore|2: So use ngx_mruby or something equivalent.
[18:37:46] havenwood: gizmore|2: It'll be faster and you'll have a nicer language.
[18:37:49] gizmore|2: why should i, if there is no type hinting?
[18:37:54] havenwood: gizmore|2: This isn't a good place for PHP recruiting.
[18:37:55] gizmore|2: i better choose C++ next
[18:38:19] havenwood: gizmore|2: I can't tell if you're trolling or not. ¯\_(ツ)_/¯
[18:38:39] havenwood: But sure, learn C++.
[18:39:44] gizmore|2: i think php is better than ruby meanwhile, because php type hint system is quite fine nowadays
[18:40:02] bruno-: has joined #ruby
[18:40:06] gizmore|2: ruby language / syntax is sooo much better... but no type hinting
[18:40:13] gizmore|2: there is contract
[18:40:18] havenwood: gizmore|2: We disagree aesthetically.
[18:40:23] gizmore|2: but it adds so much noise
[18:40:45] havenwood: gizmore|2: The things Ruby isn't fast enough for PHP also isn't fast enough for (and can't do period because it's not a general purpose programming language).
[18:41:09] gizmore|2: well.. how fast has a site to be?
[18:41:14] havenwood: gizmore|2: If you're happy with your we language that's great. Just don't spread FUD here.
[18:41:40] gizmore|2: have you used the ruby contract library yet?
[18:41:51] gizmore|2: to add typesafety to your functions?
[18:42:25] havenwood: gizmore|2: Please stop it.
[18:42:26] gizmore|2: because the added code is too much, compared to the gain (who needs type safety in a duck typed lang)
[18:42:41] gizmore|2: but i would love type hinting in ruby :(
[18:42:47] havenwood: gizmore|2: Just use Crystal.
[18:43:08] gizmore|2: ACTION googles
[18:43:18] havenwood: gizmore|2: https://crystal-lang.org/
[18:43:30] havenwood: gizmore|2: A lot faster than PHP and actually statically typed.
[18:43:49] gizmore|2: aww... own lang
[18:44:01] gizmore|2: i hate Typescript too
[18:44:08] antoniooohhh: has left #ruby: ()
[18:44:19] havenwood: ?offtopic gizmore|2
[18:44:19] ruby[bot]: gizmore|2: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[18:44:56] gizmore|2: crystal looks interesting
[18:46:11] gizmore|2: probably like typescript... why is there no <script type="typescript"> in browsers?
[18:46:20] havenwood: Ruby may get some incremental type analysis in Ruby 3. We'll see as we approach 2020.
[18:46:27] gizmore|2: yeah... would be awe
[18:46:47] gizmore|2: imagine a type annotated ruby, just for the sake of IDE auto completion
[18:47:02] havenwood: gizmore|2: You'd probably like Crystal-lang.
[18:47:12] gizmore|2: the biggest problem for loose type languages, is the IDE :P
[18:47:37] gizmore|2: and the lack of superhuman memory of the devs
[18:47:44] havenwood: Matz likes DRYer than explicit static types. It's a choice.
[18:48:26] gizmore|2: i really am impressed of php7... the type system is ... good
[18:49:13] boombox_: has joined #ruby
[18:49:17] havenwood: Something like Erlang/Elixir's dialyser might be an acceptable middle ground. Tooling instead of inclusion in the language.
[18:50:20] gizmore|2: in my current project, i have 0 dependencies
[18:50:24] InfinityFye: has joined #ruby
[18:51:23] milardovich: has joined #ruby
[18:51:35] gizmore|2: thats why i am thinking of a C/++ port
[18:51:53] gizmore|2: because i have 0 dependencies anyway (except facebook login + websocket server)
[18:52:09] gizmore|2: i bet it will still take ages to port
[18:53:08] gizmore|2: one day i read a reddit fun about programming in AST
[18:53:25] gizmore|2: where you directly code in AST, so it is compatible to all languages
[18:53:34] gizmore|2: also a fun idea
[18:53:56] gizmore|2: it was a joke... of course
[18:57:28] cadillac_: has joined #ruby
[18:58:20] bkxd: has joined #ruby
[19:01:54] Dimik: has joined #ruby
[19:02:56] high_fiver: has joined #ruby
[19:09:20] P_R_Deltoid: has joined #ruby
[19:10:46] boombox_: has joined #ruby
[19:10:51] tildes: has joined #ruby
[19:14:06] jcao219: has joined #ruby
[19:16:04] andrzejku: has joined #ruby
[19:17:23] eroux: has joined #ruby
[19:27:58] veex: has joined #ruby
[19:28:39] ElFerna: has joined #ruby
[19:33:04] milardovich: has joined #ruby
[19:35:49] opekktar: has joined #ruby
[19:37:32] Ryzokuken: has joined #ruby
[19:38:16] cdolan: has joined #ruby
[19:40:26] xuanrui: has joined #ruby
[19:41:57] ElFerna: has joined #ruby
[19:43:36] nofxx: has joined #ruby
[19:46:01] milardovich: has joined #ruby
[19:46:07] bkxd: has joined #ruby
[19:48:46] elcontrastador: has joined #ruby
[19:49:31] milardovich: has joined #ruby
[19:50:26] bvcosta: has joined #ruby
[19:55:08] dionysus69: has joined #ruby
[20:01:01] _sfiguser: has joined #ruby
[20:02:03] bronson: has joined #ruby
[20:02:17] eljimmy: has joined #ruby
[20:03:18] kies: has joined #ruby
[20:09:25] cagmz: has joined #ruby
[20:09:36] postmodern: has joined #ruby
[20:17:53] alex``: has joined #ruby
[20:19:15] t-recx: has joined #ruby
[20:25:44] ElFerna: has joined #ruby
[20:28:35] kamilkucharski: has joined #ruby
[20:30:53] bkxd: has joined #ruby
[20:31:19] tildes: has joined #ruby
[20:33:37] bruno-: has joined #ruby
[20:41:06] andrzejku: has joined #ruby
[20:55:21] tgragnato: has joined #ruby
[20:56:24] goyox86_: has joined #ruby
[20:58:01] goyox86_: Hi people I'm trying to port Ruby to https://redox-os.org and we don't have pthreads yet. I'm trying to disable them in the configure script but it seems to be ignoring it. Is there a way to tell that to the configure script?
[20:59:00] bruno-_: has joined #ruby
[21:00:24] _sfiguser: guys is serialization faster than using a DB generally ?
[21:03:58] bruno-: has joined #ruby
[21:04:39] roshanavand: has joined #ruby
[21:04:51] meshsmith: has joined #ruby
[21:05:15] runescape07rsps: https://www.wired.com/2017/06/diversity-open-source-even-worse-tech-overall/
[21:06:19] al2o3-cr: has joined #ruby
[21:08:45] havenwood: goyox86_: Are you trying?: --disable-pthread
[21:10:20] havenwood: --enable-pthread obsolete, and ignored
[21:10:22] antgel: has joined #ruby
[21:10:36] bruno-: has joined #ruby
[21:10:38] sepp2k1: has joined #ruby
[21:10:41] meshsmith_: has joined #ruby
[21:11:23] cagmz_: has joined #ruby
[21:11:47] noem: has joined #ruby
[21:12:01] sleepee_: has joined #ruby
[21:12:05] keyjoo_: has joined #ruby
[21:12:11] roshanavand1: has joined #ruby
[21:17:36] selim: has joined #ruby
[21:19:28] marr: has joined #ruby
[21:23:41] bruno-: has joined #ruby
[21:24:17] bkxd: has joined #ruby
[21:27:39] bruno-_: has joined #ruby
[21:30:58] mjolnird: has joined #ruby
[21:32:36] bruno-: has joined #ruby
[21:32:44] antgel: has joined #ruby
[21:37:35] bruno-: has joined #ruby
[21:42:35] bruno-: has joined #ruby
[21:43:15] ecuanaso: has joined #ruby
[21:46:06] goyox86_: @havenwood yeah but seems to be ignoring it :(
[21:46:27] goyox86_: @havenwood yeah but seems to be ignoring it :(
[21:46:31] enterprisey: has joined #ruby
[21:50:57] bruno-: has joined #ruby
[21:55:57] bruno-: has joined #ruby
[21:56:28] milardovich: has joined #ruby
[21:58:02] milardovich: has joined #ruby
[22:02:50] bronson: has joined #ruby
[22:03:41] FastJack: has joined #ruby
[22:12:25] chrisgopher: has joined #ruby
[22:15:51] ijustcount: has joined #ruby
[22:16:10] bruno-: has joined #ruby
[22:17:39] ElFerna: has joined #ruby
[22:18:39] milardovich: has joined #ruby
[22:25:10] goyox86_: has joined #ruby
[22:27:38] goyox86: has joined #ruby
[22:29:36] DrCode: has joined #ruby
[22:31:39] goyox86: has joined #ruby
[22:33:27] Moosashi: has joined #ruby
[22:34:39] Rutix: has joined #ruby
[22:34:39] Rutix: has joined #ruby
[22:37:03] Inoperable: has joined #ruby
[22:37:21] WeiJunLi: has joined #ruby
[22:37:49] domgetter: has joined #ruby
[22:45:45] sarmiena_: has joined #ruby
[23:00:26] eljimmy: has joined #ruby
[23:01:57] BTRE: has joined #ruby
[23:05:24] P_R_Deltoid: has joined #ruby
[23:06:49] duderonomy: has joined #ruby
[23:13:04] jenrzzz: has joined #ruby
[23:13:04] jenrzzz: has joined #ruby
[23:13:16] demio: has joined #ruby
[23:23:16] deep-book-gk_: has joined #ruby
[23:24:09] rfoust: has joined #ruby
[23:25:35] deep-book-gk_: has left #ruby: ()
[23:32:36] jinie_: has joined #ruby
[23:38:28] Moosashi: has joined #ruby
[23:40:00] S1kx: has joined #ruby
[23:41:00] t-recx: has joined #ruby
[23:44:21] eelster: has joined #ruby
[23:46:10] meshsmith: has joined #ruby