« Back to channel list

#ruby - 31 July 2017

« Back 1 day Forward 1 day »
[00:00:49] havenwood: growp: Say more?
[00:08:37] brent__: has joined #ruby
[00:10:48] johnny56_: has joined #ruby
[00:12:14] milardovich: has joined #ruby
[00:13:29] cam27: has joined #ruby
[00:17:27] bronson: has joined #ruby
[00:20:06] Pacra: has joined #ruby
[00:21:20] Fezzler: has joined #ruby
[00:21:54] charliesome: has joined #ruby
[00:22:06] ar1arelaybot: has joined #ruby
[00:26:24] charliesome_: has joined #ruby
[00:33:15] milardovich: has joined #ruby
[00:36:40] brent__: has joined #ruby
[00:36:57] Ropeney: has joined #ruby
[00:43:39] cam27: has joined #ruby
[00:46:51] charliesome: has joined #ruby
[00:49:48] nofxx: has joined #ruby
[00:51:46] deep-book-gk: has joined #ruby
[00:53:48] deep-book-gk: has left #ruby: ()
[01:09:02] BTRE: has joined #ruby
[01:10:02] apparition: has joined #ruby
[01:14:24] cam27: has joined #ruby
[01:15:47] govg: has joined #ruby
[01:16:36] jrafanie: has joined #ruby
[01:23:22] dexter1: has joined #ruby
[01:24:00] nofxx: has joined #ruby
[01:24:03] benjen: has joined #ruby
[01:25:53] veex: has joined #ruby
[01:27:00] jrafanie: has joined #ruby
[01:27:03] jenrzzz: has joined #ruby
[01:27:03] jenrzzz: has joined #ruby
[01:39:19] milardovich: has joined #ruby
[01:43:49] cam27: has joined #ruby
[01:50:03] HoierM: has joined #ruby
[01:58:00] Jameser: has joined #ruby
[02:03:38] enterprisey: has joined #ruby
[02:07:16] govg: has joined #ruby
[02:08:38] nofxx: has joined #ruby
[02:10:41] jcao219: has joined #ruby
[02:14:04] cam27: has joined #ruby
[02:16:36] Jameser: has joined #ruby
[02:18:22] bronson: has joined #ruby
[02:26:14] patr0clus: has joined #ruby
[02:29:18] muzik: has joined #ruby
[02:30:26] DTZUZO: has joined #ruby
[02:41:49] milardovich: has joined #ruby
[02:44:15] cam27: has joined #ruby
[02:45:40] nobodyzxc: has joined #ruby
[02:48:35] treaki: has joined #ruby
[02:52:46] jenrzzz: has joined #ruby
[02:52:46] jenrzzz: has joined #ruby
[03:05:23] dviola: has joined #ruby
[03:07:03] Ropeney: has joined #ruby
[03:08:20] sarbs: has joined #ruby
[03:09:32] minimalism: has joined #ruby
[03:13:08] Nirvash: has joined #ruby
[03:14:24] Nirvash: Does anyone have experience with Ruby XMPP bots?
[03:14:50] cam27: has joined #ruby
[03:17:11] gix: has joined #ruby
[03:19:14] Jameser: has joined #ruby
[03:20:37] milardovich: has joined #ruby
[03:21:25] Jameser: has joined #ruby
[03:26:15] ledestin: has joined #ruby
[03:29:43] ar1a: has joined #ruby
[03:29:43] ar1a: whatre you stuck on
[03:31:15] cibs: has joined #ruby
[03:31:30] jinie_: has joined #ruby
[03:32:05] tohuw: has joined #ruby
[03:32:50] yana[m]: has joined #ruby
[03:39:11] _whitelogger: has joined #ruby
[03:41:46] treaki: has joined #ruby
[03:42:07] houhoulis: has joined #ruby
[03:45:07] paradisaeidae: has joined #ruby
[03:45:13] paradisaeidae_: has joined #ruby
[03:49:27] Jameser: has joined #ruby
[03:51:03] ecuanaso: has joined #ruby
[03:52:29] howdoi: has joined #ruby
[03:52:30] bekicot: has joined #ruby
[03:52:50] bekicot: hello world
[03:59:03] Jameser: has joined #ruby
[04:00:14] cam27: has joined #ruby
[04:01:36] umaaji: has joined #ruby
[04:02:56] Jameser: has joined #ruby
[04:03:41] jenrzzz: has joined #ruby
[04:04:34] claw: has joined #ruby
[04:08:35] jackjackdripper: has joined #ruby
[04:10:13] renchan: has joined #ruby
[04:15:17] jdelStrother: has joined #ruby
[04:19:54] bronson: has joined #ruby
[04:25:14] BTRE: has joined #ruby
[04:29:32] enterprisey: has joined #ruby
[04:30:44] cam27: has joined #ruby
[04:32:59] brent__: has joined #ruby
[04:36:53] MrBusiness: has joined #ruby
[04:38:00] barx: has joined #ruby
[04:38:06] __Yiota: has joined #ruby
[04:39:20] brent__: has joined #ruby
[04:40:11] treaki__: has joined #ruby
[04:40:27] armyriad: has joined #ruby
[04:50:54] patrontechnosoft: has joined #ruby
[05:00:49] paradisaeidae: has joined #ruby
[05:00:51] paradisaeidae_: has joined #ruby
[05:09:12] _whitelogger: has joined #ruby
[05:14:40] GK1wmSU: has joined #ruby
[05:16:10] kapil___: has joined #ruby
[05:17:03] GK1wmSU: has left #ruby: ()
[05:21:42] maxtweddell: has joined #ruby
[05:22:04] mach_kernel: has joined #ruby
[05:22:04] mach_kernel: has joined #ruby
[05:23:09] apeiros: hi maxtweddell
[05:26:43] apeiros: yeah, I like it too
[05:28:15] _GK1wmSU: has joined #ruby
[05:30:09] _GK1wmSU: has left #ruby: ()
[05:31:00] maxtweddell: What do you like to do in ruby?
[05:31:19] cam27: has joined #ruby
[05:37:00] MichaelBurge: has joined #ruby
[05:37:46] MichaelBurge: has left #ruby: ()
[05:44:39] Jameser: has joined #ruby
[05:46:54] anisha: has joined #ruby
[05:47:01] konsolebox: has joined #ruby
[05:51:42] alex``: has joined #ruby
[05:53:53] paradisaeidae: has joined #ruby
[05:54:20] paradisaeidae_: has joined #ruby
[05:55:44] intuxicated: has joined #ruby
[05:57:02] uZiel: has joined #ruby
[05:58:16] intuxicated: Hi all. is method an instance of Proc ? what are they actually ?
[05:58:23] andikr: has joined #ruby
[06:00:28] Timba-as: has joined #ruby
[06:04:17] jcao219: has joined #ruby
[06:05:17] roshanavand: has joined #ruby
[06:10:52] ltem: has joined #ruby
[06:13:34] havenwood: >> method(:puts).class
[06:13:35] ruby[bot]: havenwood: # => Method (https://eval.in/839543)
[06:13:51] `derpy: http://ruby-doc.org/core-2.4.1/Method.html
[06:15:14] guacamole: has joined #ruby
[06:16:38] cam27: has joined #ruby
[06:18:14] uZiel: has joined #ruby
[06:20:50] bronson: has joined #ruby
[06:29:48] conta: has joined #ruby
[06:32:44] uZiel: has joined #ruby
[06:33:25] rgr: has joined #ruby
[06:36:14] guacamole: has joined #ruby
[06:38:32] enterprisey: has joined #ruby
[06:39:04] yabbes: has joined #ruby
[06:46:06] Xeago: has joined #ruby
[06:49:06] cam27: has joined #ruby
[06:49:58] conta: has joined #ruby
[06:52:58] uZiel: has joined #ruby
[06:54:26] devyn: has joined #ruby
[06:57:43] Awsy: has joined #ruby
[06:58:19] nfsnobody: has joined #ruby
[07:02:33] vali: has joined #ruby
[07:04:20] pootiscoder: has joined #ruby
[07:12:38] S1kx: has joined #ruby
[07:14:14] moeabdol: has joined #ruby
[07:17:16] cam27: has joined #ruby
[07:21:05] Puffball: has joined #ruby
[07:22:18] dionysus69: has joined #ruby
[07:27:08] opekktar: has joined #ruby
[07:28:04] mark_66: has joined #ruby
[07:29:41] Genya: has joined #ruby
[07:30:48] Genya: Hello. I need some advice on choosing a good web framework
[07:31:15] Genya: I'm experienced full stack developer and wanted to try out Ruby (not Ruby on rails)
[07:31:26] Genya: Could I get your thoughts on pakyow?
[07:31:40] yana[m]: Pick one or you are going to start a war :D
[07:31:50] Genya: https://www.pakyow.org
[07:32:12] Genya: Well I just wanted your thoughts on what good and bad about the framework you see.
[07:32:17] tAn: has joined #ruby
[07:32:20] nadir: has joined #ruby
[07:32:24] Radar: Phoenix .
[07:32:28] ruby[bot]: Radar: I don't know anything about next
[07:32:32] Radar: ruby[bot]: ....
[07:34:30] Genya: You gonna give me some pointers on the framework? Like why you choose it?
[07:35:06] yana[m]: Rails, because it the only things i ever work on. :D
[07:35:42] Genya: Well that's not helpful at all lol
[07:36:11] vladline: has joined #ruby
[07:36:46] Genya: I could tell more about what I expect from the framework. If that helps
[07:38:29] ineb1: Genya: Roda is another good option
[07:39:15] Genya: Alright. I'm looking into them
[07:39:56] Genya: I am looking for one that more towards front-end and not so much backend. I'm abstracting much of the backend work to mircroservices
[07:43:05] Genya: Huh. Roda Looks good. Is it stable?
[07:44:37] Genya: Phoenix looks good too but I have a feeling too large for how I want to use it
[07:47:37] paradisaeidae__: has joined #ruby
[07:48:25] MrBusiness: has joined #ruby
[07:49:20] Silthias: has joined #ruby
[07:51:58] Genya: Thanks for the suggestions guys
[07:56:21] bane_: has joined #ruby
[07:56:57] tvw: has joined #ruby
[08:00:06] antgel: has joined #ruby
[08:05:21] charliesome: has joined #ruby
[08:11:37] jaruga: has joined #ruby
[08:13:26] ineb1: Genya: go with roda then, its good
[08:13:40] InfinityFye: has joined #ruby
[08:14:10] ineb1: altough i havent done a large project with it yet. but with sequel (an orm mapper from the same author) which is very good
[08:15:25] Genya: well the sequel part will be handled in the microservices
[08:15:36] kx: has joined #ruby
[08:15:40] Genya: gonna use websockets internally to pass data around to those
[08:21:28] bronson: has joined #ruby
[08:22:20] djbkd: has joined #ruby
[08:22:33] TomyWork: has joined #ruby
[08:22:42] mim1k: has joined #ruby
[08:24:03] marr: has joined #ruby
[08:24:46] Beams: has joined #ruby
[08:26:12] workmad3: has joined #ruby
[08:26:23] ur5us: has joined #ruby
[08:26:40] DoubleMalt: has joined #ruby
[08:28:04] moeabdol: has joined #ruby
[08:38:05] rgtk: has joined #ruby
[08:41:45] aupadhye: has joined #ruby
[08:52:56] uZiel: has joined #ruby
[08:59:56] lantastic: has joined #ruby
[09:02:16] ur5us_: has joined #ruby
[09:03:16] iMadper`: has joined #ruby
[09:05:37] Tempesta: has joined #ruby
[09:07:44] yabbes: has joined #ruby
[09:11:06] moei: has joined #ruby
[09:11:43] emilkarl: has joined #ruby
[09:12:03] emilkarl_: has joined #ruby
[09:14:09] behzad: has joined #ruby
[09:14:18] behzad: has left #ruby: ()
[09:17:09] gregf_: has joined #ruby
[09:18:09] sysvalve: has joined #ruby
[09:21:24] ur5us: has joined #ruby
[09:25:16] runescape07rsps: has joined #ruby
[09:27:09] ur5us: has joined #ruby
[09:30:29] Bish_: has joined #ruby
[09:32:19] phinxy: has joined #ruby
[09:35:39] Sylario: has joined #ruby
[09:37:15] moeabdol: has joined #ruby
[09:39:50] brent__: has joined #ruby
[09:41:31] Bish: has joined #ruby
[09:44:17] noe: has joined #ruby
[09:51:25] Serpent7776: has joined #ruby
[10:01:24] romankapitonov: has joined #ruby
[10:02:14] vondruch: has joined #ruby
[10:05:06] Beams: has joined #ruby
[10:11:24] pootiscoder: has joined #ruby
[10:21:39] ar1arelaybot: has joined #ruby
[10:23:00] bronson: has joined #ruby
[10:26:42] yeticry: has joined #ruby
[10:26:51] __Yiota: has joined #ruby
[10:27:15] Beams: has joined #ruby
[10:34:51] fghjb3567: has joined #ruby
[10:34:52] ar1arelaybot: has joined #ruby
[10:41:09] pootiscoder: has joined #ruby
[10:47:15] mim1k: has joined #ruby
[10:47:21] yabbes: has joined #ruby
[10:49:08] milardovich: has joined #ruby
[10:49:15] jenrzzz: has joined #ruby
[10:49:32] jenrzzz: has joined #ruby
[10:52:28] milardovich: has joined #ruby
[10:52:56] milardovich: has joined #ruby
[10:53:48] mikecmpbll: has joined #ruby
[10:54:01] timmow: has joined #ruby
[10:54:10] lantastic: has joined #ruby
[10:55:55] Ishido: has joined #ruby
[10:58:56] ur5us: has joined #ruby
[11:00:21] mim1k: has joined #ruby
[11:03:13] apeiros: has joined #ruby
[11:04:51] domgetter: has joined #ruby
[11:05:19] vondruch_: has joined #ruby
[11:06:20] Ryzokuken: has joined #ruby
[11:10:10] kx: has joined #ruby
[11:14:22] DoubleMalt: has joined #ruby
[11:15:44] ur5us: has joined #ruby
[11:24:02] rdsome: has joined #ruby
[11:29:13] xall: has joined #ruby
[11:34:05] Silthias1: has joined #ruby
[11:36:06] tacoboy: has joined #ruby
[11:42:39] Ryzokuken: has joined #ruby
[11:48:40] ldnunes: has joined #ruby
[11:52:55] __Yiota: has joined #ruby
[11:59:04] __Yiota: has joined #ruby
[12:03:28] houhoulis: has joined #ruby
[12:06:18] m27frogy: has joined #ruby
[12:06:33] arup_r: has joined #ruby
[12:09:47] ldnunes: has joined #ruby
[12:11:13] charliesome: has joined #ruby
[12:13:52] __Yiota: has joined #ruby
[12:13:54] Ryzokuken: has joined #ruby
[12:16:58] synthroid: has joined #ruby
[12:19:08] __Yiota: has joined #ruby
[12:19:11] GodFather: has joined #ruby
[12:20:50] runescape07rsps: has joined #ruby
[12:21:24] sepp2k: has joined #ruby
[12:21:25] Ryzokuken: has joined #ruby
[12:23:47] noe: has joined #ruby
[12:24:03] bronson: has joined #ruby
[12:28:18] noe: has joined #ruby
[12:30:32] selim: has joined #ruby
[12:30:56] ResidentBiscuit: has joined #ruby
[12:39:45] milardovich: has joined #ruby
[12:43:26] konsolebox: has joined #ruby
[12:50:58] milardovich: has joined #ruby
[13:00:02] charliesome: has joined #ruby
[13:04:48] eelster: has joined #ruby
[13:06:41] apparition: has joined #ruby
[13:12:28] ledestin: has joined #ruby
[13:13:30] Paraxial: has joined #ruby
[13:16:52] kobain: has joined #ruby
[13:19:08] lantastic: has joined #ruby
[13:24:13] maattdd: has joined #ruby
[13:24:48] noe: has joined #ruby
[13:25:12] apparition47: has joined #ruby
[13:27:02] Jameser: has joined #ruby
[13:27:27] _main_: has joined #ruby
[13:30:58] jrafanie: has joined #ruby
[13:34:00] Paraxial: has joined #ruby
[13:35:31] DLSteve: has joined #ruby
[13:35:51] catbusters: has joined #ruby
[13:37:51] jespada: has joined #ruby
[13:38:24] romain_t: has joined #ruby
[13:40:14] gloscombe: has joined #ruby
[13:40:21] brent__: has joined #ruby
[13:44:05] __Yiota: has joined #ruby
[13:44:16] maattdd_: has joined #ruby
[13:45:20] rgtk: has joined #ruby
[13:46:14] Paraxial: has joined #ruby
[13:46:28] oleo: has joined #ruby
[13:47:45] gnufied: has joined #ruby
[13:50:58] yabbes: has joined #ruby
[13:51:50] gnufied__: has joined #ruby
[13:53:48] noe: has joined #ruby
[13:55:24] t-recx: has joined #ruby
[13:56:55] cdg: has joined #ruby
[14:04:06] sarmiena_: has joined #ruby
[14:04:51] charliesome: has joined #ruby
[14:08:18] Jameser: has joined #ruby
[14:11:02] chouhoulis: has joined #ruby
[14:11:10] Rapture: has joined #ruby
[14:12:22] enodata: has joined #ruby
[14:13:10] MarkBilk: has joined #ruby
[14:22:40] __Yiota: has joined #ruby
[14:24:48] bronson: has joined #ruby
[14:31:34] __Yiota: has joined #ruby
[14:31:38] tvw: has joined #ruby
[14:35:40] milardovich: has joined #ruby
[14:37:15] cam27: has joined #ruby
[14:40:02] Tagami[m]: has joined #ruby
[14:40:37] kt: has joined #ruby
[14:40:59] banisterfiend: has joined #ruby
[14:43:09] sgen: has joined #ruby
[14:48:22] workmad3: has joined #ruby
[14:51:17] jdawgaz: has joined #ruby
[14:51:28] rgr_: has joined #ruby
[14:51:34] Ryzokuken: has joined #ruby
[14:51:46] polishdub: has joined #ruby
[14:51:55] flak: has joined #ruby
[14:53:59] kt: has joined #ruby
[14:56:34] milardovich: has joined #ruby
[14:56:55] aviraldg: has joined #ruby
[14:56:55] aidalgol: has joined #ruby
[14:56:55] M107262[m]: has joined #ruby
[14:56:55] torarne: has joined #ruby
[14:56:55] jonjits[m]: has joined #ruby
[14:56:56] yana[m]: has joined #ruby
[14:56:56] heftig: has joined #ruby
[14:56:56] Giphy[m]: has joined #ruby
[14:56:56] KevinMGranger: has joined #ruby
[14:56:56] lasenna[m]: has joined #ruby
[14:56:56] gokul_mr[m]: has joined #ruby
[14:56:56] voltai[m]: has joined #ruby
[14:56:56] dman[m]: has joined #ruby
[14:56:56] turt2live: has joined #ruby
[14:57:02] testnick[m]: has joined #ruby
[14:57:02] aagdbl[m]: has joined #ruby
[14:57:03] velu_aon[m]: has joined #ruby
[14:57:03] Matt[m]1: has joined #ruby
[14:59:08] Jakaria_: has joined #ruby
[15:00:03] jrafanie: has joined #ruby
[15:01:29] Jakaria_: anyone here?
[15:03:10] milardovich: has joined #ruby
[15:03:20] jrafanie_: has joined #ruby
[15:04:06] Jakaria: has joined #ruby
[15:05:02] Jakaria: https://gist.github.com/JakariaBlaine/aaeb3c0f7b9d2ce1743ac49bd5cdce32
[15:06:03] Jakaria: in this script, `abc` and `xyz` methods are singleton methods?
[15:06:57] Haga: has joined #ruby
[15:07:28] Jakaria: are static methods and single methods are the same things?
[15:07:35] merimel: has joined #ruby
[15:07:57] jordanm: has joined #ruby
[15:14:22] Jakaria: can you help me a little bit?
[15:14:23] enterprisey: has joined #ruby
[15:14:41] Jakaria: in Ruby, is static methods are called singleton methods in a class?
[15:14:43] merimel: just a little, i'm not very experinced
[15:14:45] havenwood: Jakaria: Ask X: X.singleton_methods #=> [:abc, :xyz]
[15:15:02] havenwood: Jakaria: They're usually called "class methods" when called on a class.
[15:15:48] havenwood: Jakaria: `def self.abc` is the same thing as `def X.abc` since `self == X`
[15:16:02] havenwood: merimel: hi!
[15:16:09] Jakaria: oh... I see
[15:16:53] neo95: has joined #ruby
[15:17:18] Haga: hi havenwood
[15:17:23] havenwood: Haga: g'mornin'
[15:18:32] merimel: I've got a problem too; with psych serialization — for some reazon some of array items in my array won't get in resulting file, only [] gets in, instead of actual data
[15:18:36] Haga: havenwood: does Ruby has faster performance than Python?
[15:18:51] chouhoulis: has joined #ruby
[15:18:54] havenwood: Haga: It depends. Roughly equivalent.
[15:19:40] merimel: and same thing with json
[15:20:07] havenwood: merimel: Odd. Have a smallish test-case or only reproduced with full code so far?
[15:20:22] havenwood: merimel: If you have a bit of code that can reproduce, paste us a link.
[15:20:39] cagomez: has joined #ruby
[15:21:29] merimel: well it's rough code, and you also need to have some fonts, I can package .tar.gz ro mega.nz
[15:21:31] cagomez: has joined #ruby
[15:23:52] milardovich: has joined #ruby
[15:24:41] synthroid: has joined #ruby
[15:25:04] jinie_: has joined #ruby
[15:25:51] runescape07rsps: has joined #ruby
[15:26:44] ElFerna: has joined #ruby
[15:27:11] Phanes: has joined #ruby
[15:27:11] Phanes: has joined #ruby
[15:28:43] VladGh: has joined #ruby
[15:30:01] GodFather: has joined #ruby
[15:32:21] __Yiota: has joined #ruby
[15:34:09] ElFerna: has joined #ruby
[15:35:36] AlexRussia: has joined #ruby
[15:36:46] __Yiota: has joined #ruby
[15:39:09] eelster: has joined #ruby
[15:39:44] chouhoulis: has joined #ruby
[15:41:25] jrafanie: has joined #ruby
[15:41:26] brent__: has joined #ruby
[15:41:49] bane_: has joined #ruby
[15:42:38] PaulCapestany: has joined #ruby
[15:44:47] milardovich: has joined #ruby
[15:45:06] sekmo: has joined #ruby
[15:47:25] Ryzokuken: has joined #ruby
[15:47:51] jokester: has joined #ruby
[15:49:40] kt: has joined #ruby
[15:51:07] ElFerna: has joined #ruby
[15:51:38] [Butch]: has joined #ruby
[15:52:00] ecuanaso: has joined #ruby
[15:52:35] im0nde: has joined #ruby
[15:52:56] Paraxial: has joined #ruby
[15:54:46] jphase: has joined #ruby
[15:55:11] bruno-: has joined #ruby
[15:55:28] jrafanie: has joined #ruby
[15:59:42] jackjackdripper: has joined #ruby
[15:59:46] ekinmur: has joined #ruby
[16:00:59] marxarelli: has joined #ruby
[16:01:44] amclain: has joined #ruby
[16:03:50] catphish: has joined #ruby
[16:04:44] KCmetro: has joined #ruby
[16:04:53] catphish: i'm looking at open3, and it appears that when it executes anything it creates a thread, is there a simple equivalent that doesn't do this (but still sets up pipes for stdin and stdout)?
[16:05:00] dionysus69: has joined #ruby
[16:05:21] sniffer: has joined #ruby
[16:05:34] milardovich: has joined #ruby
[16:06:48] catphish: oh, i think one can just create pipes and pass them to Process.spawn
[16:07:05] uZiel: has joined #ruby
[16:07:07] Rodya_: has joined #ruby
[16:08:27] apeiros: yeah, spawn is the newer tool in the box and the swiss army knife for all things subprocesses.
[16:08:50] code_zombie: has joined #ruby
[16:09:07] apeiros: hm, I'm not sure anymore why open3 created a thread. might have to do with $? being thread-local?
[16:09:09] pootiscoder: has joined #ruby
[16:10:33] catphish: i believe it's to automatically collect the exit code and make it available
[16:10:45] whippythellama: has joined #ruby
[16:10:49] catphish: maybe there's no non-blocking way to collect the exit code otherwise, i'm not sure yet
[16:11:02] apeiros: yes, $? is what contains the exit code
[16:11:07] Paraxial: has joined #ruby
[16:11:24] apeiros: I think it's more to avoid other calls to open3 overriding states randomly
[16:11:59] apeiros: i.e. open 2 processes and you can't tell which process' exit status you have in $?. but I don't really remember.
[16:12:44] catphish: $? doesn't really make much sense unless you always spawn exactly one child
[16:13:19] KCmetro: has joined #ruby
[16:14:04] cdg_: has joined #ruby
[16:15:11] apeiros: back when o3 was mainly used, it was the only thing you had.
[16:15:31] xall: has joined #ruby
[16:16:33] catphish: doesn't one always have fork and waitpid?
[16:16:38] apeiros: though, waitpid might have existed too
[16:16:51] apeiros: it's been a long time, damn :D
[16:17:14] catphish: waitpid is blocking though, that may be the reason for the thread
[16:17:26] apeiros: anyway, today: use spawn if you want flexibility. it can do about everything :)
[16:17:39] apeiros: you can do nonblocking waitpid
[16:17:56] apeiros: let me see when I wrote Fork…
[16:18:20] catphish: ah yes, you can, there's a flag
[16:18:30] apeiros: ok, well, nonblocking waitpid exists for at least 4y, probably more like 6 because I didn't put it on github for ages…
[16:18:52] gnufied: has joined #ruby
[16:19:00] catphish: you wrote it?
[16:19:02] apeiros: oh, I used wait2
[16:19:06] apeiros: https://github.com/apeiros/fork/blob/master/lib/fork.rb
[16:19:25] catphish: ah, i see :)
[16:19:27] apeiros: me, copy pasta mistake. https://github.com/apeiros/fork/blob/master/lib/fork.rb#L600
[16:20:03] catphish: Process::WNOHANG is what i'd need
[16:20:25] apeiros: :death_notice reminds me of the anime…
[16:20:31] catphish: although, actually it's more complicated than that because i want it to work in an event driven app
[16:20:57] catphish: maybe i should give in and use a thread
[16:21:14] apeiros: why's event driven a problem here?
[16:21:26] apeiros: you can IO.select with a single thread
[16:22:06] apeiros: and iirc EOF triggers select too, so you can collect the exit status on it
[16:22:22] catphish: EOF on what?
[16:22:51] apeiros: when the subprocess dies, it'll be EOF when you read from it
[16:22:56] catphish: the forked process isn't an IO
[16:23:08] catphish: it's a process, unless i'm missing something
[16:23:23] apeiros: oh, you talked about pipes above, so I assumed you were communicating with the child
[16:23:47] apeiros: i.e. upon spawn you'd set up a shared pipe and read/write to/from child
[16:24:09] catphish: i am planning to communicate with it, but there's no guarantee that it doesn't close its STDOUT, but then stay running a while, right?
[16:25:37] apeiros: so yes, you'd need provisions against that and keep reading the exit status on such cases until it terminates
[16:26:00] catphish: sadly i don't know of any way to do this in an event driven manner, but i'll check
[16:26:18] bronson: has joined #ruby
[16:26:21] mtkd: has joined #ruby
[16:27:08] apeiros: depends on your design
[16:27:17] cadillac_: has joined #ruby
[16:27:49] apeiros: if you have something reactory where you have a loop waiting for events you add a timeout to the waiting part (with IO.select trivial, as it's part of the API) and retry collecting exit states there
[16:28:17] catphish: i could just check every 100ms or so
[16:28:21] catphish: tbh i was on the fence about whether to just go with threads on this app anyway, so might do that, then i can just block waiting for the exit code after stdout goes away
[16:29:19] apeiros: also possible
[16:29:27] apeiros: it really depends on what you have and what you need :)
[16:30:23] gnufied: has joined #ruby
[16:30:35] catphish: it's a pretty simple server that receives some data from a socket, sends it to a spawned docker, reads back the results and sends them back to the client, there will only be a handful of clients at a time, so threads arent the end of the world
[16:31:17] apeiros: then I'd say go for it.
[16:31:22] apeiros: it's likely the most convenient design.
[16:33:37] rgtk: has joined #ruby
[16:34:12] anjen: has joined #ruby
[16:34:52] gusrub: has joined #ruby
[16:35:48] barx: has joined #ruby
[16:37:55] apeiros: yw, have fun :D
[16:39:19] yabbes: has joined #ruby
[16:44:32] ecuanaso: has joined #ruby
[16:47:27] milardovich: has joined #ruby
[16:49:34] _sfiguser: has joined #ruby
[16:52:00] SeepingN: has joined #ruby
[16:55:35] yabbes: has joined #ruby
[16:56:36] eelster: has joined #ruby
[16:58:16] pootiscoder: has joined #ruby
[17:03:54] dtzuzu: has joined #ruby
[17:06:15] CacoS: has joined #ruby
[17:08:10] milardovich: has joined #ruby
[17:12:54] brent__: has joined #ruby
[17:15:46] dviola: has joined #ruby
[17:17:41] mustaffa: has joined #ruby
[17:18:49] emilkarl: has joined #ruby
[17:28:22] postmodern: has joined #ruby
[17:29:08] mim1k: has joined #ruby
[17:29:41] jrafanie: has joined #ruby
[17:32:29] milardovich: has joined #ruby
[17:33:19] romankapitonov: has joined #ruby
[17:35:54] jenrzzz: has joined #ruby
[17:35:54] jenrzzz: has joined #ruby
[17:45:14] enterprisey: has joined #ruby
[17:50:36] cadillac_: has joined #ruby
[17:51:24] dviola: has joined #ruby
[17:54:58] dionysus69: has joined #ruby
[17:57:07] TomyLobo3: has joined #ruby
[17:57:55] x0F: has joined #ruby
[17:58:48] high_fiver: has joined #ruby
[17:59:17] gusrub: has joined #ruby
[17:59:51] vuoto: has joined #ruby
[18:02:33] guacamole: has joined #ruby
[18:03:22] opekktar: has joined #ruby
[18:03:26] emilkarl: has joined #ruby
[18:04:37] Cesariox: has joined #ruby
[18:05:58] ramfjord: has joined #ruby
[18:09:51] millerti: has joined #ruby
[18:10:04] __Yiota: has joined #ruby
[18:13:35] conta: has joined #ruby
[18:19:07] merimel: figured out my problem with Psych — it was not Psych, but my use of Array.shift (which acts like ! <bang>)
[18:20:39] merimel: ACTION will remember to dup more often
[18:22:26] pootiscoder: has joined #ruby
[18:24:26] adam12: Ah yes. I bet this has bitten many people at one point in time.
[18:25:08] merimel: god bless one who stated that shit acts like slice! in docs
[18:25:42] emilkarl: has joined #ruby
[18:25:53] merimel: (sorryn just misstyped, a bit tired)
[18:26:45] merimel: I wonder now, should I use clone instead of dup
[18:27:14] bronson: has joined #ruby
[18:27:16] merimel: i just want safe solution not affecting anything
[18:29:35] https_GK1wmSU: has joined #ruby
[18:29:46] adam12: merimel: Pretty sure you use dup unless you find it doesn't work for you, which in case you switch to clone
[18:29:59] adam12: merimel: Avdi did a screencast on this exact topic.
[18:31:59] Ryzokuken: has joined #ruby
[18:32:12] https_GK1wmSU: has left #ruby: ()
[18:33:10] oleo: has joined #ruby
[18:35:11] jackjackdripper: has joined #ruby
[18:40:55] synthroid: has joined #ruby
[18:51:46] minimalism: has joined #ruby
[18:52:27] banisterfiend: has joined #ruby
[18:54:56] oleo: has joined #ruby
[18:55:47] gusrub: has joined #ruby
[18:57:12] lantastic: has joined #ruby
[18:59:56] futilegames: has joined #ruby
[19:01:09] GodFather: has joined #ruby
[19:01:26] jdawgaz: has joined #ruby
[19:02:02] jenrzzz: has joined #ruby
[19:02:07] GodFather_: has joined #ruby
[19:02:34] futilegames: has left #ruby: ()
[19:03:52] cdg: has joined #ruby
[19:03:52] Dimik: has joined #ruby
[19:07:38] jrafanie: has joined #ruby
[19:07:43] rgtk: has joined #ruby
[19:08:06] Rodya_: has joined #ruby
[19:13:00] __Yiota: has joined #ruby
[19:13:35] brent__: has joined #ruby
[19:15:51] ur5us: has joined #ruby
[19:17:44] milardovich: has joined #ruby
[19:19:37] romankapitonov: has joined #ruby
[19:20:03] cagomez: has joined #ruby
[19:21:22] jackjackdripper: has joined #ruby
[19:21:36] jrafanie: has joined #ruby
[19:23:29] ruby[bot]: -b Kristjan55555!*@*$#ruby-banned
[19:25:38] milardovich: has joined #ruby
[19:25:54] milardovich: has joined #ruby
[19:26:22] enodata: has joined #ruby
[19:28:58] jrafanie_: has joined #ruby
[19:32:10] __Yiota: has joined #ruby
[19:32:56] swills: has joined #ruby
[19:32:56] swills: has joined #ruby
[19:36:51] __Yiota: has joined #ruby
[19:43:57] dionysus69: has joined #ruby
[19:47:41] Mon_Ouie: has joined #ruby
[19:49:07] Azure: has joined #ruby
[19:50:46] milardovich: has joined #ruby
[19:55:16] Rapture: has joined #ruby
[19:56:09] zacts: has joined #ruby
[19:56:27] jackjackdripper: has joined #ruby
[19:57:04] jackjackdripper: has joined #ruby
[20:00:35] Azure: has joined #ruby
[20:02:34] banisterfiend: has joined #ruby
[20:03:48] tedL: has joined #ruby
[20:04:51] cdg: has joined #ruby
[20:04:58] rgtk: has joined #ruby
[20:08:52] bane_: has joined #ruby
[20:12:50] phinxy: has joined #ruby
[20:15:41] choke: has joined #ruby
[20:17:00] jenrzzz: has joined #ruby
[20:17:00] jenrzzz: has joined #ruby
[20:17:47] jdawgaz: has joined #ruby
[20:20:06] _sfiguser: has joined #ruby
[20:21:06] zapata: has joined #ruby
[20:27:51] Rodya_: has joined #ruby
[20:28:02] bronson: has joined #ruby
[20:28:07] cagomez: has joined #ruby
[20:31:35] cagomez: has joined #ruby
[20:34:05] __Yiota: has joined #ruby
[20:34:56] fmccann: has joined #ruby
[20:35:13] cdg: has joined #ruby
[20:48:43] gusrub: has joined #ruby
[20:52:08] alex``: has joined #ruby
[20:55:57] kitikonti: has joined #ruby
[21:01:50] __Yiota: has joined #ruby
[21:03:16] cats: has joined #ruby
[21:04:40] choke: has joined #ruby
[21:08:13] perniciouscaffei: has joined #ruby
[21:09:51] __Yiota: has joined #ruby
[21:12:04] ixti: has joined #ruby
[21:12:28] guacamole: has joined #ruby
[21:14:38] lxsameer: has joined #ruby
[21:15:30] tAn: has joined #ruby
[21:17:32] tAn: has joined #ruby
[21:18:45] ramfjord: has joined #ruby
[21:18:50] linoespinoza: has joined #ruby
[21:21:38] HoierM: has joined #ruby
[21:28:49] ur5us: has joined #ruby
[21:30:20] duderonomy: has joined #ruby
[21:31:59] __Yiota: has joined #ruby
[21:34:06] Asher: has joined #ruby
[21:38:41] jenrzzz: has joined #ruby
[21:38:41] jenrzzz: has joined #ruby
[21:42:18] gusrub: has joined #ruby
[21:44:12] GodFather: has joined #ruby
[21:44:25] runescape07rsps: has joined #ruby
[21:50:02] gusrub: has joined #ruby
[21:55:50] kobain: has joined #ruby
[21:57:52] brent__: has joined #ruby
[22:01:23] lxsameer: has joined #ruby
[22:01:50] jenrzzz_: has joined #ruby
[22:04:16] brent__: has joined #ruby
[22:04:30] GodFather: has joined #ruby
[22:10:39] gusrub: has joined #ruby
[22:16:21] whippythellama: has joined #ruby
[22:22:10] ecuanaso: has joined #ruby
[22:23:28] cagomez: has joined #ruby
[22:24:10] chrisgopher: has joined #ruby
[22:27:18] mikecmpbll: has joined #ruby
[22:28:30] Asher: has joined #ruby
[22:28:55] bronson: has joined #ruby
[22:30:08] dstrunk: has joined #ruby
[22:30:48] linoespinoza: has joined #ruby
[22:31:01] ask2lk1kl21k2l21: has joined #ruby
[22:32:15] banisterfiend: has joined #ruby
[22:35:42] Dimik: has joined #ruby
[22:36:04] choke: has joined #ruby
[22:39:55] Dark_Arc: has joined #ruby
[22:41:06] gusrub: has joined #ruby
[22:41:46] jenrzzz: has joined #ruby
[22:41:46] jenrzzz: has joined #ruby
[22:42:55] __Yiota: has joined #ruby
[22:43:01] kkiero: has joined #ruby
[22:47:48] jackjackdripper1: has joined #ruby
[22:48:24] banisterfiend: has joined #ruby
[22:51:56] goyox86: has joined #ruby
[22:53:02] banisterfiend: has joined #ruby
[22:54:57] olspookishmagus: has joined #ruby
[23:04:41] npgm: has joined #ruby
[23:05:43] jenrzzz: has joined #ruby
[23:06:09] banisterfiend: has joined #ruby
[23:09:42] banisterfiend: has joined #ruby
[23:10:22] ramfjord: has joined #ruby
[23:11:23] cadillac_: has joined #ruby
[23:14:02] https_GK1wmSU: has joined #ruby
[23:16:23] https_GK1wmSU: has left #ruby: ()
[23:37:50] alveric3: has joined #ruby
[23:40:56] Jameser: has joined #ruby
[23:44:20] kkiero_: has joined #ruby
[23:50:01] houhoulis: has joined #ruby
[23:50:47] houhoulis: has joined #ruby
[23:51:33] Asher: has joined #ruby
[23:51:36] houhoulis: has joined #ruby
[23:52:21] houhoulis: has joined #ruby
[23:53:07] houhoulis: has joined #ruby
[23:54:01] houhoulis: has joined #ruby
[23:58:12] romankapitonov: has joined #ruby
[23:59:24] QualityAddict: has joined #ruby
[23:59:46] houhoulis: has joined #ruby