« Back to channel list

#ruby - 11 March 2019

« Back 1 day Forward 1 day »
[00:00:22] AJA4351: has joined #ruby
[00:00:29] orbyt_: has joined #ruby
[00:03:30] jottr: has joined #ruby
[00:18:46] crankharder: has joined #ruby
[00:19:22] jottr: has joined #ruby
[00:24:58] crankharder: has joined #ruby
[00:35:10] jottr: has joined #ruby
[00:47:52] cnsvc: has joined #ruby
[00:48:14] crankharder: has joined #ruby
[00:50:20] mangold: has joined #ruby
[00:51:02] jottr: has joined #ruby
[00:52:34] tiogrand__: has joined #ruby
[01:06:51] jottr: has joined #ruby
[01:11:19] jrafanie: has joined #ruby
[01:12:29] crankharder: has joined #ruby
[01:16:39] orbyt_: has joined #ruby
[01:28:24] s3nd1v0g1us: has joined #ruby
[01:29:17] tdy: has joined #ruby
[01:33:28] jottr: has joined #ruby
[01:35:57] orbyt_: has joined #ruby
[01:36:10] crankharder: has joined #ruby
[01:38:56] jcarl43: has joined #ruby
[01:40:29] cthulchu: has joined #ruby
[01:42:41] SCHAPiE: has joined #ruby
[01:44:57] mangold: has joined #ruby
[01:46:56] cthulchu_: has joined #ruby
[01:49:24] jottr: has joined #ruby
[01:50:57] cthulchu: has joined #ruby
[01:55:14] bertyberty: has joined #ruby
[01:56:39] bertyberty: the comments of the method pkg_config in lib/mkmf.rb lead me to believe that mkmf.rb will accept an like --with-openssl-config=/usr/bin/pkgconfig
[01:56:43] bertyberty: true or false?
[01:59:11] jrafanie: has joined #ruby
[02:00:02] reaVer: has joined #ruby
[02:05:17] jottr: has joined #ruby
[02:16:15] mangold: has joined #ruby
[02:18:18] orbyt_: has joined #ruby
[02:20:54] Onwarion_re: has joined #ruby
[02:21:06] jottr: has joined #ruby
[02:36:55] jottr: has joined #ruby
[02:52:22] marmotini_: has joined #ruby
[02:52:44] jottr: has joined #ruby
[03:08:34] jottr: has joined #ruby
[03:24:27] jottr: has joined #ruby
[03:37:34] bambanx: has joined #ruby
[03:40:14] jottr: has joined #ruby
[03:50:09] ur5us: has joined #ruby
[03:53:40] skwurl: has joined #ruby
[03:56:04] jottr: has joined #ruby
[03:56:22] bga57: has joined #ruby
[03:59:42] skwurl: hello #ruby
[04:01:29] skwurl: new at ruby here, im trying to work through an old tutorial and think i hit an issue with version control. i think.
[04:01:45] skwurl: put up a codeshare here https://codeshare.io/29x08g
[04:01:59] skwurl: i have some quiestions if nayone has time
[04:09:08] braincrash: has joined #ruby
[04:12:05] jottr: has joined #ruby
[04:27:44] jottr: has joined #ruby
[04:54:30] jottr: has joined #ruby
[04:54:51] Devalo: has joined #ruby
[05:10:05] bjpenn: has joined #ruby
[05:20:40] jottr: has joined #ruby
[05:26:44] Swyper: has joined #ruby
[05:40:37] segy: has joined #ruby
[05:46:53] jottr: has joined #ruby
[05:51:55] iMadper: has joined #ruby
[06:02:44] jottr: has joined #ruby
[06:07:02] dionysus69: has joined #ruby
[06:07:49] ski7777: has joined #ruby
[06:11:31] reber: has joined #ruby
[06:12:56] Swyper: has joined #ruby
[06:15:30] conta: has joined #ruby
[06:18:33] jottr: has joined #ruby
[06:34:25] jottr: has joined #ruby
[06:36:05] Cthulu201: has joined #ruby
[06:40:03] skyikot: has joined #ruby
[06:46:51] skyikot: has joined #ruby
[06:50:14] jottr: has joined #ruby
[06:55:38] marmotini_: has joined #ruby
[06:56:00] marmotini_: has joined #ruby
[06:57:11] marmotini_: has joined #ruby
[07:01:12] marmotini_: has joined #ruby
[07:02:44] marmotini_: has joined #ruby
[07:03:03] marmotini_: has joined #ruby
[07:03:10] Ai9zO5AP: has joined #ruby
[07:03:38] aupadhye: has joined #ruby
[07:04:26] Nicmavr: has joined #ruby
[07:06:05] jottr: has joined #ruby
[07:07:35] Devalo: has joined #ruby
[07:11:32] aufi: has joined #ruby
[07:19:06] Swyper: has joined #ruby
[07:21:09] qual: has joined #ruby
[07:21:53] jottr: has joined #ruby
[07:36:51] andikr: has joined #ruby
[07:37:43] jottr: has joined #ruby
[07:41:46] govg: has joined #ruby
[07:46:12] reaVer: has joined #ruby
[07:53:34] jottr: has joined #ruby
[07:58:45] _whitelogger: has joined #ruby
[08:05:55] cnsvc: has joined #ruby
[08:06:40] Mia: has joined #ruby
[08:06:40] Mia: has joined #ruby
[08:07:50] reaVer: has joined #ruby
[08:09:22] jottr: has joined #ruby
[08:10:18] clemens3_: has joined #ruby
[08:11:49] qual: has joined #ruby
[08:20:36] tdy1: has joined #ruby
[08:23:56] lxsameer: has joined #ruby
[08:25:14] jottr: has joined #ruby
[08:31:40] bruce_lee: has joined #ruby
[08:31:40] bruce_lee: has joined #ruby
[08:31:46] cgfbee: has joined #ruby
[08:32:27] za1b1tsu: has joined #ruby
[08:33:02] mangold: has joined #ruby
[08:34:44] alem0lars: has joined #ruby
[08:41:05] jottr: has joined #ruby
[08:48:04] rann: has joined #ruby
[08:49:21] segy: has joined #ruby
[08:52:42] t0xik: >> a = [2048]; a.pack('V')
[08:52:43] ruby[bot]: t0xik: # => "\x00\b\x00\x00" (https://eval.in/1082312)
[08:55:33] t0xik: >> a = "\xFF\xFF"; a.unpack('S')
[08:55:53] ellcs1: has joined #ruby
[08:55:56] ruby[bot]: t0xik: # => [65535] (https://eval.in/1082315)
[08:56:08] t0xik: what is b ? im confused
[08:56:21] mikecmpbll: has joined #ruby
[08:57:51] suukim: has joined #ruby
[08:57:59] jottr: has joined #ruby
[08:59:19] leftylink: interesting. maybe the easiest way to find out is to look at its .ord
[08:59:22] leftylink: >> "\b".ord
[08:59:35] ruby[bot]: leftylink: # => 8 (https://eval.in/1082319)
[09:00:09] leftylink: interesting.
[09:00:59] alem0lars: has joined #ruby
[09:06:18] marcoecc: has joined #ruby
[09:13:46] jottr: has joined #ruby
[09:13:53] Axy: has joined #ruby
[09:13:53] Axy: has joined #ruby
[09:17:29] t0xik: a = "\x08";
[09:18:12] t0xik: >> a = "\x08"
[09:18:13] ruby[bot]: t0xik: # => "\b" (https://eval.in/1082337)
[09:20:06] Swyper: has joined #ruby
[09:34:19] mikecmpbll: has joined #ruby
[09:35:55] claudiuinberlin: has joined #ruby
[09:41:24] schleppel: has joined #ruby
[09:44:02] jottr: has joined #ruby
[09:48:50] t0xik: >> arr = [2048]; str = arr.pack('V'); hex = str.unpack('H*')
[09:48:51] ruby[bot]: t0xik: # => ["00080000"] (https://eval.in/1082367)
[09:51:39] tuor: has joined #ruby
[09:53:39] tuor: Hi, this is my code: https://dpaste.de/SZpp#L
[10:00:10] qual: has joined #ruby
[10:01:28] tuor: What I want to do is: if STDIN has a key path with a non empty string as value, make a Pathname with this string. I want to add to this code, that if path doesn't get assigned a pathname, path gets a default pathname. How should I do that? I could do it like this: https://dpaste.de/AHn0
[10:02:00] tuor: How would you do it?
[10:03:38] tbuehlmann: sure, either that or `path ||= Pathname.new(default_path)`. default_path could be a Pathname already, but that's up to you. you could also assign the default path before going into the conditions
[10:08:13] tuor: hmm ||= seems nice. I'll try. :)
[10:12:35] rubydoc: # => 2048 (https://carc.in/#/r/6gvq)
[10:29:51] ryouba: has joined #ruby
[10:30:45] Swyper: has joined #ruby
[10:36:39] qual: has joined #ruby
[10:36:41] ryouba: is there a way to check whether string b contains any character not (yet) part of string a that doesn't involve a loop of some kind?
[10:37:44] ryouba: (i'm looking for a computationally fast way to make that check)
[10:38:58] themsay: has joined #ruby
[10:44:01] ryouba: fwiw this is a m'w'e of my current algo: https://gist.github.com/sixtyfive/d00fa20fc692ca80407cb3adeb58e68e
[10:48:28] phaul: you could maintain a Set with contents, and use Set#include?
[10:49:09] phaul: if your character set is limited for instance ascii you can implement hash with an array of include? flags mapping ords to bools
[10:49:16] phaul: that would be constant time
[10:49:31] leftylink: I wondered if it would be possible to use Array#uniq but it seems there are a few snags there so I defer to the other suggestions
[10:49:32] ryouba: phaul: it's a subset of all of the different Unicode tables
[10:50:33] phaul: you can try built in Set then. but that will require some data before it starts outperforming what you have now
[10:50:54] ryouba: leftylink: my first attempt was indeed to stuff the content of every. single. cell. into an array and then run uniq. that crashed my laptop ... and the 32GB RAM xeon server ran over night :-P
[10:52:17] ryouba: phaul: do AL columns, ~5000-ish-rows excel sheets count as "some data"?
[10:53:23] ylshao: has joined #ruby
[10:53:53] phaul: very hard to tell, but you can test. Use Benchmark on it, and you will see
[10:54:30] ryouba: oh, that's a nice idea! i keep forgetting about that... :) thank you!
[10:57:27] phaul: what i found about optimization is that ppl are incredibly bad at predicting why their code is slow. Whithout profiling its pointless to even think about optimizing. (Obviously don't implment ridiculous things, but just doing sensible code is enough) If you find your program slow, then profile. What you thought the reson your program being slow is never the actual reason
[10:58:23] ryouba: hmmm i would certainly include myself in that group of people
[10:58:46] phaul: I meant everybody
[10:58:49] ryouba: but then i never studied computer science on a university level
[10:58:58] phaul: me included
[10:58:59] ryouba: everybody does include people who have
[10:59:17] ryouba: because if you've done that then you should be able to do that, right?
[11:00:30] jottr_: has joined #ruby
[11:01:15] phaul: I don't beleive that. You can calculate run time costs. That's one thing. The actuall complexity in the computer, being IO blockedor CPU limited, or cache limited, or memory bandwidth.. Are all only measurable
[11:03:17] ylshao: has left #ruby: ("WeeChat 2.4")
[11:08:59] phaul: I suggest you try ruby prof in combination with [kq]cachegrind to visualize your runtime costs.
[11:10:53] phaul: something like this http://kcachegrind.sourceforge.net/html/Shot3Large.html
[11:19:46] ylshao: has joined #ruby
[11:25:10] ylshao: has left #ruby: ("WeeChat 2.4")
[11:29:56] mangold: has joined #ruby
[11:31:38] znz_jp: has joined #ruby
[11:35:17] zapata: has joined #ruby
[11:37:43] waheedi: has joined #ruby
[11:38:58] Bish: has joined #ruby
[11:39:24] Bish: is there a queue which can have timeout on .pop
[11:40:28] keden: has joined #ruby
[11:44:35] gregf_: has joined #ruby
[11:45:52] keden: has joined #ruby
[11:51:24] qual: has joined #ruby
[11:51:29] keden: has joined #ruby
[12:01:31] keden: has joined #ruby
[12:01:44] Tuor_: has joined #ruby
[12:08:42] themsay: has joined #ruby
[12:09:25] ldnunes: has joined #ruby
[12:10:25] Xeago: Bish: should be easy to wrap, no?
[12:10:45] aufi: has joined #ruby
[12:11:29] al2o3-cr: Bish: https://spin.atomicobject.com/2017/06/28/queue-pop-with-timeout-fixed/
[12:20:53] themsay: has joined #ruby
[12:31:42] Swyper: has joined #ruby
[12:34:10] xrexeon: has joined #ruby
[12:35:06] Swyper: has joined #ruby
[12:38:22] Tau: has joined #ruby
[12:42:04] keden: has joined #ruby
[12:46:21] laaron: has joined #ruby
[12:52:15] Dbugger: has joined #ruby
[12:55:18] naught-fowl: has joined #ruby
[13:06:40] aqd: has joined #ruby
[13:09:13] AJA4350: has joined #ruby
[13:10:44] jcalla: has joined #ruby
[13:11:42] aqd_: has joined #ruby
[13:11:52] danguita: has joined #ruby
[13:12:46] laaron: has joined #ruby
[13:19:03] orbyt_: has joined #ruby
[13:29:10] qual: has joined #ruby
[13:30:33] laaron: has joined #ruby
[13:37:16] Swyper: has joined #ruby
[13:45:03] Bish: Xeago: like calling it non blocking and rettrying?
[13:45:18] mniip: has joined #ruby
[13:46:26] ubuntuisloved: has joined #ruby
[13:46:53] skyikot: has joined #ruby
[13:47:23] Rapture: has joined #ruby
[13:51:22] marz_d`ghostman: has joined #ruby
[13:51:35] marz_d`ghostman: Has anyone tried uploading files to google drive via cli using ruby?
[13:52:15] akem: has joined #ruby
[13:54:06] GreyHame: has joined #ruby
[13:55:20] i9zO5AP: has joined #ruby
[13:55:40] akemot: has joined #ruby
[13:56:20] Ai9zO5AP: has joined #ruby
[14:00:50] jrafanie: has joined #ruby
[14:01:27] Bish: marz_d`ghostman: no, never
[14:01:43] marz_d`ghostman: Bish: care to elaborate?
[14:01:58] marz_d`ghostman: Bish: that's a bit of a strong negative answer, hehe
[14:02:36] Bish: sarcasm, ofcourse someone has done that
[14:05:51] Bish: is Queue implemented in C?
[14:11:31] akem: has joined #ruby
[14:13:15] lukelukeluke: has joined #ruby
[14:14:55] stanc: has joined #ruby
[14:15:37] gnufied: has joined #ruby
[14:16:06] mangold: has joined #ruby
[14:18:19] marz_d`ghostman: Bish: Hahaha, Sorry didn't get that sarcasm, was just wondering though if you've done it how you handle tokens? I mean like if you do a cron job running the scripts how do you obtain the token since you'll have to interact with the webpage
[14:23:52] ryouba: phaul: sent me off on a bit of a journey there, good think though, thanks again! i'll keep that profiling stuff at the back of my mind. at the moment i'll stay with the original algorithm though, since this seems to be somewhat of a rabbit-hole-topic.
[14:25:13] teclator: has joined #ruby
[14:34:11] Swyper: has joined #ruby
[14:38:30] conta1: has joined #ruby
[14:39:07] ubuntuisloved: has joined #ruby
[14:50:12] andikr: has joined #ruby
[14:52:10] Inline: has joined #ruby
[14:55:03] tiogrand__: has joined #ruby
[14:56:41] Bish: whats the gag about conditionvariables
[14:56:54] Bish: i mean.. can't you just re-open mutexes as you like?
[14:56:58] Bish: in that example on the man page
[14:57:53] Bish: http://ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/ConditionVariable.html
[14:59:14] decal: has joined #ruby
[15:03:03] stanc: has joined #ruby
[15:03:54] jrafanie_: has joined #ruby
[15:05:00] Swyper: has joined #ruby
[15:17:43] skryking_: has joined #ruby
[15:20:10] xrexeon: has joined #ruby
[15:21:02] mniip: has joined #ruby
[15:21:18] cisco: has joined #ruby
[15:23:28] ryouba: is there a POS tagger for ruby that might work for arabic?
[15:25:32] am0123: has joined #ruby
[15:26:28] griffindy: has joined #ruby
[15:29:55] aqd: has joined #ruby
[15:34:28] agent_white: has joined #ruby
[15:36:51] rippa: has joined #ruby
[15:37:40] stryek: has joined #ruby
[15:40:49] mangold: has joined #ruby
[15:44:00] zleap: has joined #ruby
[15:44:00] zleap: has joined #ruby
[15:50:27] Swyper: has joined #ruby
[15:56:32] jaddison: has joined #ruby
[15:58:06] KeyJoo: has joined #ruby
[15:58:28] Sylario: has joined #ruby
[16:00:46] jrafanie: has joined #ruby
[16:00:57] qual: has joined #ruby
[16:02:11] jrafanie: has joined #ruby
[16:05:52] polishdub: has joined #ruby
[16:09:56] tiogrand: has joined #ruby
[16:13:58] Arkantos: has joined #ruby
[16:16:41] Stan: has joined #ruby
[16:17:23] ytti: if you have foo { |arg| arg.something }
[16:17:32] ytti: you can replace it with foo(&:arg)
[16:17:37] ytti: uhh foo(&:something)
[16:17:44] ytti: can you pass argument to something?
[16:18:26] [Butch]: has joined #ruby
[16:19:29] yxhuvud: No, not in Ruby.
[16:20:44] robotcars: Bundler could not find compatible versions for gem "activerecord":
[16:20:45] robotcars: In Gemfile:
[16:20:45] robotcars: activerecord-sqlserver-adapter was resolved to 5.1.6, which depends on
[16:20:45] robotcars: activerecord (~> 5.1.0)
[16:20:45] robotcars: fluent-plugin-sql was resolved to 1.0.0, which depends on
[16:20:45] robotcars: activerecord (~> 4.2)
[16:20:59] robotcars: anyway to resolve this?
[16:21:55] Swyper: has joined #ruby
[16:23:03] matsaman: has joined #ruby
[16:23:39] tiogrand_: has joined #ruby
[16:24:38] ytti: Yxhuvud, thanks
[16:25:14] ytti: Yxhuvud, another interesting thing i noticed if 'something' takes arguments but has default argument values you still can't call it with foo(&:something)
[16:25:33] ytti: Yxhuvud, i'm sure that should not be surprising, with proper understanding of the issue, but it was surprising to me
[16:25:56] ytti: Yxhuvud, arity must be 0
[16:28:11] D9: has joined #ruby
[16:32:34] iNs: has joined #ruby
[16:32:48] Stan: has joined #ruby
[16:35:18] Bish: ytti: im guessing that depends on what something is
[16:36:10] Bish: &> [1].map(&->(a=1,b=2){ a+1 })
[16:36:10] rubydoc: parser error at position 0 around `>'
[16:36:30] Bish: >> [1].map(&->(a=1,b=2){ a+1 })
[16:36:31] ruby[bot]: Bish: # => [2] (https://eval.in/1082499)
[16:37:12] Bish: >> [1].map(&Proc.new { |a,b=2| a+b+1 })
[16:37:13] ruby[bot]: Bish: # => [4] (https://eval.in/1082500)
[16:37:41] Bish: ytti: also, if you want to call & with parameters you can help yourself with clojures & nasty hacks
[16:38:16] matsaman: what's nast about'm?
[16:38:36] Bish: matsaman: i was thinking about something like overwriting .to_proc of Symbol
[16:38:47] Bish: then you could stuff like
[16:38:56] Bish: .each(&:_add_1)
[16:39:30] Stan: has joined #ruby
[16:39:30] Bish: or implement a .to_proc for arrays
[16:39:47] Bish: and give parameters that way
[16:39:52] matsaman: but what's the drawback?
[16:40:09] Devalo: has joined #ruby
[16:40:10] Bish: readability, people will hate you if you put that inside a gem
[16:40:37] matsaman: Short is readable, no? This isn't python!
[16:40:48] Bish: Short is not readable, no
[16:41:09] Bish: assembler has the shortest statements i know, how is that readable
[16:41:17] cthulchu_: has joined #ruby
[16:41:19] matsaman: Bah, it has the longest.
[16:41:19] Bish: or ask the haskellers about short = readable, they would say yes
[16:41:36] matsaman: Well that I'm sure is true. Dunno what the deal with Haskell is, but it's strange.
[16:42:39] Bish: filterM (const [True,False]) [1,2,3]
[16:42:44] Bish: its super short, but what is it?
[16:43:12] Bish: took me days to understand whats happening there
[16:43:37] matsaman: I don't want to know what that is. =) I think .to_proc as you mentioned would be straightforward by comparison.
[16:43:58] Bish: i disagree
[16:44:32] Bish: the code i posted solves a hard problem and makes it a simple one, even though you need a lot of learning to understand it
[16:44:53] Bish: monkeypatching to_proc introduces errors like hell and solves a really simple problem
[16:45:27] matsaman: well that's why you name your methods right, anyway
[16:45:57] Bish: i think having clojures is a good way to go about it
[16:46:06] Bish: .each(&some_clojure_generator(3))
[16:46:11] Bish: tada, you have parameters in it
[16:47:55] orbyt_: has joined #ruby
[16:48:06] Stan: has joined #ruby
[16:48:17] matsaman: I prefer when things are builtin to a language =P but a simple solution the language facilitates is a close second
[16:48:37] Bish: well, it wouldn't be part of the language, either way
[16:48:49] Bish: a to_proc hack wouldn't be a part of the language
[16:49:19] Bish: a clojure on the other hand is a feature of ruby, my approach is more ruby as what you suggest
[16:50:48] Bish: matsaman: yeah if you want that as a feature in a language you want haskell :p
[16:50:56] matsaman: don't say that =P
[16:51:07] Bish: what i wrote before was the implementation of this
[16:51:20] matsaman: Every now and then I reinstall pandoc, and I'm reminded of one of the reasons haskell creeps me out.
[16:51:41] matsaman: 50,000 deps for a file re/formatter.
[16:51:55] Bish: i never used pandoc
[16:52:53] tdy1: has joined #ruby
[16:53:19] matsaman: I think it's mostly supposed to be useful for people who think PDF is worth using.
[16:53:24] matsaman: Which is probably not many programmers.
[16:59:24] Swyper: has joined #ruby
[17:02:00] tiogrand: has joined #ruby
[17:07:52] am0123: has joined #ruby
[17:11:12] Arkantos: has joined #ruby
[17:13:03] akemot: has joined #ruby
[17:15:13] nowhere_man: has joined #ruby
[17:17:35] memofun: has joined #ruby
[17:18:14] tekk: has joined #ruby
[17:19:23] kenichi: has joined #ruby
[17:19:51] baweaver: has joined #ruby
[17:19:51] baweaver: has joined #ruby
[17:19:57] Lytol: has joined #ruby
[17:20:09] tris: has joined #ruby
[17:20:11] Swyper: has joined #ruby
[17:24:16] Swyper: has joined #ruby
[17:25:59] memofun: has joined #ruby
[17:29:33] tiogrand_: has joined #ruby
[17:39:03] n13z: has joined #ruby
[17:42:16] Stan: has joined #ruby
[17:42:33] Arkantos: has joined #ruby
[17:44:41] Nicmavr: has joined #ruby
[17:48:24] ubuntuisloved: has joined #ruby
[17:57:58] themsay: has joined #ruby
[18:03:26] cthulchu_: has joined #ruby
[18:08:11] Arkantos: has joined #ruby
[18:12:16] Swyper: has joined #ruby
[18:15:44] tiogrand: has joined #ruby
[18:16:40] ellcs: has joined #ruby
[18:18:12] dionysus70: has joined #ruby
[18:19:31] jottr: has joined #ruby
[18:22:54] rindolf: has joined #ruby
[18:24:36] segy: has joined #ruby
[18:26:06] Devalo: has joined #ruby
[18:27:11] orbyt_: has joined #ruby
[18:30:57] alem0lars: has joined #ruby
[18:36:11] _whitelogger: has joined #ruby
[18:40:46] orbyt_: has joined #ruby
[18:42:22] catbusters: has joined #ruby
[18:48:16] wald0: has joined #ruby
[18:52:13] laaron: has joined #ruby
[18:59:29] AntoFox2: has joined #ruby
[19:06:17] themsay: has joined #ruby
[19:23:24] s00pcan: has joined #ruby
[19:24:06] Renich: has joined #ruby
[19:33:51] reber: has joined #ruby
[19:33:53] SeepingN: has joined #ruby
[19:34:31] english: has joined #ruby
[19:36:22] alem0lars: has joined #ruby
[19:36:22] bjpenn: has joined #ruby
[19:40:27] lunarkitty7: has joined #ruby
[19:40:42] memofun: has joined #ruby
[19:43:36] themsay: has joined #ruby
[19:49:12] hightower2: has joined #ruby
[19:53:08] lukelukeluke: has joined #ruby
[19:55:39] hightower2: has joined #ruby
[19:56:35] AntoFox2: has joined #ruby
[19:58:31] AntoFox2: has joined #ruby
[19:58:41] cthulchu_: has joined #ruby
[20:01:05] decal: How would I reflect on a DSL statement like BinData's choice?
[20:03:22] AntoFox2: has joined #ruby
[20:06:44] Creatornator: has joined #ruby
[20:07:19] ellcs: has joined #ruby
[20:07:31] rindolf: has joined #ruby
[20:10:32] xrexeon: has joined #ruby
[20:12:30] Swyper: has joined #ruby
[20:16:05] orbyt_: has joined #ruby
[20:18:41] ur5us: has joined #ruby
[20:20:28] naught-fowl: has joined #ruby
[20:23:50] m27frogy: has joined #ruby
[20:35:06] Stan: has joined #ruby
[20:36:48] cnsvc: has joined #ruby
[20:38:46] Arkantos: has joined #ruby
[20:50:42] marmotini_: has joined #ruby
[20:51:33] orbyt_: has joined #ruby
[20:54:11] ldnunes: has joined #ruby
[21:09:33] am0123: has joined #ruby
[21:23:05] am0123: has joined #ruby
[21:23:35] marmotini_: has joined #ruby
[21:28:08] memofun: has joined #ruby
[21:35:42] cnsvc: has joined #ruby
[21:37:35] SuperL4g: has joined #ruby
[21:44:36] skyikot: has joined #ruby
[21:46:05] orbyt_: has joined #ruby
[22:02:06] tiogrand: has joined #ruby
[22:04:05] dante: has joined #ruby
[22:11:46] noizex: has joined #ruby
[22:17:17] SCHAPiE: has joined #ruby
[22:17:35] aqd: has joined #ruby
[22:24:54] dante: has joined #ruby
[22:31:18] noizex: has joined #ruby
[22:41:11] postmodern: has joined #ruby
[22:44:23] jaddison: has joined #ruby
[22:44:55] nowhere_man: has joined #ruby
[22:46:53] AJA4351: has joined #ruby
[22:48:00] Arkantos: has joined #ruby
[22:55:16] Swyper: has joined #ruby
[22:57:33] orbyt_: has joined #ruby
[23:01:32] Swyper: has joined #ruby
[23:06:26] orbyt_: has joined #ruby
[23:06:51] tekk: has joined #ruby
[23:11:10] jrafanie: has joined #ruby
[23:14:41] reaVer: has joined #ruby
[23:15:50] jrafanie: has joined #ruby
[23:19:00] Autolycus: has joined #ruby
[23:35:54] havenwood: Bish: Mutexes aren't re-enntrant, but Monitors are (they use a ConditionVariable internally).
[23:37:16] havenwood: &>> Mutex.new.then { |lock| lock.synchronize { lock.synchronize { 42 } } }
[23:37:17] rubydoc: stderr: -e:2:in `synchronize': deadlock; recursive locking (ThreadError) (https://carc.in/#/r/6h1f)
[23:37:22] havenwood: &>> Monitor.new.then { |lock| lock.synchronize { lock.synchronize { 42 } } }
[23:37:23] rubydoc: # => 42 (https://carc.in/#/r/6h1g)
[23:40:16] orbyt_: has joined #ruby
[23:44:17] Swyper: has joined #ruby
[23:46:07] al2o3-cr: &>> m = Mutex; m.extend(MonitorMixin); m.then { |lock| lock.synchronize { lock.synchronize { 42 } } }
[23:46:08] rubydoc: # => 42 (https://carc.in/#/r/6h1h)
[23:46:11] spacesuitdiver: has joined #ruby
[23:46:50] al2o3-cr: MonitorMixin and ConditionalVariable really need more documentation.
[23:53:13] AJA4351: has joined #ruby
[23:58:03] themsay: has joined #ruby