<whitequark>
dominikh: you do understand that ifs-whiles-etc are directly equivalent to goto?
<charliesome>
whitequark: ruby has tail calls, does that count?
<whitequark>
there's an algorithm to translate between both
<whitequark>
charliesome: no, it's more restricted than goto
<charliesome>
how so?
<dominikh>
whitequark: your point being that your shocked expression was unjustified because they're equivalent?
<dominikh>
whitequark: and yes, I'm not a moron.
<whitequark>
dominikh: nevermind
<whitequark>
not going to have a flamewar :)
<dominikh>
if your arguments would only be good enough for a flamewar, yeah, I wouldn't bother ;)
rwk1 has quit [Remote host closed the connection]
<whitequark>
>Pushed 90 commits to evilmartians/foundry Aug 18 - Aug 24
<whitequark>
charliesome: hm, now that I think about it, it may count, sort of
<whitequark>
tail calls when you also have return allow you to jump from any place
<charliesome>
whitequark: i'm gonna go out and say that you can restructure any code using goto into a collection of functions that tail call each other
<charliesome>
prove me wrong
<whitequark>
charliesome: no, you are right, but you would *also* need to first expand any loops/conditionals into goto's.
<charliesome>
sure
<whitequark>
well, that was my original objection
<whitequark>
of course code with just tail calls is equivalent to goto's, it's how cps works after all :)
<whitequark>
I wonder if it's possible to keep some of structured control flow if you have `return'
<whitequark>
perhaps all, and you'd need a tree of closures then?
<charliesome>
return is simple
<whitequark>
oh. no, that won't work.
<charliesome>
just do what 1.8 did and throw an exception
<whitequark>
1.9 does this too for blocks
<charliesome>
yeah
<charliesome>
i wonder if there's even a way around that
<whitequark>
no
<whitequark>
it
<charliesome>
actually
<whitequark>
it's a longjmp, essentially
<charliesome>
yeah
<charliesome>
imagine you have some code
<charliesome>
that calls a method, passes a block
<charliesome>
the block returns
<charliesome>
the method it called is written in C
<whitequark>
did you know longjmp in C++ unwinds stack and frees shit allocated on it?
barttenbrinke has quit [Ping timeout: 276 seconds]
<darix>
ddfreyne: also ~> 4.0.0 not matching 4.0.0.a1 is correct imho :)
jwoods1 has joined #ruby-lang
jwoods has quit [Read error: Connection reset by peer]
jwoods1 has quit [Client Quit]
<darix>
ddfreyne: how about using ~> 4.0.0.a0
hashkey has joined #ruby-lang
rwk1 has joined #ruby-lang
<ddfreyne>
Yeah, that seems OK
rwk1 has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Remote host closed the connection]
heftig has joined #ruby-lang
esad has joined #ruby-lang
vlad_starkov has joined #ruby-lang
siberia has joined #ruby-lang
_Bravado_ has joined #ruby-lang
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
amerine has joined #ruby-lang
danielfriedman has joined #ruby-lang
leekiern_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danielfriedman has quit [Remote host closed the connection]
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 245 seconds]
capnmalarkey has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
capnmalarkey has quit [Remote host closed the connection]
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
barttenbrinke has joined #ruby-lang
ebouchut has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
barttenbrinke has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby-lang
rikai has joined #ruby-lang
poga has quit [Remote host closed the connection]
esad has joined #ruby-lang
mistym has joined #ruby-lang
volty has joined #ruby-lang
Ch00k has joined #ruby-lang
<volty>
hi, can you suggest me how to format ruby source files in a format suitable to be converted for an e-reader?
dhruvasagar has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby-lang
ffio has joined #ruby-lang
volty has quit [Quit: Konversation terminated!]
pskosinski has joined #ruby-lang
pskosinski has quit [Remote host closed the connection]
Ericx2x has joined #ruby-lang
pskosinski has joined #ruby-lang
naturtrunken has joined #ruby-lang
pskosinski has quit [Client Quit]
pskosinski has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
ebouchut has quit [Quit: This computer has gone to sleep]
poga has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
mmorga has joined #ruby-lang
mmorga has quit [Remote host closed the connection]
atphalix has joined #ruby-lang
esad has joined #ruby-lang
barttenbrinke has joined #ruby-lang
tommylommykins has quit [Remote host closed the connection]
barttenbrinke has quit [Ping timeout: 246 seconds]
eeezkil has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
cirenyc has quit [Quit: Leaving...]
duggiefresh_ has joined #ruby-lang
flak has joined #ruby-lang
flak is now known as Guest80565
rippa has quit [Ping timeout: 248 seconds]
maxmanders has joined #ruby-lang
eeezkil has quit [Quit: Leaving.]
duggiefresh__ has joined #ruby-lang
naturtrunken has quit [Ping timeout: 264 seconds]
duggiefresh_ has quit [Ping timeout: 245 seconds]
tommylommykins has joined #ruby-lang
atphalix has quit [Quit: ChatZilla 0.9.90.1 [Iceweasel 17.0.8/20130807010024]]
naturtrunken has joined #ruby-lang
jxie has joined #ruby-lang
joshuawscott has joined #ruby-lang
benanne has quit [Read error: Connection reset by peer]
sedrickcz has joined #ruby-lang
Guest80565 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
saarinen has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
cads has quit [Ping timeout: 246 seconds]
tomzx_mac has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 264 seconds]
naturtrunken has quit [Quit: naturtrunken]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
duggiefresh__ has quit [Quit: duggiefresh__]
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
esad has joined #ruby-lang
relix has joined #ruby-lang
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
saarinen has quit [Client Quit]
wallerdev has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siberia has quit [Quit: siberia]
relix has joined #ruby-lang
benanne has joined #ruby-lang
<imperator>
i guess volty left, but i would think just converting them to pdf format would work
Banistergalaxy has joined #ruby-lang
<drbrain>
~> 4.0.0.a0 is >= 4.0.0.a0, < 4.0.0.b
<drbrain>
ddfreyne: ↑
<erikh>
hello
<ljarvis>
drbrain is too posh for a caret
<erikh>
heh.
<drbrain>
☺
<erikh>
I just imagine him
<erikh>
when he gets a new laptop
<erikh>
spending hours plugging the text replacements in
<ljarvis>
:D
sedrickcz has quit [Remote host closed the connection]
<drbrain>
I only have 18 extra
<ddfreyne>
drbrain: thanks! ♥
<erikh>
only
<erikh>
heh
<ddfreyne>
I have key bindings for a bunch of stuff. ↑↑↓↓←→←→BA
<ljarvis>
:/
<ddfreyne>
∀∃
esad has quit [Quit: Computer has gone to sleep.]
<apeiros>
ZOMG! why nothing happened?
wrseward has joined #ruby-lang
<ddfreyne>
"Medium invites you to write"
<erikh>
heh
<ddfreyne>
I can be one of those hipster kids now, yo
<erikh>
I will never be a cool kid
<ddfreyne>
Coolness level: medium
<erikh>
heh
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
ffio has quit [Ping timeout: 245 seconds]
ffio_ has joined #ruby-lang
ericwood has left #ruby-lang [#ruby-lang]
ericwood has joined #ruby-lang
ffio_ has quit [Client Quit]
ericwood has left #ruby-lang [#ruby-lang]
ericwood has joined #ruby-lang
esad has joined #ruby-lang
<ericwood>
asdf
<ddfreyne>
adsf is nicer
<ddfreyne>
But I wrote it so I am biased.
<ljarvis>
ddfreyne: it's a pretty nice writing interface
<ddfreyne>
Mybe I should steal the idea and let it usen anoc
<ljarvis>
heh
<ddfreyne>
Maybe I should steal the idea and let it use nanoc
Ch00k has quit [Quit: Ch00k]
saarinen has joined #ruby-lang
ohsix has quit [Read error: Operation timed out]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachlatta has quit [Ping timeout: 248 seconds]
imperator has quit [Quit: Valete!]
jsulliva_ has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
siberia has joined #ruby-lang
ssb123 has joined #ruby-lang
sedrickcz has joined #ruby-lang
saarinen has quit [Quit: saarinen]
_jpb_ has joined #ruby-lang
sedrickcz has quit [Ping timeout: 264 seconds]
relix has joined #ruby-lang
ridders24 has joined #ruby-lang
relix has quit [Client Quit]
hahuang65 has quit [Ping timeout: 245 seconds]
ohsix has joined #ruby-lang
leekiern_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
<ridders24>
hi guys, im trying to gsub the following: {"type"=>"Point", "coordinates"=>[-0.13717867, 51.50796523]}, ive used (/[^0-9.,]/, ""), however it leaves a comma at the beggining which i need to remove. I also need to swap the long and lat values around, how do I do this?
<lianj>
JSON.load(string)
<lianj>
eh .parse
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
<ridders24>
thats already from a parsed result
<ridders24>
thats whats returned
_jpb_ has quit [Ping timeout: 276 seconds]
joshuawscott has quit [Quit: Leaving.]
havenwood has quit [Remote host closed the connection]
<erikh>
parse it with the json lib again?
<erikh>
I guess I'm missing something. are you writing a json parser?
ssb123 has quit [Ping timeout: 245 seconds]
<erikh>
can you show us a more formal example in a gist?
<ridders24>
nope, just trying to get the long and lat value from that I pasted above, I'll have another go at parsing it again
<matti>
Anyone knows how to add documentation to an attribute in ext with RDoc?
<lianj>
anyhow im sure he is getting a hash back and just thinks its a string because irb or puts showed him that output
<erikh>
matti: :attr:
<erikh>
lianj: probably true
<matti>
erikh: Despite :nodoc: is still picks them up.
<erikh>
anyhow, I should not be here and should be working
mbj has joined #ruby-lang
<Mon_Ouie>
I'd think that but, he says he's calling #gsub on it and that it "leaves a comma at the beginning", not that it "crashes in a horrible way because of a NoMethodError"