apeiros changed the topic of #ruby-lang to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
rins has quit [Ping timeout: 248 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
havenn has joined #ruby-lang
enebo has quit [Quit: enebo]
emptyflask has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
jonahR has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 252 seconds]
solars has quit [Ping timeout: 276 seconds]
jxie_ has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
jxie has quit [Ping timeout: 248 seconds]
ryanv-raptor has quit [Quit: Leaving.]
imajes has quit [Excess Flood]
<zenspider> rawr
imajes has joined #ruby-lang
andrewhl has joined #ruby-lang
<wallerdev> rawr
brianpWins has quit [Quit: brianpWins]
mossplix has quit [Quit: mossplix]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
earthquake has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
xyzodiac has quit [Quit: Computer has gone to sleep.]
ryanv-raptor has quit [Quit: Leaving.]
tjadc has quit [Ping timeout: 252 seconds]
ryanv-raptor has joined #ruby-lang
xyzodiac has joined #ruby-lang
Bearproof has joined #ruby-lang
earthquake has quit [Quit: earthquake]
cube526 has joined #ruby-lang
spuk has joined #ruby-lang
cube526 has quit [Client Quit]
tomzx_mac has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
emanon_ has quit [Remote host closed the connection]
sailias has joined #ruby-lang
earthquake has joined #ruby-lang
rindolf has quit [Quit: Yay! I'm a Llama Again. http://www.shlomifish.org/ .]
havenn has quit [Remote host closed the connection]
jxie_ has quit [Quit: leaving]
brianpWins has joined #ruby-lang
jxie has joined #ruby-lang
<freedrull> anyone know what might be the issue here? sinatra can't find my app file or something? https://gist.github.com/4630650
jxie has quit [Client Quit]
<bluepojo> something is trying to shell out to call getcwd
<bluepojo> and you don't have getcwd on your path
neocoin has joined #ruby-lang
<freedrull> error is this line
<freedrull> set :root, Proc.new { app_file && File.expand_path(File.dirname(app_file)) }
<bluepojo> in your terminal, call `which getcwd`
<bluepojo> if it doesn't exist, that would appear to be your problem
spuk has quit [Ping timeout: 240 seconds]
<bluepojo> I don't think that utility is installed by default on OS X
<freedrull> nope, no getcwd
MehLaptop has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
<freedrull> maybe arch linux update broke it
<bluepojo> or your path is off
<bluepojo> or something
spuk has joined #ruby-lang
<freedrull> isnt getcwd a built in
ilyam has quit [Quit: ilyam]
<lianj> freedrull: google fu says you deleted/moved the directory
<bluepojo> that's also possible
<bluepojo> and more likely
<bluepojo> actually
<freedrull> yeah
<freedrull> wish i could find out what directory its trying to find
<freedrull> File.dirname(app_file)?
jxie has joined #ruby-lang
<zenspider> why is it calling out to getcwd?
<freedrull> i cant tell at all
drbrain_ has joined #ruby-lang
<freedrull> File.expand_path or File.dirname don't shell out do they?
Spillrag has joined #ruby-lang
<zenspider> I'm looking.... they should'nt...
jxie has quit [Client Quit]
mjio has quit []
<zenspider> looks like rb_sys_fail("getcwd");
gregmoreno has quit [Remote host closed the connection]
<freedrull> ah ok
<lianj> ruby -e 'Dir.mkdir("test"); Dir.chdir("test"); `rm -r ../test`; File.expand_path("./foo")'
drbrain has quit [Ping timeout: 245 seconds]
<zenspider> is the path > 200 ?
Spillrag has quit [Client Quit]
<freedrull> 200?
<lianj> dont slap me for that bad example code though
<zenspider> 200 chars
<freedrull> definitely not
imajes has quit [Excess Flood]
<zenspider> hrm... the other path through the 1.9 code would output getwd, not getcwd... so... strange
<zenspider> I'm gonna go with lianj's suggestion then
<zenspider> oh...
<zenspider> does the path have ~ in it?
<zenspider> set :app_file, nil
<zenspider> set :root, Proc.new { app_file && File.expand_path(File.dirname(app_file)) }
jxie has joined #ruby-lang
imajes has joined #ruby-lang
<zenspider> so it depends on app_file's value in your sinatra app
Spillrag has joined #ruby-lang
<zenspider> if it has ~, and $HOME isn't set for some reason (some production envs and windoze for example) it'll blow up
<freedrull> time for some puts debugging
<zenspider> no no no... brain debugging
<freedrull> well the path should be /var/www/datafruits.fm/releases/20130125010943
<freedrull> no ~'s involved
bzb has quit [Quit: Leaving]
bzb has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
<zzak> zenspider: hi! :)
<zenspider> zzak: hey! how goes?
alvaro_o has quit [Quit: Ex-Chat]
<zenspider> freedrull: so this is probably happening during a push? I think it is more than likely that lianj's scenario is right.
alvaro_o has joined #ruby-lang
<zenspider> prolly sets the vars from the last push location, then starts the rotation
<zzak> zenspider: good, enjoying a local organic IPA and catching up on some work. you?
mjio has joined #ruby-lang
<zenspider> or ... you're not sticking the value properly and the time keeps incrementing
<freedrull> ok maybe ill check out what capistrano is doing then....
bzalasky has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
Spillrag has quit [Ping timeout: 246 seconds]
<freedrull> thanks for your help
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
DEac-_ has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
<zzak> zenspider: you still using p4?
tdy has quit [Read error: Operation timed out]
<zzak> the local power company was hiring software devs and listed it as a requirement haha
<zenspider> zzak: yup
* ggreer buys a generator
<ggreer> O_o
ryanv-raptor has quit [Quit: Leaving.]
havenn has joined #ruby-lang
drbrain_ has quit [Remote host closed the connection]
Spillrag has joined #ruby-lang
davidbalbert is now known as davidbalber|away
xyzodiac has joined #ruby-lang
ilyam has joined #ruby-lang
gabrielengel has joined #ruby-lang
gabrielengel has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
<zzak> haha
imajes has quit [Excess Flood]
datanoise has quit [Ping timeout: 246 seconds]
imajes has joined #ruby-lang
tdy has joined #ruby-lang
sn0wb1rd has quit [Quit: I will be right back]
earthquake has quit [Quit: earthquake]
drbrain has joined #ruby-lang
retro|cz has joined #ruby-lang
emocakes has quit [Quit: emocakes]
madish has quit [Remote host closed the connection]
kogent has quit [Quit: kogent]
sailias has quit [Quit: Leaving.]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
imajes has quit [Excess Flood]
lsegal has joined #ruby-lang
havenn has quit [Ping timeout: 264 seconds]
alvaro_o has quit [Quit: Ex-Chat]
pcboy_ has quit [Ping timeout: 248 seconds]
imajes has joined #ruby-lang
pcboy_ has joined #ruby-lang
havenn has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
io_syl has quit [Ping timeout: 244 seconds]
andrewhl has quit [Remote host closed the connection]
krohrbaugh1 has quit [Quit: Leaving.]
andrewhl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
jtoy has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
banister`sleep has joined #ruby-lang
wmoxam has quit [Quit: leaving]
krohrbaugh has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
guns has joined #ruby-lang
havenn has quit [Ping timeout: 248 seconds]
wmoxam has joined #ruby-lang
jonahR has quit [Quit: jonahR]
mjio has quit []
xyzodiac has quit [Ping timeout: 252 seconds]
jtoy has quit [Quit: jtoy]
sailias has joined #ruby-lang
Spillrag has quit [Ping timeout: 276 seconds]
sailias has quit [Client Quit]
dhruvasagar has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
megha has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby-lang
bzb has quit [Quit: Leaving]
cirenyc has quit [Quit: Leaving...]
unlikely_monkey has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
Bosox20051 has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
megha has joined #ruby-lang
Rizzle has joined #ruby-lang
My_Hearing has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 248 seconds]
nXqd has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
cirenyc has joined #ruby-lang
macmartine has joined #ruby-lang
brianpWins has joined #ruby-lang
davidbalber|away is now known as davidbalbert
tomzx_mac has quit [Ping timeout: 255 seconds]
asaaki has quit [Ping timeout: 276 seconds]
megha has quit [Quit: WeeChat 0.3.9.2]
mjio has joined #ruby-lang
mjio has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
gix_ has quit [Ping timeout: 276 seconds]
drbrain has quit [Ping timeout: 276 seconds]
gix has joined #ruby-lang
asaaki has joined #ruby-lang
drbrain has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
mpan has quit [Ping timeout: 264 seconds]
imajes has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
mossplix has joined #ruby-lang
davidbalbert is now known as davidbalber|away
unlikely_monkey has joined #ruby-lang
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
stonerfish has quit [Quit: Leaving.]
mistym has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
dhruvasagar has quit [Read error: Operation timed out]
dhruvasagar has joined #ruby-lang
thufir_ has joined #ruby-lang
bluepojo has quit [Quit: Leaving.]
cirenyc has quit [Ping timeout: 255 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
tjadc has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wmoxam has quit [Ping timeout: 264 seconds]
headius has joined #ruby-lang
earthquake has joined #ruby-lang
thufir_ has quit [Quit: Leaving.]
ruurd has joined #ruby-lang
KA_ has joined #ruby-lang
faces has quit [Ping timeout: 244 seconds]
fsvehla has joined #ruby-lang
ryanf has quit [Quit: leaving]
earthquake has quit [Quit: earthquake]
megha has joined #ruby-lang
tjadc has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 276 seconds]
Rizzle has quit [Read error: Operation timed out]
nXqd has joined #ruby-lang
nXqd has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
stardiviner has joined #ruby-lang
dous has quit [Ping timeout: 252 seconds]
headius has quit [Quit: headius]
krz has joined #ruby-lang
justinseiter has joined #ruby-lang
ryanf has joined #ruby-lang
dr_bob has joined #ruby-lang
charliesome has joined #ruby-lang
sush24 has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
<unsymbol> :_:
cirenyc has joined #ruby-lang
Choobie has joined #ruby-lang
solars has joined #ruby-lang
chendo_ has joined #ruby-lang
KA_ has quit [Quit: KA_]
emocakes has joined #ruby-lang
KA_ has joined #ruby-lang
cirenyc has quit [Ping timeout: 276 seconds]
thufir_ has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
thufir_ has quit [Client Quit]
dhruvasagar has joined #ruby-lang
<charliesome> whitequark: ping
<whitequark> charliesome: pong
<charliesome> can i pick your brains?
<whitequark> sure
andrewhl has quit [Remote host closed the connection]
<charliesome> so i have a very simple vm for a little language of mine
mercwithamouth has joined #ruby-lang
<charliesome> are there any tricks you know of to make vms faster?
<charliesome> without going to a full blown jit or whatever
<whitequark> sure
<whitequark> host language? C?
<charliesome> yep
<whitequark> mkay
<whitequark> is gcc/clang only solution fine for you?
<charliesome> yeah i can ifdef it out
<charliesome> 90% of users will use gcc/clang anyway
<whitequark> I'm curious what compiler will another 10% of your users use :)
<charliesome> msvc i guess
<whitequark> oh, right
<whitequark> ok, the solution
<whitequark> you probably have a switch there now which selects the handler to process current bytecode
<charliesome> aha
<charliesome> i tried using computed jumps
<charliesome> it was slower
<whitequark> so you did store the label address instead of the bytecode id?
<charliesome> which goes against everything i've read
setmeaway has quit [Read error: Connection reset by peer]
<whitequark> in the stream
<charliesome> oh nope, i used a jump table
<whitequark> that's why
<charliesome> ahhh
<whitequark> javascriptcore uses this trick
<whitequark> also: keep your dispatch loop in the ICache
<whitequark> for the sake of god make it as small as you can
<whitequark> that gives immense benefit due to caching, branch prediction, and whatnot
<charliesome> i have a bunch of helper functions that complicated opcodes like DEFINE and what not call out to
<charliesome> i guess they would end up getting inlined
<charliesome> which ruins things
swav has quit [Remote host closed the connection]
<whitequark> that might well be the case
<charliesome> might stick a no inline attribute on those
<whitequark> cache eviction has LRU policy, which means that theoretically, moving rarely called stuff to functions will make it faster
<whitequark> you can use cachegrind to verify this hypothesis
<charliesome> haven't used cache grind, what kind of output does it give me?
<whitequark> also, do you use libc malloc? try jemalloc or something along these lines
<charliesome> my 'benchmark' is just recursive_fib(30) hehe
<whitequark> (cachegrind (sic)) it's a cache profiler. gives you an idea which of your commonly called functions are evicted from cache too often
<whitequark> I've never got a chance to use it btw, but it could very well help you
<charliesome> it's a valgrind plugin right
<whitequark> (recursive_fib) that's a bad benchmark
<whitequark> (valgrind plugin) yes
<charliesome> recursive_fib can be decent
<whitequark> if your real workloads never allocate, yes
<charliesome> it helped me make calls a lot cheaper
<charliesome> which it's good at because it makes a lot of calls
<charliesome> whitequark: is it possible to 'extern' label addresses
<charliesome> my compiler and vm are in different TUs
<charliesome> i guess i could do a second pass through the bytecode...
<whitequark> charliesome: I guess you could store them in a global initialized array
<charliesome> ah yeah good idea
chekcmate has joined #ruby-lang
<chekcmate> moin moin
KA_ has quit [Quit: KA_]
<whitequark> charliesome: there is also stuff you can optimize further without going into domain of jit
<whitequark> I'm fairly sure you could even reuse llint codegen. It's in Ruby :D
tbuehlmann has joined #ruby-lang
wudofyr_ has quit [Remote host closed the connection]
phlipper has quit [Ping timeout: 255 seconds]
wudofyr_ has joined #ruby-lang
guns has quit [Quit: guns]
jeffmess has joined #ruby-lang
swav has joined #ruby-lang
ryanf has quit [Quit: leaving]
imajes has quit [Excess Flood]
Skitsu`work has quit [Ping timeout: 252 seconds]
swav has quit [Ping timeout: 255 seconds]
<charliesome> src/vm_defn.inc:385:1: warning: use of GNU address-of-label extension [-Wgnu]
<charliesome> stupid clang
imajes has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 245 seconds]
setmeaway has joined #ruby-lang
jxie has quit [Quit: leaving]
swav has joined #ruby-lang
workmad3 has joined #ruby-lang
<yorickpeterse> morning
chendo_ has quit [Quit: Computer has gone to sleep.]
<whitequark> charliesome: and why is that stupid?
<charliesome> whitequark: it annoys me
<charliesome> also i can't tell that warning to shut up without disabling warnings for all gnu extensions
<whitequark> report a bug
kith_ is now known as kith
glebm has quit [Quit: Computer has gone to sleep.]
ruurd_ has joined #ruby-lang
ruurd has quit [Read error: Connection reset by peer]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
apeiros_ has joined #ruby-lang
<charliesome> whitequark: hmm, looks like you can't take the address of a label in another function
swav has quit [Remote host closed the connection]
Averna has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
hexreel has joined #ruby-lang
cirenyc has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
rue|w has joined #ruby-lang
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
<whitequark> charliesome: hm
<whitequark> I could only encourage you to check jsc's source code
<charliesome> alrighty
cirenyc has quit [Ping timeout: 264 seconds]
chendo_ has joined #ruby-lang
<charliesome> whitequark: lol // If we get here, then we have already proven that the script is not a JSON object
datanoise has joined #ruby-lang
dwu1 has quit [Quit: Leaving.]
glebm has joined #ruby-lang
blacktulip has joined #ruby-lang
Skitsu`work has joined #ruby-lang
justinseiter has quit [Remote host closed the connection]
rindolf has joined #ruby-lang
<rindolf> Hi all. item.attributes[:master_instance] returns nil while item.attributes["master_instance"] works as expected. Why?
<shachaf> That would depend on what item is.
<shachaf> But the obvious answer is: Because :blah is not the same thing as "blah"
<yorickpeterse> rindolf: because in one case you're using a Symbol and in the other a String for the key
<yorickpeterse> :foo != "foo"
<rindolf> yorickpeterse: OK.
<yorickpeterse> So foo[:bar] and foo['bar'] are two different things
<manveru> just like foo[1] and foo["1"]
<chekcmate> meh
<chekcmate> that's not really a good example
<shachaf> It's a reasonable example.
chendo_ has quit [Quit: Computer has gone to sleep.]
swav has joined #ruby-lang
<chekcmate> yea, i still dont like it :)
<shachaf> Sometimes people like to pretend that 1 is the same thing as "1"; sometimes people like to pretend that :foo is the same thing as "foo"
<chekcmate> yes
<shachaf> The latter is probably less of a sin.
<shachaf> But they're the same kind of sin.
<chekcmate> ya :)
adambeynon has joined #ruby-lang
Spillrag has joined #ruby-lang
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
<yorickpeterse> whitequark: question: on a scale from 0 to 10, how dirty is it to associate data to my AST (Furnace::AST::Node instances) based on their object IDs? This data would be stored in a separate Hash with the keys set to the IDs and the values to X
<yorickpeterse> (this would solve a pretty big issue for me)
<whitequark> yorickpeterse: but why not just attach the data to the node itself?
<yorickpeterse> non mutable
<whitequark> that's completely equivalent
<yorickpeterse> and the overhead of having to modify an entire tree would be quite significant
<whitequark> hmpf
<whitequark> what kind of data is it?
<yorickpeterse> A list of definitions that belong to the particular node. For example, a node for a class would contain a "list" (it's not really a list) of all the methods, variables, etc in it
<yorickpeterse> hold on, lemme get the code
<whitequark> that *might* be a design deficiency. I've based my design on that of .NET source level tools
<whitequark> and they do have the tree immutable. well, with some quirks to enable COW, but to the user it's immutable
<yorickpeterse> that basically lets you do stuff such as `defs.lookup(:constant, 'String').lookup(:instance_method, 'gsub').lookup(:local_variable, 'foo')`
<whitequark> yorickpeterse: it is indeed a good idea to store that data in an external Hash
<whitequark> but why use object_id? you could just use the nodes themselves as keys
<whitequark> #hash defaults to something derived from #object_id
<yorickpeterse> Well, the thing is that the data is already stored but as a hierarchy. Later on I need to retrieve that data again and this would make that piss easy
imajes has quit [Excess Flood]
<yorickpeterse> whitequark: oh that could work as well
<yorickpeterse> I don't want to use the entire nodes as keys though
imajes has joined #ruby-lang
<whitequark> in a similar vein, #eql? compares the object by identity
<yorickpeterse> I take it #hash is always unique?
<whitequark> yorickpeterse: but using #object_id would yield completely equivalent semantics
<yorickpeterse> Correct, but when you output a hash with keys set to hierarchies it becomes a PITA to debug
<yorickpeterse> (I do this quite a lot during development)
<whitequark> and not incur the overhead of object_id on implementations like jruby, where it AFAIK requires some extra stuff on the object
<yorickpeterse> hm
robotmay has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
<whitequark> yorickpeterse: #hash is not unique, of course. it's only an optimization to select the hash bucket faster.
<yorickpeterse> In the old implementation I'd basically retrieve the data based on the current scope, push it in an array, used it and then pop it
<yorickpeterse> But that adds significant overhead as you'd have to re-do it every time you'd create a new analysis component
<yorickpeterse> it also lead to code duplication
<whitequark> yeah sure
<whitequark> so the only problem you have now is Hash#inspect
<whitequark> solution: subclass Hash, or delegate to it
<yorickpeterse> eh, what would I need that for?
<whitequark> yorickpeterse: overriding #inspect to output something more tangible for keys?
<yorickpeterse> oh
<yorickpeterse> Hm, that could work but I feel conflicted about using big data structures as keys
<yorickpeterse> I'd have to benchmark to see if there's any overhead to doing that
<yorickpeterse> * benchmark it
<whitequark> remember that you don't actually use the data structure itself as a key
<whitequark> there are three things involved: #hash, #eql?, and a reference to the key
<whitequark> all three of them delegate to object identity in the case of AST::Node
<yorickpeterse> well, assume I did the following: `obj = Node.new(...); storage[obj] = 'whatever'; storage[obj]`. In that case you'd still store the entire node in the Hash even though I only care about the unique identifier for it
<yorickpeterse> there's no point into storing the entire node in my opinion
<whitequark> yorickpeterse: you store a _reference_ to the node
<whitequark> a single pointer
<whitequark> and unless you want them to behave like weak references (in which case you're not good with just #object_id anyway), there is no point in keying by object_id
<yorickpeterse> hmm
<yorickpeterse> This would be ripe for a memory leak though. Then again the data structures are not removed after being created anyway
<yorickpeterse> so that's a "feature"
<whitequark> yorickpeterse: but using object_id in order to prevent memory leaks creates a dangerous bug
sandbags has quit [Remote host closed the connection]
<whitequark> you could have another object with same object_id allocated
<yorickpeterse> That wouldn't fix the potential leak, that's not my intention either
<yorickpeterse> oh?
<whitequark> well yeah
<yorickpeterse> Aren't object IDs supposed to be unique?
<whitequark> at any given point of time, yes
<whitequark> but they're not temporally unique
<yorickpeterse> Well, the data is created and assigned only once so I'm not sure how big of a deal that would be
<whitequark> a = {}; aid = a.object_id; a = nil; GC.start; b = {}; b.object_id == aid # => true
<yorickpeterse> wat
<yorickpeterse> well, I think that rules out using object_id
<whitequark> (note that the above code only illustrates the concept. it won't plain give you out "true".)
<whitequark> yorickpeterse: yeah kinda. again; you can use weakrefs to fix the possible memory leak
<whitequark> but I'm not sure how exactly they are implemented and if that includes a performance impact on GC time. I'd say yes, but it needs to be investigated
<whitequark> *in GC time
<apeiros_> don't weakrefs actually rely on object_id? at least the last implementation I've seen
<whitequark> apeiros_: hm
<whitequark> apeiros_: HEAD relies on ObjectSpace::WeakMap, which is also how they're done in ES Harmony
<whitequark> and 1.9.3 has some weird magic involving finalizers and mutexes
<whitequark> and object_id, yes
<whitequark> oh crap _id2ref god why
rindolf has quit [Read error: Connection reset by peer]
<chekcmate> alright, whitequark sounds like he has a mental breakdown, who told him about the cake?!
<yorickpeterse> what exactly would be the use case of WeakRef?
rindolf has joined #ruby-lang
<whitequark> yorickpeterse: yours is pretty near
<whitequark> weak references are used when you want to refer to some data, but don't want to prevent it from being GC'd
datanoise has quit [Ping timeout: 255 seconds]
<yorickpeterse> hm
<whitequark> like when you want to associate some supplementary data with an object passed into your library, but don't have an option of modifying said object
cirenyc has joined #ruby-lang
<yorickpeterse> Well, the GC would clear it in this case anyway since it's passed around and never removed
<yorickpeterse> (that would be rather silly anyway)
<whitequark> it would?
<yorickpeterse> nope. The idea is that first I build a set of definitions, keep hold of that and then pass it to other classes so they can do something with it
<whitequark> I was referring to the "GC would clear it"
<yorickpeterse> Unless one of those classes is a cunt and sets it to nil (which I should prevent at some point) it's not removed until the whole iteration process is done
<yorickpeterse> At that point the linter has finished running anyway
<whitequark> in my understanding, in your case it wouldn't be cleared, nor is needed to be
<yorickpeterse> correct
<whitequark> yeah
<whitequark> btw thank you for bringing this out. I was wondering if I should add deeply comparing #eql? and #hash to AST::Nodes
<yorickpeterse> np
<whitequark> it turns out that no
GarethAdams has joined #ruby-lang
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby-lang
cirenyc has quit [Ping timeout: 248 seconds]
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby-lang
banister`sleep has quit [Ping timeout: 252 seconds]
<whitequark> it would make more sense to add an Identity Map for the cases where deep hash comparison is desired, and retain the current behavior of #eql? and #hash
ruurd_ has quit [Quit: Leaving...]
ruurd has joined #ruby-lang
marr has joined #ruby-lang
datanoise has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
marr has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby-lang
My_Hearing is now known as Mon_Ouie
faces has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
datanoise has quit [Ping timeout: 264 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
stardiviner has joined #ruby-lang
robotmay has quit [Ping timeout: 264 seconds]
robotmay has joined #ruby-lang
dzhulk has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
seoaqua has joined #ruby-lang
mossplix has quit [Ping timeout: 264 seconds]
<whitequark> yorickpeterse: hm, another reason that'd be a bad idea is that #eql? is stronger than #==
<whitequark> and #== ignores attributes (as opposed to children/type)
mossplix has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
pythonsnake has left #ruby-lang ["WeeChat 0.4.0"]
<yorickpeterse> hm
<whitequark> 1.0 == 1 # => true; 1.0.eql? 1 # => false
jonahR has joined #ruby-lang
<yorickpeterse> wat
<yorickpeterse> the former makes no sense since they're different classes
<charliesome> the former makes sense
<whitequark> yorickpeterse: == compares values
<whitequark> eql? compares equivalence
<whitequark> equal? compares identity
<whitequark> as a second example, consider this: 10**20 == 10**20 # => true; (10**20).eql? 10**20 # => true; (10**20).equal? 10**20 # => false
<whitequark> I'm fairly sure that eql? was even added to the language mainly to support bignum keys...
Asher has quit [Ping timeout: 276 seconds]
<chekcmate> is there a way to make this shorter? File.open("#{path}myfile", "a+") {|f| f.write(boogieman.line_edit(line)+"\n")}
<chekcmate> I have to use this several times, though the "myfile" changes every time
Asher has joined #ruby-lang
<chekcmate> is it best to make a function out of this in order to reduce written code?
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 255 seconds]
Choobie has quit [Ping timeout: 245 seconds]
imajes has quit [Excess Flood]
madish has joined #ruby-lang
carloslopes has joined #ruby-lang
imajes has joined #ruby-lang
_carloslopes has joined #ruby-lang
carloslopes has quit [Read error: Connection reset by peer]
banister_ has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
Asher has quit [Read error: No route to host]
sush24 has joined #ruby-lang
spuk has quit [Ping timeout: 244 seconds]
Spillrag has quit [Ping timeout: 246 seconds]
Asher has joined #ruby-lang
heftig has joined #ruby-lang
rsl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
seoaqua has quit [Quit: 离开]
dhruvasagar has joined #ruby-lang
vmatiyko has joined #ruby-lang
DEac-_ has left #ruby-lang [#ruby-lang]
DEac- has joined #ruby-lang
nkr has joined #ruby-lang
nkr has quit [Client Quit]
glebm has quit [Quit: Textual IRC Client: www.textualapp.com]
nkr has joined #ruby-lang
nkr has quit [Client Quit]
glebm has joined #ruby-lang
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
<darix> chekcmate: moving it into a method sounds smart yes
sush24 has quit [Quit: This computer has gone to sleep]
sush24 has joined #ruby-lang
nkr has joined #ruby-lang
ramonmaruko has quit [Ping timeout: 248 seconds]
<chekcmate> darix: alrighty, thank you :)
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
vmatiyko has left #ruby-lang [#ruby-lang]
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
glebm has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
Bearproof1 has joined #ruby-lang
ovatsug25 has joined #ruby-lang
datanoise has joined #ruby-lang
imajes has quit [Excess Flood]
stardiviner has quit [Ping timeout: 245 seconds]
imajes has joined #ruby-lang
datanoise has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby-lang
Bearproof1 has left #ruby-lang [#ruby-lang]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
banister_ has quit [Remote host closed the connection]
scottschecter has quit [Ping timeout: 276 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
dustint has joined #ruby-lang
marr has joined #ruby-lang
<yorickpeterse> uuuugh: logo = open('.....lots of crap here...')
jeffmess has quit [Ping timeout: 240 seconds]
<yorickpeterse> Every time you use open() a baby seal listens to Nickelback
<apeiros_> lucky baby seal
<jaska> hah
<apeiros_> it listening to nickelback means it's not been clubbed to death
<yorickpeterse> No, it means it will bleed to death through its ears
toretore has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
havenn has quit [Ping timeout: 248 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
thebetterbjasd has joined #ruby-lang
lele|w has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
lele|w has joined #ruby-lang
srbaker has joined #ruby-lang
thebetterbjasd has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
bzb has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
ovatsug25 has quit [Remote host closed the connection]
<charliesome> yorickpeterse: what's with the open() hate
g0bl1n has joined #ruby-lang
riffraff has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
yfeldblum has quit [Ping timeout: 256 seconds]
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
mistym has quit [Remote host closed the connection]
ddd has quit [Ping timeout: 245 seconds]
earthquake has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
earthquake has quit [Client Quit]
earthquake has joined #ruby-lang
jtoy has joined #ruby-lang
KA_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
GarethAdams has joined #ruby-lang
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby-lang
jtoy has quit [Ping timeout: 244 seconds]
chekcmate has quit [Quit: Page closed]
lcdhoffman has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
yfeldblum has joined #ruby-lang
mossplix has quit [Ping timeout: 264 seconds]
bzb has quit [Quit: Leaving]
sandbags has quit [Read error: Connection reset by peer]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
mossplix has joined #ruby-lang
Bearproof has joined #ruby-lang
krz has quit [Quit: krz]
glebm has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
_carloslopes has quit [Remote host closed the connection]
glebm has quit [Client Quit]
glebm has joined #ruby-lang
tomzx_mac has joined #ruby-lang
srbaker has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
elux has joined #ruby-lang
banister`sleep has joined #ruby-lang
<zzak> vbatts: Eric committed your patches because i was too lazy haha
<matti> zzak: :)
<zzak> matti: hi!
<zzak> good morning!
<matti> Hey
<matti> How have you been?
tomzx_mac has quit [Ping timeout: 255 seconds]
cyri_ has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
rue|w has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
srbaker has quit [Quit: Computer has gone to sleep.]
imajes has joined #ruby-lang
cultureulterior_ has quit [Ping timeout: 264 seconds]
srbaker has joined #ruby-lang
<manveru> i like open()
<manveru> but i also like cold weather and snow, so YMMV
nkr has quit [Quit: Linkinus - http://linkinus.com]
jbsan has quit [Quit: jbsan]
imajes has quit [Excess Flood]
sepp2k has joined #ruby-lang
imajes has joined #ruby-lang
nyuszika7h has quit [Quit: Reconnecting]
cultureulterior_ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
nyuszika7h_ has joined #ruby-lang
carloslopes has joined #ruby-lang
nyuszika7h_ is now known as nyuszika7h
<zzak> matti: im good thanks, whats new with you?
cultureulterior_ has quit [Ping timeout: 256 seconds]
_carloslopes has joined #ruby-lang
carloslopes has quit [Read error: Connection reset by peer]
davidbalbert is now known as davidbalber|away
cultureulterior_ has joined #ruby-lang
methods has joined #ruby-lang
methods has quit [Client Quit]
banister`sleep has left #ruby-lang [#ruby-lang]
Hakon has joined #ruby-lang
mistym has quit [Remote host closed the connection]
yfeldblum has quit [Quit: Leaving]
kurko_ has quit [Ping timeout: 276 seconds]
unlikely_monkey has quit [Remote host closed the connection]
KA_ has quit [Quit: KA_]
ryanv-raptor has joined #ruby-lang
scottschecter has joined #ruby-lang
yfeldblum has joined #ruby-lang
jbsan has joined #ruby-lang
havenn has joined #ruby-lang
mistym has joined #ruby-lang
mossplix_ has joined #ruby-lang
mossplix has quit [Ping timeout: 276 seconds]
mossplix_ is now known as mossplix
mantono has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
g0bl1n has quit [Quit: g0bl1n]
kurko_ has joined #ruby-lang
NOKAH has joined #ruby-lang
Hakon has quit [Ping timeout: 245 seconds]
g0bl1n has joined #ruby-lang
jbsan has quit [Quit: jbsan]
jaimef has quit [Ping timeout: 255 seconds]
imajes has quit [Excess Flood]
enebo has joined #ruby-lang
workmad3 has joined #ruby-lang
imajes has joined #ruby-lang
<matti> zzak: Busy :) Writing a lot of Go nowadays ;]
jaimef has joined #ruby-lang
<injekt> good afternoon
scholar01 has joined #ruby-lang
sailias has joined #ruby-lang
<vbatts> zzak & drbrain: :-)
__BigO__ has joined #ruby-lang
NOKAH has quit [Ping timeout: 264 seconds]
dzhulk has quit [Quit: Leaving.]
andrewhl has joined #ruby-lang
wallerdev has joined #ruby-lang
LineByLine has joined #ruby-lang
methods has joined #ruby-lang
<zzak> :D
LineByLine has quit [Client Quit]
LineByLine has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
ruurd has joined #ruby-lang
r0bby has joined #ruby-lang
stonerfish has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
rue|w has joined #ruby-lang
rue|w has quit [Ping timeout: 276 seconds]
rins has joined #ruby-lang
jtoy has joined #ruby-lang
r0bby is now known as robbyoconnor
havenn has joined #ruby-lang
retro|cz has quit [Ping timeout: 276 seconds]
scholar01 has quit [Quit: scholar01]
zhul_mechanos has joined #ruby-lang
jrafanie has joined #ruby-lang
yalue has joined #ruby-lang
jbsan has joined #ruby-lang
stardiviner has joined #ruby-lang
scholar01 has joined #ruby-lang
sush24 has quit [Quit: Leaving]
sush24 has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
imajes has quit [Excess Flood]
ddd has joined #ruby-lang
kain has quit [Ping timeout: 246 seconds]
sush24 has quit [Client Quit]
jbsan has quit [Quit: jbsan]
kogent has joined #ruby-lang
imajes has joined #ruby-lang
nXqd has quit [Ping timeout: 248 seconds]
retro|cz has joined #ruby-lang
scholar01 has quit [Quit: scholar01]
__BigO__ has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
__BigO__ has joined #ruby-lang
outoftime has joined #ruby-lang
kain has joined #ruby-lang
sush24 has joined #ruby-lang
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
jxie has joined #ruby-lang
dzhulk has joined #ruby-lang
bg451 has joined #ruby-lang
mytrile has joined #ruby-lang
Rizzle has joined #ruby-lang
datanoise has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 240 seconds]
nXqd has joined #ruby-lang
retro|cz has quit [Ping timeout: 255 seconds]
krohrbaugh has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
KA_ has joined #ruby-lang
jmeeuwen has joined #ruby-lang
bg451 has quit [Quit: bg451]
imperator has joined #ruby-lang
bg451 has joined #ruby-lang
alvaro_o has joined #ruby-lang
riffraff has quit [Quit: This computer has gone to sleep]
ruurd has quit [Quit: Leaving...]
mossplix has quit [Remote host closed the connection]
ddd has quit [Read error: Connection reset by peer]
cyri_ has quit [Quit: cyri_]
ddd has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
wizonesolutions has quit [Quit: No Ping reply in 180 seconds.]
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Changing host]
wizonesolutions has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
enebo has quit [Quit: enebo]
tylersmith has joined #ruby-lang
swav has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
kentos has joined #ruby-lang
havenn has joined #ruby-lang
xcombelle has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
havenn has quit [Read error: No route to host]
<kentos> Ruby 1.9.2 is out!!!
<kentos> =)
megha has quit [Ping timeout: 264 seconds]
_carloslopes has quit [Remote host closed the connection]
bg451 has quit [Quit: bg451]
GarethAdams has quit [Ping timeout: 245 seconds]
havenn has joined #ruby-lang
bg451 has joined #ruby-lang
<yorickpeterse> kentos: wat
<yorickpeterse> 1.9.2 was released like two years ago
srbaker has quit [Quit: Computer has gone to sleep.]
<lianj> thought my scroll buffer was way up
<kentos> /motd
<kentos> lol
<kentos> or w/e the channel message command is
lcdhoffman has quit [Quit: lcdhoffman]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
megha has joined #ruby-lang
carloslopes has joined #ruby-lang
g0bl1n has quit [Quit: g0bl1n]
outoftime has quit [Ping timeout: 245 seconds]
bg451 has quit [Quit: bg451]
wallerdev has quit [Quit: wallerdev]
<freedrull> so that problem yesterday was totally due to some code i wrote that tried to open a non-existant directory, totally my fault :| in my panic i was convinced it was a different problem though, since the error message looked a bit unrelated...
<lianj> freedrull: ;)
<lianj> but good you solved it
<freedrull> thanks alot for helping anyway haha
mytrile has quit [Read error: No route to host]
nXqd_ has joined #ruby-lang
<yorickpeterse> drbrain: zenspider: you might want to fix the channel entry message, it still mentions Ruby 1.9.2 apparently
mytrile has joined #ruby-lang
nXqd has quit [Ping timeout: 255 seconds]
<yorickpeterse> `/msg chanserv #ruby-lang set entrymsg whatever` or something like that
<lianj> or no entrymsg
srbaker has joined #ruby-lang
enebo has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
bzb has joined #ruby-lang
outoftime has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
mercwithamouth has joined #ruby-lang
ddd has quit [Quit: Leaving.]
Banistergalaxy has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby-lang
GarethAdams has joined #ruby-lang
mpan has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 248 seconds]
<freedrull> wwgbd - what would gary bernhardt do
KA_ has quit [Quit: KA_]
__butch__ has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kogent has quit [Remote host closed the connection]
kogent has joined #ruby-lang
Nisstyre has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
bluepojo has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
imajes has quit [Excess Flood]
heftig has quit [Ping timeout: 246 seconds]
lcdhoffman has joined #ruby-lang
imajes has joined #ruby-lang
heftig has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
nkr has joined #ruby-lang
tdy has quit [Ping timeout: 276 seconds]
fsvehla has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
mistym is now known as mistym_lunch
benanne has joined #ruby-lang
Nisstyre has joined #ruby-lang
tdy has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
datanoise has quit [Ping timeout: 255 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
blahwoop has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<blahwoop> hey guys. are mixins the preferred method over inheritience? since it could get a little tricky with inheritience
<whitequark> blahwoop: technically, mixins involve inheritance
<whitequark> try > Object.ancestors
<blahwoop> doing modules or just straight class Hello < World
datanoise has joined #ruby-lang
mrsolo has joined #ruby-lang
<whitequark> blahwoop: define "a little tricky"
<freedrull> any other good resources for learning about isolated testing? i got the "growing object oriented software guided by tests" book and i've watched a bunch of destroyallsoftware screencasts
<yorickpeterse> This was written in Ruby, anybody want to have a guess in how many lines? http://is.gd/X9LGuU
<yorickpeterse> (it's a trick question)
<yorickpeterse> sort of
cored has quit [Ping timeout: 248 seconds]
<canton7> yorickpeterse, 1?
<whitequark> yorickpeterse: 0, and it launches with "ruby foo.rb"?
<yorickpeterse> lol no
<yorickpeterse> 111
<blahwoop> because if i use < it only allows for one. if i use a m ixin i can put it into multiple classes
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<canton7> I bet that could be easily reduced :P
<tylersmith> what gui toolkit?
<yorickpeterse> gtk3
<whitequark> yorickpeterse: ruby-qt codegens an ui from an xml description, and it includes a sample with "if $0 == __FILE__" for you
<canton7> (he said naively, having no idea what sort of gui toolkit magic is happening)
<yorickpeterse> Mind you I've been messing around to see if I can get something MVC-ish in it
<whitequark> that's why I said it
<yorickpeterse> whitequark: GTK has that too: Glade
<yorickpeterse> it's shit
<whitequark> yorickpeterse: qt's variant isn't
<yorickpeterse> At least the editor is, it crashes every few clicks
<whitequark> well, gtk is generally shit
<yorickpeterse> the XML isn't also very readable either
<yorickpeterse> meh, I've found that it's ok-ish
<whitequark> it lacks structure
<yorickpeterse> I'd say that's the last thing it lacks
<yorickpeterse> When I was messing around with the C code my single biggest issue was the lack of proper docs
<yorickpeterse> especially once you go a bit more low level it's basically a wild west
<yorickpeterse> I'd use Qt if it 1. didn't look like ass on non Qt setups 2. the gem actually compiled
kogent has quit [Quit: kogent]
<whitequark> you only need a line or two to set the theme
<whitequark> well, the gem compiles for me...
<yorickpeterse> qtbindings?
<whitequark> qtruby4
<yorickpeterse> hmmm
<yorickpeterse> never tried that one
<yorickpeterse> ah that's why: last release was in 2010
<yorickpeterse> either way, the Ruby GTK3 API is actually quite nice to use
nkr has quit [Quit: Linkinus - http://linkinus.com]
<yorickpeterse> Though the website's search feature is way too verbose in what it gives back
drbrain has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
havenn has quit [Remote host closed the connection]
bg451 has joined #ruby-lang
bg451 has quit [Client Quit]
<whitequark> gtk3? yeah, a thing which I hate not only as a programmer, but as a user either
<chris2> tk ftw :P
<whitequark> chris2: compared to gtk3, tk isn't that bad
<whitequark> I was recently quite surprised to see that tk can easily display 8k (or maybe 16k) of rows in a table and it didn't get slow
<whitequark> not much gui toolkits do that readily
<chris2> i like the api too
<whitequark> I've heard that OS X cannot.
<yorickpeterse> whitequark: gtk3 itself isn't the biggest issue, that's gnome 3
<chris2> luckily, that one is easily avoided
<whitequark> yorickpeterse: not sure to what degree they broke compatibility. there should be a reason pidgin is still gtk2
riffraff has joined #ruby-lang
blacktul_ has joined #ruby-lang
<yorickpeterse> for existing apps there aren't that many benefits that I know of
<yorickpeterse> for new ones there's no reason to use gtk2
io_syl has quit [Ping timeout: 240 seconds]
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
io_syl has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 264 seconds]
imperator2 has joined #ruby-lang
kentos has quit [*.net *.split]
bzb has quit [*.net *.split]
imperator has quit [*.net *.split]
blacktulip has quit [*.net *.split]
rsl has joined #ruby-lang
gregmore_ has joined #ruby-lang
rsl has quit [Client Quit]
<whitequark> yorickpeterse: ok, so they went less crazy than I thought
techlife has quit [Ping timeout: 272 seconds]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
Banistergalaxy has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
kentos has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
nXqd_ has quit [Ping timeout: 240 seconds]
danfg has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
<danfg> is there a function to escape quotes in a string?
nXqd has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
wmoxam has joined #ruby-lang
techlife has joined #ruby-lang
Spillrag has joined #ruby-lang
<whitequark> danfg: gsub
xcombelle has quit [Remote host closed the connection]
havenn has joined #ruby-lang
rsl has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
mistym_lunch is now known as mistym
Spillrag has quit [Ping timeout: 276 seconds]
<yorickpeterse> whitequark: heh
glebm has joined #ruby-lang
sailias has quit [Quit: Leaving.]
robotmay has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
waffleau has joined #ruby-lang
imajes has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
bg451 has joined #ruby-lang
mistym is now known as mistym_meeting
sepp2k has joined #ruby-lang
waffleau has quit [Read error: Connection reset by peer]
waffleau_ has joined #ruby-lang
waffleau_ has quit [Read error: Connection reset by peer]
waffleau_ has joined #ruby-lang
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
waffleau_ has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
waffleau_ has joined #ruby-lang
waffleau_ has left #ruby-lang [#ruby-lang]
waffleau_ has joined #ruby-lang
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
waffleau_ has left #ruby-lang [#ruby-lang]
carloslopes has joined #ruby-lang
AndChat| has joined #ruby-lang
rindolf has quit [Quit: Yay! I'm a Llama Again. http://www.shlomifish.org/ .]
yalue has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 256 seconds]
mistym_meeting is now known as mistym
swav has joined #ruby-lang
danfg has quit [Quit: Leaving]
dzhulk has quit [Ping timeout: 276 seconds]
swav has quit [Ping timeout: 255 seconds]
swav has joined #ruby-lang
rsl has joined #ruby-lang
rsl has quit [Client Quit]
dzhulk has joined #ruby-lang
bg451 has quit [Quit: bg451]
ryanf has joined #ruby-lang
drbrain has joined #ruby-lang
RORgasm has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
swav has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
kogent has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
glebm has quit [Ping timeout: 248 seconds]
kogent has quit [Quit: kogent]
havenn has quit [Remote host closed the connection]
kogent has joined #ruby-lang
havenn has joined #ruby-lang
glebm has joined #ruby-lang
kiwnix has joined #ruby-lang
drbrain_ has joined #ruby-lang
krohrbaugh has joined #ruby-lang
krohrbaugh1 has quit [Read error: Connection reset by peer]
mpan has quit [Ping timeout: 252 seconds]
drbrain has quit [Ping timeout: 245 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
swav has joined #ruby-lang
emocakes has quit [Quit: emocakes]
mpan has joined #ruby-lang
thone_ has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
emocakes has joined #ruby-lang
thone has quit [Ping timeout: 264 seconds]
__BigO__ has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 255 seconds]
RWN has joined #ruby-lang
outoftime has quit [Quit: Leaving]
srbaker has quit [Quit: Computer has gone to sleep.]
mytrile has quit [Remote host closed the connection]
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh1 has joined #ruby-lang
riffraff has quit [Quit: Leaving]
blacktul_ has quit [Remote host closed the connection]
rins has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
AndChat| has quit [Ping timeout: 252 seconds]
krohrbaugh1 has quit [Quit: Leaving.]
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
krohrbaugh has joined #ruby-lang
swav has quit [Ping timeout: 276 seconds]
jrafanie has quit [Quit: jrafanie]
havenn has quit [Remote host closed the connection]
soypirate has joined #ruby-lang
ryanv-raptor has left #ruby-lang [#ruby-lang]
andrewhl has quit [Remote host closed the connection]
<yorickpeterse> whitequark: that little discussion we had about associating nodes with other data? It made it possible to go from this: https://github.com/YorickPeterse/ruby-lint/blob/master/lib/ruby-lint/analyze/unused_variables.rb to this: https://github.com/YorickPeterse/ruby-lint/blob/refactor-ast/lib/ruby-lint/analyze/unused_variables.rb
mrsolo has quit [Quit: This computer has gone to sleep]
<whitequark> yorickpeterse: very well
Mrman_ has joined #ruby-lang
kiwnix has quit [Remote host closed the connection]
mrsolo has joined #ruby-lang
<yorickpeterse> I am quite pleased with the outcome, though I have to clean up some other things now
havenn has joined #ruby-lang
yfeldblum has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 248 seconds]
krohrbaugh has joined #ruby-lang
<tylersmith> possible dump question. I have a long running script and with dtruss i'm seeing it's mostly just calling getrusage over and over. is this normal sounding? and if not, where would I even begin trying to figure out why this is?
<tylersmith> i'm using rubyprof to profile it. is there a way to figure out from that what could be calling it so much?
ruurd has joined #ruby-lang
<drbrain_> if you're using dtruss + rubyprof, rubyprof is probably getting the current time spent running the process
drbrain_ is now known as drbrain
<drbrain> usually you would use one or the other, not both at the same time
elux has quit [Ping timeout: 264 seconds]
<tylersmith> so you're saying rubyprof is probably the source? that makes a lot of sense I guess
<tylersmith> i've been using rubyprof, but it was taking so long I wanted to ensure it wasn't stuck, so I busted open dtruss. I bet that's the issue. thanks!
<drbrain> of the getrusage() calls, yes
<drbrain> profilers often add overhead to the execution of your program, so it may not be stuck, just taking extra time
workmad3 has joined #ruby-lang
<drbrain> I usually try to profile code that takes only a few seconds when run without the profiler
<whitequark> perftools.rb is a virtually zero cost sampling profiler you might want to check out
enebo has quit [Quit: enebo]
<whitequark> at least I didn't notice any change in response times in a big rails app which had them on order of 6s.
enebo has joined #ruby-lang
<drbrain> yeah, not all profilers are created equal
<tylersmith> hmm, thanks, I'll check out perftools
enebo has quit [Client Quit]
<whitequark> perftools.rb; perftools is the google's C/C++ profiler
dustint has quit [Quit: Leaving]
enebo has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
rbevers has joined #ruby-lang
carloslopes has joined #ruby-lang
rbevers has left #ruby-lang [#ruby-lang]
__BigO__ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
lcdhoffman has joined #ruby-lang
zhul_mechanos has quit [Quit: zhul_mechanos]
datanoise has quit [Ping timeout: 276 seconds]
carloslopes has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
krohrbaugh has joined #ruby-lang
tenderlove has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
ruurd has quit [Quit: Leaving...]
lcdhoffman_ has joined #ruby-lang
solars has quit [Ping timeout: 276 seconds]
<tylersmith> okay, just as a followup, it was indeed ruby-prof. thanks again
scottschecter has quit [Quit: WeeChat 0.3.9.2]
lcdhoffman_ has quit [Client Quit]
ruurd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Mrman_ has quit [Quit: Leaving...]
robotmay has joined #ruby-lang
enebo has quit [Quit: enebo]
datanoise has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
spuk has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
scottschecter has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
kogent has quit [Quit: kogent]
sepp2k has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
__butch__ has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
spuk has joined #ruby-lang