Coincidental has quit [Remote host closed the connection]
relix has joined #ruby-lang
diegoviola has joined #ruby-lang
x0f has quit [Ping timeout: 246 seconds]
jerrytgarcia has joined #ruby-lang
vlad_starkov has joined #ruby-lang
wuhua has joined #ruby-lang
benanne has joined #ruby-lang
x0f has joined #ruby-lang
marr has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datanoise has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
thmzlt has joined #ruby-lang
datanoise has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby-lang
retro|cz has joined #ruby-lang
daikan has joined #ruby-lang
jxie has quit [Quit: leaving]
hogeo has quit [Ping timeout: 246 seconds]
daikan has quit [Ping timeout: 246 seconds]
tbuehlmann has joined #ruby-lang
mucker has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
cbreeze has quit [Quit: cbreeze]
relix has joined #ruby-lang
relix has quit [Client Quit]
deol has joined #ruby-lang
eval-in has joined #ruby-lang
MaddinXx has joined #ruby-lang
relix has joined #ruby-lang
deol has quit [Ping timeout: 252 seconds]
relix has quit [Client Quit]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
anulman has joined #ruby-lang
anulman has quit [Client Quit]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
anulman has joined #ruby-lang
sepp2k1 has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
thmzlt has quit []
Voker57 has joined #ruby-lang
prc has joined #ruby-lang
mistym has quit [Remote host closed the connection]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
<yorickpeterse>
whitequark: ping
<whitequark>
pong
datanoise has joined #ruby-lang
<pipecloud>
whitequark: ding
<yorickpeterse>
whitequark: I recall that a while ago you moved from a HDD to an SSD, what did you use to move your disk data? Just dd?
<whitequark>
lvm
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
symm- has joined #ruby-lang
<yorickpeterse>
hm, how much of a pita was it? I currently have a 512 HDD but I'm fucking done with it and probably going to buy a 256 SSD in town today (if I can find one)
<yorickpeterse>
should save me some power too
<whitequark>
(power) don't expect it
<yorickpeterse>
eh? The not having to spin up/down part should help
<whitequark>
SSDs have lower idle power generally, especially with SATA ASPM, but active is on par or higher
<whitequark>
well, don't spin it down!
<whitequark>
so
daikan has joined #ruby-lang
<whitequark>
lvm would move that in a hour or two
<whitequark>
just make sure to not run out of charge
<yorickpeterse>
Hm, have to install llvm first though
<yorickpeterse>
and apparently that has to be done when you install Lunix
<yorickpeterse>
hmpf
<whitequark>
lvm
<whitequark>
not llvm
<whitequark>
also no, not necessarily, you can migrate from non-lvm setup to an lvm one
<whitequark>
... with dd
<yorickpeterse>
errr lol yeah lvm
datanoise has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
hogeo has quit [Ping timeout: 252 seconds]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
anulman has quit [Quit: Leaving.]
symm- has quit [Ping timeout: 240 seconds]
<charliesome>
>> 1+2
<charliesome>
ummm
<yorickpeterse>
lrn2ops
eval-in_ has joined #ruby-lang
eval-in_ has quit [Remote host closed the connection]
<charliesome>
i'm trying :(
stardiviner has joined #ruby-lang
<r0bgleeson>
try harder son
<pipecloud>
lul. :D
daikan has quit [Remote host closed the connection]
daikan has joined #ruby-lang
jerrytgarcia has quit [Ping timeout: 240 seconds]
eval-in has quit [Remote host closed the connection]
<yorickpeterse>
allright, time to head outside and get myself an SSD
<yorickpeterse>
and new pants
<yorickpeterse>
then I can have fun fucking up my hdd
<r0bgleeson>
what's the pants for then?
<yorickpeterse>
I just need new pants
<yorickpeterse>
I only have two pairs, of which one is shit
<r0bgleeson>
sounds like a good investment then
<yorickpeterse>
right, bbl
vlad_starkov has joined #ruby-lang
<pipecloud>
For a second, I thought that was a chicken||egg problem
daikan has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
getthearm has joined #ruby-lang
charliesome has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
anulman has joined #ruby-lang
arBmind has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
anulman has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby-lang
hogeo has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 0.4.2]
getthearm has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
daikan has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby-lang
daikan has quit [Ping timeout: 252 seconds]
anulman has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
anulman has quit [Ping timeout: 272 seconds]
retro|cz has quit [Ping timeout: 245 seconds]
hogeo has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
wuhua has quit [Read error: Connection reset by peer]
dwknoxy has joined #ruby-lang
stardiviner has quit [Ping timeout: 240 seconds]
dvorak has quit [Read error: Operation timed out]
nertzy3 has joined #ruby-lang
dvorak has joined #ruby-lang
mechanicles has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
tahzeem has quit []
phus1on has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
pro21ms4 has joined #ruby-lang
ItSAN____ has quit [Quit: Leaving...]
pro21ms4 has quit [Remote host closed the connection]
ItSANgo has joined #ruby-lang
daikan has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<yorickpeterse>
ah fuck me I bought the wrong cable
<yorickpeterse>
I said esata and the fuckers gave me sata
<yorickpeterse>
at least the external casing that I got should do it, though it's fucking USB
benanne has quit [Read error: Connection reset by peer]
datanoise has joined #ruby-lang
anulman has joined #ruby-lang
<whitequark>
usb3 is on par with sata
daikan has quit [Ping timeout: 272 seconds]
<r0bgleeson>
yorickpeterse: i hope you didnt buy pink pants as well. that'd be really awful!
<yorickpeterse>
No I got regular jeans
<r0bgleeson>
success
anulman has quit [Ping timeout: 260 seconds]
MaddinXx has quit [Remote host closed the connection]
symm- has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
datanoise has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
benanne has joined #ruby-lang
Kabaka has quit [Ping timeout: 245 seconds]
anulman has joined #ruby-lang
anulman1 has joined #ruby-lang
anulman has quit [Read error: Connection reset by peer]
anulman1 has quit [Read error: Connection reset by peer]
cbreeze has joined #ruby-lang
cbreeze has quit [Client Quit]
MaddinXx_ has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
Kabaka has joined #ruby-lang
tape11 has joined #ruby-lang
tape1 has quit [Ping timeout: 246 seconds]
|jemc| has joined #ruby-lang
havenwood has joined #ruby-lang
diegoviola has joined #ruby-lang
tape11 has quit [Ping timeout: 246 seconds]
daikan has joined #ruby-lang
thmzlt has joined #ruby-lang
snsei has joined #ruby-lang
kiddorails has joined #ruby-lang
cnivolle has joined #ruby-lang
daikan has quit [Ping timeout: 260 seconds]
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby-lang
kiddorails has quit [Quit: Leaving.]
diegoviola has quit [Ping timeout: 260 seconds]
Guest14544 has joined #ruby-lang
Guest14544 has quit [Changing host]
Guest14544 has joined #ruby-lang
Guest14544 is now known as diegoviola
fuhgeddaboudit has joined #ruby-lang
RobertBirnie has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has joined #ruby-lang
elia has joined #ruby-lang
hashbangchris has joined #ruby-lang
nertzy3 has quit [Quit: This computer has gone to sleep]
cnivolle has quit []
kaiza has joined #ruby-lang
nathanstitt has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
MaddinXx_ has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
kwando has quit [Ping timeout: 240 seconds]
kwando has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
hashbangchris has quit [Quit: mt]
lewix has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
brownies_ has quit [Ping timeout: 264 seconds]
phus1on has quit [Quit: .]
prc has quit [Quit: Leaving.]
prc has joined #ruby-lang
snsei has quit [Remote host closed the connection]
brownies has joined #ruby-lang
tape11 has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
deol has joined #ruby-lang
datanoise has joined #ruby-lang
snsei has joined #ruby-lang
kiddorails has joined #ruby-lang
kwando has quit [Ping timeout: 240 seconds]
|jemc| has quit [Ping timeout: 245 seconds]
kwando has joined #ruby-lang
daikan has joined #ruby-lang
snsei has quit [Ping timeout: 260 seconds]
datanoise has quit [Ping timeout: 246 seconds]
andrewvos has joined #ruby-lang
<andrewvos>
Halo
<andrewvos>
Hallo
jxie has joined #ruby-lang
daikan has quit [Ping timeout: 245 seconds]
<andrewvos>
Let's say I have a very large list (70 million) of things that look like {:name, :score}. I want to search the list for "rubby" in the name field, but before this I want to sort on :name and :score.
<andrewvos>
Any ideas how I could cache the sort, like maybe cache the things sorted by :name and by :score, and then use this cache to search these items?
<andrewvos>
These things can fit into memory, but I wouldn't want to have to store them more than once
<andrewvos>
What I have done to search the name field is to store a hash with the key as a word found in the name, and the value as an array of IDs pointing to each thing
prc1 has joined #ruby-lang
<andrewvos>
So I can do a search for rubby like words["rubby"] #=> ["id1","id2","id9000"]
<andrewvos>
And if the things are sorted the way I want them when I index them, then this returns a stable sort (from what I've seen)
<andrewvos>
Problem is, I need to create this word index for every single type of possible sort
<andrewvos>
So I need an index for name(ascending),score(ascending) and also name(descending),score(ascending) and all other permutations
<andrewvos>
This uses a lot of RAM :(
prc has quit [Ping timeout: 272 seconds]
tape11 has quit [Ping timeout: 245 seconds]
mechanicles has quit [Quit: Computer has gone to sleep.]
mechanicles has joined #ruby-lang
deol has quit [Remote host closed the connection]
deol has joined #ruby-lang
kiddorails has quit [Quit: Leaving.]
snsei has joined #ruby-lang
deol has quit [Ping timeout: 272 seconds]
snsei has quit [Ping timeout: 246 seconds]
rippa has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
RobertBirnie has joined #ruby-lang
apeiros_ has joined #ruby-lang
lewix has quit [Remote host closed the connection]
lewix has joined #ruby-lang
rue has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 260 seconds]
rue has joined #ruby-lang
rippa has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
shinnya has quit [Ping timeout: 252 seconds]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby-lang
Tearan has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 252 seconds]
dwknoxy has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
<darix>
andrewvos: are the lists per word really that long?
<darix>
andrewvos: also some databases have support for problems like this
<andrewvos>
darix: This is a learning excercise :)
<darix>
ah
<andrewvos>
darix: Well the result set could be all items, so I'm wondering how to do that
<darix>
andrewvos: tree. and instead of the IDs of the items. store references directly to those items
<andrewvos>
Trie tree?
<darix>
got to run
<darix>
sorry
<andrewvos>
okie
<darix>
shops close in 45 :)
<andrewvos>
thanks anyway :)
benlovell has joined #ruby-lang
<darix>
andrewvos: i would probably just stuff it into a db and add proper indeces