<baweaver>
havenwood: Wait, if it's finding which strings are separate by only a character what's up with the checksum bit?
<eam>
so my time benchmark to beat for the advent day two part two is 0m0.012s
<baweaver>
"Of these box IDs, four of them contain a letter which appears exactly twice, and three of them contain a letter which appears exactly three times. Multiplying these together produces a checksum of 4 * 3 = 12."
<eam>
baweaver: for part one, you're finding two sums
<baweaver>
Ah, so you're on 2.2
<baweaver>
oi, you lot confuse me
<baweaver>
sum of twice occurring and thrice occurring letters?
<eam>
part one is pretty straightforward ruby/perl/whatever
<eam>
yeah, but only one count per string
<baweaver>
ah
<eam>
twice occuring in the same string counts as one
<eam>
*twice occuring twice
<eam>
part two starts getting into speed issues if the string traversal isn't efficient
<eam>
havenwood: holy cow, very fast
<eam>
xorcist is 50% slower than perl, that's same order magnitude so w/e
<eam>
a billion xors of a 16 byte string in 33s vs 25s for perl
<baweaver>
So part two is finding the only two strings with a distance of 1?
<baweaver>
Though to be fair it'd be overkill on calculation steps as it tries to hit on insertion, deletion, and replacement
<baweaver>
though they're being sneaky calling it levenshtein, considering it has a transposition clause in there.
<baweaver>
Really danged handy algo for diffing MAC addresses whenever people have been inputting things by hand and you want to find the closest thing to what they should have put in there
<eam>
baweaver: see if you can write a solver that runs in 11ms :)
<baweaver>
Short of breaking out Rust I probably can't
<havenwood>
baweaver: it's damerau-levenshtein, not plain levenshtein, if it includes transposition
<baweaver>
indeed
<havenwood>
baweaver: this is more simple hamming distance
<baweaver>
hence sneaky
<baweaver>
Anyways, still have a ton of art to ream through before Wednesday so back to it I go
<eam>
what's the fastest way to sum occurences of a byte in a string?
<baweaver>
immediate thought is HashMap solutions
<eam>
well just one byte, so the only state is gonna be an integer
<baweaver>
Bit twiddling tricks?
<baweaver>
Mask that byte
<eam>
I wonder if it's still tr
mochiyoda has quit [Ping timeout: 252 seconds]
CrazyEddy has quit [Ping timeout: 250 seconds]
Tom-_ has joined #ruby
roshanavand has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
akaiiro has quit [Ping timeout: 245 seconds]
roshanavand has quit [Quit: Gone planting!]
Puffball has quit [Remote host closed the connection]
cd has quit [Quit: cd]
CrazyEddy has joined #ruby
dinfuehr has joined #ruby
dinfuehr_ has quit [Ping timeout: 246 seconds]
reber has quit [Remote host closed the connection]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
conta has joined #ruby
Puffball has joined #ruby
white_lilies has quit [Ping timeout: 244 seconds]
dinfuehr_ has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
jetchisel has quit [Ping timeout: 250 seconds]
gix has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
kapil____ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
cnsvc_ has quit [Quit: WeeChat 2.3]
fluxAeon has joined #ruby
cnsvc has joined #ruby
dellavg_ has joined #ruby
alem0lars has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
za1b1tsu has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 245 seconds]
dbz has quit [Ping timeout: 246 seconds]
conta1 has joined #ruby
rippa has joined #ruby
conta1 has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
RiPuk has quit [Ping timeout: 244 seconds]
leftylink has joined #ruby
LinuxKnight has quit [Remote host closed the connection]
LinuxKnight has joined #ruby
akem has quit [Remote host closed the connection]
akem__ has joined #ruby
mangold has joined #ruby
akem__ has quit [Remote host closed the connection]
akem__ has joined #ruby
jetchisel has joined #ruby
roshanavand has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
phaul has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
cnsvc has joined #ruby
mangold has quit [Ping timeout: 252 seconds]
peirama has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
mangold has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
mangold has quit [Ping timeout: 252 seconds]
hiroaki has joined #ruby
mangold has joined #ruby
ur5us has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
Guest39666 has quit [Quit: WeeChat 2.3]
al2o3-cr has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
RougeR has quit [Ping timeout: 246 seconds]
fmccann has quit [Ping timeout: 245 seconds]
RougeR has joined #ruby
AJA4350 has joined #ruby
cnsvc has joined #ruby
cliluw has quit [Ping timeout: 252 seconds]
cliluw has joined #ruby
InfinityFye has joined #ruby
akem__ has quit [Read error: Connection reset by peer]
akem__ has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
InfinityFye has quit [Ping timeout: 250 seconds]
Inline has quit [Quit: Leaving]
Inline has joined #ruby
gnufied has joined #ruby
Yxhuvud has joined #ruby
ur5us has joined #ruby
jetchisel has quit [Ping timeout: 272 seconds]
jetchisel has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
cnsvc has joined #ruby
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
<marz_d`ghostman>
In Rspec when testing a module, like Rspec.describe Foo::Bar . . . why do I get an error with let(:bar) { Bar.new() }?
<peirama>
marz_d`ghostman:
<peirama>
What error message are you getting?
<marz_d`ghostman>
peirama: I have let(:bar) { subject.new(args) }, but I'm getting an error saying wrong number of arguments(given 0,expected1) even if I'm passing in an argument
ropeney has quit [Ping timeout: 250 seconds]
syndikate has quit [Ping timeout: 264 seconds]
syndikate has joined #ruby
matthewd has quit [Ping timeout: 246 seconds]
pistachio has quit [Ping timeout: 264 seconds]
matthewd has joined #ruby
pistachio has joined #ruby
ropeney has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
KeyJoo has joined #ruby
carbone5 has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
conta has quit [Quit: conta]
gnufied has quit [Ping timeout: 245 seconds]
marz_d`ghostman has quit [Quit: Page closed]
APK has joined #ruby
AKPWD has quit [Ping timeout: 252 seconds]
hiroaki has quit [Ping timeout: 252 seconds]
ben has quit [Ping timeout: 252 seconds]
akem__ has quit [Read error: Connection reset by peer]
akem__ has joined #ruby
bonhoeffer_ has quit [Ping timeout: 256 seconds]
cnsvc has joined #ruby
sylario has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
ua_ has quit [Ping timeout: 240 seconds]
ua has joined #ruby
gnufied has joined #ruby
danguita has joined #ruby
hutch has joined #ruby
white_lilies has joined #ruby
carbone5 has quit [Quit: carbone5]
carbone5 has joined #ruby
zautomata has quit [Ping timeout: 268 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
themsay has joined #ruby
carbone5 has quit [Quit: carbone5]
carbone5 has joined #ruby
cnsvc has joined #ruby
_whitelogger has joined #ruby
Dbugger has joined #ruby
pisculichi has joined #ruby
dinfuehr has joined #ruby
dinfuehr_ has quit [Ping timeout: 250 seconds]
carbone5 has quit [Quit: carbone5]
akaiiro has joined #ruby
fmccann has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
gnufied has joined #ruby
akaiiro has quit [Ping timeout: 246 seconds]
patr0clus has joined #ruby
gnufied has quit [Ping timeout: 250 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
hutch has quit [Ping timeout: 250 seconds]
akem__ has quit [Remote host closed the connection]
akem__ has joined #ruby
alem0lars has quit [Ping timeout: 246 seconds]
hutch has joined #ruby
ghormoon has quit [Ping timeout: 252 seconds]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 245 seconds]
akem has joined #ruby
ghormoon has joined #ruby
akem__ has quit [Ping timeout: 250 seconds]
za1b1tsu has joined #ruby
dinfuehr has joined #ruby
dinfuehr_ has quit [Ping timeout: 246 seconds]
Azure has quit [Ping timeout: 250 seconds]
jaddison has joined #ruby
cnsvc has joined #ruby
akaiiro has joined #ruby
jcarl43 has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
Azure has joined #ruby
patr0clus has quit [Ping timeout: 246 seconds]
peirama has quit [Ping timeout: 250 seconds]
jaddison has quit [Quit: jaddison]
peirama has joined #ruby
peirama has quit [Remote host closed the connection]
peirama has joined #ruby
za1b1tsu has quit [Quit: Leaving]
patr0clus has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
Fusl has quit [Remote host closed the connection]
carbone5 has joined #ruby
patr0clus is now known as s3d1v0g1us
s3d1v0g1us is now known as s3nd1v0g1us
Fusl has joined #ruby
bak1an has joined #ruby
white_lilies has quit [Ping timeout: 272 seconds]
hutch has quit [Ping timeout: 250 seconds]
carbone5 has quit [Quit: carbone5]
carbone5 has joined #ruby
brandonkal has joined #ruby
fredmorcos has joined #ruby
ua has quit [Excess Flood]
za1b1tsu has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
akem__ has joined #ruby
ua has joined #ruby
akem has quit [Ping timeout: 250 seconds]
white_lilies has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.2]
za1b1tsu has quit [Quit: WeeChat 2.2]
za1b1tsu has joined #ruby
reber has joined #ruby
jaddison has joined #ruby
cnsvc has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 272 seconds]
jaddison has quit [Quit: jaddison]
fredmorcos has quit [Remote host closed the connection]
carbone5 has quit [Quit: carbone5]
Freshnuts has joined #ruby
chouhoulis has joined #ruby
akem has joined #ruby
akem__ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
dviola has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
DTZUZO has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
hurricanehrndz has joined #ruby
hutch has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
blackmesa has quit [Quit: WeeChat 2.3]
blackmesa has joined #ruby
akaiiro has quit [Remote host closed the connection]
carbone5 has joined #ruby
carbone5 has quit [Client Quit]
Aqo has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
jaddison has joined #ruby
cd has joined #ruby
gnufied has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
cnsvc has joined #ruby
jaddison has quit [Quit: jaddison]
reber has quit [Remote host closed the connection]
ur5us has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gnufied has quit [Ping timeout: 245 seconds]
jaddison has joined #ruby
white_lilies has quit [Ping timeout: 246 seconds]
carbone5 has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
DTZUZO has quit [Ping timeout: 244 seconds]
jaddison has quit [Quit: jaddison]
chouhoulis has quit [Remote host closed the connection]
jcarl43 has quit [Quit: WeeChat 2.3]
kapil____ has joined #ruby
Dbugger has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
Tom-_ has quit [Remote host closed the connection]
Renich has quit [Quit: Renich]
Renich has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
Renich has quit [Read error: Connection reset by peer]
Renich has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
akem has quit [Quit: Leaving]
Aqo has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
moei has quit [Quit: Leaving...]
jetchisel has joined #ruby
jottr has joined #ruby
dellavg_ has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
cnsvc has joined #ruby
carbone5 has quit [Quit: carbone5]
jaddison has joined #ruby
nowhere_man has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
Nicmavr has joined #ruby
Arkantos_ has joined #ruby
Arkantos_ has quit [Client Quit]
Arkantos_ has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
jaddison has quit [Quit: jaddison]
Arkantos_ is now known as Arkantos
hutch has quit [Ping timeout: 246 seconds]
vikaton has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
nowhere_man has joined #ruby
jottr has joined #ruby
wolfshappen has quit [Ping timeout: 246 seconds]
white_lilies has joined #ruby
wolfshappen_ has joined #ruby
dbz has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
dviola has quit [Quit: WeeChat 2.3]
Arkantos has quit [Ping timeout: 250 seconds]
hutch has joined #ruby
ua has quit [Ping timeout: 250 seconds]
twe4ked has joined #ruby
graphene has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 250 seconds]
graphene has joined #ruby
fluxAeon has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
hutch has quit [Ping timeout: 245 seconds]
paulscoder has joined #ruby
hutch has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
danguita has quit [Quit: Connection closed for inactivity]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
ua has joined #ruby
Sembei has joined #ruby
Pisuke has quit [Ping timeout: 250 seconds]
dbz has quit [Remote host closed the connection]
phaul has joined #ruby
gnufied has joined #ruby
gnufied has quit [Remote host closed the connection]