imperator changed the topic of #ruby-lang to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
xsdg has quit [Ping timeout: 260 seconds]
cableray has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
Antiarc has quit [Read error: Connection reset by peer]
jtoy has quit [Quit: jtoy]
itsmeduncan has quit [Quit: itsmeduncan]
itsmeduncan has joined #ruby-lang
justinram has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
mpan has quit [Ping timeout: 248 seconds]
Norrin has joined #ruby-lang
<_Sketch_> For anyone still curious, tests in /tests are run with 'ruby runner.rb testname', such as 'ruby runner.rb csv'
Weems has quit [Read error: Connection reset by peer]
davidbalbert is now known as davidbalber|away
mpan has joined #ruby-lang
Averna has joined #ruby-lang
mistym has quit [Remote host closed the connection]
raggi has left #ruby-lang ["Leaving..."]
dankest is now known as dankest|away
banister`sleep has quit [Read error: Connection reset by peer]
cableray has quit [Quit: cableray]
dankest|away is now known as dankest
three0three has quit [Read error: Connection reset by peer]
itsmeduncan has quit [Quit: itsmeduncan]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
jtoy has joined #ruby-lang
malev has joined #ruby-lang
retro|cz has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
mpan has quit [Read error: Operation timed out]
malev has quit [Remote host closed the connection]
runeb has joined #ruby-lang
jtoy has quit [Quit: jtoy]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
runeb has quit [Ping timeout: 255 seconds]
mpan has joined #ruby-lang
KM|2 has joined #ruby-lang
kurko__ is now known as kurko_
orluke has joined #ruby-lang
madish_ has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
hahuang65 has joined #ruby-lang
itsmeduncan has joined #ruby-lang
thufir_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
ben__ has joined #ruby-lang
toretore has quit [Quit: Leaving]
hahuang65 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ben__ has left #ruby-lang [#ruby-lang]
itsmeduncan has quit [Quit: itsmeduncan]
mjio has quit []
jbsan has quit [Quit: JB.. OUT!]
mjio has joined #ruby-lang
VegetableSpoon has quit [Quit: Leaving]
AndChat| has joined #ruby-lang
<imperator> khaase, spec#required_ruby_version
Banistergalaxy has quit [Ping timeout: 276 seconds]
wyhaines has joined #ruby-lang
wyhaines_ has quit [Read error: Connection reset by peer]
xsdg has joined #ruby-lang
orluke has quit [Quit: orluke]
xsarin has joined #ruby-lang
xsarin has left #ruby-lang [#ruby-lang]
thufir_ has quit [Quit: Leaving.]
esad has joined #ruby-lang
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
ryez has joined #ruby-lang
soypirate has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby-lang
rippa has quit [Ping timeout: 260 seconds]
krz has joined #ruby-lang
Rarrikins has joined #ruby-lang
Rarrikins_g_u has quit [Ping timeout: 248 seconds]
krz has quit [Quit: Leaving]
krz has joined #ruby-lang
tomzx_ has quit [Quit: tomzx_]
ryanv-raptor has joined #ruby-lang
Rarrikins_x has joined #ruby-lang
Rarrikins has quit [Ping timeout: 276 seconds]
macmartine has joined #ruby-lang
jtoy has joined #ruby-lang
rippa has joined #ruby-lang
wyhaines has joined #ruby-lang
wyhaines_ has quit [Read error: Connection reset by peer]
ryez has quit [Ping timeout: 245 seconds]
jackhammer2022 has joined #ruby-lang
rippa has quit [Ping timeout: 260 seconds]
emocakes has quit [Quit: emocakes]
karasawa has joined #ruby-lang
jtoy has quit [Quit: jtoy]
ramonmaruko has quit [Ping timeout: 255 seconds]
krz has quit [Quit: Leaving]
soypirate has quit [Remote host closed the connection]
esad has quit [Quit: Computer has gone to sleep.]
kuja has quit [Ping timeout: 248 seconds]
neocoin has joined #ruby-lang
kuja has joined #ruby-lang
RWN has quit [Ping timeout: 248 seconds]
thufir_ has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
macmartine has quit [Quit: Computer has gone to sleep.]
dankest is now known as dankest|away
charliesome has joined #ruby-lang
<freedrull> anyone else interested in this project? http://savonet.sourceforge.net/ too bad i don't know ocaml. wish it was written in ruby...
ramonmaruko has joined #ruby-lang
will has joined #ruby-lang
will has quit [Client Quit]
klebervi_ has joined #ruby-lang
mpan has quit [Ping timeout: 248 seconds]
dankest|away is now known as dankest
krz has joined #ruby-lang
kuja has quit [Quit: ZNC - http://znc.sourceforge.net]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
kuja has joined #ruby-lang
Weems has joined #ruby-lang
cableray has joined #ruby-lang
dankest is now known as dankest|away
macmartine has joined #ruby-lang
beancuke has joined #ruby-lang
dankest|away is now known as dankest
rdw200169 has quit [Ping timeout: 255 seconds]
alec has quit [Ping timeout: 276 seconds]
gregmore_ has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
gregmore_ has joined #ruby-lang
savagecroc has joined #ruby-lang
<savagecroc> how do i work out what the latest version of ruby 1.8.7 is?
Fretta has quit [Quit: Fretta]
alec has joined #ruby-lang
mistym has quit [Remote host closed the connection]
alec has left #ruby-lang [#ruby-lang]
<havenn> savagecroc: I wrote ya a latest-deprecated-ruby finder: https://gist.github.com/4527962
gregmore_ has quit [Remote host closed the connection]
savagecroc has quit [Remote host closed the connection]
<havenn> savagecroc: #=> => {:name=>"ruby-1.8.7", :url=>"ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p371.tar.gz"}
gregmore_ has joined #ruby-lang
mjio has quit []
<havenn> Or (less fun :P) look at: http://ftp.ruby-lang.org/pub/ruby/1.8/
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Mon_Ouie has joined #ruby-lang
savagecroc has joined #ruby-lang
<savagecroc> havenn: awesome :)
<savagecroc> thats exactly what i did
<savagecroc> but manually
<savagecroc> :)
<havenn> savagecroc: :)
<savagecroc> I need to build a ruby TCP server... and i want it to be fast and handle 1000 or so concurrent connections
<savagecroc> any suggestions on how i should implement
<savagecroc> basically it's going to have a chat to the client, receive a ton of data
<savagecroc> then dump into the db in a single transaction
blahwoop has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Fretta has joined #ruby-lang
tubbo`cloud has quit []
tonni has quit [Remote host closed the connection]
savagecroc has quit [Remote host closed the connection]
Fretta has quit [Ping timeout: 255 seconds]
Rarrikins_x has quit [Ping timeout: 255 seconds]
S2kx has quit [Quit: Leaving]
x2q has quit [Ping timeout: 248 seconds]
x2q has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
Rarrikins has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Rarrikins has quit [Ping timeout: 276 seconds]
Rarrikins has joined #ruby-lang
tonni has joined #ruby-lang
christeraustad_ has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
dankest is now known as dankest|away
christeraustad has quit [Ping timeout: 244 seconds]
christeraustad_ has quit [Ping timeout: 252 seconds]
Rarrikins_p has joined #ruby-lang
blahwoop has quit [Ping timeout: 276 seconds]
Rarrikins has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby-lang
thufir_ has quit [Quit: Leaving.]
Rarrikins_p_d has joined #ruby-lang
gaveen has joined #ruby-lang
Rarrikins_p has quit [Ping timeout: 256 seconds]
Rarrikins_p_d has quit [Ping timeout: 240 seconds]
dankest|away is now known as dankest
vlad_starkov has joined #ruby-lang
Rarrikins has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
Rarrikins_i has joined #ruby-lang
Rarrikins has quit [Ping timeout: 255 seconds]
Rarrikins_i_g has joined #ruby-lang
Rarrikins_i has quit [Ping timeout: 246 seconds]
Rarrikins_i_g has quit [Ping timeout: 244 seconds]
Sinestro has quit [Ping timeout: 246 seconds]
ViPi has joined #ruby-lang
gaveen has joined #ruby-lang
Rarrikins has joined #ruby-lang
Rarrikins_s has joined #ruby-lang
Rarrikins has quit [Ping timeout: 255 seconds]
tonni has quit [Read error: Connection reset by peer]
christeraustad has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
ViPi has quit [Quit: Computer has gone to sleep.]
v0lta has quit [Quit: Bye]
apeiros has quit [Remote host closed the connection]
headius has joined #ruby-lang
cableray has quit [Quit: cableray]
mytrile has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
faces has quit [Ping timeout: 248 seconds]
headius has quit [Quit: headius]
faces has joined #ruby-lang
cableray has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 276 seconds]
zmack has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
tjadc has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
havenn has joined #ruby-lang
dankest has quit [Quit: Leaving...]
agarcia has joined #ruby-lang
owen1 has joined #ruby-lang
Averna has quit [Quit: Leaving.]
<owen1> how to parse big json file? i currently use httparty to access an API that return a json file. it takes about 50 seconds to process it and my request is blocked.
serhart has quit [Quit: Leaving.]
<Spaceghost|cloud> owen1: IO object.
<Spaceghost|cloud> And do a chunked read/write/whatever
<Spaceghost|cloud> I don't know if this is good, but at least look at it to do yourself if you can't use it. Or look for something better: https://github.com/dgraham/json-stream
maja_ has joined #ruby-lang
maja_ has quit [Client Quit]
<yorickpeterse> Morining
<yorickpeterse> *Morning
jimmyy has joined #ruby-lang
jonahR has quit [Quit: jonahR]
ryanf has quit [Quit: leaving]
waffleau has joined #ruby-lang
justinram has joined #ruby-lang
rue|w has joined #ruby-lang
ViPi has joined #ruby-lang
maxmanders has joined #ruby-lang
havenn has quit [Remote host closed the connection]
gnufied1 has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
krz has quit [Ping timeout: 276 seconds]
krzkrzkrz is now known as krz
tonni has joined #ruby-lang
zarubin has joined #ruby-lang
runeb has joined #ruby-lang
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
zarubin has quit [Read error: Connection reset by peer]
zarubin has joined #ruby-lang
zarubin has quit [Client Quit]
rue|w has quit [Remote host closed the connection]
klebervirgilio has quit [Ping timeout: 248 seconds]
KM|2 has quit [Ping timeout: 246 seconds]
jimmyy has quit [Ping timeout: 276 seconds]
jxie has quit [Quit: leaving]
jimmyy has joined #ruby-lang
blacktulip has joined #ruby-lang
zz_chrismcg is now known as chrismcg
solars has joined #ruby-lang
robotmay has joined #ruby-lang
S1kx has joined #ruby-lang
dwu2 has quit [Quit: Leaving.]
lele|w has quit [Read error: Connection reset by peer]
lele|w has joined #ruby-lang
adambeynon has joined #ruby-lang
toretore has joined #ruby-lang
cableray has quit [Quit: cableray]
rue|w has joined #ruby-lang
workmad3 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
solars has quit [Ping timeout: 256 seconds]
jimmyy has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
retro|cz has quit [Ping timeout: 248 seconds]
klebervi_ has joined #ruby-lang
s1n4 has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Disconnected by services]
r0bby is now known as robbyoconnor
rue has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
jimmyy has quit [Remote host closed the connection]
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
dc5ala has joined #ruby-lang
judofyr has joined #ruby-lang
<judofyr> whitequark: heya
<judofyr> or
<injekt> moin
<injekt> HELO
<judofyr> Hey all folks!
<judofyr> injekt \o/
<injekt> judofyr /o\
<judofyr> I started on a new language this weekend /o\
s1n4 has quit [Quit: leaving]
<injekt> writing one?
<judofyr> yes
<judofyr> designing/implementing
<injekt> so you have an orm, a sekret project, and new language
<injekt> and you have a gf and social life
<injekt> do you outsource the latter?
<injekt> I struggle to find time just for work :(
<judofyr> well, there's a reason none of them are release ;)
<injekt> heh
<judofyr> (ehm, I meant the projects, not my gf)
<judofyr> released*
<injekt> so your gf is released
<injekt> i am confuse
<injekt> but cool, what's the plan for the language?
<judofyr> I feel like this is a "have you stopped beating your wife?"-kinda trap…
<injekt> notacop
<judofyr> injekt: functional programming. no mutation.
<injekt> judofyr: inspired by?
r0bby has joined #ruby-lang
<judofyr> but: dynamically typed
runeb has quit [Remote host closed the connection]
<judofyr> injekt: so: dynamically typed, records are heavily used ({a:1, b:2}), yet it supports object-oriented programming with inheritance (both class and prototype-based)
robbyoconnor has quit [Ping timeout: 260 seconds]
<injekt> judofyr: what are you building it on?
<injekt> sounds interesting
<judofyr> all values are immutable
<injekt> lots of challenges
solars has joined #ruby-lang
<judofyr> injekt: well, I'm using http://github.com/judofyr/kramer for the parser. so the first interpreter is going to be built in Ruby.
<judofyr> injekt: then: bootstrap and write a compiler to some other language. maybe JS.
<injekt> judofyr: neat :)
<judofyr> injekt: aiming for a lot of static analysis for performance
<injekt> judofyr: did you think of a name yet? does it begin with a z and have 3 letters?
<judofyr> injekt: it's called "uno" for now
<judofyr> injekt: but if I like the idea, I might rename it to "zero"
<injekt> like the card game?
<judofyr> yeah
<injekt> cool
<judofyr> if not, I'll create a new language and name it "dos"
<judofyr> and so on
<injekt> haha
<injekt> been tempted to write someone on top of rbx but never find the time
sulo has joined #ruby-lang
<judofyr> now I just want the shortest way to bootstrapping
<judofyr> injekt: today is the first day of DailyContributions, so I hope to push some uno-lang code out :D
wudofyr has quit [Remote host closed the connection]
<injekt> judofyr: nice!
wudofyr has joined #ruby-lang
zarubin has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
runeb has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
<chris2> judofyr: do you know mlpolyr?
MaddinXx_ has joined #ruby-lang
<judofyr> chris2: yes, a bit. I've seen the paper, but not really fully digested it.
<chris2> ok
<judofyr> chris2: do you know it? I just briefly looked at it and saw the cases-concept. seems very nifty.
<chris2> yes
<chris2> just the paper
<chris2> pondering to implement a typechecker for it
<judofyr> chris2: I don't really get all the type math/proofs though :P
<judofyr> chris2: I should probably start reading "Types and Programming"
<chris2> the semantics are not very detailed
<chris2> i guess i'll port the ml implementation
<judofyr> my language will be dynamically typed though. but I will still probably add a type interferer to be able to optimize stuff
<chris2> need to implement and grok algorithm w first, tho
<judofyr> and I'll also add something akin to pattern matching
<chris2> i need to figure if mlpolyr is good enough for general programming
<judofyr> I have a weird mix of features though. I have both prototype- and class-based OOP with inheritance, but it's all really just sugar on top of the extensible records
<lupine> hmm, ruby-tftp is a mess
shtirlic has joined #ruby-lang
jimmyy has joined #ruby-lang
r0bby_ has joined #ruby-lang
shtirlic_ has joined #ruby-lang
r0bby_ is now known as robbyoconnor
dwu1 has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
r0bby has quit [Ping timeout: 248 seconds]
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
sulo has quit [Read error: No route to host]
Sinestro has joined #ruby-lang
m3nd3s has joined #ruby-lang
emocakes has joined #ruby-lang
madish has joined #ruby-lang
rue has joined #ruby-lang
pythonsnake has quit [Read error: Operation timed out]
sspiff has quit [Read error: Operation timed out]
andrewvos has quit [Read error: Operation timed out]
vbatts has quit [Read error: Operation timed out]
tonni_ has joined #ruby-lang
vbatts has joined #ruby-lang
andrewvos has joined #ruby-lang
ozzloy has quit [Read error: Operation timed out]
LanceHaig has quit [Read error: Operation timed out]
LanceHaig has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
sspiff has joined #ruby-lang
sspiff has quit [Changing host]
sspiff has joined #ruby-lang
ozzloy has joined #ruby-lang
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
pythonsnake has joined #ruby-lang
karasawa has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby-lang
rue has quit [Ping timeout: 260 seconds]
waffleau has quit [Quit: waffleau]
nkr has joined #ruby-lang
rue|w has quit [Ping timeout: 255 seconds]
rue|w has joined #ruby-lang
dwu1 has quit [Quit: Leaving.]
RWN has joined #ruby-lang
Sinestro has quit [Quit: Computer has gone to sleep.]
gaveen has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby-lang
leopard_me has joined #ruby-lang
Rarrikins_s has quit [Ping timeout: 264 seconds]
RWN has quit [Ping timeout: 276 seconds]
Rarrikins has joined #ruby-lang
ronaldo__ has joined #ruby-lang
burgestrand has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
Rarrikins has quit [Read error: Connection reset by peer]
Rarrikins has joined #ruby-lang
ronaldo__ has left #ruby-lang [#ruby-lang]
madish_ has joined #ruby-lang
retro|cz has joined #ruby-lang
esad has joined #ruby-lang
madish has quit [Ping timeout: 248 seconds]
gaveen has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
postmodern has quit [Quit: Leaving]
madish has joined #ruby-lang
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
carloslopes has joined #ruby-lang
madish_ has quit [Ping timeout: 276 seconds]
madish_ has joined #ruby-lang
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
madish has quit [Ping timeout: 255 seconds]
madish_ has quit [Remote host closed the connection]
glebm has quit [Ping timeout: 246 seconds]
madish has joined #ruby-lang
cjs226 has quit []
sn0wb1rd has quit [Quit: I will be right back]
sulo has joined #ruby-lang
glebm has joined #ruby-lang
sulo has quit [Read error: No route to host]
Nisstyre-laptop has quit [Quit: Leaving]
sulo has joined #ruby-lang
sulo_ has joined #ruby-lang
michi|work has joined #ruby-lang
<Silex> is using the "Money" gem a good idae compared to plain BigDecimal?
dustint_ has quit [Remote host closed the connection]
dustint has quit [Remote host closed the connection]
sulo has quit [Ping timeout: 256 seconds]
<yorickpeterse> that's like asking if it's a better idea to use a plane or a unicycle
<yorickpeterse> They both have completely different use cases
<injekt> always a plane
<judofyr> Silex: just use integers?
<injekt> you can ride your unicycle around the plane
dhruvasagar has quit [Ping timeout: 246 seconds]
<yorickpeterse> injekt: false, it can't go in the hand luggage
<yorickpeterse> At least I don't think it can
<Silex> my issue is that "5320.to_money * 9.73/100" yields 517.63 instead of 517.64
<injekt> hey man i said nothing about hand luggage and you said nothing about this being a domestic flight
<yorickpeterse> injekt: Fuck you, now I'm tempted to bring one the next time I fly
<injekt> yorickpeterse: :D
<Silex> it's in a rails app... if I'd switch to decimal datatype I wouldn't have that problem
<Silex> maybe I'd convert to money only once the value has been calculated
<Silex> but for value manipulation, I'd use BigDecimal instead?
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<judofyr> Silex: just always use the smallest unit (e.g. cents) and then you can use plain integers instead?
justinram has quit [Remote host closed the connection]
<yorickpeterse> ^
<Silex> judofyr: ah wait, this gave me an idea
rue|w has quit [Read error: Connection reset by peer]
<yorickpeterse> Storing dollars/euros/etc isn't a good idea in general
<yorickpeterse> Stick to cents, save yourself trobule
<yorickpeterse> * trouble
rue|w has joined #ruby-lang
<Silex> this is what I'm doing, this is what the Money gem is supposed to do
<judofyr> Silex: so why are you * 9.73/100 ?
<Silex> ah fuck it I can't multiply Money objects together
rue|w has quit [Read error: Connection reset by peer]
<Silex> judofyr: right now I'm trying 5320.to_money * 9.73.to_money/100.to_money
rue|w has joined #ruby-lang
<judofyr> USD²?
<judofyr> :D
<Silex> anyway, what you're advicing is 532000 * 973 / 10000 ?
<judofyr> Silex: yeah
<Silex> what good is the money gem is if I have to do such operations manually?
michi|work has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby-lang
<judofyr> Silex: or: 5320.to_money * (973 / 10000)
<Silex> judofyr: that fails too
<judofyr> Silex: says it should work here: http://rubymoney.github.com/money/
<Silex> judofyr: /10000 is an integer division so it yields 0 :)
<Silex> anyway, even by fixing it:
<Silex> 1.9.3p125 :012 > (5320.to_money * 973) / 10000
<Silex> => #<Money cents:51763 currency:CHF>
<Silex> tjos goves 51763 when it'd be 51764
<Silex> this gives*
emocakes has quit [Quit: emocakes]
<judofyr> ah, so you want it to round it?
<judofyr> round up*
<Silex> I want to round it if > 0.5
<Silex> well you get the idea
<Silex> money does the right this if you do (517.636).to_money
<Silex> it goes to .64
<Silex> it's just when you compute with it that it chops aways the precision
<Silex> I'm pretty sure any financial app rounds up no?
Future[Chimp] has joined #ruby-lang
emocakes has joined #ruby-lang
sepp2k has joined #ruby-lang
<judofyr> Silex: yeah, it has a rounding_mode functionality that's set to ROUND_HALF_EVEN: https://github.com/RubyMoney/money/blob/master/lib/money/money.rb#L104
<judofyr> Silex: but it isn't used everywhere :/
<Silex> ah, so this is theorically tweakable
<Silex> Let's play with it. Thanks!
<Silex> (it's used in #fractional btw)
<Silex> why is it ROUNDING_HALF_EVEN by default tho. ROUND_HALF_UP makes more sense to me
karasawa has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
<Silex> ah apparently it's what is used in banks
<judofyr> Silex: yeah, Thus, for example, +23.5 becomes +24, as does +24.5; while −23.5 becomes −24, as does −24.5.
<Silex> wait. It still doens't work actually... 517.636 should be 517.64
<Silex> if I do (517.636).to_money I get the right number (.64), but when I do (5320.to_money * 973) / 10000
<Silex> I get 517.63
<Silex> do you understand my problem? sorry if I'm unclear and thanks for the help so far
<judofyr> I do understand and no: I'm sorry I can't help you :/
<Silex> what do you reckon I'd do?
<Silex> I'm basically doing a tax application, I'll need to compute percentages on some values, and then sum those values together etc
<lianj> tried using all money objects for the calc?
<Silex> lianj: you can't multiply two money objects together
<Silex> ArgumentError etc
<badeball> Silex: you can always implement the #*-method.
flexd has quit [Quit: WeeChat 0.3.6]
<Silex> anyway, even using plain values in cents has this problem too: (532000 * 973) / 10000
<Silex> this yields 51763
flexd has joined #ruby-lang
<Silex> badeball: hum, what's that? :)
<badeball> if you imeplement a method named * in your money object, you will be able to multiply to money objects together, using your own money logic.
<Silex> you mean monkey patching, well I guess if the guys doing the Money gem thoguht it was a bad idea there's probably a reason
<badeball> it's not monkey patching if it's your object.
MaddinXx_ has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
<lianj> Silex: why is .64 the 'right' number, if you are a back you lose money with it
dc5ala has quit [Quit: Ex-Chat]
<Silex> lianj: 0.636.to_money yields 0.64 itself, anyway I just found something very interesting:
<Silex> 1.9.3p125 :020 > 5320.to_money * (9.73/100)
<Silex> => #<Money cents:51764 currency:CHF>
<Silex> just add the correct parenthesis and suddenly everything works :)
<Silex> lianj: to me the right number is .636... but I have to round to the cents somehow
<Silex> rounding down all the time sounds bad to me
<judofyr> badeball: norwegian?
srbaker has joined #ruby-lang
<badeball> judofyr: yeah
<judofyr> badeball: \o/
<judofyr> badeball: are you famous?
<badeball> judofyr: I don't know how to put this but I'm kind of a big deal
<judofyr> badeball: nice
lele has quit [Quit: Coyote finally caught me]
<judofyr> badeball: 5 followers on GitHub. hardcore.
<badeball> thanks
<judofyr> 6*
<judofyr> badeball: doing something fun in Ruby?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
<judofyr> badeball: hm… Samfundet. cool.
<badeball> judofyr: you must realize that what I said is just a funny quote from anchorman: the legend of ron burgundy :P
<badeball> judofyr: i am by no means famous :|
<judofyr> badeball: I didn't. but I did get the "this is some quote I should get"-vibe
lele has joined #ruby-lang
<Silex> I'll ask a banker friend. Thanks everyone
<judofyr> badeball: is Samfundet.no Rails?
carloslopes has joined #ruby-lang
<badeball> judofyr: not entirely. the process of moving the code over til Rails is rather large, so at the momement, some parts are on Rails and the other part is on PHP and Zend.
<badeball> (and it's a small nightmare, I assure you)
<judofyr> badeball: heh. ah, the pleasures of crappy PHP
<badeball> judofyr: oh yes, our legacy system of doom
* imperator looks up how many followers he has on github
<judofyr> badeball: don't worry. they exist everywhere :)
<judofyr> imperator: so, is this you? https://github.com/imperator :)
<imperator> 36!
<judofyr> heh, I just read that as "36 factorial"…
<imperator> judofyr, nope, djberg96
<judofyr> imperator: 96 as in 1996?
<imperator> yep, when i first got on the intertubes, back in the bad old aol days
rue|w has quit [Ping timeout: 246 seconds]
<judofyr> imperator: ooooo. I thought you were born in 1996…
<judofyr> (first)
<imperator> fucking a dude
<imperator> how long have i been on irc here?
<judofyr> longer than me
<judofyr> so that should be a hint
rue|w has joined #ruby-lang
<imperator> "I first discovered ruby when I was 8 years old..."
<judofyr> imperator: I didn't really think that though. it was more like "woah, can he really have been born in '96?"
<imperator> :-P
tonni_ has quit [Remote host closed the connection]
dustint has joined #ruby-lang
waffleau has joined #ruby-lang
<judofyr> badeball: many Railers at NTNU?
<judofyr> badeball: do you have Ruby/Rails meetups?
vlad_starkov has joined #ruby-lang
rue has joined #ruby-lang
<badeball> judofyr: to my knowledge, there's no rails community here
<badeball> unfortunately
<judofyr> :(
<judofyr> badeball: I guess Python is pretty strong?
solars has joined #ruby-lang
GarethAdams has joined #ruby-lang
<badeball> i wouldn't really know, as I don't engage anything python, but there's generally a real lack of groups altogether at NTNU
<badeball> there's PVV, which is a couple of really hardcore people and a bunch of groupies, the latter which is why I don't bother
<judofyr> badeball: :(
GarethAdams has quit [Client Quit]
<badeball> outside of school however, there's a couple of strong communities, especially at Samfundet
MaddinXx has joined #ruby-lang
<badeball> many companies tend to recruit from them
RWN has joined #ruby-lang
<badeball> judofyr: are you in the business of having to chose an university?
<judofyr> badeball: I think so :)
<judofyr> badeball: but it's very tempting to just stay in Oslo
RWN has quit [Remote host closed the connection]
<badeball> judofyr: it was for me too, but I guarantee you that while you're probably going to have a good time at UiO, you're going to have an even greater time at NTNU
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<judofyr> badeball: :)
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
r0bby has joined #ruby-lang
chekcmate has joined #ruby-lang
<chekcmate> hello
robbyoconnor has quit [Ping timeout: 256 seconds]
kurko__ has joined #ruby-lang
r0bby is now known as robbyoconnor
<judofyr> hey chekcmate
vlad_starkov has quit [Ping timeout: 252 seconds]
jtoy has joined #ruby-lang
scampbell has joined #ruby-lang
scampbell has quit [Max SendQ exceeded]
scampbell has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<chekcmate> judofyr: can I ask you something with regex?
<andrewvos> chekcmate: /yes\ you\ may\./
<judofyr> chekcmate: sure
<judofyr> chekcmate: and remember: it's always better to just ask than to ask to ask ;)
<judofyr> (at least on IRC)
<chekcmate> I get multiple lines from /proc/PID/maps - one of them looks like this:
<chekcmate> 00d2e000-00d91000 rw-p 00000000 00:00 0 [heap]
<chekcmate> I need all lines until this -1
<chekcmate> wait, that sounded wrong
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
<chekcmate> all lines before that HEAP line
<chekcmate> does that question make sense?
vlad_starkov has joined #ruby-lang
<badeball> chekcmate: you want to extract all lines until a line which contains '[heap]'?
<heftig> chekcmate: IMO look at /proc/PID/smaps instead
<heftig> easier to parse
<chekcmate> sorry, boss called
<chekcmate> yes badeball
<judofyr> chekcmate: I'd probably do: thing.each { |line| if line =~ /…/; handle_it; else; return; end }
klebervirgilio has quit [Ping timeout: 244 seconds]
<chekcmate> heftig: smaps is being used later on, thanks though!
<judofyr> chekcmate: so you just write a regexp for the lines you want to match
<chekcmate> well, it's more like "until that HEAP line comes, let 'em coming"
<heftig> i already wrote a tool that reads the whole of smaps into a data structure
<chekcmate> *come
soypirate has joined #ruby-lang
<lianj> each{|l| break if line.match %r|[heap]$| }
<heftig> chekcmate: http://sprunge.us/JXHB , specifically the get_procinfo method
wyhaines has joined #ruby-lang
tonni has joined #ruby-lang
<chekcmate> thanks heftig
<chekcmate> I'll have a look!
yfeldblum has joined #ruby-lang
rdw200169 has joined #ruby-lang
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
breakingthings has joined #ruby-lang
hynkle has joined #ruby-lang
pythonsnake is now known as `\
`\ is now known as pythonsnake
scampbell has quit [Remote host closed the connection]
sailias has joined #ruby-lang
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jxie has joined #ruby-lang
tjadc has quit [Read error: Connection reset by peer]
scampbell has joined #ruby-lang
setmeaway has joined #ruby-lang
scampbell has quit [Max SendQ exceeded]
scampbell has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
waffleau has quit [Quit: waffleau]
gsav has joined #ruby-lang
<bougyman> what did checkmate come up with?
<bougyman> oh, heftig gave him the kitchensink
<bougyman> damn
<bougyman> i had fun with that one.
<bougyman> /([a-f0-9]+-[a-f0-9]+[^\n]+\n)((?:\w+:\s+\d+\s+\w\w\n)+)/m
<ericwood> :|
sailias has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
gsav has quit [Quit: Lost terminal]
gsav has joined #ruby-lang
gsav has quit [Client Quit]
|Vargas| has quit [Quit: ...]
rue|w has quit [Read error: Connection reset by peer]
<chekcmate> umm.. does using lsof instead of directly using /proc/ make a noticeable difference in speed? can't imagine
rue|w has joined #ruby-lang
mistym has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
soypirate has quit [Ping timeout: 255 seconds]
kith has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
karasawa has joined #ruby-lang
breakingthings has quit []
linc01n has quit [Quit: ZNC - http://znc.in]
linc01n has joined #ruby-lang
kith_ has quit [Ping timeout: 252 seconds]
christeraustad has quit [Quit: christeraustad]
unlikely_monkey has quit [Remote host closed the connection]
chekcmate has quit [Quit: Page closed]
rue|w has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
davidbalber|away is now known as davidbalbert
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
diegoviola has joined #ruby-lang
leopard_me has quit [Ping timeout: 260 seconds]
kain has quit [Ping timeout: 246 seconds]
kith has quit [Read error: Connection reset by peer]
kith_ has joined #ruby-lang
leopard_me has joined #ruby-lang
linc01n has quit [Quit: ZNC - http://znc.in]
linc01n has joined #ruby-lang
tonni has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
soypirate has joined #ruby-lang
Rarrikins has quit [Ping timeout: 276 seconds]
apeiros_ has joined #ruby-lang
cored has joined #ruby-lang
carloslopes has joined #ruby-lang
stevechiagozie has joined #ruby-lang
kain has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
jtoy has quit [Quit: jtoy]
apeiros_ has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 256 seconds]
ioga_wrk has quit [Ping timeout: 248 seconds]
carloslopes has joined #ruby-lang
blahwoop has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
enebo has joined #ruby-lang
apeiros_ has joined #ruby-lang
xcombelle has joined #ruby-lang
headius has joined #ruby-lang
bantic has joined #ruby-lang
krz has quit [Quit: krz]
jtoy has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
jtoy_ has joined #ruby-lang
setmeaway has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
leopard_me has joined #ruby-lang
jtoy has quit [Ping timeout: 252 seconds]
jtoy_ is now known as jtoy
burgestrand has quit [Quit: Leaving.]
Uranio has joined #ruby-lang
tonni has joined #ruby-lang
andrewhl has joined #ruby-lang
retro|cz has quit [Remote host closed the connection]
breakingthings has joined #ruby-lang
vlad_starkov has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
imperator has joined #ruby-lang
AndChat| has quit [Ping timeout: 272 seconds]
runeb has quit [Remote host closed the connection]
sailias has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
soypirate has quit [Quit: Leaving]
Banistergalaxy has joined #ruby-lang
soypirate has joined #ruby-lang
jtoy has quit [Quit: jtoy]
cirenyc has joined #ruby-lang
<cirenyc> Debating multiple classes with SRP vs single class with private methods for what the multiple classes would cover.
<cirenyc> Any input on whether one makes more sense over the other when the multiple classes would be classes with a single class method to perform the behavior?
vbatts has quit [Ping timeout: 240 seconds]
<lupine> if the behaviour in the multiple classes is actually all private, why does it need to be in a separate class?
<lupine> erm, that didn't make as much sense as I thought it would
<cirenyc> lupine: I see what you're saying though.
<lupine> :)
<cirenyc> Since only the "main" class needs the behavior (at least for now), why separate it?
<lupine> the only risk as it stands is entangling the behaviour inside the class, leading to others outside the class coming to depend on some aspect of it
<cirenyc> My main motivation, admittedly, was making testing easier.
retro|cz has joined #ruby-lang
<cirenyc> Yeah, as it stands, these blocks of behavior will all be accessed through the main class.
<lupine> no need to test private methods :)
<lupine> (in theory, anyway. unavoidable at times, of course)
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<cirenyc> Right
<lupine> you could get the best of both worlds by constructing a class in a builder that is a private method. you can then use the instance internally, nowhere else will be able to get it, and you can __send__ the private method to get an instance for testing purposes
<lupine> def build_my_class ; a = Class.new(Object) do ... end ; end
io_syl has quit [Quit: Computer has gone to sleep.]
<lupine> but I'd probably avoid that myself
<cirenyc> good to keep in mind for the future, though
Nisstyre-laptop has joined #ruby-lang
zhul_mechanos has joined #ruby-lang
Future[Chimp] has quit [Ping timeout: 252 seconds]
mytrile has quit [Remote host closed the connection]
<cirenyc> lupine: thanks
mercwithamouth has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
soypirate has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 276 seconds]
karasawa has joined #ruby-lang
Future[Chimp] has joined #ruby-lang
Fretta has joined #ruby-lang
justinram has joined #ruby-lang
zhul_mechanos has quit [Ping timeout: 248 seconds]
rue has quit [Remote host closed the connection]
DefV has quit [Ping timeout: 264 seconds]
rue has joined #ruby-lang
glebm has quit [Quit: Textual IRC Client: www.textualapp.com]
DefV has joined #ruby-lang
zhul_mechanos has joined #ruby-lang
qwester has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
agile has quit [Quit: Ex-Chat]
wallerdev has joined #ruby-lang
glebm has joined #ruby-lang
runeb has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
agile has joined #ruby-lang
jtoy has joined #ruby-lang
solars has quit [Read error: No route to host]
glebm has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Remote host closed the connection]
blazes816 has joined #ruby-lang
b1rkh0ff has quit [Read error: Connection reset by peer]
Future[Chimp] has quit [Ping timeout: 255 seconds]
jtoy has quit [Quit: jtoy]
Nisstyre-laptop has joined #ruby-lang
Future[Chimp] has joined #ruby-lang
rue|w has joined #ruby-lang
sulo has joined #ruby-lang
mpan has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
sulo has quit [Remote host closed the connection]
glebm has joined #ruby-lang
sulo_ has quit [Ping timeout: 264 seconds]
runeb has quit [Remote host closed the connection]
rue|w has quit [Ping timeout: 276 seconds]
sulo has joined #ruby-lang
sulo has quit [Remote host closed the connection]
hynkle has quit [Quit: hynkle]
ioga_wrk has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
glebm has quit [Ping timeout: 244 seconds]
sepp2k has quit [Remote host closed the connection]
nkr has quit [Ping timeout: 240 seconds]
dankest has joined #ruby-lang
alvaro_o has joined #ruby-lang
gregmore_ has joined #ruby-lang
christeraustad has joined #ruby-lang
christeraustad has quit [Remote host closed the connection]
christeraustad has joined #ruby-lang
bfreeman has joined #ruby-lang
<owen1> Spaceghost|cloud: thanks
plusk has joined #ruby-lang
<owen1> Spaceghost|cloud: i discovered that the problem is the http call and not the parse...
vbatts has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
__butch__ has joined #ruby-lang
macmartine has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ddd has quit [Ping timeout: 245 seconds]
andruby has joined #ruby-lang
ddv has quit [Ping timeout: 240 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
sulo has joined #ruby-lang
rolfb has joined #ruby-lang
ddv has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
benanne has joined #ruby-lang
hynkle has joined #ruby-lang
sulo has quit [Ping timeout: 246 seconds]
robotmay has quit [Remote host closed the connection]
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
<Spaceghost|cloud> owen1: Doing a non-chunked request?
gnufied1 has quit [Quit: Leaving.]
maxmanders has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has joined #ruby-lang
benanne has quit [Quit: kbai]
kurko__ is now known as kurko_
io_syl has joined #ruby-lang
rippa has joined #ruby-lang
glebm has joined #ruby-lang
breakingthings has quit []
runeb has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
Nisstyre has joined #ruby-lang
mrsolo has joined #ruby-lang
runeb has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
stevechiagozie has joined #ruby-lang
__BigO__ has joined #ruby-lang
<owen1> Spaceghost|cloud: interesting. chunked request is a way to send parts of the request and not wait until all the data is done, right? what servers/gems do i need?
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
<owen1> cat u do chunked requests in rails or is it easier in sinatra
beancuke has left #ruby-lang [#ruby-lang]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
hahuang65 has joined #ruby-lang
runeb has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
karasawa has quit [Ping timeout: 252 seconds]
sailias1 has joined #ruby-lang
karasawa has joined #ruby-lang
ddd has joined #ruby-lang
Future[Chimp] has quit [Quit: Leaving]
andruby has quit [Quit: ByeBye]
sailias has quit [Ping timeout: 240 seconds]
<zzak> rack does this, so both
Nisstyre has quit [Ping timeout: 248 seconds]
<yfeldblum> owen1, no, chunked is a way to send a request in a keep-alive connection without specifying the bytes-length of the request up-front
<yfeldblum> owen1, or a response, usually
sailias has joined #ruby-lang
drbrain has joined #ruby-lang
tonni_ has joined #ruby-lang
sailias1 has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 256 seconds]
jtoy has joined #ruby-lang
Weems has quit []
mjolk has joined #ruby-lang
retro|cz has quit [Ping timeout: 248 seconds]
janjos has joined #ruby-lang
maxmanders has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
vlad_starkov has joined #ruby-lang
sabfer has joined #ruby-lang
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
andruby has joined #ruby-lang
brianpWins has joined #ruby-lang
earthquake has quit [Ping timeout: 264 seconds]
mistym is now known as mistym_lunch
cultureulterior_ has quit [Quit: cultureulterior_]
shtirlic_ has quit [Remote host closed the connection]
<Spaceghost|cloud> owen1: One sec.
<jtoy> how would you guys recommend turning an array into a hash where each key is from the array and each value is just 1 ?
<yfeldblum> jtoy, Hash[array.map{|el| [el, 1]}]
<yfeldblum> jtoy, or `r = {}; array.each{|el| r[el] = 1} ; r`
breakingthings has joined #ruby-lang
earthquake has joined #ruby-lang
runeb has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
bantic has quit [Quit: bantic]
<heftig> or Hash[array.zip([1].cycle)]
mpan has quit [Read error: Connection reset by peer]
qwester has quit [Quit: Linkinus - http://linkinus.com]
setmeaway has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mercwithamouth has quit [Ping timeout: 256 seconds]
mistym has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
zcl0ud has joined #ruby-lang
drbrain has joined #ruby-lang
drbrain has quit [Read error: Connection reset by peer]
drbrain has joined #ruby-lang
mpan has joined #ruby-lang
bright_day has joined #ruby-lang
andruby has quit [Quit: Computer has gone to sleep.]
drbrain has quit [Ping timeout: 276 seconds]
bright_day has quit [Remote host closed the connection]
leopard_me has quit [Quit: Computer has gone to sleep.]
leopard_me has joined #ruby-lang
leopard_me has quit [Client Quit]
bantic has joined #ruby-lang
<owen1> yfeldblum: is it live streaming feauture of rails 4?
<owen1> or node.js?
cirenyc has quit [Quit: Leaving...]
bantic has quit [Client Quit]
<yfeldblum> owen1, rails 4 will expose the response stream in the controller
<yfeldblum> owen1, but i think you can already do similar things with just Rack, with Goliath, with WebMachine, or with EM
bantic has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
andruby has joined #ruby-lang
workmad3 has joined #ruby-lang
bluepojo has joined #ruby-lang
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
zmack_ has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
zmack has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
apeiros_ has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
b1rkh0ff has joined #ruby-lang
wyhaines has joined #ruby-lang
io_syl has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby-lang
mpan has quit [Remote host closed the connection]
dstywho has joined #ruby-lang
spuk has joined #ruby-lang
plusk has quit [Quit: plusk]
lcdhoffman has joined #ruby-lang
elux has joined #ruby-lang
elux has quit [Client Quit]
karasawa has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby-lang
diegoviola has quit [Ping timeout: 256 seconds]
richardjortega_ has joined #ruby-lang
agile has quit [Quit: Ex-Chat]
richardjortega has quit [Ping timeout: 264 seconds]
richardjortega_ is now known as richardjortega
retro|cz has joined #ruby-lang
christeraustad has quit [Quit: christeraustad]
rippa has quit [Read error: Connection reset by peer]
JMcAfreak has quit [Quit: They're coming to take me away, ha-haa!]
rippa has joined #ruby-lang
runeb has joined #ruby-lang
andrewhl has joined #ruby-lang
ddd has quit [Quit: Leaving.]
runeb has quit [Ping timeout: 260 seconds]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
sailias has joined #ruby-lang
runeb has joined #ruby-lang
zmack_ has quit [Remote host closed the connection]
blahwoop has quit [Ping timeout: 276 seconds]
Norrin has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
bluepojo has quit [Quit: Leaving.]
m3nd3s has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
io_syl has quit [Ping timeout: 260 seconds]
cjs226 has joined #ruby-lang
bluepojo has joined #ruby-lang
Bearproof has joined #ruby-lang
io_syl has joined #ruby-lang
adambeynon has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
lcdhoffman has quit [Client Quit]
blahwoop has joined #ruby-lang
aedorn has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
postmodern has joined #ruby-lang
drbrain has joined #ruby-lang
bantic has quit [Read error: Connection reset by peer]
bantic_ has joined #ruby-lang
benanne has joined #ruby-lang
<cored> hello
<cored> does any of you know if there is a basecamp new api wrapper ?
bluepojo has quit [Quit: Leaving.]
<owen1> yfeldblum: got it. thanks
banisterfiend has joined #ruby-lang
<owen1> yfeldblum: or sinatra, i believe
rippa has quit [Ping timeout: 260 seconds]
tdy has joined #ruby-lang
bluepojo has joined #ruby-lang
mistym_lunch is now known as mistym
workmad3 has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 264 seconds]
andruby has quit [Quit: ByeBye]
hugobastien has joined #ruby-lang
blahwoop has quit [Ping timeout: 245 seconds]
sabfer has quit [Quit: sabfer]
bradland has joined #ruby-lang
imajes has quit [Excess Flood]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
imajes has joined #ruby-lang
bantic has joined #ruby-lang
klebervi_ has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
bantic_ has quit [Ping timeout: 248 seconds]
runeb has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
havenn has joined #ruby-lang
outoftime has joined #ruby-lang
kenk has joined #ruby-lang
kenk has left #ruby-lang [#ruby-lang]
vlad_starkov has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
bradland has quit [Quit: bradland]
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
thone_ has joined #ruby-lang
sabfer has joined #ruby-lang
thone has quit [Ping timeout: 260 seconds]
klebervirgilio has quit [Ping timeout: 255 seconds]
guns has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
outoftime has quit [Ping timeout: 276 seconds]
robotmay has joined #ruby-lang
cored has quit [Ping timeout: 276 seconds]
__BigO__ has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
hynkle has quit [Quit: hynkle]
hugobastien has quit [Ping timeout: 248 seconds]
karasawa has quit [Ping timeout: 256 seconds]
karasawa has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby-lang
sailias has quit [Quit: Leaving.]
mjolk has left #ruby-lang ["Leaving"]
blacktulip has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 240 seconds]
mjio has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
cirenyc has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
scampbell has quit [Remote host closed the connection]
cjs226 has quit []
elux has joined #ruby-lang
cirenyc has quit [Client Quit]
kurko_ has quit [Ping timeout: 252 seconds]
sabfer has quit [Quit: sabfer]
dustint has quit [Remote host closed the connection]
dstywho has quit [Quit: WeeChat 0.3.9.2]
Nisstyre has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
apeiros_ is now known as apeiros|afk
solars has joined #ruby-lang
setmeaway has joined #ruby-lang
runeb has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
soypirate has joined #ruby-lang
runeb has quit [Ping timeout: 248 seconds]
ddd has joined #ruby-lang
carloslopes has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
setmeaway has quit [Quit: Leaving]
aedorn has quit [Quit: Leaving]
havenn has joined #ruby-lang
breakingthings has quit []
andrewhl has quit [Remote host closed the connection]
klebervi_ has joined #ruby-lang
zarubin has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
chendo_ has joined #ruby-lang
havenn has quit [Ping timeout: 276 seconds]
havenn has joined #ruby-lang
zarubin has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
sailias has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
Hakon has joined #ruby-lang
Averna has joined #ruby-lang
<epitron> hello ruby lang
<emocakes> hello jesus
<epitron> so, ruby 2.0 is quickly approaching
<imperator> greetings
<epitron> and rubygems still spams your filesystem and displays exponential slowdowns as the number of gems increases
<epitron> i was thinking we should have a talk about this :)
<drbrain> epitron: it's too late
<drbrain> for ruby 2.1, maybe
<epitron> hmm
<epitron> alright
<drbrain> epitron: you should have given feedback before ruby 2.0.0 preview3
<epitron> well, i gave feedback every year for the last 3 years
<epitron> but i guess... wheels turn slowly :)
<epitron> i think we need more than feedback
<epitron> we need an intervention
<bluepojo> or a patch
<drbrain> epitron: I can make changes to rubygems at any time, but it is too late for me to commit those to ruby
<epitron> understood
<epitron> this requires a tradeoff kind of decision as well
__BigO__ has quit [Remote host closed the connection]
<epitron> which is why some discussion is good
<epitron> like, i have a prototype where i replace 'require' with one that caches all the files in a constant-database
<epitron> and has instant lookups
<epitron> i think all the solutions will require a cache of some sort
<epitron> another possibility is to flag those strange gems that don't follow the "gemname-version/lib/gemname.rb" directory structure
emocakes has quit [Ping timeout: 252 seconds]
<epitron> because, for 99% of gem cases, "require 'gemname'" means to load gemname/lib/gemname.rb
tdy has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<epitron> drbrain: are you leaning towards a specific remedy?
<drbrain> epitron: I haven't seen any benchmark that shows this is a RubyGems issue
<drbrain> without that I can't make any opinion
<epitron> really??
<epitron> try installing 150 gems, then run 'strace ruby -rrubygems -e 1'
<epitron> :)
<epitron> you can also use time instead of strace
<drbrain> epitron: and if I have the same number of files in $LOAD_PATH?
cjs226 has joined #ruby-lang
<epitron> the problem isn't the path
<drbrain> please show me
<epitron> it's that rubygems eagerly loads every single gemspec
<epitron> paths are a problem too...
<epitron> just try that strace command
<epitron> it doesn't matter if you don't have 150 gems
<epitron> you can see all the redundant fstats
benanne has quit [Quit: kbai]
<epitron> it's just this mountain of spam :)
tdy has quit [Ping timeout: 248 seconds]
<drbrain> epitron: I have 110 gems installed
<drbrain> ruby20 -e1 takes 0.030s real
<drbrain> GEM_HOME= GEM_PATH= time ruby20 -e1 takes 0.02s real
setmeaway has joined #ruby-lang
<epitron> hmm
<drbrain> it's no different if I add -rubygems
<epitron> there must've been a change recently
<drbrain> this is with: ruby 2.0.0dev (2013-01-14 trunk 38813) [x86_64-darwin12.2.1]
<epitron> sorry, i'll get back to you
<epitron> i have a feeling this is still happening, but i'm not seeing it right now
bfreeman has quit [Read error: Connection reset by peer]
bfreeman has joined #ruby-lang
srbaker has joined #ruby-lang
<drbrain> there is a difference with: time GEM_HOME= GEM_PATH= ruby20 -rubygems -e 'Gem::Specification.all'
<drbrain> vs with 110 gems
<drbrain> but I see 0.085s real with gems vs 0.03 without
<drbrain> (~0.045 spent loading gemspecs)
<epitron> hopefully it's fixed! :D
<drbrain> err, 0.055s
<epitron> that would be amazing
<epitron> heh, it is still doing tree-fondling: http://pastie.org/pastes/5685769/text
<drbrain> require speed may be a separate issue that must be solved in ruby itself, but lately I haven't seen evidence that loading gemspecs causes exponential slowdown
<epitron> well, it used to read every single spec the first time you tried to require something
<postmodern> resolving dependencies does though
<epitron> and it used to tree-fondle every single spec it tried to load
<epitron> ahh
<drbrain> AFAIK rubygems doesn't have code that would cause all those stats
<epitron> no, that's just ruby
agile has joined #ruby-lang
<epitron> tree-grope sounds less creepy :)
Bearproof has left #ruby-lang [#ruby-lang]
<epitron> i'm going with that
srbaker has quit [Ping timeout: 252 seconds]
mistym_ has joined #ruby-lang
mistym has quit [Read error: Connection reset by peer]
mistym_ has left #ruby-lang [#ruby-lang]
jonahR has quit [Quit: jonahR]
yfeldblum has joined #ruby-lang
mistym has joined #ruby-lang
<drbrain> you could just go with tree-walk
<epitron> i do want it to sound slightly pejorative :)
<epitron> maybe it has to lstat for symlinks?
<epitron> sorry, i'll come back when i've done more research
<epitron> thanks for listening :)
ddd has quit [Quit: Leaving.]
Hakon has quit [Quit: Leaving...]
jtoy has quit [Quit: jtoy]
srbaker has joined #ruby-lang
beancuke has joined #ruby-lang
beancuke has left #ruby-lang [#ruby-lang]
bantic has quit [Quit: bantic]
yaroslav has joined #ruby-lang
jacktrick has joined #ruby-lang
itsmeduncan has joined #ruby-lang
runeb has joined #ruby-lang
hugobastien has joined #ruby-lang
zhul_mechanos has quit [Quit: zhul_mechanos]