Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trapped>
i've noticed that the OpenSSL::SHA1.hash output is slightly different than the commandline `openssl sha1` one: http://carc.in/#/r/m13 what is going on?
<trapped>
i can see there's a missing 0 at the middle
<trapped>
jhass: do you have any clue? should i open an issue?
<jhass>
trapped: open an issue, maybe check against HEAD though
<trapped>
i'm using HEAD
<trapped>
well, i noticed it using HEAD before using carc.in
<trapped>
sorry for bothering you but you know when one tries to think too much about something, the strangest ideas come up
<jhass>
don't we have .hexdigest or something?
<jhass>
no worries
Ven has joined #crystal-lang
<jhass>
trapped: so on HEAD OpenSSL::Digest.new("sha1").update("test").hexdigest works
<jhass>
we probably need a better interface still
<trapped>
well i guess a simple hexstring conversion on byte arrays would suffice
Ven has quit [Read error: Connection reset by peer]
cyjimmy264 has quit [Remote host closed the connection]
Ven has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 240 seconds]
pawnbox_ has joined #crystal-lang
zz_Cidan is now known as Cidan
hangyas has joined #crystal-lang
Cidan is now known as zz_Cidan
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jokke>
how can i include c code which isn't compiled into a library (as in a .c and a .h file) into a crystal lib?
<CompanionCube>
hm, good question. Unfortunately I don't know
blue_deref has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
Ven_ has joined #crystal-lang
<jhass>
jokke: compile the .o and add the right link flags?
<jokke>
yeah..
<jokke>
nvm it's also in the aur
<jhass>
check the llvm debug stuff in the crystal repo
<jhass>
basically does that
<CompanionCube>
perhaps someone should add a note about that into the docs?
Ven_ has quit [Read error: Connection reset by peer]
Ven_ has joined #crystal-lang
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven_ has joined #crystal-lang
Dreamer3 has joined #crystal-lang
Ven_ has quit [Read error: Connection reset by peer]
<jokke>
i think i asked about this before but is there a destructor for crystal? i need to call a c function to free a pointer when the gc gets rid of my class instane
<jokke>
*instance
Ven_ has joined #crystal-lang
zz_Cidan is now known as Cidan
<jhass>
define finalize
<jokke>
ah ok cool
Cidan is now known as zz_Cidan
Ven_ has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
hangyas has quit [Quit: hangyas]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
jwaldrip has joined #crystal-lang
<jwaldrip>
Is there a good guide for getting started with shards?
<jwaldrip>
I am trying to figure out how requiring files comes into play.
<jokke>
jhass: i stumbled across a pretty kewl hashing algorithm the other day: xxHash. ever heard about it?