vigintas_ has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 268 seconds]
vigintas has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
krohrbaugh has joined #ruby-lang
Oak has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
kalleth has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
mbj has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
<mbj>
whitequark: hola
<whitequark>
mbj: hi
<mbj>
whitequark: Another question, currently __FILE__ and friends get parsed into (str, "/the/file"), I can only detect it wasnt a string literal via source locations.
<whitequark>
that's expected and intended
Cakey has joined #ruby-lang
<whitequark>
consider mutant
<whitequark>
what if you want __FILE__ to point to the original file?
<mbj>
whitequark: I'd love to have a dedicated node, so unparser can still work compleatly without refering to source locations!
<mbj>
whitequark: Sure, from parsers POV and most of the tools this solution is 100% valid
<mbj>
But for an unparser it would be nice to have the knowlege it wasnt a literal!
<whitequark>
I think it's valid for unparser as well
<whitequark>
since it aims to produce *equivalent* source code
dhruvasagar has quit [Ping timeout: 276 seconds]
<whitequark>
and __FILE__ in the result is not equivalent to __FILE__ in the source
<mbj>
But unparser only sees a string! So saving the source elsewhere and running the code will not be equivalent.
<whitequark>
of course it will
dhruvasagar has joined #ruby-lang
<mbj>
Unparser does not know it has to unparse into __FILE__
<whitequark>
foo.rb: "puts __FILE__" # => foo.rb
<whitequark>
unparse foo.rb >bar.rb # => foo.rb
<mbj>
it will go fo "/the/original/file"
glebm has joined #ruby-lang
<whitequark>
this is exactly what should happen
<mbj>
IMHO not :D
<whitequark>
the resulting code has equivalent behavior
<mbj>
The resulting code should still have valid __FILE__ semantics.
<whitequark>
there's no __FILE__ semantics
<whitequark>
because there is no __FILE__ in Ruby code.
<whitequark>
it's expanded at the parser level.
heftig has joined #ruby-lang
<mbj>
Yeah, but we loose the information it was __FILE__ wich is perfect for ruby. Lots of tools rely on the fact __FILE__ in the code will allow them to find the source again.
franckverrot_ is now known as franckverrot
<whitequark>
and they could do it?
<mbj>
So if an unparsed code does not produce __FILE__, the code does not work anymore.
<judofyr>
but it does mean that "cat foo.rb > bar.rb" is not the same as "cat foo.rb | parse | unparse > bar.rb"
<whitequark>
judofyr: yes
<judofyr>
which may or may not be what you want
<whitequark>
yes
<mbj>
whitequark: Think about unparser should be able to round trip entire libraries, if we still get original __FILE__ unparser is broken IMHO.
<mbj>
I can special case this via inspecting source locations, but I'd love to have a dedicated node. Seems more consistend for me.
<whitequark>
mbj: the current __FILE__/__LINE__ behavior is deliberate; parser's AST explicitly conveys semantic knowledge
<whitequark>
not syntactic.
<whitequark>
and syntactic knowledge is available in the source maps, which is where it belongs
<mbj>
Okay, I'll special case this via source locations to produce __FILE__ again.
<mbj>
Thx!
<whitequark>
sure
<whitequark>
if something is broken, then it's ruby
<mbj>
hdh
<whitequark>
__dir__ is a function, for example
<mbj>
*heh*
<whitequark>
and __FILE__/__LINE__ should have been functions as well
dhruvasagar has quit [Ping timeout: 252 seconds]
<whitequark>
actually
<mbj>
jo, makes more sense!
<whitequark>
mbj: consider that more and more tools will use __dir__ from ruby 2.0
dhruvasagar has joined #ruby-lang
<mbj>
Basically I have to add this hack for all fixnum literals also
<mbj>
to detect __LINE__
<whitequark>
yeah
<whitequark>
well, that's going to kill performance :/
<whitequark>
mbj: I think I have a solution for you
<mbj>
And I have to add this hack to mutant, NOT to mutate these.
<whitequark>
I can parameterize Builder::Default so it will emit :__FILE__/:__LINE__ nodes
Domon has quit [Remote host closed the connection]
<whitequark>
as a non-default case
<mbj>
whitequark: +1
<whitequark>
open an issue
<mbj>
Yeah, will do so! This reduces lots of ugly stuff in my code.
_elia has quit [Read error: Connection reset by peer]
jstorimer has quit [Read error: Connection reset by peer]
judofyr has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
wallerdev has quit [Client Quit]
msch has joined #ruby-lang
msch has left #ruby-lang [#ruby-lang]
sush24 has quit [Quit: This computer has gone to sleep]
andrewvos has joined #ruby-lang
jxie has quit [Quit: leaving]
andrewvos has quit [Ping timeout: 248 seconds]
mradmacher has quit [Ping timeout: 248 seconds]
johnny_rugger has joined #ruby-lang
ldnunes has joined #ruby-lang
cored has joined #ruby-lang
maxmanders has joined #ruby-lang
judofyr has joined #ruby-lang
julweber has joined #ruby-lang
Oak has quit [Quit: Leaving]
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
wallerdev has joined #ruby-lang
shireesh has quit [Quit: Leaving]
zz_jinie has joined #ruby-lang
soahccc has joined #ruby-lang
krohrbaugh has joined #ruby-lang
carloslopes has joined #ruby-lang
dagobah has quit [Read error: Operation timed out]
dagobah_ has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 256 seconds]
Guest11098 has quit [*.net *.split]
Mellett68_ has quit [*.net *.split]
hackeron_ has quit [*.net *.split]
jwollert- has quit [*.net *.split]
jarib_ has quit [*.net *.split]
rebelcan has quit [*.net *.split]
wnd has quit [*.net *.split]
ruskie has quit [*.net *.split]
neurodamage has quit [*.net *.split]
maloik has quit [*.net *.split]
yibe has quit [*.net *.split]
cout has quit [*.net *.split]
Guest30040 has quit [*.net *.split]
dRbiG has quit [*.net *.split]
knu has quit [*.net *.split]
norplr_ has quit [*.net *.split]
blowmage has quit [*.net *.split]
franckverrot has quit [*.net *.split]
kuja has quit [*.net *.split]
kennyvb has quit [*.net *.split]
badeball has quit [*.net *.split]
anekos has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
stardiviner has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmande_ has joined #ruby-lang
kith has quit [*.net *.split]
swygue has quit [*.net *.split]
_dumfries has quit [*.net *.split]
rondale_1c has quit [*.net *.split]
doki_pen_ has quit [*.net *.split]
codejury has quit [*.net *.split]
t_ has quit [*.net *.split]
rikai has quit [*.net *.split]
ddd__ has quit [*.net *.split]
achiu has quit [*.net *.split]
zzak_ has quit [*.net *.split]
dominikh has quit [*.net *.split]
vgoff has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
Guu has quit [*.net *.split]
ndrst_ has quit [*.net *.split]
KillerFox has quit [*.net *.split]
a3li has quit [*.net *.split]
bryno has quit [*.net *.split]
mame3 has quit [*.net *.split]
kirin` has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
felipe has quit [*.net *.split]
bougyman has quit [*.net *.split]
go|dfish has quit [*.net *.split]
jperry has quit [*.net *.split]
babinho has quit [*.net *.split]
conceal_rs______ has quit [*.net *.split]
sluukkonen has quit [*.net *.split]
Olipro has quit [*.net *.split]
wang has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
supfoo has quit [*.net *.split]
TvL2386 has quit [Quit: Ex-Chat]
andrewvos has joined #ruby-lang
GeissT has quit [Read error: No buffer space available]
dagobah_ has quit [*.net *.split]
oddmunds has quit [*.net *.split]
relix has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
hhatch has quit [*.net *.split]
fooo has quit [*.net *.split]
FlyingLeap_ has quit [*.net *.split]
segy has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
crankharder has quit [*.net *.split]
mclee has quit [*.net *.split]
jMCg has quit [*.net *.split]
DefV_ has quit [*.net *.split]
jbsan has quit [*.net *.split]
faces has quit [*.net *.split]
ammar_ has quit [*.net *.split]
coffeeju1 has quit [*.net *.split]
vivekrai_ has quit [*.net *.split]
Rubennn_ has quit [*.net *.split]
ryotarai has quit [*.net *.split]
FiXato has quit [*.net *.split]
danrabinowitz has quit [*.net *.split]
Cope has quit [*.net *.split]
scholar01 has quit [Ping timeout: 264 seconds]
GeissT has joined #ruby-lang
Guest75382 has left #ruby-lang [#ruby-lang]
zz_jinie has quit [*.net *.split]
heftig has quit [*.net *.split]
Joni_79 has quit [*.net *.split]
stardiviner has quit [*.net *.split]
wallerdev has quit [*.net *.split]
thepumpkin has quit [*.net *.split]
toretore has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
marr has quit [*.net *.split]
jaimef has quit [*.net *.split]
kke has quit [*.net *.split]
flexd has quit [*.net *.split]
whitequark has quit [*.net *.split]
asellus has quit [*.net *.split]
khaase_ has quit [*.net *.split]
jwollert has quit [*.net *.split]
sonne has quit [*.net *.split]
xuser has quit [*.net *.split]
Guest74607 has quit [*.net *.split]
carloslopes has quit [*.net *.split]
julweber has quit [*.net *.split]
judofyr has quit [*.net *.split]
soahccc has quit [*.net *.split]
ldnunes has quit [*.net *.split]
_jpb_ has quit [*.net *.split]
kstuart has quit [*.net *.split]
swav_ has quit [*.net *.split]
poga has quit [*.net *.split]
sepp2k has quit [*.net *.split]
ffio has quit [*.net *.split]
herpless___ has quit [*.net *.split]
TheMoonMaster_ has quit [*.net *.split]
rsl has quit [*.net *.split]
nikky has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
Guedes1 has quit [*.net *.split]
lianj_ has quit [*.net *.split]
bryanl has quit [*.net *.split]
ozzloy has quit [*.net *.split]
cored has quit [*.net *.split]
setmeaway2 has quit [*.net *.split]
Cakey has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
mytrile has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
ahf has quit [*.net *.split]
retro|cz has quit [*.net *.split]
singpolyma has quit [*.net *.split]
spectra- has quit [*.net *.split]
pabs_ has quit [*.net *.split]
llakey_ has quit [*.net *.split]
matson__ has quit [*.net *.split]
hogeo_ has quit [*.net *.split]
halibut has quit [*.net *.split]
benwoody has quit [*.net *.split]
soraher has quit [*.net *.split]
TTilus has quit [*.net *.split]
skinny_much_ has quit [*.net *.split]
io_syl has quit [*.net *.split]
eban1 has quit [*.net *.split]
fbernier has quit [*.net *.split]
beak has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
solars has quit [*.net *.split]
levicole_ has quit [*.net *.split]
fess has quit [*.net *.split]
EvilAww has quit [*.net *.split]
eam has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
hachiya has quit [*.net *.split]
Kabaka has quit [*.net *.split]
scottschecter has quit [*.net *.split]
architbaweja__ has quit [*.net *.split]
dbussink has quit [*.net *.split]
tbuehlmann has quit [*.net *.split]
imajes has quit [*.net *.split]
Muz_ has quit [*.net *.split]
hakunin_ has quit [*.net *.split]
zenspider has quit [*.net *.split]
rue_XIV has quit [*.net *.split]
dumfries_ has quit [*.net *.split]
matthewd_ has quit [*.net *.split]
ged has quit [*.net *.split]
snafoo has quit [*.net *.split]
meise_ has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
jayne has quit [*.net *.split]
_ko1 has quit [*.net *.split]
Boohbah has quit [*.net *.split]
johnny_rugger has quit [*.net *.split]
matti_ has quit [*.net *.split]
vigintas has quit [*.net *.split]
kgrz has quit [*.net *.split]
yellow5 has quit [*.net *.split]
adwhit has quit [*.net *.split]
jkyle_ has quit [*.net *.split]
bcardarella has quit [*.net *.split]
r0bby has quit [*.net *.split]
drakkhen_ has quit [*.net *.split]
freedrul1 has quit [*.net *.split]
erichmenge has quit [*.net *.split]
tommyblue has quit [*.net *.split]
cyndis has quit [*.net *.split]
linc01n_ has quit [*.net *.split]
duckinatorr has quit [*.net *.split]
shtirlic has quit [*.net *.split]
injekt has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
shinh has quit [*.net *.split]
thang has quit [*.net *.split]
jtoy has quit [*.net *.split]
wycats_ has quit [*.net *.split]
znouza has quit [*.net *.split]
mihar has quit [*.net *.split]
pcboy__ has quit [*.net *.split]
ironcamel has quit [*.net *.split]
corundum has quit [*.net *.split]
nirix has quit [*.net *.split]
andrewvos has quit [*.net *.split]
GeissT has quit [*.net *.split]
dvorak has quit [*.net *.split]
mbj has quit [*.net *.split]
tejas has quit [*.net *.split]
gnufied has quit [*.net *.split]
randym_ has quit [*.net *.split]
wudofyr___ has quit [*.net *.split]
Kero has quit [*.net *.split]
ruurd has quit [*.net *.split]
Voker57 has quit [*.net *.split]
UziMonkey___ has quit [*.net *.split]
pbjorklund has quit [*.net *.split]
tylersmi_ has quit [*.net *.split]
canton7 has quit [*.net *.split]
Xzyx987X_ has quit [*.net *.split]
x0f has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
apeiros has quit [*.net *.split]
rtl_ has quit [*.net *.split]
tdy_ has quit [*.net *.split]
perry has quit [*.net *.split]
jds_ has quit [*.net *.split]
isomorph1smes has quit [*.net *.split]
Bwild has quit [*.net *.split]
fallenhi1okiri has quit [*.net *.split]
machuga- has quit [*.net *.split]
malev has quit [*.net *.split]
Asher has quit [*.net *.split]
Karql_ has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
weeb1e has quit [*.net *.split]
drbrain has quit [*.net *.split]
MouseTheLuckyDog has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
dLog_ has quit [*.net *.split]
kvs has quit [*.net *.split]
brownies has quit [*.net *.split]
xsdg has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
akahn has quit [*.net *.split]
Caius has quit [*.net *.split]
nick_h has quit [*.net *.split]
mfn has quit [*.net *.split]
braidn_ has quit [*.net *.split]
dabradley has quit [*.net *.split]
thebobalu has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
madveru has quit [*.net *.split]
ericwood_ has quit [*.net *.split]
nazty has quit [*.net *.split]
Iskarlar has quit [*.net *.split]
s0ber has quit [*.net *.split]
Cremno has quit [*.net *.split]
vbatts has quit [*.net *.split]
amateurhuman has quit [*.net *.split]
eval-in_ has quit [*.net *.split]
slightair has quit [*.net *.split]
tonni has quit [*.net *.split]
brixen has quit [*.net *.split]
foca has quit [*.net *.split]
spinky has quit [*.net *.split]
matled has quit [*.net *.split]
DEac-_ has quit [*.net *.split]
ohsix has quit [*.net *.split]
erikh has quit [*.net *.split]
Guest85414__ has quit [*.net *.split]
mbr has quit [*.net *.split]
mahlon has quit [*.net *.split]
nrk has quit [*.net *.split]
benlovell has quit [*.net *.split]
Squarepy has quit [*.net *.split]
mislav has quit [*.net *.split]
joschi has quit [*.net *.split]
pipework has quit [*.net *.split]
t0h has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
dc5ala has quit [*.net *.split]
hagabaka has quit [*.net *.split]
naquad has quit [*.net *.split]
[dmp] has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
ebouchut has quit [*.net *.split]
gix has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
ryez has quit [*.net *.split]
xxaM has quit [*.net *.split]
closer has quit [*.net *.split]
chendo has quit [*.net *.split]
ddfreyne has joined #ruby-lang
sonne has joined #ruby-lang
khaase_ has joined #ruby-lang
jwollert has joined #ruby-lang
kke has joined #ruby-lang
pabs_ has joined #ruby-lang
benlovell has joined #ruby-lang
hachiya has joined #ruby-lang
spectra- has joined #ruby-lang
[dmp] has joined #ruby-lang
fess has joined #ruby-lang
soraher has joined #ruby-lang
PaulePanter has joined #ruby-lang
mytrile has joined #ruby-lang
benwoody has joined #ruby-lang
maxmanders has joined #ruby-lang
FiXato has joined #ruby-lang
jtoy has joined #ruby-lang
spike|spiegel has joined #ruby-lang
davidbalber|away has joined #ruby-lang
Guest37668 has joined #ruby-lang
ahf has joined #ruby-lang
Squarepy has joined #ruby-lang
t0h has joined #ruby-lang
snafoo has joined #ruby-lang
freedrul1 has joined #ruby-lang
solars has joined #ruby-lang
matson__ has joined #ruby-lang
bcardarella has joined #ruby-lang
tkuchiki has joined #ruby-lang
asellus has joined #ruby-lang
zenspider has joined #ruby-lang
setmeaway2 has joined #ruby-lang
shaman42_ has joined #ruby-lang
drakkhen_ has joined #ruby-lang
whitequark has joined #ruby-lang
jayne has joined #ruby-lang
io_syl has joined #ruby-lang
erichmenge has joined #ruby-lang
_jpb__ has joined #ruby-lang
zz_jinie has joined #ruby-lang
r0bby has joined #ruby-lang
eam has joined #ruby-lang
tbuehlmann has joined #ruby-lang
GeissT has joined #ruby-lang
eban1 has joined #ruby-lang
cyndis has joined #ruby-lang
Muz_ has joined #ruby-lang
dumfries_ has joined #ruby-lang
stardiviner has joined #ruby-lang
adwhit has joined #ruby-lang
wudofyr___ has joined #ruby-lang
Guest20084 has joined #ruby-lang
joschi has joined #ruby-lang
halibut has joined #ruby-lang
randym_ has joined #ruby-lang
matti_ has joined #ruby-lang
dc5ala has joined #ruby-lang
Voker57 has joined #ruby-lang
ebouchut has joined #ruby-lang
nirix has joined #ruby-lang
dbussink has joined #ruby-lang
pcboy__ has joined #ruby-lang
hogeo_ has joined #ruby-lang
meise_ has joined #ruby-lang
thang has joined #ruby-lang
Cakey has joined #ruby-lang
jkyle_ has joined #ruby-lang
johnny_rugger has joined #ruby-lang
Guest43908 has joined #ruby-lang
hagabaka has joined #ruby-lang
oddmunds has joined #ruby-lang
shinh has joined #ruby-lang
faces has joined #ruby-lang
ironcamel has joined #ruby-lang
ammar_ has joined #ruby-lang
norplr_ has joined #ruby-lang
mislav has joined #ruby-lang
gix has joined #ruby-lang
hakunin_ has joined #ruby-lang
yxhuvud has joined #ruby-lang
knu has joined #ruby-lang
jMCg has joined #ruby-lang
marr has joined #ruby-lang
andrewvos has joined #ruby-lang
Guest92337 has joined #ruby-lang
vigintas has joined #ruby-lang
krames has joined #ruby-lang
fooo has joined #ruby-lang
injekt has joined #ruby-lang
mihar has joined #ruby-lang
toretore has joined #ruby-lang
pskosinski has joined #ruby-lang
danrabinowitz has joined #ruby-lang
UziMonkey___ has joined #ruby-lang
mclee has joined #ruby-lang
franckverrot has joined #ruby-lang
yeltzooo has joined #ruby-lang
beak has joined #ruby-lang
hhatch has joined #ruby-lang
kennyvb has joined #ruby-lang
Joni_79 has joined #ruby-lang
wycats_ has joined #ruby-lang
mbj has joined #ruby-lang
FlyingLeap_ has joined #ruby-lang
vivekrai_ has joined #ruby-lang
ryotarai has joined #ruby-lang
tommyblue has joined #ruby-lang
_ko1 has joined #ruby-lang
Guest47970 has joined #ruby-lang
anekos has joined #ruby-lang
scottschecter has joined #ruby-lang
badeball has joined #ruby-lang
DefV_ has joined #ruby-lang
yellow5 has joined #ruby-lang
duckinatorr has joined #ruby-lang
skinny_much_ has joined #ruby-lang
blowmage has joined #ruby-lang
jbsan has joined #ruby-lang
bgant has joined #ruby-lang
Guest30040 has joined #ruby-lang
yorickpeterse has joined #ruby-lang
crankharder has joined #ruby-lang
relix has joined #ruby-lang
dagobah_ has joined #ruby-lang
Kabaka has joined #ruby-lang
TTilus has joined #ruby-lang
segy has joined #ruby-lang
kgrz has joined #ruby-lang
linc01n_ has joined #ruby-lang
kuja has joined #ruby-lang
xuser has joined #ruby-lang
wallerdev has joined #ruby-lang
znouza has joined #ruby-lang
dvorak has joined #ruby-lang
fbernier has joined #ruby-lang
dRbiG has joined #ruby-lang
shtirlic has joined #ruby-lang
coffeeju1 has joined #ruby-lang
Cope has joined #ruby-lang
levicole_ has joined #ruby-lang
Rubennn_ has joined #ruby-lang
EvilAww has joined #ruby-lang
singpolyma has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
matthewd_ has joined #ruby-lang
cored has joined #ruby-lang
Guest17887 has joined #ruby-lang
Guest74607 has joined #ruby-lang
llakey_ has joined #ruby-lang
tejas has joined #ruby-lang
corundum has joined #ruby-lang
gnufied has joined #ruby-lang
thepumpkin has joined #ruby-lang
jsaak_ has joined #ruby-lang
rue_XIV has joined #ruby-lang
jstorimer has joined #ruby-lang
architbaweja__ has joined #ruby-lang
imajes has joined #ruby-lang
neurodamage has joined #ruby-lang
rebelcan has joined #ruby-lang
Mellett68_ has joined #ruby-lang
maloik has joined #ruby-lang
wnd has joined #ruby-lang
supfoo has joined #ruby-lang
go|dfish has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
kith has joined #ruby-lang
_dumfries has joined #ruby-lang
yibe has joined #ruby-lang
ruskie has joined #ruby-lang
rondale_1c has joined #ruby-lang
bryno has joined #ruby-lang
jperry has joined #ruby-lang
Guest82751 has joined #ruby-lang
jmeeuwen has joined #ruby-lang
cout has joined #ruby-lang
zzak_ has joined #ruby-lang
Guu has joined #ruby-lang
codejury has joined #ruby-lang
jwollert- has joined #ruby-lang
ddd__ has joined #ruby-lang
sluukkonen has joined #ruby-lang
jarib_ has joined #ruby-lang
gianlucadv has joined #ruby-lang
achiu has joined #ruby-lang
vgoff has joined #ruby-lang
swygue has joined #ruby-lang
rikai has joined #ruby-lang
ndrst_ has joined #ruby-lang
KillerFox has joined #ruby-lang
t_ has joined #ruby-lang
conceal_rs______ has joined #ruby-lang
babinho has joined #ruby-lang
Guest15579 has joined #ruby-lang
doki_pen_ has joined #ruby-lang
Guest75672 has joined #ruby-lang
dominikh has joined #ruby-lang
mame3 has joined #ruby-lang
threedaymonk has joined #ruby-lang
hackeron_ has joined #ruby-lang
a3li has joined #ruby-lang
Guest11098 has joined #ruby-lang
cschneid has quit [Max SendQ exceeded]
naquad has joined #ruby-lang
andrewvos is now known as 45PAAYTQ9
andrewvos has joined #ruby-lang
Pupeno has joined #ruby-lang
tomzx_mac has joined #ruby-lang
sush24 has joined #ruby-lang
kirin` has joined #ruby-lang
swav_ has joined #ruby-lang
herpless___ has joined #ruby-lang
lianj_ has joined #ruby-lang
Kuukunen- has joined #ruby-lang
TheMoonMaster_ has joined #ruby-lang
sepp2k has joined #ruby-lang
bryanl has joined #ruby-lang
kstuart has joined #ruby-lang
snk has joined #ruby-lang
rsl has joined #ruby-lang
soahccc has joined #ruby-lang
judofyr has joined #ruby-lang
carloslopes has joined #ruby-lang
ldnunes has joined #ruby-lang
nikky has joined #ruby-lang
poga has joined #ruby-lang
Guedes1 has joined #ruby-lang
ozzloy has joined #ruby-lang
Olipro has joined #ruby-lang
vbatts has joined #ruby-lang
Iskarlar has joined #ruby-lang
amateurhuman has joined #ruby-lang
braidn_ has joined #ruby-lang
dabradley has joined #ruby-lang
erikh has joined #ruby-lang
nrk has joined #ruby-lang
Cremno has joined #ruby-lang
kevinfagan has joined #ruby-lang
nazty has joined #ruby-lang
foca has joined #ruby-lang
mbr has joined #ruby-lang
ericwood_ has joined #ruby-lang
spinky has joined #ruby-lang
DEac-_ has joined #ruby-lang
slightair has joined #ruby-lang
Guest85414__ has joined #ruby-lang
s0ber has joined #ruby-lang
eval-in_ has joined #ruby-lang
madveru has joined #ruby-lang
tonni has joined #ruby-lang
matled has joined #ruby-lang
mahlon has joined #ruby-lang
ohsix has joined #ruby-lang
thebobalu has joined #ruby-lang
brixen has joined #ruby-lang
ryez has joined #ruby-lang
45PAAYTQ9 has quit [Write error: Connection reset by peer]
kstuart has quit [Remote host closed the connection]
kirin` has quit [Max SendQ exceeded]
mitchty has quit [Ping timeout: 260 seconds]
Olipro has quit [Max SendQ exceeded]
snk is now known as Guest2348
jaimef has joined #ruby-lang
xxaM has joined #ruby-lang
chendo has joined #ruby-lang
closer has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
mitchty has joined #ruby-lang
Pupeno_ has joined #ruby-lang
Olipro has joined #ruby-lang
w00x has joined #ruby-lang
cschneid has joined #ruby-lang
jstorimer has joined #ruby-lang
ffio_ has joined #ruby-lang
pkuyken_ has joined #ruby-lang
kirin` has joined #ruby-lang
jvrmaia has joined #ruby-lang
nyuszika7h has joined #ruby-lang
Pupeno has quit [Ping timeout: 264 seconds]
eban1 has quit [Quit: WeeChat 0.4.0]
eban has joined #ruby-lang
wmoxam has joined #ruby-lang
pbjorklund has joined #ruby-lang
GarethAdams has joined #ruby-lang
canton7 has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
tylersmi_ has joined #ruby-lang
Karql_ has joined #ruby-lang
xsdg has joined #ruby-lang
akahn has joined #ruby-lang
Asher has joined #ruby-lang
tdy_ has joined #ruby-lang
nick_h has joined #ruby-lang
mfn has joined #ruby-lang
drbrain has joined #ruby-lang
fallenhi1okiri has joined #ruby-lang
Caius has joined #ruby-lang
malev has joined #ruby-lang
EvilJStoker has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
dLog_ has joined #ruby-lang
weeb1e has joined #ruby-lang
Bwild has joined #ruby-lang
jds_ has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
brownies has joined #ruby-lang
machuga- has joined #ruby-lang
rtl_ has joined #ruby-lang
perry has joined #ruby-lang
isomorph1smes has joined #ruby-lang
x0f has joined #ruby-lang
wasnotrice has joined #ruby-lang
apeiros has joined #ruby-lang
samuelkadolph has joined #ruby-lang
kvs has joined #ruby-lang
pkuyken_ is now known as pkuyken
Guest20084 is now known as Kero
kstuart has joined #ruby-lang
jbsan has quit [Read error: Connection reset by peer]
jbsan has joined #ruby-lang
krohrbaugh has joined #ruby-lang
Guest2348 has quit [Quit: I accidentally the whole program.]
kstuart has quit [Ping timeout: 264 seconds]
jstorimer has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 256 seconds]
tomzx_mac has quit [Ping timeout: 264 seconds]
krohrbaugh has quit [Ping timeout: 268 seconds]
maxmanders has joined #ruby-lang
skade has joined #ruby-lang
intellitech has joined #ruby-lang
Guest17887 has quit [Ping timeout: 256 seconds]
krohrbaugh has joined #ruby-lang
kstuart has joined #ruby-lang
vlad_starkov has joined #ruby-lang
malev has quit [Remote host closed the connection]
benlovell has quit [Quit: leaving]
benlovell has joined #ruby-lang
jstorimer has joined #ruby-lang
zz_jinie is now known as jinie
vlad_starkov has quit [Ping timeout: 256 seconds]
Guest82751 has left #ruby-lang [#ruby-lang]
tejas has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby-lang
io_syl has quit [Quit: io_syl]
kgrz has quit [Remote host closed the connection]
swygue has quit [Ping timeout: 248 seconds]
thepumpkin has quit [Remote host closed the connection]
FlyingLeap_ has left #ruby-lang [#ruby-lang]
FlyingLeap has joined #ruby-lang
felipe has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 276 seconds]
pipework has joined #ruby-lang
benlovell has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby-lang
gix has quit [Read error: Connection reset by peer]
gix has joined #ruby-lang
rippa has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
cored has joined #ruby-lang
Gaelan has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
recolor has joined #ruby-lang
pkuyken_ has joined #ruby-lang
poga has quit [Remote host closed the connection]
pkuyken has quit [Ping timeout: 276 seconds]
dvorak has quit [Ping timeout: 276 seconds]
mbj has quit [Ping timeout: 276 seconds]
pkuyken_ is now known as pkuyken
mbj has joined #ruby-lang
pskosinski_ has joined #ruby-lang
Guest47970 has quit [Ping timeout: 276 seconds]
Voker57 has quit [Ping timeout: 276 seconds]
Kero has quit [Ping timeout: 276 seconds]
Kero_ has joined #ruby-lang
pskosinski has quit [Ping timeout: 240 seconds]
Voker57 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
dvorak has joined #ruby-lang
benlovel1 has joined #ruby-lang
gnufied1 has joined #ruby-lang
snk has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
randym_ has quit [Ping timeout: 276 seconds]
benlovell has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 276 seconds]
wudofyr___ has quit [Ping timeout: 276 seconds]
benlovel1 has quit [Client Quit]
kstuart has quit [Remote host closed the connection]
pskosinski_ is now known as pskosinski
lianj_ has quit [Changing host]
lianj_ has joined #ruby-lang
lianj_ is now known as lianj
benlovell has joined #ruby-lang
matti_ has quit [Quit: Reconnecting]
andrewvos has quit [Quit: Reconnecting]
matti has joined #ruby-lang
matti has quit [Changing host]
matti has joined #ruby-lang
andrewvos has joined #ruby-lang
<andrewvos>
Why aren't there precompiled rubies for osx?
<andrewvos>
Whoops
tkuchiki has quit [Remote host closed the connection]
hogeo_ has quit [Remote host closed the connection]
<yorickpeterse>
Because OS X is not a real OS
<andrewvos>
Pretty sure it is
* andrewvos
checks
<andrewvos>
Yeah. Yeah it is.
<lianj>
we like to think its not
kstuart has joined #ruby-lang
wudofyr___ has joined #ruby-lang
GeissT has quit [Quit: MillBroChat AdIRC User]
<andrewvos>
Can I join your elite group?
vlad_starkov has quit [Remote host closed the connection]
<lianj>
#lunix
<andrewvos>
Thanks
<andrewvos>
Hey is anyone here using OSX?
<lianj>
pretty sure many ruby guys use osx
<lianj>
for a development machine using rbenv or rvm is better anyway. if you want to test against multiple versions or easily install new version along with old ones
<andrewvos>
chruby is the the best actually
<andrewvos>
it is the new religion in ruby version managers
<andrewvos>
But why not just install a precompiled package?
<yorickpeterse>
OS X is not an OS. It's a collection of random perverted BSD-like utilities controlled by empty promises and false wishes
<andrewvos>
Is it not possible?
<yorickpeterse>
also chruby is pretty cool
<andrewvos>
yorickpeterse: That is not even close to an answer
<yorickpeterse>
andrewvos: it wasn't meant as one
johnny_rugger has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<andrewvos>
All operating systems are shit. OSX is just less shit
<yorickpeterse>
haha. no
<andrewvos>
Anyway, is it not possible for ruby-build to install precompiled rubies?
<cout>
OSX isn't shit. it's crap.
<andrewvos>
Compiled specifically for OSX version
<yorickpeterse>
No, it compiles them for you always
<yorickpeterse>
ruby-install can't do this either
<andrewvos>
I mean, with some code modifications
<yorickpeterse>
I think only RVM does it, not sure if it deals with OS X
<yorickpeterse>
also, what's wrong with compiling it manually? It doesn't take that long
<andrewvos>
it bloody does
<andrewvos>
What's wrong with Rails taking so long to launch? *runs single unit test taking 30 seconds*
<yorickpeterse>
do you re-compile Ruby 10 times a day?
<andrewvos>
Yeah, don't you?
<yorickpeterse>
Honestly you only need to do it 5 times at most if you want all of the commonly used ones
<yorickpeterse>
maybe if you had a real OS it wouldn't take so long :>
<andrewvos>
Your face is a real OS
<yorickpeterse>
It's turing complete
apeiros has joined #ruby-lang
Cakey has joined #ruby-lang
jxie has joined #ruby-lang
johnny_rugger has joined #ruby-lang
lguardiola has joined #ruby-lang
runeb has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
<soahccc>
Hey guys... I have a sh-wrapper around my ruby script which itself have a direct begin/rescue block for Interrupt exceptions... Interrupting in the startup however will show the pretty large stackstrace... Is there any way to trap this?
tbuehlmann has quit [Ping timeout: 245 seconds]
dc5ala has quit [Quit: Ex-Chat]
<apeiros>
BEGIN { trap("INT") { … } }
<apeiros>
might help
runeb has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
<soahccc>
apeiros: my wrapper for the exception works but it happens here: 1.9.3-p327-perf/lib/ruby/1.9.1/rubygems/version.rb:279:in `scan': Interrupt
mytrile has quit [Remote host closed the connection]
<yorickpeterse>
whitequark: if racc is needed during runtime we should add it as a regular dependency
jacknagel has joined #ruby-lang
mbj has quit [Ping timeout: 248 seconds]
<yorickpeterse>
whitequark: rbx comes with 1.4.5
symm- has joined #ruby-lang
CaptainJet has joined #ruby-lang
randallagordon has joined #ruby-lang
saarinen has joined #ruby-lang
mislav_ has quit [Ping timeout: 268 seconds]
randallagordon has left #ruby-lang [#ruby-lang]
<whitequark>
yorickpeterse: yes/no
<whitequark>
racc runtime is in stdlib
<whitequark>
(and we can theoretically ship a pure-ruby version of racc)
<whitequark>
though, if rbx ships an obsolete racc that's an rbx bug and I'm not changing it in parser
jinie is now known as zz_jinie
<yorickpeterse>
well the racc runtime in stdlib is then borken apparently, and I'd like for this to work without having to wait months/years for people to use working releases
skade has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
<whitequark>
please, open an rbx issue
<whitequark>
and if someone reports this on parser I'll consider workarounds
skade has joined #ruby-lang
<whitequark>
rbx randomly explodes while running parser anyway
* whitequark
shrugs
<yorickpeterse>
jruby fails too
<headius>
fails at what exactly?
<headius>
we ship a stock racc from MRI atm
<yorickpeterse>
parser for whatever reason needs racc during runtime, I'd say it's more than reasonable to in that case require a version that works
<whitequark>
yorickpeterse: racc has two parts: compile-time and runtime
<whitequark>
runtime comes in two flavors: implemented in C and implemented in Ruby
<whitequark>
racc runtime is in ruby stdlib, and I think it's quite recent
<whitequark>
at least parser CI doesn't explode on any of the examples
<whitequark>
if, for same runtime version included in stdlib for mri and jruby/rbx mri works, and jruby/rbx explodes, that is either a racc bug, or, more likely, jruby/rbx bug, and should be fixed in their particular projects
<whitequark>
can you show me a stacktrace?
<yorickpeterse>
the runtime breaks, and I did earlier
<whitequark>
oh, that bug
<headius>
we'd of course be happy to fix whatever's broken in JRuby, if it is indeed JRuby
vlad_starkov has quit [Ping timeout: 264 seconds]
<whitequark>
headius: I'm not even sure how to make a minimal reproducible case for it, as for now...
<headius>
do we hang as well, or fail in some other way?
thebobalu has joined #ruby-lang
mislav has joined #ruby-lang
<whitequark>
headius: I guess jruby uses the pure-ruby version of racc runtime?
<whitequark>
Cexts are disabled by default and I somehow doubt you reimplemented the whole runtime part in Java
<yorickpeterse>
run that on != MRI without the racc gem installed
<yorickpeterse>
install racc 1.4.9 and it works fine
bgant has left #ruby-lang [#ruby-lang]
bgant has joined #ruby-lang
<yorickpeterse>
man this Friday is pretty good so far
<headius>
interesting
<headius>
does racc gem install the native ext?
<yorickpeterse>
let me try
<headius>
heh, there's a racc-1.4.9-java gem
<whitequark>
it doesn't have a native version
<whitequark>
it has the cext disabled.
<yorickpeterse>
headius: yeah, seems to install that one
<headius>
whitequark: yeah
<whitequark>
it used to fail to compile on jruby, so I asked tenderlove to disable it
vlad_starkov has quit [Remote host closed the connection]
<yorickpeterse>
"OpenJDK 64-Bit Server VM warning: You have loaded library /...." what the shit
<headius>
depends on what the .... is :-)
<yorickpeterse>
brace yourselves:
<yorickpeterse>
OpenJDK 64-Bit Server VM warning: You have loaded library /home/yorickpeterse/.rubies/jruby-1.7.4/lib/native/arm-Linux/libjffi-1.2.so which might have disabled stack guard. The VM will try to fix the stack guard now.
<yorickpeterse>
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
<yorickpeterse>
"arm-linux" <- I'm...what
<headius>
oh, you're getting that too? wtf
<headius>
yeah something's borked in jffi or platform detection...couple other folks on linux have reported that too
<yorickpeterse>
ah
<whitequark>
headius: confirmed
<headius>
sigh
<whitequark>
it actually hangs
<headius>
whitequark: so pure-ruby rake 1.4.9 still hangs
<headius>
racc
<whitequark>
headius: jruby-provided racc hangs
jstorimer has quit [Remote host closed the connection]
<whitequark>
and gem racc also hangs.
<headius>
1.9.3 racc appears to be 1.4.6, so not far off
<headius>
so there's a bug in the pure ruby racc in general that has not been fixed in any version
<headius>
if someone wants to run the hanging code in JRuby with -X+C and get a stack dump, we can see a bit more
<headius>
and probably move that part of this discussion to #jruby :-)
<yorickpeterse>
sec
skade has joined #ruby-lang
jstorimer has joined #ruby-lang
zmike has quit [Ping timeout: 268 seconds]
maxmanders has joined #ruby-lang
isomorph1smes is now known as isomorphismes
vlad_starkov has joined #ruby-lang
Tunechi has joined #ruby-lang
jstorime_ has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
jstorimer has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
jmeeuwen has quit [Ping timeout: 248 seconds]
ruby-lang030 has joined #ruby-lang
hhatch has quit [Read error: Operation timed out]
thepumpkin has joined #ruby-lang
Karql_ has quit [Ping timeout: 240 seconds]
teleological has joined #ruby-lang
ruby-lang030 has quit [Ping timeout: 250 seconds]
Karql has joined #ruby-lang
bgant has quit [Quit: Leaving.]
TheMoonMaster_ is now known as TheMoonMaster
pipework has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
pipework has joined #ruby-lang
_jpb__ has quit [Ping timeout: 248 seconds]
skade has quit [Quit: Computer has gone to sleep.]
jmeeuwen has joined #ruby-lang
_jpb_ has joined #ruby-lang
teleological has quit [Remote host closed the connection]
Mellett68_ has quit [Remote host closed the connection]
Mellett68 has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
<whitequark>
yorickpeterse: ok
<yorickpeterse>
re: hmmm
Karql has quit [Ping timeout: 256 seconds]
wmoxam has quit [Ping timeout: 248 seconds]
<yorickpeterse>
fuckit, vidya for now
<whitequark>
what?
thepumpkin has quit [Remote host closed the connection]
breakingthings has quit [Quit: breakingthings]
teleological has joined #ruby-lang
<yorickpeterse>
I'm going to play video games for now, can't be bothered coding
oddmunds has quit [Read error: Operation timed out]
ammar_ has quit [Read error: Operation timed out]
<yorickpeterse>
plus my cat is claiming the entire couch anyway
Rubennn_ has quit [Read error: Operation timed out]
<yorickpeterse>
"HHHMMM YESS THIS LOOKS LIKE A GOOD SPOOT FOR MY ASS"
<whitequark>
ok
<yorickpeterse>
* spot
<yorickpeterse>
damn it
FlyingLeap has quit [Read error: Operation timed out]