maloik has quit [Remote host closed the connection]
maloik has joined #ruby
<forkedover>
it's for networked multiplayer yahtzee game
cisco has quit [Quit: Leaving.]
Vile` has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
<ineb>
forkedover: not very beautiful or ruby like
<ineb>
but 'okay', i guess?
<adam12>
Wow. That's something else..
<ineb>
forkedover: to see, if an array increases, you could do [1,2,3,4].each_cons(2).all? { |x,y| y.eql? (x+1) }
hardest has quit []
<forkedover>
i will give it a try
jenrzzz has quit [Ping timeout: 265 seconds]
boombox_ has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
flashpoint9 has quit [Remote host closed the connection]
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
flashpoint9 has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
znz_jp0 has quit [Remote host closed the connection]
elbo22 has quit [Ping timeout: 260 seconds]
swills_ has quit [Read error: Connection reset by peer]
swills has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
User458764 has joined #ruby
znz_jp has joined #ruby
jhack has joined #ruby
boombox_ has joined #ruby
beilabs_ has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vile` has quit [Quit: .]
forkedover has left #ruby ["Leaving"]
beilabs has quit [Ping timeout: 260 seconds]
boombox_ has quit [Ping timeout: 260 seconds]
jhack has quit [Quit: jhack]
User458764 has quit [Ping timeout: 265 seconds]
bovis has quit [Quit: leaving]
tuxaddicted has joined #ruby
beilabs_ has quit [Remote host closed the connection]
beilabs has joined #ruby
LoneHermit has joined #ruby
SpiffTR has joined #ruby
beilabs has quit [Ping timeout: 250 seconds]
LoneHermit has quit [Ping timeout: 244 seconds]
antoniobeyah has joined #ruby
jtdoncas has quit [Ping timeout: 245 seconds]
SpiffTR has quit [Ping timeout: 256 seconds]
marxarelli is now known as marxarelli|afk
bayed has quit [Quit: Connection closed for inactivity]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
Devalo has joined #ruby
montanonic has joined #ruby
harai has quit [Ping timeout: 260 seconds]
h1fuelcell has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 248 seconds]
tuxaddicted has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Remote host closed the connection]
enterprisey has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apawl9 has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
apawl9 has quit [Client Quit]
jaguarmagenta has joined #ruby
dcluna has quit [Quit: ZNC 1.7.x-git-705-2e6c8d9 - http://znc.in]
vikaton has quit [Quit: Connection closed for inactivity]
raul782 has joined #ruby
Gravious_ has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
h1fuelcell has quit [Read error: Connection reset by peer]
c355e3b has quit [Quit: Connection closed for inactivity]
libastral has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 244 seconds]
libastral has joined #ruby
jtdoncas_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
h1fuelcell has joined #ruby
Channel6 has quit [Quit: Leaving]
bturker has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
flashpoint9 has joined #ruby
moei has quit [Quit: Leaving...]
beilabs has joined #ruby
moei has joined #ruby
r3vDev has quit [Ping timeout: 268 seconds]
bturker has quit [Ping timeout: 256 seconds]
r3vDev has joined #ruby
flashpoint9 has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
rwb has quit [Quit: rwb]
yeticry has quit [Ping timeout: 265 seconds]
Xi[m] has joined #ruby
yeticry has joined #ruby
SpiffTR has joined #ruby
ascarter has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
montanonic has quit [Ping timeout: 245 seconds]
pilne has quit [Quit: Quitting!]
SpiffTR has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
roamingdog has joined #ruby
nankyokusei has joined #ruby
chouhoulis has joined #ruby
beilabs has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 246 seconds]
beilabs has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
beilabs has quit [Ping timeout: 258 seconds]
roychri has quit [Ping timeout: 260 seconds]
Felipe__ has joined #ruby
terens has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
nofxxx has joined #ruby
ropeney has joined #ruby
nofxx has quit [Ping timeout: 245 seconds]
terens has quit [Ping timeout: 268 seconds]
zotherstupidguy has quit [Ping timeout: 260 seconds]
h1fuelcell has quit [Remote host closed the connection]
dn` has quit [Ping timeout: 260 seconds]
hanmac has joined #ruby
Emmanuel_Chanel has joined #ruby
braincrash has quit [Quit: bye bye]
astrobunny has joined #ruby
splud has quit [Quit: splud]
gix- has quit [Ping timeout: 258 seconds]
haraoka has joined #ruby
howdoi has joined #ruby
rdavila has joined #ruby
emptyflask has joined #ruby
tuxaddicted has joined #ruby
Channel6 has joined #ruby
gix has joined #ruby
emptyflask has quit [Ping timeout: 244 seconds]
axyjo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beilabs has joined #ruby
tuxaddicted has quit [Ping timeout: 249 seconds]
haraoka has quit [Quit: IRcat]
tuxaddicted has joined #ruby
montanonic has joined #ruby
r3vDev has quit [Ping timeout: 244 seconds]
adavia has quit [Ping timeout: 268 seconds]
r3vDev has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dionysus69 has joined #ruby
jtdoncas has joined #ruby
xrlk has quit [Ping timeout: 260 seconds]
SpiffTR has joined #ruby
sneakerhax has quit [Ping timeout: 260 seconds]
axyjo has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
jtdoncas has quit [Ping timeout: 246 seconds]
SpiffTR has quit [Ping timeout: 256 seconds]
yeticry has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
yeticry has joined #ruby
chouhoulis has joined #ruby
r3vDev has quit [Ping timeout: 248 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has quit [Read error: Connection reset by peer]
JoshS has joined #ruby
sarkis has quit [Ping timeout: 244 seconds]
iMadper` has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 258 seconds]
Jayson_Virissimo has quit []
tuxaddicted has quit [Ping timeout: 250 seconds]
sarkis has joined #ruby
sarkis has quit [Changing host]
sarkis has joined #ruby
amclain_ has joined #ruby
amclain has quit [Ping timeout: 244 seconds]
Felipe__ has quit [Quit: Leaving]
eggshke has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
riskish has joined #ruby
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
face_like_the_su has joined #ruby
hahuang61 has joined #ruby
<face_like_the_su>
Hi. Haskell has a function called "race" which launches and blocks on two threads. Whichever thread finishes first "wins" and its value is returned. The losing thread is canceled.
<face_like_the_su>
Is there anything like this in Ruby?
beilabs has quit [Ping timeout: 248 seconds]
william3 has joined #ruby
hahuang62 has quit [Ping timeout: 245 seconds]
<tau>
i have just written the craziest solution of a projecteuler problem in ruby.
<ruby-lang591>
I have a project that need to use opengl
<ruby-lang591>
but I check the ruby gems opengl
<ruby-lang591>
which is too old only support 1.9.3
<ruby-lang591>
does anyone know whether is a ready gems for opengl in ruby that keeps evloved with ruby?
evie_hammond has joined #ruby
<rykou>
honestly, I don't know. I needed opengl before and did the opengl code in c++ and made the c++ code a library that ruby could use
<zenspider>
ruby-lang591: do you need direct opengl access? SDL can be GL backed
<ruby-lang591>
I direct access is better
Devalo has joined #ruby
<ruby-lang591>
as I want to using a ruby script to communicate with a sensor which will provide real time data, and I need process the data and display it in 3D model
Naypam has joined #ruby
<zenspider>
then I'm not sure I can help then... that said, I wouldn't recommend writing this for 1.9.3...
<ruby-lang591>
my project choose the fxruby
brent__ has quit [Quit: Connection closed for inactivity]
<Naypam>
I'm getting a little confused by ruby's references and how to avoid them
<ruby-lang591>
it has an example with opengl but I can not make it work
<zenspider>
Naypam: what do you mean by references and why do you want to avoid them?
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stoffus has quit [Quit: leaving]
stoffus has joined #ruby
charliesome has joined #ruby
workmad3 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
stoffus has quit [Client Quit]
stoffus has joined #ruby
failshell has quit [Remote host closed the connection]
failshell has joined #ruby
charliesome has quit [Client Quit]
r3vDev has quit [Ping timeout: 245 seconds]
jwheare has quit []
jwheare has joined #ruby
last_staff has quit [Quit: last_staff]
LoneHerm_ has quit [Remote host closed the connection]
charliesome has joined #ruby
last_staff has joined #ruby
last_staff has quit [Client Quit]
failshell has quit [Ping timeout: 256 seconds]
TheWhip has quit [Remote host closed the connection]
Ademan_ has quit [Ping timeout: 260 seconds]
djellemah has quit [Ping timeout: 258 seconds]
SesMan has joined #ruby
byte512 has joined #ruby
bukolay-net has quit [K-Lined]
TheWhip_ has joined #ruby
Ademan has joined #ruby
mastappl has joined #ruby
Pascal_ has joined #ruby
eb0t has joined #ruby
<mastappl>
hi devs!
frmendes has joined #ruby
Pascal_ has quit [Client Quit]
Silthias has quit [Ping timeout: 248 seconds]
<mastappl>
Our team is creating a new PaaS and we are looking for early users and feedback. Can I give a link here?
jgnagy has joined #ruby
<zenspider>
you're not exactly selling the "why"...
<zenspider>
or even what at this point
byte512 has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
SpiffTR has joined #ruby
<mastappl>
selling?
<mastappl>
or that wasn't for me?
bturker has joined #ruby
jgnagy has quit [Ping timeout: 244 seconds]
Silthias has joined #ruby
psychicist__ has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
Naypam has left #ruby ["wew"]
rodfersou|afk is now known as rodfersou
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowz has quit [Remote host closed the connection]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patteh has quit [Remote host closed the connection]
patteh has joined #ruby
jtdoncas has joined #ruby
bartek has joined #ruby
nowz has joined #ruby
jaruga___ has quit [Quit: jaruga___]
jtdoncas has quit [Ping timeout: 246 seconds]
_ZerGabriel_ has joined #ruby
nankyokusei has joined #ruby
terens has quit [Ping timeout: 260 seconds]
_ZerGabriel_ has quit [Client Quit]
frozengeek____ has quit [Read error: Connection reset by peer]
frozengeek____ has joined #ruby
jmignault has joined #ruby
eggshke has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 260 seconds]
eggshke has joined #ruby
TheWhip has joined #ruby
TheWhip_ has quit [Read error: No route to host]
terens has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
JoshS has quit [Quit: Leaving]
ropeney has joined #ruby
braincrash has joined #ruby
jmignault has quit [Ping timeout: 245 seconds]
dnicole has joined #ruby
Cymew has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 260 seconds]
ruby-lang429 has joined #ruby
LoneHermit has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zenspider>
mastappl: yes, to you. You're asking people if they want to "buy" your wares but haven't mentioned _anything_ except PaaS. Not much better than a cold-call from a headhunter who doesn't even describe the gig.
SpiffTR has quit [Ping timeout: 258 seconds]
ruby-lang429 has quit [Ping timeout: 260 seconds]
LoneHermit has quit [Ping timeout: 260 seconds]
SesMan has joined #ruby
tvw has joined #ruby
jmignault has joined #ruby
emilkarl has joined #ruby
last_staff has joined #ruby
eb0t has quit [Quit: WeeChat 1.4]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Remote host closed the connection]
eb0t has joined #ruby
User458764 has joined #ruby
claudiuinberlin has joined #ruby
lenwood has joined #ruby
william3 has quit [Remote host closed the connection]
claudiuinberlin has quit [Ping timeout: 248 seconds]
axyjo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
failshell has joined #ruby
Cymew has joined #ruby
chouhoulis has joined #ruby
charliesome has joined #ruby
tectonic has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bartek has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
meinside has joined #ruby
william3 has joined #ruby
sdothum has joined #ruby
ryan_notabot has joined #ruby
nadir has joined #ruby
SpiffTR has joined #ruby
SesMan has joined #ruby
psychicist__ has quit [Ping timeout: 268 seconds]
william3 has quit [Ping timeout: 260 seconds]
byte512 has joined #ruby
SpiffTR has quit [Ping timeout: 245 seconds]
marxarelli|afk has quit [Read error: Connection reset by peer]
dcluna has joined #ruby
failshell has quit []
iMadper has joined #ruby
psychicist__ has joined #ruby
tyang has quit [Ping timeout: 258 seconds]
poikon has quit []
poikon has joined #ruby
jtdoncas has joined #ruby
Silthias1 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gnufied has quit [Quit: Leaving]
Silthias has quit [Ping timeout: 245 seconds]
Silthias has joined #ruby
TheWhip has quit [Remote host closed the connection]
eb0t has quit [Quit: WeeChat 1.4]
jtdoncas has quit [Ping timeout: 246 seconds]
Silthias1 has quit [Ping timeout: 250 seconds]
lenwood has quit [Ping timeout: 265 seconds]
lenwood has joined #ruby
eb0t has joined #ruby
SpiffTR has joined #ruby
gnufied has joined #ruby
blackbom1 has joined #ruby
x77686d has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
johnmilton has joined #ruby
maattdd has quit [Remote host closed the connection]
maattdd has joined #ruby
roamingdog has joined #ruby
Cra2yZer0 has joined #ruby
blackbom1 has quit [Ping timeout: 250 seconds]
deadnull has joined #ruby
codfection has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
eb0t has quit [Quit: WeeChat 1.4]
charliesome has joined #ruby
nadir has quit []
claudiuinberlin has joined #ruby
nadir has joined #ruby
SpiffTR has quit [Ping timeout: 248 seconds]
nowz has quit [Quit: Leaving]
roamingdog has quit [Ping timeout: 250 seconds]
blackbom1 has joined #ruby
roamingdog has joined #ruby
LoneHermit has joined #ruby
gnufied has quit [Quit: Leaving]
claudiuinberlin has quit [Ping timeout: 268 seconds]
xberg_ has joined #ruby
xberg_ has quit [Read error: Connection reset by peer]
xberg_ has joined #ruby
tectonic has quit []
tectonic has joined #ruby
blackbom1 has quit [Ping timeout: 246 seconds]
tectonic has quit [Client Quit]
LoneHermit has quit [Ping timeout: 250 seconds]
xberg has quit [Ping timeout: 260 seconds]
bartek has joined #ruby
brendan- has joined #ruby
eb0t has joined #ruby
iMadper` has joined #ruby
iMadper has quit [Ping timeout: 250 seconds]
blackbom1 has joined #ruby
iMadper`` has joined #ruby
eb0t has quit [Quit: WeeChat 1.4]
blackbombay has joined #ruby
ropeney has quit [Remote host closed the connection]
eb0t has joined #ruby
xall has quit [Ping timeout: 260 seconds]
tyang has joined #ruby
jmignault has quit [Remote host closed the connection]
iMadper` has quit [Ping timeout: 246 seconds]
blackbom1 has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
frozengeek____ has quit [Quit: frozengeek____]
frozengeek____ has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
lxsameer has quit [Quit: WeeChat 1.6]
hahuang61 has quit [Ping timeout: 250 seconds]
lenwood has quit [Ping timeout: 268 seconds]
deadnull is now known as _deadnull
_deadnull has quit [Quit: AFK]
william3 has joined #ruby
deadnull has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
bartek has quit [Ping timeout: 260 seconds]
Kaze has joined #ruby
Kaze is now known as Guest20053
gnufied has joined #ruby
synthroid has joined #ruby
ryan_notabot has quit [Quit: Leaving]
ishe_ua has quit [Remote host closed the connection]
govg has quit [Ping timeout: 248 seconds]
fmcgeough has joined #ruby
Puffball has quit [Remote host closed the connection]
Elemenn is now known as elementaru
govg has joined #ruby
claudiuinberlin has joined #ruby
jtdoncas_ has joined #ruby
Puffball has joined #ruby
blackjid has quit [Ping timeout: 258 seconds]
tpendragon has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SpiffTR has joined #ruby
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdoncas_ has quit [Ping timeout: 245 seconds]
emilkarl has joined #ruby
nettoweb has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
codfection has quit [Remote host closed the connection]
bturker has joined #ruby
symm-_ has joined #ruby
r3vDev has joined #ruby
hightower2 has quit [Ping timeout: 245 seconds]
eggshke has quit []
hightower2 has joined #ruby
maattdd has quit [Quit: WeeChat 1.5]
maattdd has joined #ruby
Devalo has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
ramortegui has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
psychicist__ has quit [Ping timeout: 260 seconds]
deadnull has quit [Quit: Bye]
jrafanie has joined #ruby
byte512 has quit [Ping timeout: 260 seconds]
tpendragon has quit [Ping timeout: 260 seconds]
synthroi_ has joined #ruby
antoniobeyah has joined #ruby
iMadper`` has quit [Ping timeout: 256 seconds]
synthroid has quit [Ping timeout: 268 seconds]
psychicist__ has joined #ruby
Snowy has joined #ruby
davidt_ has joined #ruby
frmendes has quit [Ping timeout: 258 seconds]
davidt has quit [Ping timeout: 260 seconds]
byte512 has joined #ruby
tau has joined #ruby
adavia has joined #ruby
tpendragon has joined #ruby
banisterfiend has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
dionysus70 is now known as dionysus69
djellemah_ has joined #ruby
saslam has joined #ruby
millerti has joined #ruby
skalfyfan has joined #ruby
triangles has quit [Ping timeout: 265 seconds]
triangles has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cdg has joined #ruby
chouhoulis has joined #ruby
jaruga___ has joined #ruby
jtdoncas has joined #ruby
rodfersou is now known as rodfersou|lunch
jaguarmagenta has joined #ruby
<face_like_the_su>
Hi. Haskell has a function called "race" which launches and blocks on two threads. Whichever thread finishes first "wins" and its value is returned. The losing thread is canceled.
<face_like_the_su>
Is there anything like this in Ruby?
<toretore>
as for canceling the thread, you probably can in some way but i don't see the point
Cra2yZer0 has joined #ruby
shinnya has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
threh has joined #ruby
<face_like_the_su>
toretore: I'm blocking on input from a /dev device.
<toretore>
you mean two different devices?
<apeiros>
loser_thread.kill
<face_like_the_su>
Yes.
<apeiros>
don't do that if the thread has side effects
rikkipitt has joined #ruby
jhack has quit [Quit: jhack]
Snickers has quit [Ping timeout: 260 seconds]
<toretore>
that's my point. if it has side effects, it's dangerous. if it doesn't have side effects, it's useless in mri
<apeiros>
it's not
<apeiros>
if it's expensive, you abort the rest of the expense
<face_like_the_su>
I have two NFC readers: /dev/ttyAMA0 and /dev/ttyUSB0. I need to block on both of them, waiting for a tag to be scanned.
jhack has joined #ruby
<toretore>
apeiros: i mean using threads is useless in itself
<toretore>
face_like_the_su: sounds like you want to use select
<apeiros>
ah. hm, not sure about that. but a valid point to consider.
<apeiros>
(probably correct, I'm just not sure)
<toretore>
think about it: the only time mri threads will be "parallel" is with side effects (meaning io)
jaguarmagenta has joined #ruby
<toretore>
if they are pure, they will always trigger the gil
h1fuelcell has quit [Remote host closed the connection]
<toretore>
pure meaning ruby code without side effects
<apeiros>
yes, I understand your point and I think you're correct. I'm just not sure whether there might be valid reasons to use threads other than performance gains where "winning" is meaningful.
jhack has quit [Client Quit]
dionysus69 has quit [Ping timeout: 250 seconds]
<toretore>
well, as with any pure function, the outcome is determined beforehand
<toretore>
well, i guess with preemption it isn't actually
<toretore>
but the cost is always the same
allcentury has joined #ruby
beilabs has joined #ruby
psychicist__ has quit [Quit: Reconnecting]
psychicist__ has joined #ruby
<toretore>
face_like_the_su: but to get back to what you want to do: if you want to wait for two IO objects to see which one becomes readable first, it's precisely what IO.select is for
<face_like_the_su>
ok
<apeiros>
^ +1
ropeney has joined #ruby
<toretore>
of course "readable" and "sufficient data received" are not necessarily the same: you want to keep a buffer and then just stop selecting once one buffer fulfills your criteria for "enough data"
ta_ has quit [Remote host closed the connection]
<toretore>
(or repeat the process, depending on the use case)
<apeiros>
meaningful and very real scenario!!!!1!1!
frozengeek____ has quit [Quit: frozengeek____]
pachinsv has joined #ruby
bmurt has joined #ruby
pachinsv has left #ruby [#ruby]
jhack has joined #ruby
Viu has joined #ruby
<toretore>
apeiros: sleep = side effect ;)
<apeiros>
(I'll concur with your opinion, I can't come up with an actually meaningful case)
<toretore>
rand too for that matter
<apeiros>
toretore: um, no
<toretore>
rand at least
<apeiros>
nondeterministic, but not side effect.
<toretore>
ok, impure
Viu has quit [Client Quit]
frozengeek____ has joined #ruby
rfoust has joined #ruby
jhack has quit [Client Quit]
centrx has joined #ruby
* apeiros
looks up the diff between impure & non-deterministic
<toretore>
actually i'd consider sleep to have a side effect: it is reaching out to the scheduler to change the outside world
<toretore>
probably about the same, i was writing it while you were writing non-deterministic
<toretore>
which is fitting, i guess
<apeiros>
I think sleep reaching out is an implementation detail
psychicist__ has quit [Ping timeout: 245 seconds]
<apeiros>
you can implement sleep without that - see busy loop
rfoust has quit [Read error: Connection reset by peer]
<toretore>
true
<apeiros>
and "consume time" is not a property of purity IMO. fibonacci implemented slowly is not less pure than one implemented performant
<apeiros>
s/property/aspect/?
* apeiros
feels the sleep deprivation
podman has quit []
<toretore>
of course, but being pure they are deterministic so there's not much point to having a "race"
psychicist__ has joined #ruby
jgnagy has joined #ruby
podman has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
<toretore>
i guess you could come up with a scenario where the outside world changes to make one run slower.. but i mean
ascarter has joined #ruby
<apeiros>
maybe - while they're deterministic, you might not know which one is faster before you run it the first time :)
patarr has joined #ruby
threh has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
charginghawk has joined #ruby
bayed has joined #ruby
rfoust has joined #ruby
<apeiros>
consider this: you wrote two pure implementations for a function. you don't know how expensive they are. they might take thousands of years to computer, or seconds. you don't want to run them consecutively for that reason. so you run them interleaved.
<apeiros>
and you stop once one is finished because you know which one is faster.
<apeiros>
it's *veeery* contrived. but… I think valid :D
<apeiros>
*to compute
<apeiros>
that R sneaked in there
<toretore>
of course, but as they say: insanity is doing the same thing over and over and expecting different results
<charginghawk>
rvm vs rbenv, is one clearly better, or doesn't matter?
<apeiros>
there's no doing it over and over again
<apeiros>
the idea is to run two candidate implementations once
nowhereman has quit [Ping timeout: 244 seconds]
<toretore>
i will concede that in a universe of infinite possibilities, it's one of them :P
<apeiros>
there's of course no point in doing it again for the same input. only the first time.
<apeiros>
charginghawk: haven't use rbenv. I had no troubles with rvm so far and am a happy user.
hahuang61 has joined #ruby
jgnagy has quit [Ping timeout: 250 seconds]
<apeiros>
toretore: do you know any source for pure vs deterministic? it seems quite equivalent to me from their respective WP descs
ascarter_ has joined #ruby
<apeiros>
oh
jaguarmagenta has quit [Ping timeout: 268 seconds]
ascarter has quit [Ping timeout: 268 seconds]
william3 has quit [Remote host closed the connection]
<apeiros>
I figured now. side effects can be deterministic. but are not pure.
<apeiros>
so pure functions are a subset of deterministic functions
<apeiros>
i.e. deterministic functions - functions with side effects = pure functions (I think)
rdavila has joined #ruby
sent-hil has quit []
<toretore>
is it a side effect if it's deterministic?
<apeiros>
writing to an IO f.ex.
kp666 has joined #ruby
sent-hil has joined #ruby
<toretore>
i guess, yeah
<apeiros>
though I wonder whether one could consider IO to be arguments (stdin) + return value (stdout/stderr) - they're just in a "different" place.
<toretore>
in a functional sense, they are "outside"
sylario has joined #ruby
<apeiros>
eh, seems like minutiae
sylario has quit [Client Quit]
hahuang61 has quit [Ping timeout: 245 seconds]
<apeiros>
I liked that part of eiffel (query/command separation). allows you to have automatic functional benefits without sacrificing mutable state.
william3 has joined #ruby
<apeiros>
queries = pure functions
xall has joined #ruby
<apeiros>
and benefits: you could theoretically automatically do memoisation, parallelisation, futurisation or other funny things with queries.
frmendes has joined #ruby
<toretore>
so commands mutate state directly in an imperative manner?
<Toledo_>
what does the / on this line mean : dc_root_folder_path=dc_root_folder.path.map { | id, name | name }.join("/")
<toretore>
it's a string containing /
<toretore>
do you mean |?
<apeiros>
toretore: commands are methods which either mutate state or have side effects. queries are not allowed to do either.
<Toledo_>
yeah its adding a / to the path
kp666 has quit [Ping timeout: 268 seconds]
<Toledo_>
if i take out the ("/") will it remove the /
<toretore>
Toledo_: that's impossible to answer without knowing the context
<apeiros>
Toledo_: pro-tip: use a filename with .rb
<Toledo_>
let me change it
<Toledo_>
fixed sorry
<apeiros>
np
<toretore>
Toledo_: ok, now explain: 1) what result you want, and 2) what you're actually getting
saneax-_-|AFK is now known as saneax
<Toledo_>
toretore: i was just trying to understand what the ("/") was doing which i can see now from the docs link. normally it should find a path on vmware but for the location its getting Could not descend into . Please check your path. /Datacenters
face_like_the_su has quit [Quit: Page closed]
<Toledo_>
so not sure if the / before Datacenters was able to be removed
william3 has joined #ruby
kp666 has joined #ruby
threh has joined #ruby
nettoweb has joined #ruby
<Toledo_>
toretore: it could be something on the path/location since it works for everything else. thanks for the help guys
tycoon177 has left #ruby [#ruby]
Snickers has joined #ruby
<toretore>
it looks like it should work, yes
tvw has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
tvw has joined #ruby
User458764 has joined #ruby
dklima has joined #ruby
dklima is now known as sparch
sparch has quit [Changing host]
sparch has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
galtgendo has joined #ruby
gbgdev has joined #ruby
sparch has quit [Client Quit]
c355e3b has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
sparch has joined #ruby
pachinsv has joined #ruby
jhack has joined #ruby
nankyokusei has joined #ruby
ggherdov has quit []
HashNuke has quit []
HashNuke has joined #ruby
ggherdov has joined #ruby
saneax is now known as saneax-_-|AFK
emptyflask has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 258 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
<galtgendo>
what could be the cause of a randomly popping up of "*1" instead of variable name in a YAML of Marshal data ? (note: I'm probably not using proper terms)
roamingdog has joined #ruby
sparch has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<adaedra>
it's a reference
roamingdog has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
dionysus69 has joined #ruby
roamingdog has joined #ruby
x77686d has quit [Quit: x77686d]
<adaedra>
it happens when you have the same object (same reference, not just a copy looking alike) twice in your YAML: it puts it one time, and use a label to refer to it to save space
roamingdog has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 268 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<galtgendo>
any way to prevent that ? cause the thing is, it's random: on some runs it happens, on other it doesn't
cibs has joined #ruby
<apeiros>
that means in some runs you reference the same object, in others you don't
kp__ has joined #ruby
ixti has joined #ruby
<apeiros>
ensure you don't reference the same object multiple times. e.g. by dup-ing it
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
<herwin>
adaedra: it's not only to save space, it can also handle circular references (a = []; a << a)
jgnagy has joined #ruby
kp666 has quit [Ping timeout: 246 seconds]
kp666 has joined #ruby
h1fuelcell has joined #ruby
<galtgendo>
OK, some context first:
ResidentBiscuit has joined #ruby
Mia has quit [Ping timeout: 250 seconds]
<galtgendo>
I'm poking at someone else's code and know very little of ruby
Salih has quit [Quit: Leaving]
<galtgendo>
no, the program loads files, that are basically Marshal dumps
emptyflask has quit [Remote host closed the connection]
<galtgendo>
and outputs them to YAML by Psych, with some formating thrown in
kp__ has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
kp666 has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
x77686d has joined #ruby
h1fuelcell has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
<galtgendo>
AFAICT, it's a Marshal:load followed by Psych:dump ...more or less
reverberations has joined #ruby
<galtgendo>
so, where exactly would I add any such fix ?
segy_ has joined #ruby
segy has quit [Ping timeout: 260 seconds]
rrawlins has quit [Remote host closed the connection]
cdg has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
segy_ is now known as segy
edorf has quit []
edorf has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
shinnya has quit [Ping timeout: 250 seconds]
tvw has quit [Read error: Connection reset by peer]
reverberations has quit [Quit: Leaving]
last_staff has quit [Quit: last_staff]
reverberations has joined #ruby
reverberations has quit [Client Quit]
splud has joined #ruby
<tau>
what does :[] mean at all? i have tried to find docs on it but i couldnt because i dont know the name of that syntax.
mjc_ has quit []
<tau>
it seems that shows up in matrix package.
<tau>
like Matrix[[1, 2]]
<baweaver>
It's the symbol of array brackets
<baweaver>
what area specifically?
mjc_ has joined #ruby
synthroi_ has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
<baweaver>
So you know, the array accessor method: [1,2,3][1]
meinside has quit []
<baweaver>
is actually sugar for: [1,2,3].[](a)
<tau>
so when i do x = Matrix[[1]] thats like instantiating a new matrix but using [] instead of new?
<baweaver>
Pretty much
<tau>
hmm
meinside has joined #ruby
<tau>
i see.
<baweaver>
There's a similar precedent for a few other types
<baweaver>
>> [Integer['1'], Hash[[1,2]]]
<ruby[bot]>
baweaver: # => undefined method `[]' for Integer:Class (NoMethodError) ...check link for more (https://eval.in/692053)
<baweaver>
So maybe not that one
<baweaver>
but they're all hiding around Kernel somewhere for the most part
<baweaver>
I'm just a horrible person to ask about the GUI toolkits for Ruby because I basically spend no time working with them :P
<baweaver>
cheers
<tau>
see you!
rikkipitt has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 250 seconds]
djellemah has joined #ruby
xberg has quit [Ping timeout: 258 seconds]
cajone has quit [Ping timeout: 260 seconds]
cajone has joined #ruby
armin has quit [Quit: relate to the matter as i drop the bomb]
saslam has joined #ruby
dbruns has joined #ruby
x77686d has quit [Quit: x77686d]
nowhereman has quit [Remote host closed the connection]
darthvorik has quit []
flashpoint9 has joined #ruby
nowhereman has joined #ruby
darthvorik has joined #ruby
AlexRussia has joined #ruby
aganov has quit [Remote host closed the connection]
jtdoncas has joined #ruby
armin has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
nowhereman has quit [Remote host closed the connection]
emptyflask has joined #ruby
nowz has joined #ruby
Eleeleth has quit []
Eleeleth has joined #ruby
synthroid has joined #ruby
jtdoncas has quit [Ping timeout: 256 seconds]
armin has quit [Quit: relate to the matter as i drop the bomb]
zipkid has quit []
zipkid has joined #ruby
amclain has joined #ruby
Devalo has quit [Remote host closed the connection]
armin has joined #ruby
chouhoulis has joined #ruby
pawnbox has joined #ruby
SpiffTR has joined #ruby
r3vDev has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
Rodya_ has joined #ruby
[Butch] has joined #ruby
centrx has quit [Remote host closed the connection]
jhack has quit [Ping timeout: 258 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
william3 has quit [Remote host closed the connection]
ascarter has joined #ruby
william3 has joined #ruby
centrx has joined #ruby
_djbkd has joined #ruby
h1fuelcell has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
SpiffTR has quit [Ping timeout: 268 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
splud has quit [Quit: splud]
johnny56 has quit [Ping timeout: 246 seconds]
ascarter has quit [Client Quit]
h1fuelcell has quit [Ping timeout: 248 seconds]
jtdoncas_ has joined #ruby
william3 has quit [Read error: Connection reset by peer]
william3_ has joined #ruby
johnny56 has joined #ruby
maattdd has joined #ruby
william3_ has quit [Read error: Connection reset by peer]
william3 has joined #ruby
william3 has quit [Read error: Connection reset by peer]
william3 has joined #ruby
jtdoncas_ has quit [Ping timeout: 248 seconds]
Snowy has quit [Remote host closed the connection]
ascarter has joined #ruby
Snowy has joined #ruby
enterprisey has joined #ruby
synthroi_ has joined #ruby
jaguarmagenta has joined #ruby
mark_66 has quit [Remote host closed the connection]
User458764 has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
synthroid has quit [Ping timeout: 244 seconds]
Snowy has quit [Ping timeout: 250 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ascarter has quit [Client Quit]
jaguarmagenta has quit [Ping timeout: 250 seconds]
SteenJobs has quit [Quit: SteenJobs]
conta has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beilabs_ has joined #ruby
jhack has joined #ruby
MrBusiness2 has quit [Ping timeout: 250 seconds]
SeepingN has joined #ruby
claudiuinberlin has quit []
GinoManWrx has joined #ruby
beilabs has quit [Ping timeout: 260 seconds]
william3 has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
enterprisey has quit [Remote host closed the connection]
cdg has joined #ruby
Hyuk has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
andikr has quit [Remote host closed the connection]
splud has joined #ruby
sparch has joined #ruby
antoniobeyah has joined #ruby
xrlk has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
william3 has joined #ruby
psychicist__ has quit [Ping timeout: 265 seconds]
TheWhip has joined #ruby
<b0g>
is it possible to bind a variable to a function (not the result of a function, but to a function itself) and then run that function from that variable?
x77686d has joined #ruby
psychicist__ has joined #ruby
Devalo has quit [Remote host closed the connection]
<SeepingN>
don't be silly
<b0g>
how is that silly?
<b0g>
especially in the context of ruby?
roamingdog has joined #ruby
jtdoncas has joined #ruby
<Papierkorb>
b0g: You can have a Proc, but you'd have to #call it to retrieve the value. Else, for pure variables, this is not possible
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
<SeepingN>
you can use a function which simply returns a value just like you'd use a variable, but. .why?
Salih has joined #ruby
Salih has quit [Changing host]
Salih has joined #ruby
<b0g>
Papierkorb: thank you for the useful answer
al2o3-cr_ has joined #ruby
pilne has joined #ruby
al2o3-cr has quit [Ping timeout: 265 seconds]
SteenJobs has joined #ruby
jtdoncas has quit [Ping timeout: 250 seconds]
inoperable has quit [Quit: ZNC 1.6.3 - http://znc.in]
Hyuk has joined #ruby
SteenJobs has quit [Client Quit]
nankyokusei has quit [Ping timeout: 260 seconds]
maattdd has quit [Ping timeout: 260 seconds]
inoperable has joined #ruby
flying has quit []
SpiffTR has joined #ruby
al2o3-cr has joined #ruby
senayar has quit []
ascarter has joined #ruby
npgm has joined #ruby
al2o3-cr_ has quit [Ping timeout: 248 seconds]
jsrn_ has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Ping timeout: 245 seconds]
sphex has quit [Read error: Connection reset by peer]
balazs has joined #ruby
sphex has joined #ruby
Salih has quit [Quit: Leaving]
Humdai has quit [Ping timeout: 260 seconds]
alexar has joined #ruby
SpiffTR has quit [Ping timeout: 250 seconds]
renderfu_ has joined #ruby
chouhoul_ has joined #ruby
Snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
chouhou__ has joined #ruby
symm-_ has joined #ruby
<alexar>
Hi there, I have a meta-programming question: I'm testing a controller in minitest and I want to assert that there is a redirect for every action when the use isn't logged in. How can I do an assert after every get, put, post, .. ?
JoshS has joined #ruby
SuperLag has quit [Quit: reboot reboot reboot]
chouhoulis has quit [Ping timeout: 260 seconds]
h1fuelcell has joined #ruby
SteenJobs has joined #ruby
chouhoul_ has quit [Ping timeout: 250 seconds]
SuperLag has joined #ruby
h1fuelcell has quit [Ping timeout: 258 seconds]
hahuang61 has joined #ruby
jtdoncas_ has joined #ruby
atmosx has quit [Quit: WeeChat 1.4]
Rodya_ has quit [Remote host closed the connection]
Snowy has joined #ruby
sp4rrow has joined #ruby
sp4rrow has quit [Read error: Connection reset by peer]
sp4rrow has joined #ruby
xall has quit [Ping timeout: 256 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
herbmillerjr has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
threh has quit [Ping timeout: 268 seconds]
kobain has joined #ruby
benlieb has joined #ruby
Devalo has joined #ruby
oryman has joined #ruby
oryman has quit [Remote host closed the connection]
<dbruns>
@alexar You could pretty easily write a script to create assertions for all of the routes… I highly recommend being explicit in your tests vs trying to use a wildcard or something like that
Snickers has joined #ruby
Devalo has quit [Remote host closed the connection]
marxarelli has joined #ruby
jtdoncas_ has quit [Ping timeout: 244 seconds]
Snickers has quit [Client Quit]
<alexar>
dbruns: Thanks. I think I'll extract the visiting of the routes and assertions to its own method, and then just log in and out with different roles and make sure its all closed off
<dbruns>
you could also do something like with_routing and assert that whatever routes you specify in there end up going to the proper redirect
TomyLobo has joined #ruby
frozengeek____ has quit [Quit: frozengeek____]
<dbruns>
maybe its because I was brainwashed by writing python for 4 years, but explicit > implicit when it comes to writing tests IMO
davidt_ has quit []
SpiffTR has joined #ruby
jtdoncas_ has joined #ruby
threh has joined #ruby
chouhou__ has quit [Remote host closed the connection]
muelleme has joined #ruby
Snowy has quit [Remote host closed the connection]
Guest20053 has quit [Ping timeout: 268 seconds]
Snowy has joined #ruby
_djbkd has quit [Remote host closed the connection]
TheWhip has quit [Remote host closed the connection]
Guest49009 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
Snowy has quit [Ping timeout: 256 seconds]
enterprisey has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 260 seconds]
TheWhip has joined #ruby
muelleme has quit [Ping timeout: 268 seconds]
jtdoncas_ has quit [Ping timeout: 246 seconds]
d5sx43 has quit [Quit: Leaving...]
TheWhip has quit [Ping timeout: 268 seconds]
parus has quit [Quit: leaving]
parus has joined #ruby
roamingdog has joined #ruby
MrBusiness2 has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
claudiuinberlin has joined #ruby
SpiffTR has quit [Quit: WeeChat 1.5]
allcentury has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
jackjackdripper has quit [Ping timeout: 265 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
symm-_ has quit [Quit: Leaving...]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
zotherst1 has quit [Quit: WeeChat 1.6]
ascarter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
Tralin has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
davidt has joined #ruby
frozengeek____ has joined #ruby
TheWhip has joined #ruby
TheWhip has quit [Remote host closed the connection]
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
h1fuelcell has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
skweek has joined #ruby
roamingdog has quit [Remote host closed the connection]
renderfu_ has quit []
ramfjord has joined #ruby
User458764 has joined #ruby
adavia has quit [Ping timeout: 256 seconds]
funnel has quit [Quit: leaving]
h1fuelcell has quit [Ping timeout: 258 seconds]
william3 has quit [Remote host closed the connection]
funnel has joined #ruby
jtdoncas has joined #ruby
william3 has joined #ruby
Dimik has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
rykou has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
jaguarmagenta has joined #ruby
william3 has quit [Ping timeout: 258 seconds]
<adam12>
Has anybody ever seen Rubygems generate a binstub with a version line like this in it? version = ">= 0.a"
<adam12>
I saw it once before and can't remember how I fixed it, but I wonder where it's coming up with that to begin with.
flashpoint9 has quit [Remote host closed the connection]
rykou has joined #ruby
flashpoint9 has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
antoniobeyah has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
rykou has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
roamingdog has joined #ruby
<adam12>
Nevermind - apparently that's how it's supposed to be? Very odd.
cdg has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
SteenJobs has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Seich has quit [Ping timeout: 260 seconds]
Marsjan has joined #ruby
SteenJobs has quit [Client Quit]
jesk has quit [Ping timeout: 248 seconds]
roamingdog has quit [Remote host closed the connection]
fatbob has quit [Ping timeout: 245 seconds]
Axy has quit [Read error: Connection reset by peer]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
fatbob has joined #ruby
Marsjan is now known as marsjaninzmarsa
jesk has joined #ruby
Seich has joined #ruby
Beams has quit [Quit: .]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
djellemah_ has quit [Quit: Leaving]
claudiuinberlin has quit [Remote host closed the connection]
SteenJobs has joined #ruby
claudiuinberlin has joined #ruby
djellemah_ has joined #ruby
pizzakingit has joined #ruby
axyjo has joined #ruby
tvw has joined #ruby
rykou has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Rodya_ has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: peaceee]
sp4rrow has joined #ruby
nankyokusei has joined #ruby
enterprisey has quit [Quit: Leaving]
sp4rrow has quit [Read error: Connection reset by peer]
sp4rrow has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
JoshS has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 265 seconds]
x77686d has quit [Quit: x77686d]
jenrzzz has joined #ruby
x77686d has joined #ruby
gloscombe has joined #ruby
muelleme has joined #ruby
johnmilton has quit [Quit: Namaste]
antoniobeyah has quit [Quit: antoniobeyah]
vasilakisfil has joined #ruby
flashpoint9 has joined #ruby
d0nn1e has quit [Ping timeout: 248 seconds]
<vasilakisfil>
can anyone explain me in this simple example why name2 returns a value and not raising an exceltion like name3 given that the closure has been defined in a different context ? http://pastie.org/10977997
antoniobeyah has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
d0nn1e has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
sparch has quit [Quit: Leaving]
emptyflask has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
h1fuelcell has quit [Ping timeout: 258 seconds]
cedkan has joined #ruby
gizmore has joined #ruby
gbgdev_ has joined #ruby
CVTJNII has joined #ruby
gbgdev has quit [Ping timeout: 250 seconds]
x77686d has joined #ruby
johnmilton has joined #ruby
symm-_ has joined #ruby
rdavila has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cedkan has quit [Quit: Leaving]
Devalo has joined #ruby
User458764 has joined #ruby
cedkan has joined #ruby
cedkan has quit [Client Quit]
marxarelli is now known as marxarelli|afk
conta has quit [Ping timeout: 244 seconds]
<djellemah_>
vasilakisfil: Hm, interesting. from name2, outside_closure.binding.receiver is a Foo instance, but from the pry top-level outside_closure.binding.receiver is main
<djellemah_>
I don't know why that is.
GinoManWorks has quit [Read error: Connection reset by peer]
GinoManWrx has quit [Read error: Connection reset by peer]
nowz has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
watersoul has quit [Write error: Connection reset by peer]
helpa has quit [Remote host closed the connection]
matled has quit [Write error: Broken pipe]
matled- has joined #ruby
helpa has joined #ruby
matled- is now known as matled
watersoul has joined #ruby
vondruch has quit [Write error: Broken pipe]
matp_ has quit [Excess Flood]
vondruch has joined #ruby
jenrzzz has quit [Ping timeout: 257 seconds]
blackwind_123 has quit [Quit: Wink, Wink, nudge, nudge. Know what I mean?]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nikivi has joined #ruby
blackwind_123 has joined #ruby
benlieb has quit [Quit: benlieb]
matp has joined #ruby
<galtgendo>
let's try rephrasing the question: if I have a file, that's a result of Marshal::dump and I want to load it, then dump as YAML, how do I prevent that process from creating reference entries in YAML file ?
nikivi has quit [Remote host closed the connection]
adavia has joined #ruby
last_staff has joined #ruby
<dminuoso>
galtgendo: What is a "reference entry" ?
nikivi has joined #ruby
marxarelli|afk is now known as marxarelli
<dminuoso>
galtgendo: What kind of object is it?
<galtgendo>
well, it's a collection of custom objects and POD
<dminuoso>
You're doing to have a bad time if you try to serialize them with YAMl again.
<galtgendo>
as for the first, I mean entries like '*1', "*2", etc instead of both keys and values, appearing randomly
<dminuoso>
galtgendo: Can you make a simple testcase so I can take a look at it?
jhack has quit [Quit: jhack]
<galtgendo>
randomly, as in "not always in the same places on each rerun"
Devalo has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
jhack has joined #ruby
<dminuoso>
Who cares what place it's in?
konsolebox has quit [Ping timeout: 250 seconds]
<dminuoso>
galtgendo: I reckon the serialization order may depend on the order of things inside memory for some builtin things.
<dminuoso>
galtgendo: If you need predictable serialization, provide your own serialization method.
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<dminuoso>
galtgendo: Can you explain the background a bit?
sinaeftekhari has quit [Remote host closed the connection]
<galtgendo>
well, that tool is made to work with early RPG Maker tools, which were internally using ruby (y some of the users' account - not all that well)
jhack has quit [Ping timeout: 256 seconds]
<djellemah_>
>> ha = {one: 1, two: 2}; YAML.dump thing1: ha, thing2: ha
<galtgendo>
the files in question are the game data; they were meant to be used only by the tool, but sometimes it's useful to have them in non-binary form, to see modifications better
axyjo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oivoodoo has quit []
Jackneill has joined #ruby
<galtgendo>
now, the thing is the dumping tool *mostly* works, but sometimes it creates those reference entries, which it can't reload later
watersoul has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
<galtgendo>
what bothers me most here, is that there seems to be no reason for those seeminly random pick
cdg has joined #ruby
djellemah has quit [Disconnected by services]
emptyflask has joined #ruby
djellemah_ is now known as djellemah
<galtgendo>
that is: why the same command produces those entries in different places on different runs
djellemah_ has joined #ruby
<Majost>
Does anyone know if there is an issue with the oneclick bintray account?
<Majost>
I can't seem to download the ruby installers for Windows.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
konsolebox has joined #ruby
<miah>
no idea
<dminuoso>
galtgendo: Hard to say, I dont know about the objects serializer.
konsolebox has quit [Remote host closed the connection]
patarr_ has joined #ruby
patarr has quit [Ping timeout: 265 seconds]
synthroi_ has quit []
hahuang61 has quit [Quit: WeeChat 1.5]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djellemah has quit [Quit: Leaving]
hahuang61 has joined #ruby
ascarter has joined #ruby
h1fuelcell has joined #ruby
Madplatypus has joined #ruby
<baweaver>
galtgendo: Have you tried asking on the forums? I know Solistra is fairly active.
<baweaver>
The only thing you could do is strap a normalizer of some sort on it to scrape off the random values.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver>
Though to be fair, RMVX/A are really crappy implementations of Ruby with a lot of hacks
marxarelli is now known as marxarelli|afk
<galtgendo>
which forum exactly ? besides, registering for a single question, then completely forgetting about the account is something I really hate
<galtgendo>
that question was about ruby too, but the answer was just about python
axyjo has joined #ruby
h1fuelcell has quit [Ping timeout: 245 seconds]
johnmilton has quit [Remote host closed the connection]
byte512 has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
<baweaver>
The RPG Maker forum. They have a lot more knowledge than I do about the subtle quirks of that system.
f4_ has quit [Ping timeout: 268 seconds]
millerti has joined #ruby
<miah>
parsing data files is such a pain
rdavila has quit [Ping timeout: 260 seconds]
millerti has quit [Client Quit]
jaguarmagenta has quit [Ping timeout: 248 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<theRoUS>
there's a hook that can be invoked when a module is 'include'd or .extend is used; is there one if a class if being used as a parent? e.g., class Foo < Bar ?
<dminuoso>
theRoUS: ^- and that is the callback is someone inherits from your class.
<theRoUS>
dminuoso: very many thanks!!
patarr_ has quit [Ping timeout: 250 seconds]
<dminuoso>
theRoUS: Note that the included/extended callbacks are commonly used to simplify mixing in class methods, by putting the methods into a helper module (often called ClassMethods) which in the included/extended callback is then included into the class objects singleton class.
<theRoUS>
comprends; i've used those before. 'inherited' was what i sought. thanks!
atmosx has joined #ruby
Snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rdavila has quit [Ping timeout: 245 seconds]
patarr has joined #ruby
zeroDi has joined #ruby
gbgdev has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.6]
gbgdev_ has quit [Ping timeout: 260 seconds]
symm-_ has quit [Ping timeout: 244 seconds]
skweek has joined #ruby
rdavila has joined #ruby
nikivi has quit [Quit: zzz]
hahuang61 has quit [Ping timeout: 245 seconds]
SesMan has joined #ruby
nikivi has joined #ruby
symm- has joined #ruby
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jtdoncas_ has joined #ruby
centrx has quit [Client Quit]
Snickers has joined #ruby
nikivi has quit [Quit: irc]
saslam has quit [Ping timeout: 268 seconds]
Snickers has quit [Client Quit]
roamingdog has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 265 seconds]
vasilakisfil has quit [Quit: Konversation terminated!]
ascarter has joined #ruby
nankyokusei has joined #ruby
antoniobeyah has joined #ruby
jtdoncas_ has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whiteline has quit [Read error: Connection reset by peer]
whiteline has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
sharms has joined #ruby
enterprisey has quit [Ping timeout: 268 seconds]
bturker has joined #ruby
finisherr has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
al2o3-cr has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
yan__ has joined #ruby
jhack has joined #ruby
rdavila has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit []
blackwind_123 has quit [Ping timeout: 260 seconds]
firstdayonthejob has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
rdavila has joined #ruby
blackwind_123 has joined #ruby
marxarelli|afk is now known as marxarelli
gusrub has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
aknagi has joined #ruby
Sammichmaker has joined #ruby
Psy-Q has quit [Ping timeout: 260 seconds]
h1fuelcell has joined #ruby
RobertBirnie has joined #ruby
millerti has joined #ruby
Psy-Q has joined #ruby
firstdayonthejob has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
faces has joined #ruby
muelleme has quit [Ping timeout: 260 seconds]
_djbkd has joined #ruby
h1fuelcell has quit [Ping timeout: 258 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
millerti has quit [Client Quit]
face has quit [Ping timeout: 244 seconds]
chouhoul_ has joined #ruby
Devalo has joined #ruby
alexherbo2 has quit [Ping timeout: 250 seconds]
Devalo has quit [Remote host closed the connection]
<ruby[bot]>
latemus: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<latemus>
but i used a /raw/ pastebin link
jackjackdripper has quit [Ping timeout: 260 seconds]
<baweaver>
Bot has spoken
<baweaver>
All hail the bot
<baweaver>
anyways
<baweaver>
you have build tools on that instance? I assume Linux or Mac?
<latemus>
baweaver: are you adressing me?
* baweaver
feigns shock
<baweaver>
yep
<latemus>
baweaver: it is the linux
<baweaver>
sorry, cheeky mood today
<latemus>
the debian line-ux
<latemus>
np man :)
<baweaver>
Looks like it's failing on the legendary Nokogiri