<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....