apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
henrikhodne has joined #ruby-lang
Gaelan has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
anonymuse has quit [Quit: Leaving...]
symm- has quit [Ping timeout: 256 seconds]
elia has quit [Quit: Computer has gone to sleep.]
intellitech has quit [Quit: SMOKE BOMB!]
__butch__ has quit [Quit: Leaving.]
thone_ has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 256 seconds]
thone has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
tomzx has left #ruby-lang [#ruby-lang]
NemesisD has quit [Ping timeout: 248 seconds]
cofin has quit [Quit: cofin]
tomzx_mac has joined #ruby-lang
r0bby_ has quit [Ping timeout: 256 seconds]
nathanstitt has joined #ruby-lang
teleological has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
fedesilva has quit [Ping timeout: 256 seconds]
cofin has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
stringly_typed has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
poems has joined #ruby-lang
codelurker has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
LinkedoT has joined #ruby-lang
fedesilva has joined #ruby-lang
pskosinski has quit [Quit: pskosinski]
<zenspider> rawr
<zenspider> damnit headius
heftig has quit [Ping timeout: 240 seconds]
justinmb_ has joined #ruby-lang
codelurker has quit [Quit: Leaving]
mdedetrich has joined #ruby-lang
<mdedetrich> I am attempting to make random numbers with 2 figures in the decimal using this piece or code
<mdedetrich> Random.rand(1000..999999) + Random.rand(0..9**2)*0.01
dooleyburger has joined #ruby-lang
<mdedetrich> however sometimes I get answers like 903982.6800000001 (instead of 903982.68)
<mdedetrich> does anyone know why this is hapenning
Nisstyre-laptop has joined #ruby-lang
justinmb_ has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
dingus_khan has joined #ruby-lang
DomKM has quit [Quit: Leaving.]
justinmb_ has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Domon has joined #ruby-lang
Gaelan has quit [Ping timeout: 248 seconds]
justinmb_ has quit [Ping timeout: 276 seconds]
dooleyburger has quit [Quit: This computer has gone to sleep]
Nisstyre-laptop is now known as Nisstyre
stringly_typed has quit [Read error: Connection reset by peer]
Domon has quit [Ping timeout: 252 seconds]
pkrnj has quit [Ping timeout: 264 seconds]
synthetix has joined #ruby-lang
Spaceghost|work has joined #ruby-lang
hashkey has joined #ruby-lang
pkrnj has joined #ruby-lang
charliesome has joined #ruby-lang
Domon has joined #ruby-lang
dooleyburger has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
cored has quit [Ping timeout: 256 seconds]
pkrnj has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
poems has quit [Read error: Connection reset by peer]
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby-lang
poems has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
Drew_ has joined #ruby-lang
dooleyburger has quit [Quit: This computer has gone to sleep]
randomlogin has joined #ruby-lang
randomlogin has quit [Client Quit]
randomlogindddd has joined #ruby-lang
randomlogindddd has left #ruby-lang [#ruby-lang]
justinmb_ has joined #ruby-lang
randomlogin has joined #ruby-lang
jxie has quit [Quit: leaving]
justinmb_ has quit [Remote host closed the connection]
jxie has joined #ruby-lang
krz has joined #ruby-lang
KM|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<bnagy> mdedetrich: because floats
yxhuvud has quit [Read error: Connection reset by peer]
<mdedetrich> bnagy: yeah I ended up fixing it with to_f along with round
<bnagy> why not Random.rand( 1000.00 .. 10000 ).round(2)
<mdedetrich> bnagy: yeah thats what I ended up doing
<bnagy> ok, because I don't think 0..9**2 is doing what you want, unless you're doing something bizarre
<mdedetrich> yeah I changed that as well, it was from something else
stringly_typed has joined #ruby-lang
Edder has joined #ruby-lang
arubin has joined #ruby-lang
pkrnj has quit [Read error: Operation timed out]
Edder has quit [Quit: Textual IRC Client: www.textualapp.com]
stringly_typed has quit [Quit: Computer has gone to sleep.]
priodev has quit [Ping timeout: 240 seconds]
mockra has quit [Remote host closed the connection]
Drew_ has quit [Remote host closed the connection]
mockra has joined #ruby-lang
teleological has joined #ruby-lang
priodev has joined #ruby-lang
postmodern has quit [Quit: Leaving]
heftig has joined #ruby-lang
codelurker has joined #ruby-lang
vlad_starkov has joined #ruby-lang
teleological has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
benlovell has quit [Ping timeout: 248 seconds]
dooleyburger has joined #ruby-lang
crudson has quit [Quit: Leaving.]
lguardiola has joined #ruby-lang
DomKM has joined #ruby-lang
pkrnj has joined #ruby-lang
pkrnj has quit [Client Quit]
teleological has joined #ruby-lang
dooleyburger has quit [Quit: This computer has gone to sleep]
dingus_khan has quit [Remote host closed the connection]
LinkedoT has quit [Ping timeout: 240 seconds]
[[thufir]] has joined #ruby-lang
ldnunes has quit [Quit: Saindo]
xxaM has joined #ruby-lang
nertzy3 has quit [Ping timeout: 276 seconds]
LinkedoT has joined #ruby-lang
rippa has joined #ruby-lang
Gaelan has joined #ruby-lang
djwonk has joined #ruby-lang
dooleyburger has joined #ruby-lang
codelurker has quit [Quit: Leaving]
nertzy3 has joined #ruby-lang
krombr has quit [Remote host closed the connection]
DomKM has quit [Quit: Leaving.]
rippa has quit [Ping timeout: 240 seconds]
dingus_khan has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
Spaceghost|work has quit [Remote host closed the connection]
sebastiansier has quit [Remote host closed the connection]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
dooleyburger has quit [Quit: This computer has gone to sleep]
spuk has quit [Ping timeout: 245 seconds]
r0bby_ has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
<dingus_khan> is anyone familiar with RubyMonk?
spuk has joined #ruby-lang
DomKM has joined #ruby-lang
<dingus_khan> also, why are there SO many people logged into this channel, and yet only 4 or 5 of them ever say anything? what am I missing?
<zenspider> because floats?
<bnagy> hey that's my line, dammit
<zenspider> :D
<bnagy> dingus_khan: people answer questions if they can and if they want to
r0bby_ is now known as robbyoconnor
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> if one or neither of those things is not true, they don't usually say "HELLO I AM HERE BUT I DO NOT KNOW THE ANSWER"
<bnagy> because that would be annoying
<bnagy> ugh double negative. Kill me.
julianhurley has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby-lang
stringly_typed has joined #ruby-lang
julianhurley has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby-lang
julianhu_ has joined #ruby-lang
julianhurley has quit [Read error: Connection reset by peer]
poems has quit []
nathanstitt has quit [Quit: I growing sleepy]
Domon has quit [Remote host closed the connection]
<erikh> hello
<dingus_khan> whoops
<dingus_khan> I kinda feel like I should say HELLO I AM HERE BUT I DO NOT KNOW THE ANSWER so other people don't wonder if maybe I do but I'm being stingy
<dingus_khan> :D
<erikh> it doesn't have to be high traffic to be high quality.
<dingus_khan> truth
<erikh> go into #ubuntu or #debian if you want examples of the opposite
<dingus_khan> really?
<erikh> or #rubyonrails
<dingus_khan> I wonder why that is
<erikh> there's so much noise in those channels I can barely keep up
<dingus_khan> you've suddenly made me appreciate the low noise content of this channel
<erikh> well, join them if you want to really appreciate it
<dingus_khan> erikh, I shall credit you someday with partial responsibility for my general enlightenment of important internet things. dress up
<erikh> hahaha
<erikh> is a hoodie and shorts dressing up?
<erikh> I got to the k-fed school of fashion
<dingus_khan> well I was going to ask if you were cool with Outback
<dingus_khan> see I don't know what that is even, hah
<dingus_khan> SO MUCH LEARNING
<erikh> it's ok, you're probably better off not knowing
<dingus_khan> fair enough
<dingus_khan> so where were you when you first learned you could skip curly braces for a hash in a parameter list?
<dingus_khan> please say 'Nam
aatrostle has joined #ruby-lang
<erikh> raggi
<erikh> yelled at me once
<erikh> learned lots of things that way
<bnagy> is there any painless way to keep a 'public' version of a project that has a subset of the 'private' version, but stays in sync?
<dingus_khan> raggi?
<bnagy> with git, ideally
<erikh> dingus_khan: a guy who used to be a regular in here
<dingus_khan> answer that first
<dingus_khan> gotcha
<erikh> bnagy: I don't have a good solution... although I think bitbucket just released a replacement for git submodules
<erikh> which is how I would do it, if git submodules weren't complete ... magic
<bnagy> yeah I looked at submodules
<erikh> bnagy: you know, you might want to pop into #chef-hacking during PST workday hours
<erikh> ask the guys at opscode. I know they do a fair bit of it.
<bnagy> but in the end i thought it was easier to just have separate repos and not shoot myself in the face
<erikh> yeah, check out the bitbucket thing too
<bnagy> it would be nice to be able to git rebase --dont-put-any-files-back-damn-you
<erikh> yeah.
<erikh> the opscode guys definitely do their fair share of it though
<erikh> would be worth asking them.
<bnagy> k
<erikh> like, real world, we-lose-money-if-this-goes-out cases.
<bnagy> yeah I would lose only my job
<erikh> heh.
<erikh> "only"
<erikh> dingus_khan: raggi was a ruby hero this year, fwiw.
<bnagy> meh there's always more jobs
<erikh> he's a pretty awesome fella.
<dingus_khan> sweet, doesn't hang around much anymore?
<dingus_khan> did I noob it up too much in here for him?
<erikh> nah, he left a while ago
<erikh> he's just trying to minimize noise, like lots of others
<erikh> he's pretty busy these days.
mistym has quit [Remote host closed the connection]
Quatrerwin has joined #ruby-lang
kgrz has joined #ruby-lang
<zenspider> rawr
<zenspider> 22.78 seconds to run tests across 59 projects
<erikh> oh, also, I learned a lot from having zenspider and drbrain yell at me too
<erikh> noob problems are really no big deal. it's being an asshole in here that will get you shit canned
henrikhodne has joined #ruby-lang
<zenspider> 18663 assertions across 5846 tests.
<erikh> wow
<erikh> I wish I could make VMs provision faster
<zenspider> and they PASS! go figure
<erikh> 18663 mocks across 5846 tests
<erikh> :P
<zenspider> :(
Fretta has quit [Quit: Fretta]
justinmb_ has joined #ruby-lang
nignaztic has quit [Ping timeout: 264 seconds]
justinm__ has joined #ruby-lang
justinmb_ has quit [Ping timeout: 276 seconds]
Gaelan has joined #ruby-lang
teleological has quit [Remote host closed the connection]
cordax has joined #ruby-lang
apeiros has joined #ruby-lang
<zenspider> It's bait to see who gets distracted by irrelevant minutiae.
<zenspider> People curse. Some even scamper promisingly close to wit. Who cares. Move on. ;)
<zenspider> haha
dabradley has quit [Read error: Operation timed out]
<zenspider> charliesome: good find. I don't follow core anymore because it is full of noise, but that was good
rolfb has joined #ruby-lang
<erikh> haha nobu's comment is gold
<erikh> Ruby doesn't prevent you from fucking yourself.
henrikhodne has quit [Quit: Computer has gone to sleep.]
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
fosky has quit [Ping timeout: 256 seconds]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
singpoly1a has quit [Ping timeout: 260 seconds]
singpolyma has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 248 seconds]
Gaelan_ has joined #ruby-lang
Gaelan has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
crudson has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
Domon has joined #ruby-lang
randomlogin has quit [Ping timeout: 252 seconds]
randomlogin has joined #ruby-lang
<zenspider> rawr. all minitest 5 deprecation warnings cleaned up. full sanity sweep is happy.
wallerdev has quit [Quit: wallerdev]
Gaelan_ has quit [Remote host closed the connection]
alessio_rocco has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
noop has joined #ruby-lang
randomlogin has quit [Quit: randomlogin]
yxhuvud has joined #ruby-lang
nazty has joined #ruby-lang
dzhulk has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dingus_khan has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 260 seconds]
Criztian has joined #ruby-lang
mytrile has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
<bnagy> hey
Cakey has joined #ruby-lang
<bnagy> like... if there are no args why are you trying to super instead of super()?
<bnagy> I ask because the lib is breaking for me here, not idle curiosity :)
apeiros has joined #ruby-lang
[[thufir]] has quit [Ping timeout: 264 seconds]
Criztian has quit [Remote host closed the connection]
erikh has quit [Quit: ZNC - http://znc.sourceforge.net]
LinkedoT has quit [Ping timeout: 256 seconds]
LinkedoT has joined #ruby-lang
Criztian has joined #ruby-lang
priodev has quit [Ping timeout: 240 seconds]
priodev has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
[[thufir]] has joined #ruby-lang
[[thufir]] has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
r0bby has quit [Ping timeout: 264 seconds]
vmoravec has joined #ruby-lang
erikh has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
dingus_khan has joined #ruby-lang
kn0tsel has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Cakey_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
stringly_typed has quit [Quit: Computer has gone to sleep.]
dingus_khan has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
dzhulk has quit [Quit: Leaving.]
fsvehla has joined #ruby-lang
megha has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kn0tsel has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
stamina has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kn0tsel has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
GeissT has joined #ruby-lang
barttenbrinke has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
solars has joined #ruby-lang
krombr has joined #ruby-lang
vlad_starkov has joined #ruby-lang
aatrostle has quit [Remote host closed the connection]
kn0tsel is now known as _KGBot_
krombr has quit [Remote host closed the connection]
DomKM has quit [Quit: Leaving.]
jbsan has quit [Quit: jbsan]
mockra has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
woollyams has quit [Ping timeout: 276 seconds]
<yorickpeterse> morning
fosky has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
dzhulk has joined #ruby-lang
sush24 has joined #ruby-lang
dzhulk has quit [Ping timeout: 260 seconds]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
<bnagy> \o
io_syl has quit [Quit: Computer has gone to sleep.]
teleological has joined #ruby-lang
Criztian has joined #ruby-lang
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
randomlogin has joined #ruby-lang
judofyr has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
sush24 has quit [Quit: This computer has gone to sleep]
<bnagy> bnagy opened this issue in a few seconds <3 github
<bnagy> I was opening this issue before it was even temporally possible
gnufied has joined #ruby-lang
<yorickpeterse> are you a wizard?
hogeo has joined #ruby-lang
aob has quit [Ping timeout: 246 seconds]
benlovell has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
dc5ala has joined #ruby-lang
LinkedoT has quit [Ping timeout: 264 seconds]
LinkedoT has joined #ruby-lang
Criztian has joined #ruby-lang
julianhu_ has quit [Remote host closed the connection]
julianhurley has joined #ruby-lang
<bnagy> aight, aight, I put on my robe and wizard hat...
_KGBot_ has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
elia has joined #ruby-lang
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
<mdedetrich> hey I am trying to pass in a lambda as a block in a FactoryGirl method and I am getting this error
<mdedetrich> undefined method `&' for #<FactoryGirl::Declaration::Dynamic:0x007f86e93d1248>
<andrewvos> wat http://trydecaf.org/
<mdedetrich> any reason why this is hapenning?
ajack has joined #ruby-lang
<mdedetrich> sequence(:customer_number) &random_customer_number is the line of code I am using, where random_customer_number is the lambda
<canton7> mdedetrich, pastie a code sample? it's hard to visualise what you mean
<yorickpeterse> eh wth is that
<yorickpeterse> you'll want this probably:
<yorickpeterse> sequence(:customer_number, &random_customer_number)
<yorickpeterse> passing blocks should be done as a parameter, not as a method call (in your case)
<mdedetrich> well the conventional way to calls sequence is like this
<yorickpeterse> since that would result in `sequence(..).send(:&, parameter)`
<mdedetrich> ah, that worked, thanks!
benlovell has joined #ruby-lang
tonni has quit [Remote host closed the connection]
<whitequark> andrewvos: it's just webkit with another scripting engine
<whitequark> from the looks of it, it seems that the guy's pretty serious
<whitequark> though I have a hard time thinking about potential applications.
pcboy_ has quit [Read error: Operation timed out]
<whitequark> his thesis maybe?..
slightair has quit [Ping timeout: 256 seconds]
_KGBot_ has joined #ruby-lang
<yorickpeterse> assuming the performance isn't shit I don't see why this *isn't* a good idea
<yorickpeterse> besides being webkit specific
knu0 has quit [Ping timeout: 252 seconds]
knu0 has joined #ruby-lang
shinh__ has quit [Ping timeout: 256 seconds]
_KGBot_ is now known as bugg
<whitequark> yorickpeterse: well
kgrz has quit [Ping timeout: 276 seconds]
<whitequark> I can imagine someone distributing a "native" app which consists of webkit and some ruby code
<whitequark> but the problem is that "native" apps which are HTML5 wrapped with something are always just shit
<yorickpeterse> everything is better than JS
<yorickpeterse> *EVERYTHING*
<whitequark> you're pretty boring, you know?
slightair has joined #ruby-lang
shinh__ has joined #ruby-lang
<yorickpeterse> your face is boring
<andrewvos> ):
<whitequark> wanna hate something, it's OK, but do it in a justified and rational way
kgrz has joined #ruby-lang
dhruvasagar has quit [Quit: leaving]
<yorickpeterse> Implying that my hate is not justified
<andrewvos> To hell with that
<yorickpeterse> plus can you justify why HTML5 is apparently always shit?
<yorickpeterse> pot, kettle, etc
<yorickpeterse> (for native apps)
<whitequark> sure
marr has joined #ruby-lang
<yorickpeterse> Do you want me to justify JS being shit? Because I can go on all day long if you like
<yorickpeterse> though it can be summed up as "It's the PHP of browsers"
<whitequark> apart from having almost zero integration with the underlying OS, I have a hard time finding a webapp which won't be slow (on my fucking i7) and memory-leaky
workmad3 has quit [Ping timeout: 256 seconds]
<whitequark> besides, there's a more fundamental problem
<yorickpeterse> and how are those not implementation specific issues?
pcboy_ has joined #ruby-lang
<yorickpeterse> or issues of the developers?
<yorickpeterse> If you're going to be pedantic about having to proof shit you better come up with some decent arguments yourself instead of these half assed ones
<whitequark> HTML was created as a markup language. it's excellent for markup, i.e. look at wikipedia. it was never created for interface design, and doing good interfaces in html is really damn hard
<whitequark> yorickpeterse: implementation specific? because all implementations behave like that
<yorickpeterse> Related to the UI, I'm pretty god damn sure it's easier than Glade and all the spinoffs on Linux
<whitequark> yorickpeterse: familiarize yourself with qt creator
<yorickpeterse> But I have better stuff to do, I hate Javascript, deal with it :)
<yorickpeterse> hahahaah Qt, once it doesn't look like hairy male ass on non KDE environments (where it does too btw) I'll take another look at it
<whitequark> yeah, talk about decent arguments
<whitequark> it isn't even related to KDE, Qt can use your GTK theme (and vice versa)
<whitequark> if you want that.
<yorickpeterse> I'm well aware of that, and I've never managed to get it to look the same
<yorickpeterse> even VLC, which looks pretty similar, is pretty easy to spot out as a Qt app
<whitequark> I guess it's due to HIG
fosky has quit [Ping timeout: 240 seconds]
<whitequark> aka "which another interface element actively used by community will we sneakily remove just overnight"
vlad_starkov has quit [Remote host closed the connection]
<yorickpeterse> Hmpf, I should really blag (= rant) about JS
<yorickpeterse> could probably write a book: "JavaScript the bad parts"
<whitequark> probably not, too many rants about it already
<whitequark> besides, I wasn't even talking about your hate to JS or whatever
<yorickpeterse> http://media.tumblr.com/tumblr_m35mwllCLy1qzidm5.jpg which reminds me of this
<whitequark> the problem was with "everything is better than JS"
<whitequark> because, well, decaf is not. not only you inherit all problems with HTML, you also lose all compatibility inherent to HTML+JS combo
cored has quit [Ping timeout: 248 seconds]
<yorickpeterse> You lose that with everything that isn't JS
dhruvasagar has joined #ruby-lang
<yorickpeterse> I'd say arguments like that would be red herring
<yorickpeterse> "Lets keep using something shit because it works with all the other shit"
<whitequark> well
<whitequark> Dart
Nisstyre has quit [Ping timeout: 262 seconds]
<whitequark> which is backwards-compatible and supported in native mode by some vendors
<whitequark> there are other problems with Dart (I don't think it's good), but not this
<whitequark> (other problems: it's basically Java)
<yorickpeterse> Thing is that I don't want a single language to dominate the browsers
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<whitequark> hrmpf
<yorickpeterse> I want competition so that one language doesn't grow hairy and old
<yorickpeterse> * that that one
<whitequark> you need some single language
<whitequark> to compile to
<whitequark> basically, language-independent bytecode
<whitequark> there's a slight problem with that
<whitequark> so far, no attempts to create language-independent bytecode were even near to success
<yorickpeterse> On regular environments people go through great trouble to make new programming languages to solve problems in others. Yet when we look at browsers there's this one retarded language dominating it
<yorickpeterse> Then people come up with ASM.js which is just a subset of the retardism
<whitequark> it's unrelated to JS
<whitequark> just happens to have similar syntax
<yorickpeterse> I'm all for a universal bytecode but dear god, make it something completely out of the hands of anybody near ECMA
Nom- has quit [Ping timeout: 252 seconds]
<whitequark> yorickpeterse: you don't get it
<whitequark> it is quite certainly simply not possible to make an universal bytecode
amerine has quit [Read error: Operation timed out]
<whitequark> it's not a new idea. thirty or forty year old, at least
Nom- has joined #ruby-lang
<yorickpeterse> I didn't say I wanted it, nor that it was easy
<yorickpeterse> I stated that I'm not against the idea
<yorickpeterse> I'm also not against the idea of just having different languages and engines in browsers
<whitequark> "I'm all for a universal bytecode" ahem
bugg has quit [Remote host closed the connection]
<whitequark> the problem with different languages and engines is that you're just increasing fragmentation
<yorickpeterse> I think that in 2013 people should've realized that that is not per definition a bad thing
<whitequark> we need to go back to native, and leave the web for what it's good for: marked-up text.
<yorickpeterse> seems to work fine everywhere else
<whitequark> because otherwise, you're just adding unnecessary layers and creating problems for yourself
<whitequark> eh... let's being with isolating the browser from the environment, and then proceed to leak all the details of environment back to browser while creating a combinatorial explosion of edge cases
<whitequark> not that I believe that going back to native will happen any time soon. Qt's almost broke, and everything else is even more meh
<yorickpeterse> Native for browsers? wat
<yorickpeterse> I don't think I'm following you there
<whitequark> no, just native applications
<yorickpeterse> haha
<yorickpeterse> keep dreaming
Cakey_ has quit [Ping timeout: 260 seconds]
<whitequark> meh
voker57 has joined #ruby-lang
bugg has joined #ruby-lang
fosky has joined #ruby-lang
amerine has joined #ruby-lang
gjaldon has joined #ruby-lang
<whitequark> I'll just wait another 10 or 20 years. something interesting is bound to happen.
<yorickpeterse> unless things change JS will probably be the next ActiveX by then
<whitequark> hardly, ActiveX was vendor-specific and nonportable from the start
<whitequark> the next C, maybe (if we're using this "the next" antipattern, anyway)
adambeynon has joined #ruby-lang
<whitequark> here's a crazy idea:
<whitequark> browser's already looks like a hypervisor. let's make it one. each tab is a Native Client sandbox (which by default may very well execute WebKit and JS). tabs communicate with each other via, surprise, TCP/IP network; just as well they communicate with another services. each tab gets an OpenGL context, input event pipe, network access, some RAM, some CPU, and some local cache.
<whitequark> the main part is probably the TCP/IP one. it solves interoperability (Internet is already the most interoperable system in existence, with all kinds of OSes and languages), peer-to-peer communication and building distributed systems
<yorickpeterse> what are you smoking?
<yorickpeterse> also, why would you use a network protocol for tabs when you are already running in a container? Might as well pass internal messages around
djinni` has quit [Read error: Operation timed out]
<whitequark> OpenGL: if you look at the phones & tablets, everything is already drawn via OpenGL ES. so this is the lowest common denominator for hw AND it gives decent performance
<whitequark> yorickpeterse: because it doesn't matter that they are running in a container
<whitequark> I imagined this use case, for example:
djinni` has joined #ruby-lang
<whitequark> so you want to store some files. OK. there's no filesystem [that you can access]. however, on the web there's already no filesystem. how do we solve this problem?
<whitequark> access to some kind of service like S3.
mucker has joined #ruby-lang
<whitequark> so, instead of local filesystem with its own awkwardness we just make a "tab" (non-graphical probably) which serves as one
<whitequark> well, the idea's nothing new; it's mostly reiteration of microkernel ideas from 30 years ago.
<whitequark> plan9 works like that
<judofyr> I may say you're a dreamer
setmeaway has joined #ruby-lang
fosky has quit [Ping timeout: 276 seconds]
<whitequark> remember alan kay's words: "the Internet (possibly the only real object-oriented system in working order)"
<whitequark> judofyr: ... but?
<judofyr> whitequark: no butts
toretore has joined #ruby-lang
<apeiros> that's horrible! what do we do without butts?
fedesilva has quit [Read error: Connection reset by peer]
vmatiyko has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 256 seconds]
fedesilva has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
krz has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.0]
krombr has joined #ruby-lang
Johz has joined #ruby-lang
elia has quit [Ping timeout: 264 seconds]
julianhurley has quit [Remote host closed the connection]
elia has joined #ruby-lang
julianhurley has joined #ruby-lang
s1n4 has joined #ruby-lang
s1n4 has quit [Client Quit]
gjaldon has quit [Remote host closed the connection]
henrikhodne has joined #ruby-lang
stamina has joined #ruby-lang
<bnagy> >> a=128; a.eql? [a].pack('w*').unpack('w*').first
<eval-in> bnagy => true (http://eval.in/31336)
<bnagy> hrm
<bnagy> 20>> a=128; a.eql? [a].pack('w*').unpack('w*').first
<eval-in> bnagy => true (http://eval.in/31337)
<bnagy> not true on jruby, it seems
<yorickpeterse> GUYS GUYS
<yorickpeterse> WATCH THIS
<yorickpeterse> >> def Foo; end; def bar; end; Foo(bar(&:id))
<eval-in> yorickpeterse => wrong number of arguments (1 for 0) (ArgumentError) ... (http://eval.in/31338)
<yorickpeterse> makes sense right?
<yorickpeterse> now check this out
<yorickpeterse> >> def Foo; end; def bar; end; ::Foo(bar(&:id))
<eval-in> yorickpeterse => /tmp/execpad-33ef0ad745a7/source-33ef0ad745a7:2: syntax error, unexpected '(', expecting keyword_end ... (http://eval.in/31339)
<yorickpeterse> does the same with actual constants
stamina has quit [Quit: WeeChat 0.4.1]
<yorickpeterse> hm, apparently `::` *only* works with constant references
megha has quit [Ping timeout: 264 seconds]
bugg has quit [Remote host closed the connection]
stamina has joined #ruby-lang
<whitequark> >> def Foo; end; def bar; end; Object::Foo(bar(&:id))
<eval-in> whitequark => private method `Foo' called for Object:Class (NoMethodError) ... (http://eval.in/31340)
<whitequark> I think you found a grammar bug, report it
<yorickpeterse> Hm, not sure
<yorickpeterse> >> def foo; end; ::foo()
<eval-in> yorickpeterse => /tmp/execpad-e7f11fe1f069/source-e7f11fe1f069:2: syntax error, unexpected tIDENTIFIER, expecting tCONSTANT ... (http://eval.in/31341)
<whitequark> >> def foo; end; Object::foo()
<eval-in> whitequark => private method `foo' called for Object:Class (NoMethodError) ... (http://eval.in/31342)
<whitequark> similar
<yorickpeterse> well yeah, but I'm not sure if that's an actual bug or just a weird featuree
<yorickpeterse> * feature
<whitequark> I'm pretty sure it is a bug
<whitequark> well, report it anyway
<yorickpeterse> welp, off to the ML
<yorickpeterse> should probably include "fuck" in an example
megha has joined #ruby-lang
* yorickpeterse runs
<yorickpeterse> hm, don't have my password for bugs.ruby-lang here, I'll report this when I get back
bugg has joined #ruby-lang
postmodern has joined #ruby-lang
megha has quit [Read error: Operation timed out]
Domon has quit [Remote host closed the connection]
pabs has quit [Ping timeout: 248 seconds]
pabs has joined #ruby-lang
jvrmaia has joined #ruby-lang
krombr has quit [Remote host closed the connection]
Domon has joined #ruby-lang
krz has quit [Ping timeout: 248 seconds]
fsvehla has quit [Quit: fsvehla]
krz has joined #ruby-lang
sush24 has joined #ruby-lang
nkr has joined #ruby-lang
r0bby has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
Domon has quit [Remote host closed the connection]
jvrmaia has quit [Remote host closed the connection]
S1kx has quit [Quit: Leaving]
machuga|away is now known as machuga
<whitequark> btw, some of you, judofyr, yorickpeterse? were writing various toy languages
<whitequark> here's a nice guide of how to integrate a modern memory manager in one: http://www.ravenbrook.com/project/mps/version/1.111/manual/html/guide/lang.html
mbj has joined #ruby-lang
<yorickpeterse> ta
sailias has joined #ruby-lang
<judofyr> whitequark: boookmarkd
sush24 has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
r0bby has quit [Ping timeout: 256 seconds]
JonaTW has quit [Quit: Leaving]
jxie has quit [Quit: leaving]
fsvehla has joined #ruby-lang
julianhurley has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 256 seconds]
postmodern has quit [Quit: Leaving]
Mabrosche has joined #ruby-lang
<mucker> judofyr: that typo has probably given me a stupid idea.
skade has joined #ruby-lang
ajack has quit [Quit: Computer has gone to sleep.]
silverhawk15 has joined #ruby-lang
mytrile has joined #ruby-lang
pskosinski has joined #ruby-lang
<judofyr> mucker: I demand 50% of profits
bugg has quit [Remote host closed the connection]
sailias has joined #ruby-lang
justinm__ has quit [Read error: No route to host]
justinmburrous has joined #ruby-lang
tbuehlmann has joined #ruby-lang
krz has quit [Quit: krz]
<mucker> judofyr: taxes go from your end :)
justinmburrous has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
sush24 has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
sush24 has quit [Read error: Connection reset by peer]
dooleyburger has joined #ruby-lang
tomzx_mac has joined #ruby-lang
henrikhodne has joined #ruby-lang
Tranquility has joined #ruby-lang
cofin has quit [Quit: cofin]
mdedetrich has quit [Quit: Computer has gone to sleep.]
awea has joined #ruby-lang
tonni has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
megha has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
dooleyburger has quit [Quit: This computer has gone to sleep]
henrikhodne has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby-lang
wmoxam has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
dooleyburger has joined #ruby-lang
volume has joined #ruby-lang
krombr has joined #ruby-lang
scampbell has joined #ruby-lang
hashkey has quit [Ping timeout: 264 seconds]
MaddinXx_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
breakingthings has joined #ruby-lang
henrikhodne has joined #ruby-lang
mdedetrich has joined #ruby-lang
skade has quit [Ping timeout: 260 seconds]
skade has joined #ruby-lang
hashkey has joined #ruby-lang
krombr has quit [Remote host closed the connection]
bugg has joined #ruby-lang
justinmburrous has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
dustint has joined #ruby-lang
megha has quit [Quit: WeeChat 0.4.0]
cofin has joined #ruby-lang
dooleyburger has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby-lang
dooleyburger has joined #ruby-lang
mbj_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
fys has joined #ruby-lang
mbj has quit [Ping timeout: 245 seconds]
hogeo_ has joined #ruby-lang
dustint has quit [Quit: Leaving]
ajack has joined #ruby-lang
hogeo has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
Tranquility has quit [Ping timeout: 248 seconds]
rwilcox has joined #ruby-lang
volume has quit [Quit: Computer has gone to sleep.]
dooleyburger has quit [Quit: This computer has gone to sleep]
mistym has quit [Remote host closed the connection]
volume has joined #ruby-lang
davidfrey has joined #ruby-lang
Mabrosche has left #ruby-lang [#ruby-lang]
dooleyburger has joined #ruby-lang
nathanstitt has joined #ruby-lang
djwonk has quit [Quit: djwonk]
mistym has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
cored has quit [Ping timeout: 256 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
randomlogin has quit [Quit: randomlogin]
tonni has quit [Remote host closed the connection]
ikrima has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
wesside has joined #ruby-lang
anonymuse has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
mytrile has joined #ruby-lang
dooleyburger has quit [Quit: This computer has gone to sleep]
mdedetrich has quit [Quit: Computer has gone to sleep.]
jsaak has joined #ruby-lang
mbj_ is now known as mbj
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
sailias has quit [Quit: Leaving.]
GeissT has quit [Quit: MillBroChat AdIRC User]
dooleyburger has joined #ruby-lang
synthetix has quit [Remote host closed the connection]
|Vargas| has quit [Quit: ...]
MaddinX__ has joined #ruby-lang
MaddinXx_ has quit [Ping timeout: 252 seconds]
enebo has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
fedesilva has quit [Remote host closed the connection]
MaddinX__ has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
m4t- has joined #ruby-lang
dooleyburger has quit [Ping timeout: 252 seconds]
ngw has joined #ruby-lang
wallerdev has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
<injekt> judofyr: what did you do to get around the minitest 5 assertions issue?
havenwood has joined #ruby-lang
<zzak> switch to rspec
<blowmage> judofyr: what was the issue?
<judofyr> injekt: I changed them them to just "raise" :/
<injekt> heh
<zzak> inkjets love rspec
<injekt> zzak: I bought a printer today, it's not an inkjet
<judofyr> blowmage: you can't do this anymore: class Foo; include Minitest::Assertions; def foo; assert 1; end end end
mytrile has quit [Remote host closed the connection]
<judofyr> blowmage: without also adding `attr_accessor :assertions`
<blowmage> ah...
<injekt> and setting it to 0 so nil += 1 doesn't fail
<judofyr> ah, yes
<injekt> zenspider: ping
<zzak> injekt: laserjet?
dankest has quit [Quit: Leaving...]
<injekt> zzak: deskjet
<zzak> injekt: you still free this afternoon?
<injekt> zzak: once I've finished these meetings I will be! trying to things sorted for the new start it's all a bit hectic :(
<zzak> np, i will be out of the office by 21:00 utc, so anytime before that works for me
Criztian has quit [Remote host closed the connection]
<injekt> sweet
rippa has joined #ruby-lang
krombr has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 260 seconds]
pencil1 has joined #ruby-lang
kith_ is now known as kith
kgrz has quit [Ping timeout: 248 seconds]
dustint has joined #ruby-lang
DomKM has joined #ruby-lang
dankest has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
teleological has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
megha has joined #ruby-lang
krombr has quit [Remote host closed the connection]
volume has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
fedesilva has joined #ruby-lang
zerokarmaleft has quit [Quit: leaving]
Cakey has joined #ruby-lang
sailias has joined #ruby-lang
sailias has quit [Remote host closed the connection]
machuga is now known as machuga|away
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
poga has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
MaddinXx has joined #ruby-lang
carloslopes has joined #ruby-lang
sush24 has joined #ruby-lang
elia has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 276 seconds]
jxie has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
ngw has quit [Quit: Bye!]
jaska has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
dabradley has joined #ruby-lang
benwoody has quit [Quit: Stack Level Too Deep]
__butch__ has joined #ruby-lang
jaska has joined #ruby-lang
LinkedoT has quit [Ping timeout: 260 seconds]
LinkedoT has joined #ruby-lang
benwoody has joined #ruby-lang
Cakey has quit [Ping timeout: 256 seconds]
enebo has joined #ruby-lang
benwoody has left #ruby-lang [#ruby-lang]
workmad3 has quit [Ping timeout: 245 seconds]
vmatiyko has joined #ruby-lang
kgrz has joined #ruby-lang
volume has joined #ruby-lang
Gaelan has joined #ruby-lang
Aloysius1 has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
Gaelan has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
benwoody has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby-lang
teleolog_ has joined #ruby-lang
Fretta has joined #ruby-lang
symm- has joined #ruby-lang
bugg has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
Fretta has quit [Remote host closed the connection]
vlad_sta_ has quit [Ping timeout: 256 seconds]
nertzy2 has joined #ruby-lang
NemesisD has joined #ruby-lang
nertzy3 has quit [Ping timeout: 252 seconds]
<NemesisD> are there any alternative formatters that actually work with minitest 5
pencil1 has left #ruby-lang [#ruby-lang]
madb055 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
kgrz has quit [Ping timeout: 249 seconds]
blaix has joined #ruby-lang
benlovell has joined #ruby-lang
mistym is now known as mistym_lunch
<NemesisD> how on earth do you get autotest to test things written in the minitest/spec style
benlovell has quit [Ping timeout: 264 seconds]
krombr has joined #ruby-lang
<blowmage> NemesisD: works fine for me. what problems are you having?
kgrz has joined #ruby-lang
<NemesisD> blowmage: do you have a sample project i can just cargo cult in the files from? its gone from detecting change events properly but running 0 assertions to not detecting any changes at all
<NemesisD> it would really be nice if someone just made a minitest init command or something. i can't help but think this hurts conversions from rspec.
kgrz has quit [Read error: Connection reset by peer]
<blowmage> NemesisD: are you working on a rails project?
<NemesisD> blowmage: nope
<NemesisD> just a gem
<blowmage> does your project have rspec in it?
<NemesisD> blowmage: nope. new project i created half an hour ago
<blowmage> i've seen rspec's `describe` stomp on minitest's spec dsl, which is why i asked
<blowmage> NemesisD: moving to pm
dingus_khan has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
rikai has quit [Ping timeout: 264 seconds]
brianpWins has joined #ruby-lang
volume has quit [Quit: Computer has gone to sleep.]
rikai_ has joined #ruby-lang
randomlogin has joined #ruby-lang
dustint has quit [Quit: Leaving]
Gaelan has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
Gaelan has quit [Read error: Connection reset by peer]
Gaelan has joined #ruby-lang
machuga|away is now known as machuga
ajack has quit [Quit: Computer has gone to sleep.]
volume has joined #ruby-lang
volume has quit [Max SendQ exceeded]
madb055 has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
musl has quit [Quit: WeeChat 0.4.0]
vmatiyko has quit [Ping timeout: 250 seconds]
musl has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
DomKM1 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
djwonk has joined #ruby-lang
musl has quit [Client Quit]
Gaelan has joined #ruby-lang
DomKM has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby-lang
nyuszika7h has quit [Quit: Restarting client]
io_syl has joined #ruby-lang
rhodee_ has joined #ruby-lang
rhodee_ has quit [Client Quit]
musl has joined #ruby-lang
sepp2k has joined #ruby-lang
rhodee_ has joined #ruby-lang
rhodee_ has quit [Client Quit]
hashkey has quit []
pr0ton has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
fsvehla has joined #ruby-lang
musl has quit [Quit: WeeChat 0.4.0]
hashkey has joined #ruby-lang
musl has joined #ruby-lang
nyuszika7h has joined #ruby-lang
tomzx has joined #ruby-lang
musl has quit [Client Quit]
tomzx has quit [Read error: Connection reset by peer]
tomzx has joined #ruby-lang
musl has joined #ruby-lang
DomKM1 has quit [Quit: Leaving.]
krombr has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
chorkpop has joined #ruby-lang
DomKM has joined #ruby-lang
sush24 has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
benanne has joined #ruby-lang
mytrile has joined #ruby-lang
fedesilva has quit [Remote host closed the connection]
fedesilva has joined #ruby-lang
henrikhodne has joined #ruby-lang
sush24 has joined #ruby-lang
fedesilva has quit [Ping timeout: 248 seconds]
mbj has quit [Ping timeout: 264 seconds]
dingus_khan has joined #ruby-lang
mistym_lunch is now known as mistym
workmad3 has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
tomzx has quit [Quit: tomzx]
RomyRomy has joined #ruby-lang
UberNerdGirl has joined #ruby-lang
RomyRomy has quit [Client Quit]
dingus_khan has joined #ruby-lang
RomyRomy has joined #ruby-lang
<NemesisD> hey blowmage do you know of any formatters that work with minitest 5?
UberNerdGirl has left #ruby-lang [#ruby-lang]
<RomyRomy> Hullo. I am trying to solve Project Euler #14 "Collatz Sequence" and I am almost done with the solution but got stuck and ran into stack-level-too-deep problems. I am popping into request your help in fixing my error. http://projecteuler.net/problem=14, and my solution so far is http://pastie.org/7949190
henrikhodne has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
zommi has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
ebouchut has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
<wnd> I wouldn't use recursion here
<wnd> def collatz(n); len = 1; while n > 1; if n.even?; n /= 2; else; n = n * 3 + 1; end; len += 1; end; len; end
<wnd> replacing len with building an array if needed
mytrile has quit [Remote host closed the connection]
marr has joined #ruby-lang
sush24 has quit [Ping timeout: 248 seconds]
megha has quit [Ping timeout: 256 seconds]
baba has joined #ruby-lang
<RomyRomy> wnd: okay let me try
sush24 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
<blowmage> NemesisD: not many that i know of yet
fedesilva has joined #ruby-lang
nathanstitt has joined #ruby-lang
zerokarmaleft has joined #ruby-lang
nathanstitt has quit [Client Quit]
sush24 has quit [Ping timeout: 248 seconds]
knu0 has quit [Ping timeout: 240 seconds]
knu0 has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
skade has quit [Quit: Computer has gone to sleep.]
nathanstitt has joined #ruby-lang
wyhaines has joined #ruby-lang
sush24 has joined #ruby-lang
sush24 has quit [Client Quit]
rickhull has quit [Quit: Leaving.]
dankest has quit [Quit: Leaving...]
tenderlove has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
<wnd> RomyRomy, perhaps over-engineering a bit, I might create something like this: https://gist.github.com/anonymous/e278165308b1091c1559
* whitequark is always afraid of clicking on links to something over-engineered "a bit"
* whitequark braces himself
ebouchut has quit [Quit: This computer has gone to sleep]
<wnd> :-)
<whitequark> that looks ok
<RomyRomy> :D
<whitequark> Foo is a bit weird
workmad3 has quit [Ping timeout: 248 seconds]
<wnd> I know, I know
<wnd> it's related to the fact that I'm still not quite comfortable or natural with oo languages
slash_nick has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
<wnd> point being, if I did "(1 .. 1e6).map{|i| CollatzSequence.new(i)}.sort{|a, b| a.count <=> b.count}", I wouldn't know how much useless work that would do
baba has quit [Quit: WeeChat 0.4.0]
rickhull has joined #ruby-lang
fosky has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
dingus_khan has quit [Remote host closed the connection]
<wnd> I still remember bits and pieces of perldoc's examples for sort, and the differences between different invocations
fedesilva has quit [Remote host closed the connection]
fedesilva has joined #ruby-lang
mbj has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
fosky has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby-lang
silverhawk15 has left #ruby-lang [#ruby-lang]
jbsan has joined #ruby-lang
dankest has joined #ruby-lang
stringly_typed has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
henrikhodne has joined #ruby-lang
henrikhodne has quit [Client Quit]
<RomyRomy> wnd: thank you so much for your code, it is beautiful, and I learned a bit more on structuring code properly, as opposed to just monkey patching things
hogeo has joined #ruby-lang
henrikhodne has joined #ruby-lang
<wnd> now if only someone could suggest better replacement for that ugly Foo thing...
hogeo_ has quit [Ping timeout: 248 seconds]
ikrima has joined #ruby-lang
Gaelan has joined #ruby-lang
dhruvasagar has joined #ruby-lang
RomyRomy has quit [Quit: RomyRomy]
tos9 has quit [Quit: Gone.]
ckipel has quit [Quit: ckipel]
tos9 has joined #ruby-lang
mucker has quit [Quit: Lost terminal]
stringly_typed has quit [Quit: stringly_typed]
havenwood has joined #ruby-lang
mucker has joined #ruby-lang
Gaelan has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby-lang
Gaelan has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
apeiros has joined #ruby-lang
tomzx has joined #ruby-lang
tomzx has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
tomzx has joined #ruby-lang
tenderlove has joined #ruby-lang
apeiros has quit [Ping timeout: 248 seconds]
skade has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
chorkpop has quit [Quit: WeeChat 0.3.8]
nertzy has joined #ruby-lang
DomKM1 has joined #ruby-lang
DomKM has quit [Ping timeout: 260 seconds]
DomKM1 has quit [Client Quit]
chorkpop has joined #ruby-lang
nertzy2 has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Read error: Operation timed out]
krz has joined #ruby-lang
macmartine has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
Gaelan has quit [Remote host closed the connection]
krohrbaugh1 has quit [Quit: Leaving.]
krz has quit [Quit: krz]
machuga is now known as machuga|away
r0bby has joined #ruby-lang
henrikhodne has quit [Read error: Connection reset by peer]
randomlogin has quit [Quit: randomlogin]
randomlogin has joined #ruby-lang
wmoxam has quit [Ping timeout: 252 seconds]
tallship has joined #ruby-lang
machuga|away is now known as machuga
Gaelan has joined #ruby-lang
mrfelix has joined #ruby-lang
djwonk has quit [Quit: djwonk]
Gaelan has quit [Read error: Connection reset by peer]
Gaelan has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
Gaelan_ has joined #ruby-lang
Gaelan has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
mbj has quit [Ping timeout: 276 seconds]
blaix has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 252 seconds]
nkr has quit [Quit: Linkinus - http://linkinus.com]
fsvehla has quit [Quit: fsvehla]
zommi has quit [Remote host closed the connection]
<zenspider> injekt: pong
krohrbaugh has joined #ruby-lang
fsvehla has joined #ruby-lang
justinmburrous has quit [Ping timeout: 256 seconds]
nazty has quit [Ping timeout: 248 seconds]
machuga is now known as machuga|away
Gaelan_ has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
tenderlo_ has joined #ruby-lang
djwonk has joined #ruby-lang
s0ber_ has joined #ruby-lang
tenderlove has quit [Ping timeout: 264 seconds]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
s0ber has quit [Ping timeout: 246 seconds]
Gaelan has quit [Remote host closed the connection]
s0ber_ is now known as s0ber
ruurd has joined #ruby-lang
Gaelan has joined #ruby-lang
wesside has quit [Quit: Computer has gone to sleep.]
fsvehla has quit [Quit: fsvehla]
havenwood has joined #ruby-lang
<NemesisD> zenspider: have you heard any word of alternative formatters that work with minitest 5?
<NemesisD> not saying i don't like the pride formatter but I can't help but WAT when i have passing tests with red and green dots
Gaelan has quit [Remote host closed the connection]
nazty has joined #ruby-lang
Gaelan has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
chorkpop has quit [Remote host closed the connection]
tdy has joined #ruby-lang
breakingthings has quit [Write error: Broken pipe]
enebo has quit [Quit: enebo]
r0bby has quit [Ping timeout: 240 seconds]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
fosky has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
r0bby has joined #ruby-lang
Gaelan has joined #ruby-lang
Gaelan has quit [Read error: Connection reset by peer]
Gaelan has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Gaelan has quit [Read error: No route to host]
Gaelan has joined #ruby-lang
Gaelan has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
toretore has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 260 seconds]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dingus_khan has joined #ruby-lang
nathanstitt has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
davidfre_ has joined #ruby-lang
nathanstitt has joined #ruby-lang
davidfrey has quit [Ping timeout: 252 seconds]
davidfre_ has quit [Ping timeout: 252 seconds]
tbuehlmann has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
Gaelan has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
r0bby is now known as robbyoconnor
chana has joined #ruby-lang
teleolog_ has quit [Remote host closed the connection]
tenderlo_ has quit [Ping timeout: 240 seconds]
namesake has joined #ruby-lang
cofin has quit [Quit: cofin]
nathanstitt has quit [Quit: I growing sleepy]
chana has quit [Read error: Connection reset by peer]
chana has joined #ruby-lang
<Aloysius1> Howdy...I'm trying to create a general pub/sub class where the class listens for data, and on receipt of that data, process it and publishes it. I don't want the class itself to know any of the details of the process, so that I can assemble a pub/sub object from a variety of listeners, processors and publishers.
<drbrain> Aloysius1: sounds like observer.rb
<Aloysius1> I've taken a stab at doing this with modules (you can see here: http://pastebin.com/asfvK5si) but you can probably also see why it won't work.
solars has quit [Ping timeout: 240 seconds]
<Aloysius1> I need, or think I need, a "data" that all the component parts can access. I can put in a "set_data" and "get_data" function, of course, but that doesn't seem very elegant.
dingus_khan has quit [Remote host closed the connection]
fys has quit [Quit: Lost terminal]
<Aloysius1> Doing an "instance_variable_get" seems uncool, too, though I suppose it's possible.
<mrfelix> Hey room. I have a question about the ruby yaml library. I am a recipient of a yaml document that has the serialisation tag like "!ruby/object:Foo::Bar" ...
<mrfelix> I want to consume the document and map Foo::Bar to my own class.
<mrfelix> I've had a look at the yaml reference page for Ruby but can't see anything immediately helpful -- I tried add_domain_type, etc, but that didn't seem to help matters.
<mrfelix> Any pointers to if this is even possible?
mdedetrich has joined #ruby-lang
anonymuse has quit [Quit: Leaving...]
wyhaines has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
vlad_starkov has joined #ruby-lang
<Aloysius1> drbrain: Observer seems like it's in the ballpark, maybe. Thanks.
brianpWins has quit [Quit: brianpWins]
<drbrain> Aloysius1: one object includes Observable (the publisher) and many objects subscribe
chana has quit [Read error: Connection reset by peer]
<Aloysius1> So, my listener would create a publisher and point it at itself along with any processing objects?
chana has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
<drbrain> a listener shouldn't be a publisher
<drbrain> a listener should be a subscriber
<drbrain> if you have objects that process sent messages, they should probably subscribe directly
Gaelan has joined #ruby-lang
<drbrain> and your message source should be the publisher
<Aloysius1> Sorry, I'm phrasing that badly.
ldnunes has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
<Aloysius1> I've got a series of classes that receive data (which is what I meant by "listener") from external sources. And I've got a series of classes that transform data. And another set that publish that data.
<drbrain> and the data flow is: receiver -> transformer -> publisher
<drbrain> ?
<Aloysius1> Right.
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
<drbrain> do multiple transformers operate on the same piece of data?
krohrbaugh has quit [Read error: Operation timed out]
<drbrain> and if so, do they do it in series (receiver -> transform A -> transform B -> publisher) or parallel?
<Aloysius1> Right now, no. I can see it happening but for now assume just one xform per object receive.
<drbrain> then you want a pipeline
<Aloysius1> Yeah.
<drbrain> don't bother with Observable, it's just overhead
<Aloysius1> Fiber?
krohrbaugh has joined #ruby-lang
<drbrain> there's several ways to implement a pipeline
ruurd has quit [Quit: Leaving...]
<drbrain> I would use objects to start: r = Receiver.new(TransformA.new(Publisher.new)); r.process(item)
<drbrain> and each item in the pipeline would call #process on its child
<Aloysius1> That is basically where I started.
<Aloysius1> Maybe that's where I end up.
<drbrain> Aloysius1: if you need parallelism you can insert a queue between stages and fan out (or in)
Gaelan has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
<Aloysius1> I have an actual message queue as part of this scheme. The most usual data flow is going to be web->MQ->web. In one case, I'm receiving from the web and publishing to the MQ, while in the other I'm receiving from the MQ and publishing to the web.
<Aloysius1> Multiple independent ruby programs.
Gaelan_ has joined #ruby-lang
<drbrain> that's fine, the unix way is to use $stdin and $stdout as your source and sink, respectively
<drbrain> but you can do the same with any data source
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
<Aloysius1> Yeah. I'm almost wondering if that shouldn't be the approach, like, the Rails app does nothing but receive from the web and push to a different program completely that does the publish (via another independent program that does the transform/s).
mrfelix has quit [Quit: Textual IRC Client: www.textualapp.com]
dingus_khan has joined #ruby-lang
<Aloysius1> ("Publish" in this case meaning "publish to the MQ")
<Aloysius1> Then on the other side there's a program that does nothing but read the MQ, and call the transform app on the other side while pushing to whatever the output is.
* drbrain nods
Gaelan has quit [Ping timeout: 252 seconds]
<Aloysius1> Very Unixy indeed. But very loosely coupled, as well, which is the big goal. Also probably pretty easy to use. Back to pondering. Thanks for the feedback, doc.
<drbrain> np
randomlogin has quit [Read error: Operation timed out]
dingus_khan has quit [Remote host closed the connection]
madb055 has joined #ruby-lang
Johz has quit [Quit: AH HELP ITS ALL CRASHING AT ONCE I CANT STOP IT HELP HELP HELP <transmission ends>]
justinmburrous has joined #ruby-lang