ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
justinseiter has joined #ruby-lang
isale-eko has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
gsav has joined #ruby-lang
banisterfiend has joined #ruby-lang
savage-_ has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
savage- has joined #ruby-lang
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
benanne has quit [Quit: kbai]
droptable has quit [Ping timeout: 264 seconds]
nofxx has quit [Ping timeout: 272 seconds]
burgestrand has quit [Quit: Leaving.]
sailias has joined #ruby-lang
ryez has joined #ruby-lang
s0ra_h is now known as sora_h
coryf has quit [Remote host closed the connection]
adam__ has joined #ruby-lang
droptable has joined #ruby-lang
nofxx has joined #ruby-lang
savage- has quit [Remote host closed the connection]
<jarib> what's the benefit of defining a scope with a lambda over a plain class method?
jperry2 has quit [Ping timeout: 240 seconds]
adam__ has left #ruby-lang [#ruby-lang]
<jarib> oops, wrong channel
gsav has quit [Ping timeout: 272 seconds]
adamSpeaks has joined #ruby-lang
sora_h is now known as s0ra_h
adamSpeaks has left #ruby-lang [#ruby-lang]
gsav has joined #ruby-lang
jperry2 has joined #ruby-lang
diegoviola has quit [Ping timeout: 245 seconds]
adamIsAdam has joined #ruby-lang
abletony84 has quit [Quit: Lost terminal]
w0lverine has quit [Quit: w0lverine]
<adamIsAdam> How does one, in rmagick have text line wrap at a certain length, while still formatting certain words? RMagick doesn't support, natively, formatting for individual words and RVG doesn't support line wrapping. Any help here?
IPGlider has joined #ruby-lang
krz has quit [Quit: krz]
pbjorklu1d has quit [Read error: Operation timed out]
pbjorklund has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
gsav has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
akira989 has quit [Remote host closed the connection]
havenn has joined #ruby-lang
IPGlider has quit []
justinseiter has quit [Quit: Leaving]
s0ra_h is now known as sora_h
burgestrand has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
dous has quit [Remote host closed the connection]
jtoy has joined #ruby-lang
chimkan has quit [Quit: chimkan]
diegoviola has joined #ruby-lang
nagato has joined #ruby-lang
ChadStud1uffin has quit [Ping timeout: 240 seconds]
sora_h is now known as s0ra_h
towski has quit [Remote host closed the connection]
deryl has quit [Ping timeout: 240 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
dous has joined #ruby-lang
DEac- has quit [Read error: No route to host]
<erikh> anyone look at rust yet? I'm really digging what I'm reading... wondering if anyone has any practical experience yet
DEac- has joined #ruby-lang
<banisterfiend> hey Erik
<banisterfiend> what's cool about it
<erikh> rust-lang.org will tell you more than I will
<erikh> it's a bit like D, but with more emphasis on immutable types and inference, and a lot more cohesion
<erikh> it's a mozilla project too
<banisterfiend> erikh: are oyu interested in learning scala
<erikh> I poked at it, got kind of bored, and wandered off
<erikh> hrm, rust 0.3.1 doesn't build under clang
<erikh> at least, not with whatever homebrew does to it
qpingu has quit [Quit: Leaving.]
<erikh> it's apparently still alpha so that's not surprising
arooni-mobile has quit [Ping timeout: 272 seconds]
apeiros has quit [Remote host closed the connection]
naz has quit [Ping timeout: 252 seconds]
naz has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
s0ra_h is now known as sora_h
dous has quit [Remote host closed the connection]
igotnolegs has joined #ruby-lang
dous has joined #ruby-lang
chimkan_ has joined #ruby-lang
w0lverine has joined #ruby-lang
jtoy has quit [Quit: jtoy]
b1rkh0ff has quit [Ping timeout: 248 seconds]
havenn has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
sora_h is now known as s0ra_h
burgestrand has quit [Quit: Leaving.]
countdigi has quit [Remote host closed the connection]
countdigi has joined #ruby-lang
havenn has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
dous has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
havenn has quit [Remote host closed the connection]
countdigi has quit [Quit: leaving]
countdigi has joined #ruby-lang
banisterfiend has quit [Ping timeout: 246 seconds]
banisterfiend` has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
w0lverine has quit [Quit: w0lverine]
ylluminate has joined #ruby-lang
w0lverine has joined #ruby-lang
eban has quit [Quit: WeeChat 0.3.7]
eban has joined #ruby-lang
s0ra_h is now known as sora_h
tedwing has joined #ruby-lang
vertroa_ has joined #ruby-lang
dous has joined #ruby-lang
<tedwing> I need help parsing dates. My input is either in the format 'yyyy.mm.dd' or 'yyyy.mm'. Is there a way of creating a new Date that handles both formats, in the latter case using a default value for the day?
mikeric has joined #ruby-lang
dous has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 272 seconds]
dous has joined #ruby-lang
<heftig> tedwing: str = "2005.04"; Date.parse(str.size < 8 ? "#{str}.01" : str)
<banisterfiend`> heftig: hey hefty boy
<tedwing> heftig: Awesome, thanks a lot!
<heftig> banisterfiend`: bored
<banisterfiend`> heftig: join #Pry for ops
<banisterfiend`> that'll exhilarate u
petercooper has joined #ruby-lang
sora_h is now known as s0ra_h
towski has joined #ruby-lang
tedwing has quit [Quit: tedwing]
diegoviola has joined #ruby-lang
pbjorklu1d has joined #ruby-lang
pbjorklund has quit [Ping timeout: 240 seconds]
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
neocoin has quit [Read error: Connection reset by peer]
dous has quit [Remote host closed the connection]
mikeric has quit [Quit: mikeric]
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
s0ra_h is now known as sora_h
dhruvasagar has joined #ruby-lang
neoesque has joined #ruby-lang
cttt239 has joined #ruby-lang
cttt239 has quit [Client Quit]
petercooper has quit [Remote host closed the connection]
jtoy has joined #ruby-lang
sora_h is now known as s0ra_h
savage- has joined #ruby-lang
cha1tanya has joined #ruby-lang
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby-lang
diegoviola has quit [Ping timeout: 246 seconds]
deryl has joined #ruby-lang
s0ra_h is now known as sora_h
chimkan__ has joined #ruby-lang
chimkan__ has quit [Client Quit]
adamIsAdam has quit [Quit: adamIsAdam]
chimkan_ has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
sora_h is now known as s0ra_h
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
cha1tanya has quit [Quit: आलोच..]
ChadStud1uffin has joined #ruby-lang
dfr|mac has joined #ruby-lang
dous has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
qpingu has joined #ruby-lang
savage- has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
ChadStud1uffin has quit [Ping timeout: 246 seconds]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
ChadStud1uffin has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
qpingu has quit [Quit: Leaving.]
jtoy has quit [Quit: jtoy]
dhruvasagar has joined #ruby-lang
s0ra_h is now known as sora_h
areil has joined #ruby-lang
sailias has joined #ruby-lang
dc5ala has joined #ruby-lang
sora_h is now known as s0ra_h
jxie has quit [Quit: leaving]
qwerxy has joined #ruby-lang
nagato has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
nagato has joined #ruby-lang
s0ra_h is now known as sora_h
rippa has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
toretore has joined #ruby-lang
flak has joined #ruby-lang
flak is now known as Guest71229
Rizzle has joined #ruby-lang
Guest71229 has quit [Client Quit]
spinagon has joined #ruby-lang
dous has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 246 seconds]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
lantins has quit [Ping timeout: 248 seconds]
towski has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
droptable has quit [Quit: さようなら]
chendo_ has quit [Ping timeout: 248 seconds]
ylluminate has quit [Read error: Operation timed out]
chendo_ has joined #ruby-lang
adam__ has joined #ruby-lang
adam__ has quit [Quit: adam__]
tomb_ has quit [Quit: Computer has gone to sleep.]
gsav has joined #ruby-lang
qwerxy has quit [Quit: offski]
mikeric has joined #ruby-lang
mikeric has quit [Client Quit]
ryez has joined #ruby-lang
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
mikeric has joined #ruby-lang
nagato has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
qwerxy has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
nagato has joined #ruby-lang
nagato has quit [Ping timeout: 250 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
neocoin has joined #ruby-lang
Hakon has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kiddorails has joined #ruby-lang
lantins has joined #ruby-lang
nagato has joined #ruby-lang
cantonic_ has joined #ruby-lang
spinagon has quit [Ping timeout: 250 seconds]
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
apeiros_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
lynxy has joined #ruby-lang
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
mikeric_ has joined #ruby-lang
mikeric has quit [Read error: Connection reset by peer]
mikeric_ is now known as mikeric
tomb_ has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
qwerxy has joined #ruby-lang
qwerxy has quit [Quit: offski]
manveru has quit [Ping timeout: 252 seconds]
manveru has joined #ruby-lang
lynxy has quit [Quit: Leaving]
adam__ has joined #ruby-lang
vertroa_ has quit [Read error: Connection reset by peer]
vertroa_ has joined #ruby-lang
neoesque has left #ruby-lang [#ruby-lang]
dhruvasagar has quit [Ping timeout: 272 seconds]
phlipper has quit [Quit: Leaving...]
sepp2k has joined #ruby-lang
phlipper has joined #ruby-lang
qwerxy has joined #ruby-lang
jxie has joined #ruby-lang
tooky has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
b1rkh0ff has quit [Remote host closed the connection]
tooky has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
apeiros_ has quit [Ping timeout: 264 seconds]
adam__ has quit [Quit: adam__]
adam__ has joined #ruby-lang
w0lverine has quit [Quit: w0lverine]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
adam__ has quit [Quit: adam__]
adam__ has joined #ruby-lang
sandbags has joined #ruby-lang
dhruvasagar has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
mssola has joined #ruby-lang
x0F_ is now known as x0F
dhruvasagar has quit [Ping timeout: 272 seconds]
u_u has joined #ruby-lang
nagato has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
arooni-mobile has joined #ruby-lang
nagato has joined #ruby-lang
nagato has quit [Client Quit]
virunga has joined #ruby-lang
nagato has joined #ruby-lang
dous has quit [Remote host closed the connection]
schroedinbug has quit [Ping timeout: 260 seconds]
dous has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
burgestrand has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
Dreamer3 has joined #ruby-lang
cha1tanya has joined #ruby-lang
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby-lang
cha1tanya has quit [Client Quit]
dhruvasagar has joined #ruby-lang
banisterfiend` has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
zmack has joined #ruby-lang
chendo_ has joined #ruby-lang
zmack_ has joined #ruby-lang
benanne has joined #ruby-lang
zmack has quit [Ping timeout: 246 seconds]
adam__ has quit [Quit: adam__]
zmack_ has quit [Remote host closed the connection]
schroedinbug has joined #ruby-lang
umttumt has joined #ruby-lang
d3vic3 has joined #ruby-lang
cha1tanya has joined #ruby-lang
fgomez has quit [Ping timeout: 248 seconds]
cha1tanya has quit [Client Quit]
adam__ has joined #ruby-lang
adam__ has quit [Quit: adam__]
dous_ has joined #ruby-lang
dous_ has quit [Changing host]
dous_ has joined #ruby-lang
dous has quit [Ping timeout: 264 seconds]
ChadStud1uffin has quit [Ping timeout: 272 seconds]
pbjorklu1d has quit [Quit: leaving]
pbjorklund has joined #ruby-lang
ChadStud1uffin has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
Jake232 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasa1ar has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
dhruvasagar has joined #ruby-lang
dhruvasa1ar has quit [Ping timeout: 272 seconds]
umttumt has joined #ruby-lang
kvirani has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
Jake232 has quit [Ping timeout: 246 seconds]
burgestrand has joined #ruby-lang
dous_ has quit [Remote host closed the connection]
dous has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
nagato is now known as Pain
apeiros_ has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
dv310p3r has joined #ruby-lang
dfr|mac has joined #ruby-lang
dous has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
jxie has quit [Quit: leaving]
dhruvasagar has quit [Ping timeout: 264 seconds]
d3vic3 has quit [Quit: leaving]
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
postmodern has quit [Quit: Leaving]
burgestrand has quit [Quit: Leaving.]
chendo_ has quit [Quit: Computer has gone to sleep.]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
neocoin has quit [Read error: Connection reset by peer]
jasiek_ is now known as jasiek
Leeky_afk is now known as Leeky
diegoviola has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
Pain has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
skipper has joined #ruby-lang
zenspider has quit [Read error: Connection reset by peer]
dc5ala has quit [Quit: Ex-Chat]
skipper has quit [Remote host closed the connection]
dous has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
awwaiid has quit [Read error: Connection reset by peer]
andreivolt has joined #ruby-lang
r0bby has joined #ruby-lang
awwaiid has joined #ruby-lang
diegoviola has quit [Ping timeout: 244 seconds]
kiddorails has left #ruby-lang [#ruby-lang]
robbyoconnor has quit [Ping timeout: 245 seconds]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
vertroa_ has quit [Read error: No route to host]
havenn has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jtoy has joined #ruby-lang
tjadc has joined #ruby-lang
burgestrand has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
cantonic has quit [Quit: cantonic]
vertroa_ has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
pbjorklund has quit [Ping timeout: 246 seconds]
savage- has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
fourlastor has joined #ruby-lang
<fourlastor> hello everyone! :)
apeiros_ has joined #ruby-lang
pbjorklund has joined #ruby-lang
<fourlastor> do you think is rubygame good to achieve something like that: http://wiki.fifengine.net/Main_Page ? in case it isn't, is there anything around that could work as a isometric game engine?
<fourlastor> i searched in rubygems but i didn't find anything else
cha1tanya has joined #ruby-lang
<banisterfiend> fourlastor: gosu
<banisterfiend> fourlastor: use the gosu gem: http://libgosu.org
toretore has quit [Ping timeout: 246 seconds]
cantonic has joined #ruby-lang
<fourlastor> banisterfiend, wow! last time i searched for gosu i was there: http://gosu-lang.org/ and it didn't really sound as a ruby thing :P
burgestrand has quit [Quit: Leaving.]
cantonic has quit [Client Quit]
<fourlastor> i'll try it out right now, thanks banisterfiend
pbjorklu1d has joined #ruby-lang
toretore has joined #ruby-lang
verbad has joined #ruby-lang
pbjorklund has quit [Ping timeout: 246 seconds]
u_u has quit [Read error: Operation timed out]
publicvoid has joined #ruby-lang
salout_ has joined #ruby-lang
fourlastor has quit [Quit: Sto andando via]
itsmeduncan has joined #ruby-lang
gsav has quit [Ping timeout: 272 seconds]
telemachus_ is now known as telemachus
u_u has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
zmack has joined #ruby-lang
Oloryn_lt21 has quit [Read error: Connection reset by peer]
cyked has joined #ruby-lang
sailias has joined #ruby-lang
itsmeduncan has quit [Quit: itsmeduncan]
chimkan_ has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
deryl-android has quit [Remote host closed the connection]
chimkan__ has joined #ruby-lang
chimkan__ has quit [Client Quit]
chimkan_ has quit [Ping timeout: 246 seconds]
rodj has quit [Quit: rodj]
zmack has quit [Remote host closed the connection]
skipper has joined #ruby-lang
cantonic has joined #ruby-lang
skipper has quit [Remote host closed the connection]
Eypeon has joined #ruby-lang
havenn has quit [Remote host closed the connection]
cha1tanya has quit [Quit: cha1tanya]
Eypeon has left #ruby-lang [#ruby-lang]
Eypeon_ has joined #ruby-lang
Eypeon_ has left #ruby-lang [#ruby-lang]
Leeky is now known as Leeky_afk
arooni-mobile has joined #ruby-lang
rodj has joined #ruby-lang
pbjorklu1d has quit [Quit: leaving]
gix has joined #ruby-lang
rodj has quit [Client Quit]
cyked has quit [Ping timeout: 246 seconds]
salout_ has quit [Quit: Konversation terminated!]
bryancp has joined #ruby-lang
salout has joined #ruby-lang
wallerdev has joined #ruby-lang
enebo has joined #ruby-lang
cyked has joined #ruby-lang
havenn has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
tomb_ has joined #ruby-lang
mikeric has quit [Quit: mikeric]
jxie has joined #ruby-lang
cyked has quit [Quit: Leaving]
JohnBat26 has joined #ruby-lang
cha1tanya has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
NeVeR_ has joined #ruby-lang
macmartine has joined #ruby-lang
verbad has quit []
itsmeduncan has joined #ruby-lang
verbad has joined #ruby-lang
virunga has quit [Ping timeout: 250 seconds]
dfr|mac has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Z33K|Lux has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
burgestrand has joined #ruby-lang
cha1tanya has quit [Quit: cha1tanya]
fayimora has joined #ruby-lang
jtoy has quit [Quit: jtoy]
Spaceghostc2c has joined #ruby-lang
salout has quit [Quit: Konversation terminated!]
dv310p3r has quit [Ping timeout: 246 seconds]
virunga has joined #ruby-lang
mwjcomputing has joined #ruby-lang
virunga has quit [Client Quit]
jtoy has joined #ruby-lang
u_u has quit [Read error: Operation timed out]
burgestrand has quit [Quit: Leaving.]
virunga has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
ylluminate has joined #ruby-lang
NeVeR_ has quit [Remote host closed the connection]
sailias has quit [Read error: Connection reset by peer]
bryancp has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
macmartine has quit [Read error: Connection reset by peer]
fourlastor has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<fourlastor> how would you implement that? https://gist.github.com/3258890
mssola has quit [Quit: Konversation terminated!]
Jake232 has joined #ruby-lang
<apeiros_> fourlastor: Dice is plural, you're aware of that, right? Should be Die…
<fourlastor> oh.. whoops :P
<apeiros_> and self.rand won't work
<apeiros_> rand is private
<apeiros_> just rand(1..@sides)
<apeiros_> and why inherit from Random?
<apeiros_> there's no point in that.
<fourlastor> well, i didn't know i could access rand without it
<apeiros_> def initialize(sides=6); @side = Integer(sides); end # that's sufficient
<apeiros_> fourlastor: you can. it's Kernel#rand, available everywhere
<fourlastor> ok
brianpWins has joined #ruby-lang
<apeiros_> you could require 'securerandom' and use SecureRandom.rand(1..@sides)
<apeiros_> then your die is a bit more resistant against certain kinds of abuse
<fourlastor> for example?
RegEchse has joined #ruby-lang
<fourlastor> also, wouldn't Integer(sides) accept also negative and 0 value?
<apeiros_> it's easy to predict the next value if you've seen a couple of values
<apeiros_> (relatively easy)
u_u has joined #ruby-lang
<apeiros_> ah, yes. raise ArgumentError, "Sides must be bigger than 1" unless @sides > 1
<fourlastor> ok
<fourlastor> understanding better all the thing now :) thank you
sailias has joined #ruby-lang
sailias has quit [Read error: Connection reset by peer]
sora_h is now known as s0ra_h
Jake232 has quit [Quit: Computer has gone to sleep.]
savage- has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
gsav has joined #ruby-lang
apeiros_ has joined #ruby-lang
sailias has joined #ruby-lang
sailias has quit [Read error: Connection reset by peer]
mwjcomputing has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
gsav has quit [Ping timeout: 244 seconds]
sailias has joined #ruby-lang
wallerdev has joined #ruby-lang
sailias has quit [Client Quit]
fourlastor has quit [Quit: Sto andando via]
ylluminate has quit [Ping timeout: 244 seconds]
areil has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
jfelchner has quit [Quit: WeeChat 0.3.7]
neocoin has joined #ruby-lang
lsegal has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
flip_digits has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby-lang
yxhuvud has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
abuiles has joined #ruby-lang
itsmeduncan has quit [Quit: itsmeduncan]
sora_h is now known as s0ra_h
mikeric has joined #ruby-lang
flip_digits has joined #ruby-lang
verbad has quit []
spinagon has joined #ruby-lang
lele has quit [Ping timeout: 248 seconds]
snk has quit [Quit: I accidentally the whole program.]
itsmeduncan has joined #ruby-lang
<Harzilein> would it be possible to have blocks imply a kind of here documents for ridiculously flexible dsls?
<Spaceghostc2c> Sure.
<Harzilein> i'll repeat my example i posted over in #rubyonrails:
<Harzilein> of course it is possible to "parse" this:
<Harzilein> format_table do
apeiros_ has joined #ruby-lang
<Harzilein> someting something something
<Harzilein> end
vertroa_ has quit [Remote host closed the connection]
snorkdude has joined #ruby-lang
<Harzilein> with just using method_missing and all
<snorkdude> hey rubyists
<Harzilein> but i'd kinda like having stuff like dangling ( or something and have _my parser_ care about that, not ruby
<Harzilein> so i need an implied here document
leachim6 has joined #ruby-lang
<Harzilein> Spaceghostc2c: first url is _not_ helpful, again, this is _not_ one of this situations where i want to do something specific, it is asking if something can be done in a specific way.
zmack has joined #ruby-lang
<Spaceghostc2c> Harzilein: When you're saying using it as a heredoc, you just want to capture the contents of the proc and put it into a string?
<Harzilein> Spaceghostc2c: yes
verbad has joined #ruby-lang
towski has joined #ruby-lang
<Harzilein> Spaceghostc2c: but it should not be required to be valid ruby syntax
<Harzilein> Spaceghostc2c: like my example of dangling braces
s0ra_h is now known as sora_h
<manveru> i'm not sure i know any language that allows such things... maybe perl6 or lisp?
<Spaceghostc2c> hakunin: So, essentially, you're wanting a proc to know how to turn itself into a string without evaluating the contents of the block, right?
<Harzilein> manveru: i was actually wondering about lisp, i just don't know if you can do here-docs with common lisp's macros
<manveru> i think it still requires balancing of braces
<Harzilein> manveru: i was thinking about having yet another "humane" markup language, but have some way to add "parser annotations" to some unstructured data
<Harzilein> manveru: meh
<Spaceghostc2c> Harzilein: And with ruby, block style DSLs are often used to defer evaluation of the contents of the block until some point, right?
<hakunin> Spaceghostc2c: sounds like a great thing to want, why not?
<Spaceghostc2c> hakunin: I'm asking you questions you should be asking a duck. :)
<manveru> Spaceghostc2c: evaluation is later, but parsing is immediate
<Harzilein> actually that markup does not really need to be interpreted by ruby, i was just thinking that extending erb to do what i want would make for a nice prototype
verbad has quit [Client Quit]
* hakunin has no idea what's going on here
dfr|mac has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby-lang
fgomez has joined #ruby-lang
adam___ has joined #ruby-lang
sailias has quit [Client Quit]
<Harzilein> i guess i'll get the question out of the way if common lisp could do heredocs that do not necessarily have lisp "syntax" (balanced braces)
* Harzilein heads over to a common lisp channel
<manveru> :)
<Spaceghostc2c> manveru: You're wrong.
<Spaceghostc2c> manveru: Parsing isn't immediate.
<manveru> ?
<Spaceghostc2c> Harzilein: You can do this with procs if you redefine to_s or do something similar.
<Spaceghostc2c> manveru: Try it.
<manveru> prove me wrong
<rue> Spaceghostc2c: Too.
<Harzilein> Spaceghostc2c: hmm...
<manveru> i'd love to see that :)
<rue> Perhaps a misconception about the term
gsav has joined #ruby-lang
<Spaceghostc2c> manveru: Go try it. Play around with the proc class.
<manveru> Spaceghostc2c: i'm doing ruby since 2005, had plenty of playtime with procs
<Spaceghostc2c> manveru: Mmmkay.
<rue> 2001, and yeah.
<Harzilein> Spaceghostc2c: i'm missing the idea how i could have ruby not attempt to parse the content of the blocks
<Spaceghostc2c> Anyways, he's wrong. They only get checked when the proc gets called.
<rue> …Checked?
<rue> Harzilein: You have some code that may or may not be valid?
leachim6 has left #ruby-lang ["Leaving"]
<Harzilein> the proc will never get called if i have a dangling bracket inside the block
<manveru> Spaceghostc2c: show me
<Harzilein> #lisp tells me i want to use "reader macros"
<Spaceghostc2c> manveru: proc = Proc.new {lolwat}
<manveru> that's correct syntax
<Harzilein> i guess those are similar to BEGIN {} in perl ;)
<Spaceghostc2c> Harzilein: If you like lisp, do it there! It's shiny and fun in lispland.
<rue> Spaceghostc2c: Just to be clear, parsing means taking the characters that make up the code and constructing an internal representation out of that
<rue> Harzilein: I don’t understand the problem. You *want* to allow using invalid/non-ruby syntax?
<manveru> Spaceghostc2c: ruby -e 'lambda{ for a := 1; a < 10; a++ { println(a) } }'
<manveru> try getting that to parse
<manveru> it even has balanced braces
gsav has quit [Ping timeout: 244 seconds]
<Harzilein> rue: yes
<rue> Harzilein: You should probably define a simple grammar for yourself
mwjcomputing has joined #ruby-lang
<manveru> Harzilein: the closest i know is polyglot gem
<manveru> but not in the same file
<manveru> unless you write a parser for ruby that embeds your language... which is like 5 billion times harder
<Spaceghostc2c> manveru: Let me look for something.
sora_h is now known as s0ra_h
adam___ has quit [Quit: adam___]
zmack has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
vertroa_ has joined #ruby-lang
chimkan has joined #ruby-lang
deryl has joined #ruby-lang
<Spaceghostc2c> Harzilein: Two options I have thought up sort of might work. You could use #source_location to find the line in the file and print it back out as a string, or you could wrap the Proc class with a custom class that has #to_s and #call methods, and then have your DSL use that class.
<Spaceghostc2c> manveru: Trying to see if I can introspect a proc for it's body, not sure if I can with 1.9
<manveru> Spaceghostc2c: neither works
<Spaceghostc2c> manveru: Why?
<manveru> you can get the ast in rbx
<Mon_Ouie> You can get ruby bytecode in 1.9, but that's it
<manveru> but only if it's valid ruby syntax
<manveru> source_location also only works on parsed procs
<manveru> and custom to_s and call... i have no idea where you learned that BS
gsav has joined #ruby-lang
<Spaceghostc2c> manveru: It could work, but it's ucky in that you'd be storing the source of the intended proc in a instance variable.
<Spaceghostc2c> It wouldn't be awesome, no.
<manveru> you can use a heredoc for that already
<Spaceghostc2c> manveru: In a blockstyle DSL
<Spaceghostc2c> ?
<manveru> no
<Spaceghostc2c> Then how does that help?
<manveru> it would at least work
<manveru> have you ever written a language parser?
brianpWins has quit [Quit: brianpWins]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
<Spaceghostc2c> Nothing really fully featured, no.
<manveru> try it sometime for a language like forth, plenty of fun to be had :)
mwjcomputing has quit [Ping timeout: 246 seconds]
<manveru> anw, the reason why what you describe is impossible, is that ruby has to check that all the syntax in a file is valid
mwjcomputing has joined #ruby-lang
gsav has quit [Ping timeout: 246 seconds]
<manveru> if ruby sees 'do', it makes a little note like "we're expecing an 'end' before the end of file"
<Spaceghostc2c> manveru: Yeah, I would expect that to be present in his DSL.
<manveru> but then goes on and tokenizes everything after the "do"
<Spaceghostc2c> So having MyProc take the input and save it into a string and then call Proc.new and continue with a #to_s to just print the string wouldn't work in some respect?
<manveru> yeah, the "having MyProc" wouldn't work
<Spaceghostc2c> manveru: What pry does seems suitable for his cause.
<Spaceghostc2c> manveru: Why wouldn't it?
<Harzilein> the #lisp guys make a good point, translating their argument the only real benefit about such a dsl that they can require their dependencies instead of having them opened and parsed. i have seen there was some discussion that there is no standard way to have erb files include each other, i.e. they need to know how the implementation opens files.
dhruvasagar has quit [Ping timeout: 264 seconds]
<Harzilein> s/a dsl/dsls is/
fgomez has quit [Quit: leaving]
fgomez has joined #ruby-lang
<manveru> well, some templating engines have virtual filesystems that fix that somewhat
enebo has quit [Quit: enebo]
<Harzilein> hmm...
<manveru> but really, even in lisp you need to enclose your macro correctly
chimkan has quit [Quit: chimkan]
<Harzilein> what could help me with this particular unstructured data would be 2-level %q{}-like escape where writing %q{1 2 3\n2 3 4 5\n1} would result in [[1,2,3],[2,3,4,5],[1]]
<manveru> either that, or i didn't read SICP right
<Harzilein> +s
<manveru> hm
<Harzilein> sicp was scheme and that doesn't have reader macros at all, doesn't it?
<Harzilein> i think reader macros must have the same amount of power as compilation time perl (in BEGIN{})
<manveru> pretty sure racket at least has something equivalent
<manveru> well, been a while :)
<Harzilein> well, i'm pretty sure r5rs does not have any fancy reader macros facility
<manveru> >> [%w[1 2 3], %w[2 3 4 5], %w[1]]
<manveru> => [["1", "2", "3"], ["2", "3", "4", "5"], ["1"]]
<manveru> that's the closest i can get
<manveru> still wish there was a way to add your own %[] syntax, but not gonna happen anytime soon
chimkan_ has joined #ruby-lang
s0ra_h is now known as sora_h
awsy1982 has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
mwjcomputing has quit [Ping timeout: 240 seconds]
awsy1982 has quit [Ping timeout: 244 seconds]
adam__ has joined #ruby-lang
adam__ has left #ruby-lang [#ruby-lang]
towski has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
Y_Ichiro_ is now known as Y_Ichiro
awwaiid has quit [Quit: leaving]
itsmeduncan has quit [Quit: itsmeduncan]
S1kx has quit [Ping timeout: 264 seconds]
sepp2k has quit [Remote host closed the connection]
S1kx has joined #ruby-lang
S1kx has quit [Read error: Connection reset by peer]
snk has joined #ruby-lang
S1kx has joined #ruby-lang
ryanf has joined #ruby-lang
Guest___ has joined #ruby-lang
Guest___ has quit [Client Quit]
kvirani has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
benjamin-patch has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
towski has joined #ruby-lang
nofxx has quit [Ping timeout: 264 seconds]
s0ra_h is now known as sora_h
virunga_ has joined #ruby-lang
virunga_ has quit [Client Quit]
snorkdude has joined #ruby-lang
bryancp has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
mk03 has joined #ruby-lang
sora_h is now known as s0ra_h
brianpWins has quit [Quit: brianpWins]
snorkdude has quit [Remote host closed the connection]
bryancp has quit [Remote host closed the connection]
tjadc has quit [Ping timeout: 244 seconds]
bryancp has joined #ruby-lang
workmad3 has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 250 seconds]
brianpWins has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
flebel has quit [Ping timeout: 255 seconds]
thone_ has quit [Ping timeout: 240 seconds]
burgestrand has joined #ruby-lang
flebel has joined #ruby-lang
Jake232 has joined #ruby-lang
thone has joined #ruby-lang
nofxx has quit [Ping timeout: 246 seconds]
bryancp has quit [Remote host closed the connection]
towski has quit [Remote host closed the connection]
mikeric has quit [Quit: mikeric]
s0ra_h is now known as sora_h
Hakon has joined #ruby-lang
setmeaway has joined #ruby-lang
nofxx has joined #ruby-lang
apeiros has joined #ruby-lang
setmeaway has quit [Client Quit]
setmeaway has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
chimkan___ has joined #ruby-lang
apeiros_ has quit [Ping timeout: 272 seconds]
chimkan_ has quit [Ping timeout: 246 seconds]
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
arooni-mobile has joined #ruby-lang
setmeaway has joined #ruby-lang
yxhuvud has quit [Ping timeout: 240 seconds]
setmeaway has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
neocoin has quit [Ping timeout: 246 seconds]
setmeaway has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
sora_h is now known as s0ra_h
yxhuvud has joined #ruby-lang
benjamin-patch has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nagato has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
neocoin has joined #ruby-lang
setmeaway has joined #ruby-lang
Jay_Levitt has quit [Quit: Jay_Levitt]
Jay_Levitt has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
towski has joined #ruby-lang
nofxx has quit [Ping timeout: 244 seconds]
Hakon has quit [Quit: Leaving...]
coryf has joined #ruby-lang
seanstickle has joined #ruby-lang
snorkdude has joined #ruby-lang
mikeric has joined #ruby-lang
yxhuvud has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
burgestrand has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 250 seconds]
spinagon has quit [Ping timeout: 250 seconds]
s0ra_h is now known as sora_h
andreivolt has quit [Ping timeout: 272 seconds]
toretore has quit [Quit: Leaving]
flip_digits has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
arooni-mobile has joined #ruby-lang
sora_h is now known as s0ra_h
diegoviola has joined #ruby-lang
chimkan___ has quit [Quit: chimkan___]
chessguy has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
Rezwan has joined #ruby-lang
apeiros_ has joined #ruby-lang
w0lverine has joined #ruby-lang
<Harzilein> *sigh*
<Harzilein> i wonder if there is a character class for dashes
<Harzilein> so i never end up searching for minus when its actually that awful "my blog engine converts them for me" dashes
cha1tanya has joined #ruby-lang
Andrew__ has joined #ruby-lang
wmoxam has quit [Ping timeout: 272 seconds]
Andrew__ is now known as andrewhl
<drbrain> Harzilein: ri Regexp
<drbrain> Harzilein: I think they fall into Punctuation, but there might be a more specific unicode category to use in \p{}
<Harzilein> yeah, i noticed it does not only describe the api just now
brianpWins has joined #ruby-lang
<Harzilein> \p{Pd} looks good
<drbrain> that said, "-" is going to be in the same category as "—"
<Harzilein> /\p{Pd}/ - 'Punctuation: Dash'
<drbrain> (at least, I think)
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
apeiros_ has quit [Ping timeout: 246 seconds]
chimkan_ has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 264 seconds]
wmoxam has joined #ruby-lang
bryancp has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
RegEchse has quit [Read error: Connection reset by peer]
cha1tanya has quit [Quit: cha1tanya]
jtoy has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
neocoin has quit [Read error: Connection reset by peer]
benanne has joined #ruby-lang
neocoin has joined #ruby-lang