RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.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
dhk has quit [Quit: Leaving]
olbat has quit [Ping timeout: 240 seconds]
olbat has joined #crystal-lang
olbat has joined #crystal-lang
olbat has quit [Changing host]
vikaton has joined #crystal-lang
soveran has joined #crystal-lang
<RX14> too bad it probably won't show up on the shards lists because it's mostly C++
soveran has quit [Ping timeout: 260 seconds]
<RX14> maybe one day i'll port the C++ code to crystal but honestly i hardly see the point
<RX14> it's just number-shuffling code anyway
txdv has quit [Ping timeout: 265 seconds]
txdv has joined #crystal-lang
pduncan has joined #crystal-lang
stnly has quit [Ping timeout: 265 seconds]
stnly has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
stnly has quit [Remote host closed the connection]
dioxylin has quit [Ping timeout: 250 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 248 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
maxpowa has joined #crystal-lang
maxpowa has quit [Quit: Ahh! My head is on fire!]
maxpowa has joined #crystal-lang
Kilo`byte has quit [Ping timeout: 248 seconds]
maxpowa has quit [Quit: Ahh! My head is on fire!]
Kilo`byte has joined #crystal-lang
matp_ is now known as matp
bjz has joined #crystal-lang
matp has quit [Read error: Connection reset by peer]
matp_ has joined #crystal-lang
olbat_ has joined #crystal-lang
matp_ is now known as matp
bjz has quit [Read error: Connection reset by peer]
olbat has quit [Ping timeout: 244 seconds]
Cyrus has quit [Ping timeout: 244 seconds]
bjz has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 245 seconds]
maxpowa has joined #crystal-lang
muelleme has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
muelleme has quit [Ping timeout: 250 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 246 seconds]
pduncan has quit [Ping timeout: 240 seconds]
Raimondi has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pduncan has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
poikon has quit [Ping timeout: 246 seconds]
pawnbox has joined #crystal-lang
poikon has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
jeromegn has quit [Ping timeout: 246 seconds]
jeromegn has joined #crystal-lang
bjz has quit [Ping timeout: 250 seconds]
bjz has joined #crystal-lang
mark_66 has joined #crystal-lang
gloscombe has joined #crystal-lang
<FromGitter> <splattael> I am guilty of using puts-debugging a lot. It there a straightforward way to puts a value with a label? In Ruby I'm used to do `p :foo => bar`. What do Crystal folks when puts-debugging? :D
<FromGitter> <splattael> `p({foo: bar})` works but is noisy
<BlaXpirit> splattael, it's `pp`
<FromGitter> <splattael> `pp bar` is nice but sometimes I need `p :foo => bar, :bar => baz`
<BlaXpirit> exactly what u want
<BlaXpirit> hm weird
<FromGitter> <splattael> @BlaXpirit ^ :D
<FromGitter> <splattael> @BlaXpirit How do you do puts-debugging (if at all)?
<BlaXpirit> i love puts-debugging
<BlaXpirit> i do it with pp or whatever
<FromGitter> <splattael> "whatever"? :D
<BlaXpirit> p, puts
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
<crystal-gh> [crystal] asterite closed pull request #3637: Handle clearing doc search field via (x) button (master...docs-search-event) https://git.io/v1lXj
gloscomb1 has joined #crystal-lang
gloscombe has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#cc3ada4 (master - Bind search event to handle clearing doc search field via (x) button): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/181308406
olbat_ is now known as olbat
olbat has quit [Changing host]
olbat has joined #crystal-lang
pawnbox has joined #crystal-lang
<FromGitter> <splattael> @BlaXpirit ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ WDYT? [https://gitter.im/crystal-lang/crystal?at=5845523d90f847041bfda69e]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/v18Bx
<crystal-gh> crystal/master 35c8d92 Ary Borenszweig: Fixed #3640: Char#to_i was returning Int32 | Int8
<crystal-gh> crystal/master fbdc736 Ary Borenszweig: Markdown: correctly group paragraphs regarding lists, quotes and links
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mentero has joined #crystal-lang
jeromegn has quit []
jeromegn has joined #crystal-lang
senya has joined #crystal-lang
<travis-ci> crystal-lang/crystal#fbdc736 (master - Markdown: correctly group paragraphs regarding lists, quotes and links): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/181323388
senya has left #crystal-lang [#crystal-lang]
soveran_ has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
senya has joined #crystal-lang
senya has left #crystal-lang [#crystal-lang]
pawnbox has quit [Remote host closed the connection]
snapcase has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v18aR
<crystal-gh> crystal/master 18e7617 Ary Borenszweig: Updated Changelog
<Davy_CC> I cannot compile master with crystal 0.20.0, what can I do?
<FromGitter> <asterite> what error do you get?
Philpax has quit [Ping timeout: 260 seconds]
<FromGitter> <david50407> wait
<FromGitter> <david50407> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=58456d99b4ffd59e38ea070a]
<FromGitter> <david50407> oops I should paste it on some snippet service
dioxylin has joined #crystal-lang
<FromGitter> <asterite> I guess you are not using `bin/crystal` to compile, right?
krsh has joined #crystal-lang
<FromGitter> <asterite> I'll probably merge https://github.com/crystal-lang/crystal/pull/3611 after 0.20.1 ...
<FromGitter> <david50407> I just run `make`
<FromGitter> <asterite> It works for me and for travis...
<FromGitter> <asterite> Are you sure you are at master?
<FromGitter> <david50407> `fbdc736 - (2 hours ago) Markdown: correctly group paragraphs regarding lists, quotes and links - Ary Borenszweig` right?
<FromGitter> <asterite> Yup
<FromGitter> <david50407> Yes, I'm on this commit
<FromGitter> <asterite> What do you have in `bin/crystal`?
<FromGitter> <david50407> run `bin/crystal -v` ?
<FromGitter> <asterite> Nope, its contents. It should be a text file... is it?
<FromGitter> <david50407> yes, it's a script
<FromGitter> <asterite> If you do `bin/crystal build src/compiler/crystal` does it work?
<FromGitter> <david50407> nop
<FromGitter> <david50407> the same error
<FromGitter> <david50407> I recorded my steps here: https://asciinema.org/a/5a1zf3v303itv2zpj87lbqax5
<FromGitter> <asterite> Write a `foo.cr` which does `p ENV["CRYSTAL_PATH']` and run `bin/crystal foo.cr` and tell me the output
<FromGitter> <asterite> Or just `bin/crystal eval 'p ENV["CRYSTAL_PATH"]'`
<FromGitter> <david50407> > "/home/davy/.crenv/versions/0.20.0/src:libs" ⏎ ⏎ ⏎ the path which my crystal installed by crenv [https://gitter.im/crystal-lang/crystal?at=5845711990f847041bfe5c30]
<travis-ci> crystal-lang/crystal#18e7617 (master - Updated Changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/181339150
<FromGitter> <asterite> Yeah, that's the problem: crenv
<FromGitter> <asterite> If it doesn't work because of crenv there isn't much I can do. It works without crenv :-)
<FromGitter> <david50407> oh
<FromGitter> <david50407> so I have to run the command without crenv, right?
krsh has quit [Quit: krsh]
<FromGitter> <david50407> (or make a patch on crenv or `bin/crystal)
<FromGitter> <asterite> Yeah, I don't know why crenv has issues with the compiler, but I experienced this in the past so decided to stop using it (it works well with other projects, but for the compiler it meses up something which I don't understand)
Raimondi has joined #crystal-lang
dioxylin has quit [Ping timeout: 250 seconds]
<FromGitter> <david50407> I found that if the current crystal is not 'system' version, crenv will override $CRYSTAL_PATH everytime, I may send a PR to crenv
<FromGitter> <maiha_twitter> @david50407 Needs to update crenv itself for crystal-0.20. Plz try this! ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=584579351eb3d648695b779c]
<FromGitter> <david50407> @maiha_twitter thanks, I will try it
<FromGitter> <david50407> @maiha_twitter oops, crenv still override CRYSTAL_PATH that cause the compiler cannot be compiled
<FromGitter> <maiha_twitter> @david50407 Oh, updating crenv fixes a problem about LIBRARY_PATH. I missed the point. The overriding problem still exists. sorry...
<FromGitter> <david50407> @maiha_twitter it's fine, I send a PR to crenv, please review if it's ok to use
<FromGitter> <maiha_twitter> ohh, cool! sure! :)
<FromGitter> <maiha_twitter> @david50407 Nice PR! It'll definitely resolve #23 !
gloscomb1 has quit [Ping timeout: 248 seconds]
<FromGitter> <paulcsmith> I'm *so* excited about the new `finished` macro. That will make a few things possible that I couldn't figure out how to do before
<FromGitter> <paulcsmith> Also I've released two super small libraries. One almost isn't worth including as a shard, but I thought I'd put it out there anyway https://github.com/paulcsmith/require_helpers.cr and https://github.com/paulcsmith/p_inspect.cr
<FromGitter> <asterite> Seems a bit overkill to use `macro run` for a require... it will slow down compilation times a lot
<FromGitter> <yxhuvud> Hmm. I find it a bit strange that Array#sort on a class doesn't use <=> if it is available.
<FromGitter> <yxhuvud> /s/class/instance of something/
<FromGitter> <paulcsmith> @asterite I wasn't aware that using `run` would slow things down so much. I'm not sure how else to do that since interpolation is not allowed and I didn't see a way to get `Dir.current` inside a macro
<FromGitter> <yxhuvud> never mind, there is Comparable. I looked for Sortable :/
mark_66 has quit [Remote host closed the connection]
Cyrus has joined #crystal-lang
akwiatkowski has joined #crystal-lang
senya has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 264 seconds]
<senya> hey! did anyone cross compile crystal complier for ARM?
soveran_ has quit [Remote host closed the connection]
gloscombe has joined #crystal-lang
<BlaXpirit> senya, isn't the support for ARM official now?
<FromGitter> <sdogruyol> @senya Crystal alraedy has ARM support
<senya> but there is no official ARM binary among releases: https://github.com/crystal-lang/crystal/releases
<senya> does it mean I have to cross compile it myself?
<FromGitter> <sdogruyol> now that's a bummer
<FromGitter> <sdogruyol> guess you have to compile it yourself
<senya> cool, I'll try that
<senya> thanks
pawnbox has joined #crystal-lang
akwiatkowski has joined #crystal-lang
muelleme has joined #crystal-lang
gloscombe has quit [Remote host closed the connection]
akwiatkowski has quit [Ping timeout: 264 seconds]
muelleme has quit [Ping timeout: 268 seconds]
p0p0pr37_ has joined #crystal-lang
p0p0pr37_ has joined #crystal-lang
muelleme has joined #crystal-lang
senya_ has joined #crystal-lang
ltran has joined #crystal-lang
Cyrus has quit [*.net *.split]
p0p0pr37 has quit [*.net *.split]
daekano has quit [*.net *.split]
FromGitter has quit [*.net *.split]
senya has quit [*.net *.split]
go|dfish has quit [*.net *.split]
snapcase has quit [*.net *.split]
senya_ is now known as senya
p0p0pr37_ is now known as p0p0pr37
FromGitter has joined #crystal-lang
daekano has joined #crystal-lang
senya has left #crystal-lang [#crystal-lang]
Cyrus has joined #crystal-lang
Cyrus is now known as Guest49009
go|dfish has joined #crystal-lang
muelleme has quit [Ping timeout: 265 seconds]
bjz has joined #crystal-lang
mentero has quit [Quit: Connection closed for inactivity]
muelleme has joined #crystal-lang
muelleme has quit [Ping timeout: 260 seconds]
<FromGitter> <fridgerator> I'm curious if something like this is possible: https://play.crystal-lang.org/#/r/1fjv
<FromGitter> <fridgerator> essentially, I just want the `User` class told hold a reference to other classes via a Symbol, i.e. `:posts` `Post`
<FromGitter> <fridgerator> `THINGS = [{key: :posts, klass: Post}, {key: addresses, klass: Address}]`
matp has quit [Read error: Connection reset by peer]
matp_ 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
<BlaXpirit> fridgerator, um this makes 0 sense :(
pawnbox has quit [Remote host closed the connection]
<FromGitter> <fridgerator> trying to figure out how i'm going to do associations in Crecto, here is a real example: https://play.crystal-lang.org/#/r/1fjw
<FromGitter> <fridgerator> I would need the `User` class to be able to store a reference to the `Post` class later on
<FromGitter> <fridgerator> to be used later on*
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
muelleme has joined #crystal-lang
muelleme has quit [Ping timeout: 245 seconds]
bjz has joined #crystal-lang
ltran has quit [Ping timeout: 265 seconds]
bjz has quit [Client Quit]
ltran has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Client Quit]
bjz has joined #crystal-lang
bjz has quit [Client Quit]
bjz has joined #crystal-lang
<FromGitter> <fridgerator> I think I have something figured out
akwiatkowski has joined #crystal-lang
snapcase has joined #crystal-lang
<FromGitter> <spalladino> @fridgerator something like this might work? https://play.crystal-lang.org/#/r/1fjx (based on your 1st example, haven't checked the 2nd one)
<FromGitter> <fridgerator> oh nice, I didn't think about using a Base class, i'll have to try that thanks @spalladino
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Client Quit]
bjz has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
ltran has quit [Ping timeout: 244 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vikaton has joined #crystal-lang
ltran has joined #crystal-lang