jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.15.0 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
Renich has quit [Quit: leaving]
anthony has joined #crystal-lang
soveran has joined #crystal-lang
anthony has quit [Quit: Lost terminal]
soveran has quit [Ping timeout: 244 seconds]
Philpax has quit [Ping timeout: 244 seconds]
nwmcsween has joined #crystal-lang
nwmcsween is now known as Guest73937
nwmcsween_ has joined #crystal-lang
A124 has quit [Read error: Connection reset by peer]
Guest73937 has quit [Ping timeout: 268 seconds]
A124 has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 246 seconds]
Philpax has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
willl has quit [Quit: Connection closed for inactivity]
Philpax has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vVXoi
<crystal-gh> crystal/master 45cba58 Ary Borenszweig: Formatter: fix related to heredoc with interpolation
<crystal-gh> crystal/master d53cb62 Ary Borenszweig: Implemented the new "global" type inference algorithm, only for global variables. Part of #2390
nwmcsween__ has joined #crystal-lang
nwmcsween_ has quit [Ping timeout: 246 seconds]
<travis-ci> crystal-lang/crystal#d53cb62 (master - Implemented the new "global" type inference algorithm, only for global variables. Part of #2390): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/121599983
jamie_ca has quit [Quit: ZNC - http://znc.in]
jamie_ca has joined #crystal-lang
<crystal-gh> [crystal] gernest opened pull request #2432: Fix typo in string.md (gh-pages...patch-1) https://git.io/vVX6t
jamie_ca has quit [Client Quit]
jamie_ca has joined #crystal-lang
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has quit [Ping timeout: 264 seconds]
Philpax has quit [Ping timeout: 260 seconds]
nwmcsween__ has quit [Ping timeout: 244 seconds]
Philpax has joined #crystal-lang
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
nwmcsween has joined #crystal-lang
nwmcsween is now known as Guest36011
Guest36011 has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
trapped has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mark2 has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
elia has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
<crystal-gh> [crystal] ysbaddaden closed pull request #2432: Fix typo in string.md (gh-pages...patch-1) https://git.io/vVX6t
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
ssvb has quit [Remote host closed the connection]
ozra has joined #crystal-lang
ozra has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
rolha has joined #crystal-lang
BlaXpirit has quit [Quit: Bye]
BlaXpirit has joined #crystal-lang
<rolha> hi everyone
<rolha> is this a valid way of chaining constructors in Crystal? http://pastebin.com/yAqpuygH
<BlaXpirit> rolha, it might cause problems
<rolha> what whould be the alternative? perhaps a static "factory" method?
<BlaXpirit> rolha, https://carc.in/#/r/w91
<rolha> BlaXpirit, ah cool! thanks. Yes, avoid the multiple initialize
<BlaXpirit> rolha, otherwise it'll tell you some members were not initialized
<BlaXpirit> arguably a bug, but we have what we have
<rolha> BlaXpirit, yes, makes perfect sense.
<rolha> thanks! Also (abusing the generosity ;) ), I don't come from a Ruby background, do you think it's worth investing in some Ruby learning? Or is Crystal different enough that it's a waste of time?
<BlaXpirit> rolha, getting the habits from ruby is often a curse for newcomers, but on the other hand there is a kind of mentality that assumes others know ruby so it's hard to fit in
<BlaXpirit> I think it's worth learning ruby but not getting deep into it
<rolha> cheers BlaXpirit , thanks for the help!
<BlaXpirit> (talking from experience btw, i don't use ruby)
<rolha> I found it curious that many Crystal users (at least on github) aren't major Ruby coders. However, many Rust, Nim, etc coders.
<BlaXpirit> rolha, how do you find out what kind of coders they are?
<rolha> BlaXpirit well, a very superficial look at their repos. Not a scientific survey! :)
<BlaXpirit> rolha, please consider that people are often discouraged by the fact that "there is already a library for everything" for example when it comes to ruby, so they don't make libs but with new languages they're interested to construct the infrastructure
<rolha> BlaXpirit that's true, of course. but many coders also don't fork and contribute and prefer to roll their own versions of a certain library. not a criticism, I do it many times for educational purposes.
<rolha> at least I have that feeling whenever I browser npm :-P
<rolha> *browse
<rolha> also, leftpad :-P
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
triangles has joined #crystal-lang
ozra has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
triangles3 has joined #crystal-lang
triangles has quit [Ping timeout: 240 seconds]
<crystal-gh> [crystal] dsounded opened pull request #2433: Add :except and :only option to Array#delete (master...master) https://git.io/vV1jc
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
ozra has quit [Ping timeout: 276 seconds]
ozra has joined #crystal-lang
trapped has joined #crystal-lang
ssvb has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
triangles has joined #crystal-lang
triangles3 has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
rolha has quit [Ping timeout: 248 seconds]
mgarciaisaia has joined #crystal-lang
crime has joined #crystal-lang
<crime> so, I was messing around with crystal, and it created a .crystal folder with all kinds of crap in it. If I wanted to just keep my source in a repo, without .crystal getting in there, how can I do that? can I disable that feature or something?
<crime> I'm using crystal for some one-off scripts, so I really just need the source for each tool in this repo
<crime> ls
LastWhisper____ has joined #crystal-lang
<tilpner> crime - Soudns like you want to put it on .gitignore?
<crime> I'd actually like for the folder not to be created at all
<crime> i didnt even notice it until I was about to commit some work, and git added a million files in a directory with only one source file in it
<tilpner> Yes, you can prevent that with .gitignore. I don't know if it's possible to prevent it from being created.
<crime> if anything, .crystal should only be created in the user's ~.
<crime> not everywhere that I run crystal code from
<crime> I mean, this pollutes literally every directory that crystal code is in
pawnbox has quit [Remote host closed the connection]
<tilpner> You might be able to change the location, but it has to be compiled at some point. If you don't compile it before usage... it has to be compiled when you run it.
<crime> well no shit, but there's no sense in dumping all that shit into the working directory if .crystal was located in ~
<tilpner> I actually prefer it like this, but it's subjective of course.
<tilpner> Arguably $XDG_CACHE_HOME/crystal would be a better location.
<crime> that makes no sense to me
<crime> every directory that has crystal code in it, gets fucked up with this .crystal dump
<tilpner> Yeah, so what?
<crime> mk, I'll just stick with ruby I think. I didn't realize this was a retard-only language. jfc
crime has left #crystal-lang [#crystal-lang]
<tilpner> Ugh.
<ozra> crime: Add it to .gitignore like everything else you don't want in the repo!?
<tilpner> Yeah, I told him. But he's gone now...
<A124> So... Zlib, I would like to specify my own dictionary... Any ideas?
<ozra> Ah, sorry, saw that now. Well, peoples is peoples is peoples, haha
<ozra> me + ZLib = no nthing. Anything in the docs?
pawnbox has joined #crystal-lang
<A124> ozra I did not find it in the docs, Either I missed it or its not there. The old library that was made to be used with Crystal (0.9) did have that, I fixed one thing but I did nto figure out how to call it properly, if it even works with current Crystal.
<A124> In Ruby, you create a Deflate/Inflate object then you can specify dictionary. In C++ you use a single "handle" to the library usually and you select then the Ditionary "per class/handle", so any new (not actually new, but starting from beginning) Inflate/Deflate starts with the dictionary.
<A124> Will link the old library. I did not fully understood yet how to create interface for the library sadly. (Neither did in ruby, but as Crystal is compiled it looks easier) https://github.com/datanoise/zlib.cr
mgarciaisaia has left #crystal-lang [#crystal-lang]
<ozra> Hope someone with know-how on it comes in to awake time-zone :-)
LastWhisper____ has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Cidan has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
rolha has joined #crystal-lang
<rolha> hello everyone. does anyone know the cause of this error: I've clone Crystal from github, ran 'crystal spec' and got:
<rolha> "Error in /usr/local/Cellar/crystal-lang/0.15.0/src/compiler/crystal/tools/init.cr:6: already initialized constant Crystal::Init::WHICH_GIT_COMMAND"
<rolha> crystal spec ran fine with all my other code
Rinkana has joined #crystal-lang
<jhass> rolha: try make spec
kulelu88 has joined #crystal-lang
kulelu88 has joined #crystal-lang
<rolha> jhass: works fine with make, thanks!
soveran has quit [Remote host closed the connection]
tomchapin has joined #crystal-lang
mark2 has quit [Remote host closed the connection]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #crystal-lang
ozra has quit [Ping timeout: 260 seconds]
ozra has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
soveran has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
willl has joined #crystal-lang
elia has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Liothen has quit [Ping timeout: 276 seconds]
Liothen has joined #crystal-lang
Liothen has joined #crystal-lang
Liothen has quit [Changing host]
Rinkana has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
tomchapin has joined #crystal-lang
elia has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 7 new commits to master: https://git.io/vVD9s
<crystal-gh> crystal/master 63c82dd Ary Borenszweig: Mention that other assignemnts have no effect on the inferred type of global/class/instance variables
<crystal-gh> crystal/master 0ef9d24 Ary Borenszweig: Compiler: fixed bugs related to `if !exp` with exp being falsey
<crystal-gh> crystal/master 7754875 Ary Borenszweig: Compiler: correct type filtering with ! in || and && expressions....
tilpner has quit [Quit: :wq]
pawnbox has joined #crystal-lang
tilpner has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
<travis-ci> crystal-lang/crystal#b2d5875 (master - Removed redundant type declarations in class variables): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/121814549
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vVD7r
<crystal-gh> crystal/master 93876f7 Ary Borenszweig: Missing type annotation for i686
sp4rrow has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travis-ci> crystal-lang/crystal#93876f7 (master - Missing type annotation for i686): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/121819047
tilpner has quit [Quit: :wq]
tilpner has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
trapped has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
kulelu88 has quit [Quit: Leaving]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Client Quit]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
soveran has quit [Ping timeout: 260 seconds]
elia has quit [Quit: Computer has gone to sleep.]