crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby-lang
bzalasky has quit []
hahuang65 has joined #ruby-lang
eugmill has joined #ruby-lang
agarie_ has joined #ruby-lang
agarie has quit [Ping timeout: 265 seconds]
Onixs has joined #ruby-lang
jsilver-ipod has joined #ruby-lang
jsilver-ipod has quit [Client Quit]
jsilver-ipod has joined #ruby-lang
yubrew has joined #ruby-lang
Fushi has quit [Quit: Connection closed for inactivity]
jsilver-ipod has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
inkblots has quit [Remote host closed the connection]
tectonic has quit []
mistym has quit [Remote host closed the connection]
Talorc has quit [Quit: Leaving]
Lewix has joined #ruby-lang
dik_dak_ has joined #ruby-lang
dik_dak has quit [Read error: Operation timed out]
nertzy has quit [Quit: This computer has gone to sleep]
dik_dak_ has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
snk_ has quit [Ping timeout: 265 seconds]
shinnya has joined #ruby-lang
Barrin6 has quit [Quit: Leaving]
perry has joined #ruby-lang
tectonic has joined #ruby-lang
snk has joined #ruby-lang
fezziwig has joined #ruby-lang
fezziwig has quit [Ping timeout: 240 seconds]
JoshuaPaling has joined #ruby-lang
Squarepy has quit [Ping timeout: 268 seconds]
agarie_ has quit [Quit: Leaving...]
alexju has quit [Remote host closed the connection]
SteveBenner09 has joined #ruby-lang
presidentbeef has quit [Quit: Page closed]
mykoweb has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
<SteveBenner09>
hai
shinnya has quit [Ping timeout: 246 seconds]
<SteveBenner09>
so liek what do you guys think of Tim/Date/DateTime
<SteveBenner09>
how cum they aren't merged
<SteveBenner09>
just curious
<centrx>
DateTime should be merged
<centrx>
Time and Date okay to have different
<bougyman>
Time doesn't care about timezones, DateTime does.
<bougyman>
that's the biggest diff i've seen.
yubrew has joined #ruby-lang
symm- has joined #ruby-lang
<SteveBenner09>
well I know a tad bit about the 'under-the-hood' stuff
<SteveBenner09>
I know that one party is super resilient about keeping UNIX formatting standards
<SteveBenner09>
and the philosophy is more akin to python's "one way to rule them all" if you will, than Ruby's "you can do anything as long as its with an elegant syntax"
yubrew has quit [Ping timeout: 268 seconds]
<SteveBenner09>
thats the only reason I can think they are still distince classes
<SteveBenner09>
distinct*
<centrx>
combining Date and Time would complicate the elegant syntax for simple dates without time
<centrx>
DateTime should be done away with I think
<bougyman>
nooooes.
<SteveBenner09>
personally I jus think that it's horrible the Ruby language is in version 2.1 and STILL retains not one, not TWO, but THREE classes to represent chronological intervals
<SteveBenner09>
how silly
<SteveBenner09>
Ruby is almost perfect as far as languages go, but sometimes it can be a silly goose
mikecmpbll has quit [Quit: i've nodded off.]
eugmill has quit [Remote host closed the connection]
eugmill has joined #ruby-lang
jsilver-ipod has joined #ruby-lang
tectonic has quit []
jsilver-ipod has quit [Remote host closed the connection]
gix has quit [Ping timeout: 240 seconds]
gix has joined #ruby-lang
yubrew has joined #ruby-lang
SteveBenner09 has quit []
yubrew has quit [Ping timeout: 265 seconds]
eugmill has quit [Remote host closed the connection]
bahar has quit [Ping timeout: 268 seconds]
bahar has joined #ruby-lang
|jemc| has joined #ruby-lang
fezziwig has joined #ruby-lang
Atw has joined #ruby-lang
jsutt has quit [Ping timeout: 252 seconds]
bantic has quit [Quit: bantic]
fezziwig has quit [Ping timeout: 268 seconds]
Lewix has quit [Remote host closed the connection]
<headius>
yorickpeterse: what's up
constantine has joined #ruby-lang
<constantine>
hi everone
<constantine>
hi everyone
<constantine>
can you tell me, what '-%>' means? what is the difference between '-%>' and '%>' closing tag?
<constantine>
i am new to ruby
fezziwig has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
dgaffney has quit [Remote host closed the connection]
<centrx>
constantine, The - just removes the extra whitespace at the end
<centrx>
constantine, When it gets processed
dgaffney has joined #ruby-lang
<centrx>
constantine, Otherwise there is a new line, if there is a newline after the %>
fezziwig has quit [Ping timeout: 246 seconds]
<constantine>
aa, thanks a lot, it is clear now
<constantine>
thanks
bahar has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby-lang
bahar has joined #ruby-lang
bantic has joined #ruby-lang
Barrin6 has joined #ruby-lang
yubrew has joined #ruby-lang
retro|cz has quit [Read error: Operation timed out]
bantic has quit [Quit: bantic]
yubrew has quit [Ping timeout: 240 seconds]
fezziwig has joined #ruby-lang
tectonic has joined #ruby-lang
bahar has quit [Ping timeout: 240 seconds]
bahar has joined #ruby-lang
constantine has quit [Ping timeout: 240 seconds]
JoshuaPaling has quit [Ping timeout: 252 seconds]
|jemc| has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
shinnya has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sdouglas has quit [Ping timeout: 265 seconds]
pr0ton_ has joined #ruby-lang
alexju has joined #ruby-lang
matp has quit [Ping timeout: 265 seconds]
matp has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
MartynKeigher has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Remote host closed the connection]
x0f_ has joined #ruby-lang
yubrew has joined #ruby-lang
<epitron>
Date + Time => DateTime
<epitron>
Time - Time => TimeDiff
<epitron>
Date - Date => DateDiff
<epitron>
DateDiff + TimeDiff => DateTimeDiff
<epitron>
:D
x0f has quit [Ping timeout: 246 seconds]
yubrew has quit [Ping timeout: 240 seconds]
MartynKeigher has joined #ruby-lang
Barrin6 has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
d4rkr4i has joined #ruby-lang
rh1n0 has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
fezziwig has quit [Remote host closed the connection]
fezziwig has joined #ruby-lang
fezziwig has quit [Read error: Connection reset by peer]
fezziwig has joined #ruby-lang
tectonic has quit []
tap11 has joined #ruby-lang
mistym has joined #ruby-lang
fezziwig has quit [Remote host closed the connection]
d4rkr4i has quit [Quit: Leaving.]
dc5ala has joined #ruby-lang
rh1n0 has quit [Quit: Hopefully you don't see this...]
centrx has quit [Quit: All this computer hacking is making me thirsty]
d4rkr4i has joined #ruby-lang
sdouglas has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
sdouglas has quit [Ping timeout: 246 seconds]
amclain has quit [Quit: Leaving]
pr0ton_ has quit [Quit: pr0ton_]
vlad_starkov has joined #ruby-lang
prc has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
caral has joined #ruby-lang
bahar has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
bahar has joined #ruby-lang
vsorlov has joined #ruby-lang
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby-lang
dgaffney has quit [Ping timeout: 265 seconds]
skade has joined #ruby-lang
bahar has quit [Ping timeout: 240 seconds]
bahar has joined #ruby-lang
Burgestrand has joined #ruby-lang
wallerdev has joined #ruby-lang
sdouglas has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
evans_1729 has joined #ruby-lang
hahuang65 has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
evans_1729 has quit [Client Quit]
yubrew has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Jeticus has quit []
yubrew has quit [Ping timeout: 265 seconds]
Burgestrand has quit [Quit: Burgestrand]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
phansch has joined #ruby-lang
mistym has quit [Remote host closed the connection]
duper has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
io_syl has quit []
alexju has quit [Remote host closed the connection]
_ht has joined #ruby-lang
nisstyre_ has quit [Quit: bai]
wallerdev has quit [Quit: wallerdev]
sdouglas has joined #ruby-lang
yubrew has joined #ruby-lang
sdouglas has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
Atw has quit []
rippa has joined #ruby-lang
Speed has joined #ruby-lang
arBmind has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bahar has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bahar has joined #ruby-lang
Onixs has quit [Quit: Disconnecting from stoned server.]
phrozen77 has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 265 seconds]
naquad has quit [Excess Flood]
vadviktor has quit [Quit: No Ping reply in 180 seconds.]
ur5us has joined #ruby-lang
kalleth_ has quit [Quit: No Ping reply in 180 seconds.]
Onixs_ has joined #ruby-lang
mehlah has joined #ruby-lang
vereteran has joined #ruby-lang
vadviktor_ has joined #ruby-lang
mihar has quit [Ping timeout: 265 seconds]
kalleth has joined #ruby-lang
rnea has quit [Ping timeout: 265 seconds]
bahar has joined #ruby-lang
phrozen77 has joined #ruby-lang
crazysim has quit [Max SendQ exceeded]
crazysim has joined #ruby-lang
mihar has joined #ruby-lang
msch has quit [Ping timeout: 265 seconds]
jhass|off is now known as jhass
khaase has quit [Remote host closed the connection]
nisstyre has quit [Ping timeout: 245 seconds]
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
<yorickpeterse>
headius: does JRuby prevent the usage of defining extensions in a Gemspec only when you use mkmf/extconf.rb, or does it do that always?
<yorickpeterse>
headius: that is, if I do something like `spec.extensions = %w{ext/foo/Rakefile}`, will JRuby also tell me that's not possible?
relix has joined #ruby-lang
Speed has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
omegahm has quit [Ping timeout: 264 seconds]
Speed has joined #ruby-lang
MindfulMonk has quit [Ping timeout: 265 seconds]
ruskie has quit [Quit: ...]
whitequark has quit [Ping timeout: 265 seconds]
dbussink has quit [Ping timeout: 265 seconds]
DarkBushido has quit [Ping timeout: 265 seconds]
wmoxam has quit [Ping timeout: 265 seconds]
whitequa1k has joined #ruby-lang
wmoxam has joined #ruby-lang
headius_ has joined #ruby-lang
DarkBushido has joined #ruby-lang
crazysim has quit [Excess Flood]
headius has quit [Ping timeout: 265 seconds]
mehlah has quit [Quit: Leaving...]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
hagebake has joined #ruby-lang
bnagy has quit [Ping timeout: 265 seconds]
dbussink has joined #ruby-lang
bnagy_ has joined #ruby-lang
justinmcp_ has joined #ruby-lang
crazysim_ has joined #ruby-lang
linc01n has quit [Ping timeout: 265 seconds]
mihar has quit [Ping timeout: 265 seconds]
hagabaka has quit [Quit: No Ping reply in 180 seconds.]
mihar_ has joined #ruby-lang
kro_ has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
kro__ has joined #ruby-lang
DarkBushido has joined #ruby-lang
wmoxam has quit [Changing host]
crazysim_ is now known as crazysim
DarkBushido has quit [Changing host]
MindfulMonk has joined #ruby-lang
devgiant has joined #ruby-lang
linc01n has joined #ruby-lang
Fushi has joined #ruby-lang
vsorlov has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby-lang
ruskie has joined #ruby-lang
prc has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
ConstantineXVI has quit [Ping timeout: 265 seconds]
<yorickpeterse>
so yeah, String#[] is not webscale
<yorickpeterse>
you might be able to apply the same trick to Parser, given the lexer doesn't care if @data is a String or not
<yorickpeterse>
in my case it doesn't so I can apply this little trick
<apeiros>
yorickpeterse: probably because utf-8 != 1byte per char
Kabaka_ has joined #ruby-lang
rnea has joined #ruby-lang
yubrew has joined #ruby-lang
mehlah has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<yorickpeterse>
still, 20x is *a lot*
yubrew has quit [Ping timeout: 240 seconds]
d4rkr4i has joined #ruby-lang
<apeiros>
indeed. and it will increase the larger your string is
symm- has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
VTLob has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
robmiller has joined #ruby-lang
<yorickpeterse>
ugh, sometimes I dislike being the only computer-literate in the family
<yorickpeterse>
"<sister> Hi Yorick, so I'm using PHP for a contact form" ooooh dear
whitequa1k is now known as whitequark
yubrew has joined #ruby-lang
vsorlov has joined #ruby-lang
enebo has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
toretore has quit [Quit: Leaving]
Lewix has joined #ruby-lang
robmiller has quit [Quit: Leaving.]
Lewix has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 268 seconds]
gianluca- has joined #ruby-lang
MindfulMonk has quit [Ping timeout: 265 seconds]
gianlucadv has quit [Ping timeout: 265 seconds]
nifoc has quit [Ping timeout: 265 seconds]
ConstantineXVI has quit [Ping timeout: 265 seconds]
Paradox has quit [Ping timeout: 265 seconds]
nifoc has joined #ruby-lang
Paradox has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
MindfulMonk has joined #ruby-lang
sdouglas has joined #ruby-lang
sdouglas has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby-lang
devgiant has joined #ruby-lang
Samouy has joined #ruby-lang
<Samouy>
Hi there !
<Samouy>
I have an issue with ruby . When i launch SketchUp software with Wine , i get this error : <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>' . I've installed from debian repos ruby and rubygems but still the same error
<whitequark>
yorickpeterse: I like how you've claimed to have invented the Array#[] solution when I explicitly told you to do so :p
desiac has quit [Ping timeout: 245 seconds]
tdy has joined #ruby-lang
caral has joined #ruby-lang
caral has quit [Client Quit]
<whitequark>
in fact I even told you that I thought about this in Parser and benchmarks have shown it to be slower
<yorickpeterse>
considering I still need them as Strings, wouldn't that result in the same memory usage?
sepp2k has quit [Ping timeout: 240 seconds]
<yorickpeterse>
perhaps I need to have dinner first before I continue having the dumb
<yorickpeterse>
brb the kitchen calls
nathanstitt has quit [Quit: I growing sleepy]
sdouglas has joined #ruby-lang
jsutt has joined #ruby-lang
creede has joined #ruby-lang
hakunin has joined #ruby-lang
eugmill_ has joined #ruby-lang
elliotec_ has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
eugmill has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby-lang
havenwood has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
DouweM has joined #ruby-lang
sepp2k has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
<apeiros>
yorickpeterse: you could try utf-16
elliotec has quit [Ping timeout: 240 seconds]
<apeiros>
or check String#[] source, whether it optimizes for utf-16 without multibyte sequences
phansch has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
vpretzel has joined #ruby-lang
d4rkr4i1 has joined #ruby-lang
d4rkr4i1 has left #ruby-lang [#ruby-lang]
d4rkr4i has quit [Ping timeout: 240 seconds]
<whitequark>
apeiros: utf-32 or ucs-2
<whitequark>
but ucs-2 is not something you want to use today, with all the emoji
<apeiros>
it's a bit a shame that rubys String class doesn't use a Rope implementation for variable-sized encodings
<whitequark>
hm?
tylersmith has quit [Remote host closed the connection]
<apeiros>
the problem with String#[]'s performance is that it has to count from 0
<whitequark>
sure
<whitequark>
how ropes would fix it?
tylersmith has joined #ruby-lang
hahuang65 has joined #ruby-lang
eugmill has joined #ruby-lang
<yorickpeterse>
ok I have a stuffed belly
<yorickpeterse>
whitequark: so in parser the lexer operates on Fixnum/codepoints and then at the very end packs those as strings where needed?
<apeiros>
it wouldn't have to count from 0 for every index. though now that I think about it, it'd not be the rope part that would help, but a skip-list like structure for the indices.
tylersmith has quit [Ping timeout: 264 seconds]
eugmill_ has quit [Ping timeout: 246 seconds]
<whitequark>
yorickpeterse: yes
<yorickpeterse>
Hm, if I apply that it still uses a shitton of memory, but at least it stays within OOM bounds
seanlinsley has quit [Quit: …]
Jeticus has joined #ruby-lang
<whitequark>
well... hard to beat that.
<whitequark>
possibly by using UTF-16, but it's evil and gross
<yorickpeterse>
As in, it uses about 1GB for just iteration
<yorickpeterse>
(again with a no-op `any;` machine)
CaptainJet has quit [Ping timeout: 246 seconds]
vlad_sta_ has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
<yorickpeterse>
Hm, both UTF16 and UTF32 seem to use a similar amount of memory
vlad_starkov has joined #ruby-lang
<yorickpeterse>
whitequark: ok this time I did credit you
<whitequark>
1GB is consistent with a fixnum array on 64-bit
<yorickpeterse>
eh?
vpretzel has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
wallerdev has joined #ruby-lang
elliotec has joined #ruby-lang
<yorickpeterse>
I do like how the MRI profiler still reports non existing methods as taking up time
<yorickpeterse>
22002 calls to Oga::Lexer#_lexer_eof_trans=, which doesn't exist
seanlinsley has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
seanlinsley has quit [Client Quit]
andrewvos has joined #ruby-lang
seanlinsley has joined #ruby-lang
<andrewvos>
I've got a sinatra app that take requests like {meh: "dvdf", bleh: "ddfvd"} and I just need something very easy to use to store them on the filesystem. Tempted to just write files to disk. Any ideas?
<andrewvos>
I don't care aobut querying, but I do care about the data not getting lost
<ruby-lang806>
does anyone know of any good examples of how to implement user content where a join table is involved? can't find anything when i google habtm rails4 controller
VTLob has quit [Quit: VTLob]
benanne has joined #ruby-lang
amclain_ has joined #ruby-lang
nisstyre has quit [Client Quit]
amclain has quit [Ping timeout: 252 seconds]
<ruby-lang806>
I'm creating a form where many users enter microposts into a story. So stories habtm users.
kcahsbor2 has quit [Quit: Leaving]
<ruby-lang806>
and stories has_many microposts
<ruby-lang806>
I assume I'm in the right irc chat...................... Anyone here?
<fowl>
there is a rails-specific channel
nisstyre has joined #ruby-lang
<ruby-lang806>
hm. How do I find the rails channel
<fowl>
its #rails or #rubyonrails or something like that
<ruby-lang806>
rails said I can't join, must be invited
<bnagy>
#rubyonrails
<ruby-lang806>
rubyonrails said I need to be identified with services
<ruby-lang806>
what does that mean
<|jemc|>
NickServ is the service
<|jemc|>
figure out how to register and identify, then you'll be able to join
elliotec has joined #ruby-lang
iliketurtles has joined #ruby-lang
<ruby-lang806>
where do I look to figure out how to register & identify, what is Nickserv
<fowl>
msg nickserv help
<fowl>
/msg nickserv help
<|jemc|>
there's a reason I used the phrasing "figure out how to ..."
<ruby-lang806>
where do I enter /msg nickserv help
<|jemc|>
no one really wants to hold your hand through the process of registering your nick
<fowl>
yeah
<fowl>
you can join #help and ask them
<|jemc|>
when there are search engines and lots of internet resources available
<|jemc|>
and yes the #help channel
<ruby-lang806>
ok. thx
<arubin>
There is also #freenode.
mehlah has quit [Quit: Leaving...]
elliotec has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ruby-lang806 has quit [Quit: Page closed]
havenwood has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]