jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.1 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
trapped has quit [Quit: Textual IRC Client: www.textualapp.com]
leafybas_ has quit [Ping timeout: 260 seconds]
leafybas_ has joined #crystal-lang
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 240 seconds]
yxhuvud has joined #crystal-lang
justinmcp_ has joined #crystal-lang
justinmcp has quit [Ping timeout: 255 seconds]
pragmatism has quit [Ping timeout: 255 seconds]
pragmatism has joined #crystal-lang
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 260 seconds]
leafybas_ has quit [Remote host closed the connection]
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
blue_deref has quit [Quit: bbn]
fowlduck_ has joined #crystal-lang
ponga has joined #crystal-lang
grindhold_ has joined #crystal-lang
fowlduck has quit [*.net *.split]
matp has quit [*.net *.split]
salvor has quit [*.net *.split]
grindhold has quit [*.net *.split]
tliff has quit [*.net *.split]
epitron has quit [*.net *.split]
epitron has joined #crystal-lang
matp has joined #crystal-lang
salvor has joined #crystal-lang
tliff has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
jamie_ca has quit [Ping timeout: 250 seconds]
Keziolio has quit [Ping timeout: 250 seconds]
Kilobyte22 has quit [Ping timeout: 250 seconds]
emmanueloga has quit [Ping timeout: 250 seconds]
RX14 has quit [Ping timeout: 250 seconds]
Bofu2U has quit [Ping timeout: 250 seconds]
Kilo`byte has joined #crystal-lang
bjmllr has quit [Ping timeout: 250 seconds]
bougyman has quit [Ping timeout: 250 seconds]
xAndy has quit [Ping timeout: 250 seconds]
jeromegn has quit [Ping timeout: 250 seconds]
hplar has quit [Ping timeout: 250 seconds]
bjmllr has joined #crystal-lang
xAndy has joined #crystal-lang
bougyman has joined #crystal-lang
Keziolio has joined #crystal-lang
hplar has joined #crystal-lang
emmanueloga has joined #crystal-lang
matp_ has joined #crystal-lang
matp has quit [Ping timeout: 244 seconds]
adam12 has quit [Ping timeout: 244 seconds]
adam_ has joined #crystal-lang
NeverDie has quit [Ping timeout: 260 seconds]
<Davy_CC> [spoiler]: thanks
pleiosaur has quit [Ping timeout: 255 seconds]
leafybasil has quit [Ping timeout: 255 seconds]
leafybasi has joined #crystal-lang
pleiosaur has joined #crystal-lang
BlaXpirit_ has joined #crystal-lang
CodiS has joined #crystal-lang
BlaXpirit_ has quit [Client Quit]
A124 has joined #crystal-lang
barosl_ has quit [Read error: Connection reset by peer]
CodiS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 255 seconds]
CodiS has joined #crystal-lang
bmcginty has quit [Ping timeout: 260 seconds]
bmcginty has joined #crystal-lang
CodiS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CodiS has joined #crystal-lang
CodiS has quit [Quit: Textual IRC Client: www.textualapp.com]
matp_ is now known as matp
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 265 seconds]
benoist_ has joined #crystal-lang
benoist has quit [Read error: Connection reset by peer]
AckZ has quit [Ping timeout: 252 seconds]
hplar has quit [Ping timeout: 252 seconds]
aemadrid has quit [Ping timeout: 252 seconds]
mroth has quit [Ping timeout: 252 seconds]
toydestroyer has quit [Ping timeout: 252 seconds]
mroth has joined #crystal-lang
toydestroyer has joined #crystal-lang
toydestroyer has quit [Changing host]
toydestroyer has joined #crystal-lang
mroth has joined #crystal-lang
mroth has quit [Changing host]
mroth has quit [Changing host]
mroth has joined #crystal-lang
benoist_ has quit [Remote host closed the connection]
hplar has joined #crystal-lang
AckZ has joined #crystal-lang
aemadrid has joined #crystal-lang
benoist has joined #crystal-lang
bmcginty has quit [Ping timeout: 246 seconds]
bmcginty has joined #crystal-lang
leafybasil has joined #crystal-lang
benoist has quit [Ping timeout: 246 seconds]
trapped has joined #crystal-lang
<RX14-> hmmn, is there a way to compile a crystal program from inside crystal?
<jhass> RX14: You can of course shell out to the compiler, but you can also include it as a library basically, the specs have some examples of that
<RX14> hmmn, making a plugin architechture in crystal might be a bit of a pain TBH, might just use ruby
<RX14> doesn't have to be fast anyway
leafybasil has quit [Remote host closed the connection]
benoist has joined #crystal-lang
benoist has quit [Remote host closed the connection]
benoist has joined #crystal-lang
Bofu2U has joined #crystal-lang
<crystal-gh> [crystal] jreinert opened pull request #1888: more sophisticated cookie parsing. Correctly handles multiple cookies (master...cookie-parsing) http://git.io/v4qI2
benoist has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
barosl has joined #crystal-lang
A124 has quit [Read error: No route to host]
A124 has joined #crystal-lang
petercommand has joined #crystal-lang
benoist has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
leafybasil has joined #crystal-lang
pawnbox has joined #crystal-lang
nakilon has joined #crystal-lang
hangyas has joined #crystal-lang
<crystal-gh> [crystal] benoist opened pull request #1889: fix openssl digest block size (master...fix-digest-block-size) http://git.io/v4qrs
<hangyas> hi can someone help me with this: http://carc.in/#/r/mhb ?
<hangyas> funny thing is that when i remove any line from the hash it will work
<jhass> hangyas: http://carc.in/#/r/mhe
<jhass> though what's this for?
blue_deref has joined #crystal-lang
<jhass> http://carc.in/#/r/mhg some more cleanup
<hangyas> well i want to add it to a json array
<jhass> so an array you parsed from json?
<hangyas> ok, it works with your secound one
<hangyas> yes
<jhass> do all entries of the array follow this structure?
<hangyas> yes
<hangyas> but anyway is there any obvious reason why it doesn't work with more than 2 element?
<jhass> no
<jhass> hangyas: http://carc.in/#/r/mhi I would recommend an approach like this
<crystal-gh> [crystal] jhass pushed 2 new commits to master: http://git.io/v4qPn
<crystal-gh> crystal/master 8d57391 Benoist Claassen: fix openssl digest block size
<crystal-gh> crystal/master 24846eb Jonne Haß: Merge pull request #1889 from benoist/fix-digest-block-size...
<benoist> jhass: tnx :)
<jhass> benoist: btw I agree that we probably should get rid of the specific digest classes and work towards something like Digest.new("foo") as the only interface
<benoist> they are gone already right?
<jhass> are they? might have missed that :D
<jhass> derp, ignore me
<benoist> ok will do :)
<jhass> benoist: well, https://github.com/manastech/crystal/blob/master/src/openssl/sha1.cr those should go too, no?
<jhass> the convenience stuff should be general too, OpenSSL::Digest.hash(algo, data)
<hangyas> jhass: yeah, i just wrote some json manipulating quickly, thx
<benoist> I guess they are now obsolete yes
pawnbox has quit [Ping timeout: 255 seconds]
<jhass> benoist: while at it, I just realize that https://github.com/manastech/crystal/blob/master/src/openssl/pkcs5.cr should probably a module for now
<jhass> (use an enum that is)
<benoist> the HMAC class is still the old one
<benoist> should it not be converted to the openssl.cr lib version first?
<jhass> ah, well, just looking around :)
<benoist> the only problem with the openssl.cr implementation of the HMAC requires a newer version of openssl
<travis-ci> manastech/crystal#24846eb (master - Merge pull request #1889 from benoist/fix-digest-block-size): The build passed. https://travis-ci.org/manastech/crystal/builds/91119137
<jhass> how much newer?
<DeBot> https://github.com/manastech/crystal/pull/1889 (fix openssl digest block size)
<jhass> newer than the debian crap with their 30+ patches I guess
<benoist> well I think it's only a problem on OSX
<jhass> oh looks like even wheezy is on 1.0.1 by now
<benoist> yeah only osx is stll < 1.0.x
<jhass> can't you get a newer one via homebrew or something?
<benoist> yeah thats possible
<benoist> but you have to force link it
<benoist> my main concern is getting the CI to pass
Ven has joined #crystal-lang
<jhass> reminds me, we should probably drop https://github.com/manastech/crystal/blob/master/bin/ci#L60 and switch to the official formula
<benoist> yeah thats possible now :)
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
<crystal-gh> [crystal] jhass opened pull request #1890: Switch to official homebrew formula on Travis (master...osx_formula) http://git.io/v4q9r
<crystal-gh> [crystal] benoist opened pull request #1891: change pkcs5 to a module (master...make-pkcs-a-module) http://git.io/v4q9X
pawnbox has joined #crystal-lang
<jhass> benoist: mh, the installation path changed? ld: warning: directory not found for option '-L/usr/local/opt/crystal-lang/embedded/lib'
<jhass> wth does that flag even come from
<benoist> i've been seeing these warnings in previous CI builds
<benoist> I don't get them on my mac though
benoist has quit [Remote host closed the connection]
yxhuvud has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 272 seconds]
<crystal-gh> [crystal] jhass closed pull request #1891: change pkcs5 to a module (master...make-pkcs-a-module) http://git.io/v4q9X
Ven has quit [Read error: Connection reset by peer]
leafybasil has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Ven has joined #crystal-lang
NeverDie has joined #crystal-lang
<crystal-gh> [crystal] jhass pushed 2 new commits to master: http://git.io/v4qFB
<crystal-gh> crystal/master ab650a4 Jonne Haß: Switch to official homebrew formula on Travis
<crystal-gh> crystal/master 2109bd5 Jonne Haß: Merge pull request #1890 from jhass/osx_formula...
<travis-ci> manastech/crystal#44f4bdf (master - Merge pull request #1891 from benoist/make-pkcs-a-module): The build passed. https://travis-ci.org/manastech/crystal/builds/91122402
<DeBot> https://github.com/manastech/crystal/pull/1891 (change pkcs5 to a module)
pawnbox has quit [Ping timeout: 240 seconds]
<travis-ci> manastech/crystal#2109bd5 (master - Merge pull request #1890 from jhass/osx_formula): The build passed. https://travis-ci.org/manastech/crystal/builds/91123187
<DeBot> https://github.com/manastech/crystal/pull/1890 (Switch to official homebrew formula on Travis)
yxhuvud has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
nakilon has quit [Ping timeout: 250 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
leafybasil has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
leafybasil has joined #crystal-lang
ponga has quit [Quit: Connection closed for inactivity]
NeverDie has quit [Quit: http://radiux.io/]
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 250 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
NeverDie has joined #crystal-lang
hangyas has quit [Quit: hangyas]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
BlaXpirit has quit [Quit: Bye]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
BlaXpirit has joined #crystal-lang
BlaXpirit has quit [Quit: Bye]
BlaXpirit has joined #crystal-lang
BlaXpirit_ has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
BlaXpirit_ has quit [Quit: Bye]
BlaXpirit_ has joined #crystal-lang
BlaXpirit_ has quit [Client Quit]
nakilon has joined #crystal-lang
BlaXpirit has joined #crystal-lang
nakilon has quit [Ping timeout: 265 seconds]
nakilon has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BlaXpirit has quit [Quit: Bye]
BlaXpirit has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
Ven has joined #crystal-lang
djellemah has quit [Ping timeout: 250 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
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
<[spoiler]> What's the deal with `Range(B, E)#includes?` it doesn't behave as the ruby equivalent. Is it intentional, or not?
<BlaXpirit> [spoiler], pls describe difference
<[spoiler]> BlaXpirit: #includes? != #covers? (well, without the ss) in Ruby
<BlaXpirit> [spoiler], i think this is worth bringing to attention
<[spoiler]> Actually the implementation seems to have changed in 2.3, because it looks messier in 2.2 lol, but the idea is still there
<BlaXpirit> at the very least because currently they are aliases in crystal
<BlaXpirit> and they dont want aliases
<[spoiler]> Also, there seems to be no last/first for Range (I was about to implement them when i noticed this)
<[spoiler]> BlaXpirit: should I just open an issue
<[spoiler]> oh shit my coffee is on the stove brb
<BlaXpirit> make sure to explain the difference in ruby, this does it pretty nicely ("a".."z").include?("cc") #=> false ("a".."z").cover?("cc") #=> true
<BlaXpirit> but then again, this doesn't even apply in crystal lol
<[spoiler]> yeah, I am not actually sure I even like that behaviour in Ruby
<[spoiler]> it seems odd, to be fair
<BlaXpirit> for all the things that can go inside a Range, include? and cover? would act the same anyway even according to ruby's behavior
<BlaXpirit> don't you agree?
<jhass> only if > and < are implemented "consistently" with succ and pred
<jhass> includes? should only optimize to > and < if it can be sure of that, else force the computation of the range
Ven has quit [Read error: Connection reset by peer]
<[spoiler]> I pretty much think those two should be synonymous, not sure why they aren't in Ruby, though
<jhass> covers? should always use > and < and fail if the items are not comparable
<[spoiler]> jhass: wouldn't current implementation of #covers? already do that, though?
<jhass> I didn't look at it yet
<jhass> just stating why I don't think they should be synonym
<jhass> for the general case
<[spoiler]> Ah
Ven has joined #crystal-lang
<[spoiler]> Well it would be easy to fix. Should there be an issue for it?
<[spoiler]> as in, should it be discussed, or should it match Ruby's implementation?
<jhass> it probably should be discussed, but that discussion can happen in a PR too
<[spoiler]> Okidoki!
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
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
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
NeverDie has quit [Quit: http://radiux.io/]
NeverDie has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
<jokke> jhass: hey
<jokke> i don't get why it's 10
<jokke> shouldn't it be overridden by SMALL?
<jokke> or are arrays of aliases merged from the right?
<jokke> seems weird to me. I'd assume that <<: [*foo, *bar] would be the same as <<: *foo, <<: *bar
<jhass> mh, yeah
<jhass> to reference to any further explanations :/
Ven has quit [Read error: Connection reset by peer]
<jhass> er, no
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang