havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.1, 2.5.3, 2.4.5: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
orbyt_ has joined #ruby
AJA4351 is now known as AJA4350
crankharder has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
elcontrastador has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 255 seconds]
crankharder has joined #ruby
jottr has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Remote host closed the connection]
crankharder has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dbugger has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
gix- has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 255 seconds]
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
crankharder has joined #ruby
mangold has joined #ruby
jottr has joined #ruby
tiogrand__ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jrafanie has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
houhoulis has quit [Remote host closed the connection]
jrafanie has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
SCHAPiE has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s3nd1v0g1us has joined #ruby
tdy has joined #ruby
s3nd1v0g1us has quit [Client Quit]
jottr has joined #ruby
orbyt_ has joined #ruby
crankharder has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
jottr has quit [Ping timeout: 246 seconds]
m27frogy has quit [Quit: ZNC - https://znc.in]
jcarl43 has joined #ruby
cthulchu has joined #ruby
SCHAPiE has joined #ruby
mangold has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
cthulchu_ has quit [Client Quit]
jottr has joined #ruby
cthulchu has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
jottr has quit [Ping timeout: 246 seconds]
bertyberty has joined #ruby
<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
<bertyberty> true or false?
mikecmpbll has quit [Quit: inabit. zz.]
crankharder has quit [Ping timeout: 255 seconds]
reaVer_ has quit [Ping timeout: 255 seconds]
jrafanie has joined #ruby
reaVer has joined #ruby
bjpenn has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 245 seconds]
mangold has joined #ruby
orbyt_ has joined #ruby
Onwarion_re has joined #ruby
jottr has joined #ruby
Onwarion has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 246 seconds]
reaVer has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
tiogrand__ has quit [Ping timeout: 240 seconds]
marmotini_ has joined #ruby
jottr has joined #ruby
marmotini_ has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
bertyberty has quit [Quit: Page closed]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
wald0 has quit [Quit: Lost terminal]
bambanx has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
skwurl has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
bga57 has quit [Remote host closed the connection]
jottr has joined #ruby
bga57 has joined #ruby
<skwurl> hello #ruby
jottr has quit [Ping timeout: 246 seconds]
<skwurl> new at ruby here, im trying to work through an old tutorial and think i hit an issue with version control. i think.
<skwurl> put up a codeshare here https://codeshare.io/29x08g
<skwurl> i have some quiestions if nayone has time
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
jottr has joined #ruby
skwurl has quit [Quit: WeeChat 2.4]
jottr has quit [Ping timeout: 244 seconds]
Puffball has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
Devalo has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Devalo has quit [Remote host closed the connection]
bjpenn has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
Swyper has quit [Remote host closed the connection]
segy has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.4]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
imadper has joined #ruby
Inline has quit [Quit: Leaving]
jottr has joined #ruby
marz_dgzmn has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
ski7777 has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
reber has joined #ruby
Swyper has joined #ruby
conta has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
mangold has quit [Quit: This computer has gone to sleep]
Cthulu201 has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
Cthulu201 has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
skyikot has joined #ruby
bambanx has quit [Quit: Leaving]
skyikot has quit [Ping timeout: 256 seconds]
skyikot has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
marmotini_ has joined #ruby
marmotini_ has quit [Read error: Connection reset by peer]
marmotini_ has joined #ruby
marmotini_ has joined #ruby
marmotini_ has quit [Read error: Connection reset by peer]
marmotini_ has joined #ruby
marmotini_ has quit [Read error: Connection reset by peer]
marmotini_ has joined #ruby
marmotini_ has quit [Read error: Connection reset by peer]
Nicmavr has quit [Read error: Connection reset by peer]
marmotini_ has joined #ruby
marmotini_ has quit [Read error: Connection reset by peer]
Ai9zO5AP has joined #ruby
aupadhye has joined #ruby
Nicmavr has joined #ruby
jottr has joined #ruby
Devalo has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
aufi has joined #ruby
Devalo has quit [Ping timeout: 255 seconds]
skyikot has quit [Ping timeout: 256 seconds]
Swyper has joined #ruby
qual has joined #ruby
jottr has joined #ruby
imadper is now known as iMadper|NanShou
Swyper has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 246 seconds]
andikr has joined #ruby
jottr has joined #ruby
govg has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
reaVer has joined #ruby
clemens3_ has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
cgfbee has quit [Read error: Connection reset by peer]
_whitelogger has joined #ruby
qual is now known as qual[away]
reaVer has quit [Ping timeout: 246 seconds]
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
reaVer has joined #ruby
govg has quit [Quit: leaving]
jottr has joined #ruby
clemens3_ has joined #ruby
qual has joined #ruby
qual[away] has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 246 seconds]
qual is now known as qual[away]
tdy1 has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
tdy has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
jottr has joined #ruby
agent_white has quit [Quit: bbl]
jottr has quit [Ping timeout: 246 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
cgfbee has joined #ruby
za1b1tsu has joined #ruby
mangold has joined #ruby
alem0lars has joined #ruby
jottr has joined #ruby
segy has quit [Ping timeout: 240 seconds]
rann has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 240 seconds]
rann has joined #ruby
alem0lars has quit [Remote host closed the connection]
segy has joined #ruby
<t0xik> >> a = [2048]; a.pack('V')
<ruby[bot]> t0xik: # => "\x00\b\x00\x00" (https://eval.in/1082312)
<t0xik> >> a = "\xFF\xFF"; a.unpack('S')
ellcs1 has joined #ruby
<ruby[bot]> t0xik: # => [65535] (https://eval.in/1082315)
<t0xik> what is b ? im confused
mikecmpbll has joined #ruby
suukim has joined #ruby
jottr has joined #ruby
<leftylink> interesting. maybe the easiest way to find out is to look at its .ord
<leftylink> >> "\b".ord
<ruby[bot]> leftylink: # => 8 (https://eval.in/1082319)
<leftylink> interesting.
alem0lars has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
marcoecc has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Ping timeout: 245 seconds]
<t0xik> a = "\x08";
<t0xik> >> a = "\x08"
<ruby[bot]> t0xik: # => "\b" (https://eval.in/1082337)
jottr has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
conta has quit [Quit: conta]
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
claudiuinberlin has joined #ruby
schleppel has joined #ruby
jottr has joined #ruby
<t0xik> >> arr = [2048]; str = arr.pack('V'); hex = str.unpack('H*')
<ruby[bot]> t0xik: # => ["00080000"] (https://eval.in/1082367)
voker57_ is now known as Voker57
Tuor has joined #ruby
<Tuor> Hi, this is my code: https://dpaste.de/SZpp#L
claudiuinberlin has quit [Ping timeout: 246 seconds]
gregf_ has quit [Ping timeout: 256 seconds]
qual[away] has quit [Quit: qual[away]]
qual has joined #ruby
<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
<Tuor> How would you do it?
<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
<Tuor> hmm ||= seems nice. I'll try. :)
<al2o3-cr> &>> 0x800
<rubydoc> # => 2048 (https://carc.in/#/r/6gvq)
aufi has quit [Ping timeout: 246 seconds]
bjpenn has quit [Ping timeout: 250 seconds]
qual has quit [Ping timeout: 240 seconds]
ryouba has joined #ruby
<ryouba> hi all!
Swyper has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
qual has joined #ruby
<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?
<ryouba> (i'm looking for a computationally fast way to make that check)
themsay has joined #ruby
<ryouba> fwiw this is a m'w'e of my current algo: https://gist.github.com/sixtyfive/d00fa20fc692ca80407cb3adeb58e68e
<phaul> you could maintain a Set with contents, and use Set#include?
<phaul> if your character set is limited for instance ascii you can implement hash with an array of include? flags mapping ords to bools
<phaul> that would be constant time
<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
<ryouba> phaul: it's a subset of all of the different Unicode tables
<phaul> you can try built in Set then. but that will require some data before it starts outperforming what you have now
<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
<ryouba> phaul: do AL columns, ~5000-ish-rows excel sheets count as "some data"?
ylshao has joined #ruby
<phaul> very hard to tell, but you can test. Use Benchmark on it, and you will see
<ryouba> oh, that's a nice idea! i keep forgetting about that... :) thank you!
<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
<ryouba> hmmm i would certainly include myself in that group of people
<phaul> I meant everybody
<ryouba> but then i never studied computer science on a university level
<ryouba> hmm
<phaul> me included
<ryouba> everybody does include people who have
<ryouba> because if you've done that then you should be able to do that, right?
jottr_ has joined #ruby
<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
jottr has quit [Ping timeout: 246 seconds]
ylshao has left #ruby ["WeeChat 2.4"]
mangold has quit [Quit: This computer has gone to sleep]
<phaul> I suggest you try ruby prof in combination with [kq]cachegrind to visualize your runtime costs.
ylshao has joined #ruby
<ylshao> aef: h
<ylshao> aef: hi
<ylshao> back
ylshao has left #ruby ["WeeChat 2.4"]
mangold has joined #ruby
znz_jp has joined #ruby
zapata has quit [Read error: Connection reset by peer]
qual has quit [Quit: qual]
zapata has joined #ruby
waheedi has joined #ruby
Bish has joined #ruby
<Bish> is there a queue which can have timeout on .pop
keden has joined #ruby
gregf_ has joined #ruby
keden has quit [Quit: WeeChat 1.9.1]
keden has joined #ruby
keden has quit [Quit: WeeChat 1.9.1]
qual has joined #ruby
keden has joined #ruby
keden has quit [Quit: WeeChat 1.9.1]
keden has joined #ruby
Tuor_ has joined #ruby
Tuor_ has quit [Client Quit]
Tuor has quit [Ping timeout: 246 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
ldnunes has joined #ruby
<Xeago> Bish: should be easy to wrap, no?
aufi has joined #ruby
reber has quit [Remote host closed the connection]
jcalla has quit [Ping timeout: 240 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Swyper has joined #ruby
xrexeon has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
keden has quit [Quit: WeeChat 1.9.1]
tau has joined #ruby
aqd has quit [Remote host closed the connection]
keden has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
Onwarion_re has quit [Read error: Connection reset by peer]
Dbugger has joined #ruby
mniip has quit [Ping timeout: 600 seconds]
naught-fowl has joined #ruby
tdy1 has quit [Ping timeout: 246 seconds]
laaron has quit [Remote host closed the connection]
aqd has joined #ruby
AJA4350 has joined #ruby
jcalla has joined #ruby
qual has quit [Quit: qual]
aqd_ has joined #ruby
danguita has joined #ruby
andikr has quit [Ping timeout: 250 seconds]
laaron has joined #ruby
aqd has quit [Ping timeout: 250 seconds]
akem__ has quit [Ping timeout: 245 seconds]
stan has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
xrexeon has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
laaron has quit [Remote host closed the connection]
qual has joined #ruby
laaron has joined #ruby
Swyper has joined #ruby
<Bish> Xeago: like calling it non blocking and rettrying?
mniip has joined #ruby
ubuntuisloved has joined #ruby
skyikot has joined #ruby
aqd_ has quit [Quit: Leaving]
Rapture has joined #ruby
marz_d`ghostman has joined #ruby
<marz_d`ghostman> Has anyone tried uploading files to google drive via cli using ruby?
akem has joined #ruby
GreyHame has joined #ruby
i9zO5AP has joined #ruby
akem__ has joined #ruby
Ai9zO5AP has quit [Ping timeout: 268 seconds]
i9zO5AP has quit [Client Quit]
Ai9zO5AP has joined #ruby
akem has quit [Ping timeout: 245 seconds]
jrafanie has joined #ruby
<Bish> marz_d`ghostman: no, never
<marz_d`ghostman> Bish: care to elaborate?
<marz_d`ghostman> Bish: that's a bit of a strong negative answer, hehe
<Bish> sarcasm, ofcourse someone has done that
<Bish> is Queue implemented in C?
akem has joined #ruby
<al2o3-cr> Bish: yes.
lukelukeluke has joined #ruby
akem__ has quit [Ping timeout: 245 seconds]
stan_ has joined #ruby
gnufied has joined #ruby
mangold has joined #ruby
teclator has quit [Remote host closed the connection]
<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
Swyper has quit [Remote host closed the connection]
<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.
teclator has joined #ruby
GreyHame has quit [Quit: Textual IRC Client: www.textualapp.com]
ubuntuisloved has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
conta1 has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
ubuntuisloved has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
andikr has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
Inline has joined #ruby
tiogrand__ has joined #ruby
<Bish> whats the gag about conditionvariables
<Bish> i mean.. can't you just re-open mutexes as you like?
<Bish> in that example on the man page
decal has joined #ruby
stan_ has quit [Ping timeout: 258 seconds]
stan_ has joined #ruby
jrafanie_ has joined #ruby
Swyper has joined #ruby
jrafanie has quit [Ping timeout: 245 seconds]
conta1 has quit [Ping timeout: 250 seconds]
mniip has quit [Ping timeout: 615 seconds]
skryking_ has joined #ruby
xrexeon has joined #ruby
mniip has joined #ruby
cisco has joined #ruby
<ryouba> is there a POS tagger for ruby that might work for arabic?
am0123 has joined #ruby
griffindy has joined #ruby
aqd has joined #ruby
cisco has quit [Quit: leaving]
DaRock has quit [Ping timeout: 246 seconds]
xrexeon has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
rippa has joined #ruby
stryek has joined #ruby
qual has quit [Quit: qual]
Swyper has quit [Remote host closed the connection]
mangold has joined #ruby
zleap has joined #ruby
zleap has quit [Changing host]
zleap has joined #ruby
naught-fowl has quit [Quit: Leaving]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
am0123 has quit [Ping timeout: 240 seconds]
jaddison has quit [Quit: jaddison]
jaddison has joined #ruby
KeyJoo has joined #ruby
sylario has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
qual has joined #ruby
jrafanie has quit [Client Quit]
tiogrand__ has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
polishdub has joined #ruby
tiogrand has joined #ruby
Arkantos has joined #ruby
stan_ has quit [Remote host closed the connection]
stan has joined #ruby
<ytti> if you have foo { |arg| arg.something }
<ytti> you can replace it with foo(&:arg)
<ytti> uhh foo(&:something)
<ytti> can you pass argument to something?
andikr has quit [Remote host closed the connection]
[Butch] has joined #ruby
<Yxhuvud> No, not in Ruby.
<robotcars> Bundler could not find compatible versions for gem "activerecord":
<robotcars> activerecord-sqlserver-adapter was resolved to 5.1.6, which depends on
<robotcars> In Gemfile:
<robotcars> fluent-plugin-sql was resolved to 1.0.0, which depends on
<robotcars> activerecord (~> 5.1.0)
<robotcars> activerecord (~> 4.2)
<robotcars> anyway to resolve this?
Swyper has joined #ruby
matsaman has joined #ruby
tiogrand_ has joined #ruby
<ytti> Yxhuvud, thanks
<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)
<ytti> Yxhuvud, i'm sure that should not be surprising, with proper understanding of the issue, but it was surprising to me
<ytti> Yxhuvud, arity must be 0
tiogrand has quit [Ping timeout: 258 seconds]
D9 has quit [Read error: Connection reset by peer]
D9 has joined #ruby
danguita has quit [Quit: Connection closed for inactivity]
stan has quit [Remote host closed the connection]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
stan has joined #ruby
<Bish> ytti: im guessing that depends on what something is
<Bish> &> [1].map(&->(a=1,b=2){ a+1 })
<rubydoc> parser error at position 0 around `>'
<Bish> >> [1].map(&->(a=1,b=2){ a+1 })
<ruby[bot]> Bish: # => [2] (https://eval.in/1082499)
<Bish> >> [1].map(&Proc.new { |a,b=2| a+b+1 })
<ruby[bot]> Bish: # => [4] (https://eval.in/1082500)
<Bish> ytti: also, if you want to call & with parameters you can help yourself with clojures & nasty hacks
stan has quit [Quit: No Ping reply in 180 seconds.]
<matsaman> what's nast about'm?
<Bish> matsaman: i was thinking about something like overwriting .to_proc of Symbol
<Bish> then you could stuff like
<Bish> .each(&:_add_1)
qual has quit [Quit: qual]
stan has joined #ruby
<Bish> or implement a .to_proc for arrays
<Bish> and give parameters that way
<matsaman> but what's the drawback?
Devalo has joined #ruby
<Bish> readability, people will hate you if you put that inside a gem
<matsaman> Eh.
<matsaman> Short is readable, no? This isn't python!
<Bish> Short is not readable, no
<Bish> assembler has the shortest statements i know, how is that readable
cthulchu_ has joined #ruby
<matsaman> Bah, it has the longest.
<Bish> or ask the haskellers about short = readable, they would say yes
<matsaman> Well that I'm sure is true. Dunno what the deal with Haskell is, but it's strange.
<Bish> filterM (const [True,False]) [1,2,3]
<Bish> its super short, but what is it?
<Bish> took me days to understand whats happening there
<matsaman> I don't want to know what that is. =) I think .to_proc as you mentioned would be straightforward by comparison.
<Bish> i disagree
<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
aufi has quit [Ping timeout: 246 seconds]
<Bish> monkeypatching to_proc introduces errors like hell and solves a really simple problem
<matsaman> well that's why you name your methods right, anyway
ubuntuisloved has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stan has quit [Read error: Connection reset by peer]
<Bish> i think having clojures is a good way to go about it
<Bish> .each(&some_clojure_generator(3))
<Bish> tada, you have parameters in it
orbyt_ has joined #ruby
stan has joined #ruby
<matsaman> I prefer when things are builtin to a language =P but a simple solution the language facilitates is a close second
<Bish> well, it wouldn't be part of the language, either way
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> a to_proc hack wouldn't be a part of the language
<Bish> a clojure on the other hand is a feature of ruby, my approach is more ruby as what you suggest
ellcs has quit [Ping timeout: 250 seconds]
<Bish> matsaman: yeah if you want that as a feature in a language you want haskell :p
<matsaman> don't say that =P
<Bish> what i wrote before was the implementation of this
<matsaman> Every now and then I reinstall pandoc, and I'm reminded of one of the reasons haskell creeps me out.
<matsaman> 50,000 deps for a file re/formatter.
<Bish> i never used pandoc
tdy1 has joined #ruby
<matsaman> I think it's mostly supposed to be useful for people who think PDF is worth using.
<matsaman> Which is probably not many programmers.
Devalo has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
lxsameer has quit [Quit: out]
Swyper has joined #ruby
tiogrand has joined #ruby
tiogrand_ has quit [Ping timeout: 240 seconds]
zleap has quit [Quit: WeeChat 2.4]
am0123 has joined #ruby
marz_d`ghostman has quit [Quit: Page closed]
Swyper has quit [Remote host closed the connection]
Arkantos has joined #ruby
akem__ has joined #ruby
akem has quit [Read error: Connection reset by peer]
tekk has quit [Excess Flood]
nowhere_man has joined #ruby
memofun has joined #ruby
tekk has joined #ruby
kenichi has quit [Remote host closed the connection]
kenichi has joined #ruby
tris has quit [Excess Flood]
baweaver has quit [Excess Flood]
baweaver has joined #ruby
baweaver has joined #ruby
baweaver has quit [Changing host]
memofun has quit [Read error: Connection reset by peer]
lytol has joined #ruby
Arkantos has quit [Ping timeout: 268 seconds]
waheedi has quit [Ping timeout: 268 seconds]
tris has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
memofun has joined #ruby
matsaman has quit [Quit: leaving]
tiogrand_ has joined #ruby
tiogrand has quit [Ping timeout: 240 seconds]
memofun has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
za1b1tsu has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
n13z has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
stan has joined #ruby
Arkantos has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
tdy1 is now known as tdy
skryking_ has quit [Quit: Leaving]
ubuntuisloved has joined #ruby
alem0lars has quit [Remote host closed the connection]
cthulchu_ has quit [Ping timeout: 240 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Arkantos has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
Swyper has joined #ruby
marcoecc has quit [Ping timeout: 246 seconds]
tiogrand has joined #ruby
ellcs has joined #ruby
lukelukeluke has quit [Ping timeout: 246 seconds]
dionysus70 has joined #ruby
tiogrand_ has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
rindolf has joined #ruby
<rindolf> hi all
segy has joined #ruby
Devalo has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sauvin has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
alem0lars has joined #ruby
Devalo has quit [Remote host closed the connection]
_whitelogger has joined #ruby
orbyt_ has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
cthulchu_ has quit [Ping timeout: 246 seconds]
catbusters has joined #ruby
laaron has quit [Remote host closed the connection]
wald0 has joined #ruby
laaron has joined #ruby
alem0lars has quit [Ping timeout: 272 seconds]
AntoFox2 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KeyJoo has quit [Ping timeout: 244 seconds]
AntoFox2 has quit [Quit: Leaving]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
nowhere_man has quit [Ping timeout: 245 seconds]
themsay has quit [Ping timeout: 268 seconds]
lunarkitty7 has quit [Ping timeout: 264 seconds]
s00pcan has joined #ruby
renich has joined #ruby
am0123 has quit [Ping timeout: 250 seconds]
tiogrand has quit [Ping timeout: 245 seconds]
reber has joined #ruby
SeepingN has joined #ruby
english has joined #ruby
alem0lars has joined #ruby
bjpenn has joined #ruby
lunarkitty7 has joined #ruby
memofun has joined #ruby
themsay has joined #ruby
hightower2 has joined #ruby
clemens3_ has quit [Ping timeout: 244 seconds]
alem0lars has quit [Ping timeout: 272 seconds]
hightower3 has quit [Ping timeout: 268 seconds]
lukelukeluke has joined #ruby
rindolf has quit [Ping timeout: 250 seconds]
hightower2 has quit [Changing host]
hightower2 has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
AntoFox2 has joined #ruby
AntoFox2 has quit [Remote host closed the connection]
AntoFox2 has joined #ruby
cthulchu_ has joined #ruby
<decal> How would I reflect on a DSL statement like BinData's choice?
AntoFox2 has quit [Client Quit]
AntoFox2 has joined #ruby
Creatornator has joined #ruby
ellcs has joined #ruby
rindolf has joined #ruby
Swyper has quit [Remote host closed the connection]
xrexeon has joined #ruby
Swyper has joined #ruby
suukim has quit [Quit: Konversation terminated!]
orbyt_ has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
naught-fowl has joined #ruby
memofun has quit [Ping timeout: 246 seconds]
m27frogy has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stan has quit [Ping timeout: 258 seconds]
stan has joined #ruby
cnsvc has joined #ruby
Arkantos has joined #ruby
ldnunes has quit [Ping timeout: 246 seconds]
AntoFox2 has quit [Quit: Leaving]
orbyt_ has quit [Ping timeout: 245 seconds]
marmotini_ has joined #ruby
orbyt_ has joined #ruby
ldnunes has joined #ruby
jaddison has quit [Quit: jaddison]
am0123 has joined #ruby
marmotini_ has quit [Ping timeout: 252 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
catbusters has quit [Quit: Connection closed for inactivity]
e has quit [Quit: edk]
ldnunes has quit [Quit: Leaving]
am0123 has quit [Ping timeout: 252 seconds]
naught-fowl has quit [Quit: This computer has gone to sleep]
am0123 has joined #ruby
marmotini_ has joined #ruby
marmotini_ has quit [Remote host closed the connection]
cnsvc has quit [Ping timeout: 256 seconds]
memofun has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnsvc has joined #ruby
SuperL4g has joined #ruby
Dbugger has quit [Ping timeout: 240 seconds]
SuperLag has quit [Ping timeout: 245 seconds]
skyikot has quit [Remote host closed the connection]
skyikot has joined #ruby
orbyt_ has joined #ruby
memofun has quit [Ping timeout: 252 seconds]
rindolf has quit [Ping timeout: 268 seconds]
dante has quit [Ping timeout: 244 seconds]
reber has quit [Remote host closed the connection]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
tiogrand has joined #ruby
dante has joined #ruby
am0123 has quit [Ping timeout: 272 seconds]
SCHAPiE has quit [Quit: ZNC - https://znc.in]
jrafanie has quit [Ping timeout: 250 seconds]
griffindy has quit [Ping timeout: 255 seconds]
noizex has joined #ruby
tiogrand has quit [Ping timeout: 250 seconds]
Ai9zO5AP has quit [Quit: WeeChat 2.4]
aqd has quit [Remote host closed the connection]
SCHAPiE has joined #ruby
aqd has joined #ruby
skyikot has quit [Ping timeout: 256 seconds]
dante has quit [Remote host closed the connection]
dante has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
noizex has quit [Read error: Connection reset by peer]
noizex has joined #ruby
Swyper has quit [Remote host closed the connection]
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
english has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
jaddison has joined #ruby
nowhere_man has joined #ruby
AJA4351 has joined #ruby
Arkantos has joined #ruby
orbyt_ has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
Arkantos has quit [Client Quit]
Swyper has joined #ruby
orbyt_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
tekk has quit [Excess Flood]
orbyt_ has quit [Ping timeout: 268 seconds]
schleppel has quit [Quit: Konversation terminated!]
orbyt_ has joined #ruby
tekk has joined #ruby
reaVer has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
polishdub has quit [Quit: leaving]
reaVer has joined #ruby
jrafanie has quit [Read error: Connection reset by peer]
jrafanie has joined #ruby
Autolycus has joined #ruby
orbyt_ has quit [Ping timeout: 252 seconds]
Swyper has quit [Remote host closed the connection]
<havenwood> Bish: Mutexes aren't re-enntrant, but Monitors are (they use a ConditionVariable internally).
<havenwood> &>> Mutex.new.then { |lock| lock.synchronize { lock.synchronize { 42 } } }
<rubydoc> stderr: -e:2:in `synchronize': deadlock; recursive locking (ThreadError) (https://carc.in/#/r/6h1f)
<havenwood> &>> Monitor.new.then { |lock| lock.synchronize { lock.synchronize { 42 } } }
<rubydoc> # => 42 (https://carc.in/#/r/6h1g)
orbyt_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
<al2o3-cr> &>> m = Mutex; m.extend(MonitorMixin); m.then { |lock| lock.synchronize { lock.synchronize { 42 } } }
<rubydoc> # => 42 (https://carc.in/#/r/6h1h)
spacesuitdiver has joined #ruby
Swyper has quit [Remote host closed the connection]
<al2o3-cr> MonitorMixin and ConditionalVariable really need more documentation.
bruce_lee has quit [Remote host closed the connection]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
jaddison has quit [Quit: jaddison]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
orbyt_ has quit [Ping timeout: 246 seconds]
ubuntuisloved has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]