jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.17.4 | 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
ozra_ has quit [Ping timeout: 250 seconds]
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
nakilon has joined #crystal-lang
trapped has quit [Ping timeout: 272 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Oliphaun_ has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
franzejr1 has joined #crystal-lang
<franzejr1> Hello everyone
Oliphaunte has quit [Remote host closed the connection]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
franzejr1 has quit [Quit: Lost terminal]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pilne has joined #crystal-lang
zodiak_ has quit [Ping timeout: 264 seconds]
zodiak has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pilne has quit [Quit: Quitting!]
pilne has joined #crystal-lang
pilne has quit [Remote host closed the connection]
bjz has joined #crystal-lang
<mose> hey franze
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 4 new commits to master: https://git.io/vocqz
<crystal-gh> crystal/master 6c72492 Ary Borenszweig: Fix type inference error for variable before while that is mutated in the while's body
<crystal-gh> crystal/master 9514d44 Ary Borenszweig: Improve `inspect` for some internals to make it easier to debug some things
<crystal-gh> crystal/master e1a103f Ary Borenszweig: Fixed #2767: Crash with NoReturn inside while
<travis-ci> crystal-lang/crystal#c3cd3a7 (master - Fixed #2531: Bug: trying to downcast Int32? <- Int32): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/137150588
bjz has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
Oliphaunte has quit [Ping timeout: 252 seconds]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 250 seconds]
ome has joined #crystal-lang
pawnbox has joined #crystal-lang
SShrike has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
SShrike has quit [Quit: SShrike]
nakilon has quit [Quit: WHY NOT?]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
snsei_ has quit [Remote host closed the connection]
bjz_ has quit [Ping timeout: 244 seconds]
bjz has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
A124 has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
A124 has joined #crystal-lang
sdogruyol has joined #crystal-lang
<sdogruyol> hey all
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
zodiak_ has joined #crystal-lang
zodiak has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
unshadow has joined #crystal-lang
Tuxified has joined #crystal-lang
matp has quit [Remote host closed the connection]
PragTob has joined #crystal-lang
matp has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
Tuxified has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
alanwillms has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 240 seconds]
<icezimm> sdogruyol: hey!
<sdogruyol> yo
trapped has joined #crystal-lang
Oliphaunte has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 240 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
alanwillms has quit [Read error: Connection reset by peer]
alanwillms has joined #crystal-lang
bcardiff has joined #crystal-lang
unshadow has quit [Quit: leaving]
Oliphaunte has quit []
fedruantine has quit [Max SendQ exceeded]
paulcsmith_ has joined #crystal-lang
Raimondi has quit [Quit: All hail WeeChat 1.5-dev!]
Raimondi has joined #crystal-lang
Philpax has quit [Ping timeout: 252 seconds]
emancu_ has quit [Remote host closed the connection]
emancu has joined #crystal-lang
Bish has quit [Ping timeout: 250 seconds]
Bish has joined #crystal-lang
Bish has quit [Read error: Connection reset by peer]
matp has quit [Excess Flood]
fedruantine has joined #crystal-lang
matp has joined #crystal-lang
Bish has joined #crystal-lang
snsei has joined #crystal-lang
dome22xl has joined #crystal-lang
Oliphaunte has joined #crystal-lang
PragTob has quit [Remote host closed the connection]
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith_ has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/voCco
<crystal-gh> crystal/master ce2f6e2 Ary Borenszweig: Pointer: raise on negative count in copy/move methods
<crystal-gh> [crystal] asterite opened pull request #2823: String: add `sub` with index and range (master...feature/string_sub_index_range) https://git.io/voCCf
dome22xl has quit [Ping timeout: 250 seconds]
<BlaXpirit> asterite, should I add a bot to relay messages between IRC and Gitter channels of Crystal? It's written in Crystal and I'd be hosting it and addressing feedback.
fedruantine has quit [Max SendQ exceeded]
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
emancu has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#ce2f6e2 (master - Pointer: raise on negative count in copy/move methods): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/137276435
emancu has joined #crystal-lang
pawnbox has quit [Ping timeout: 272 seconds]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] Nax opened pull request #2824: Add a CPU features detection library (master...cpu) https://git.io/voCEo
pilne has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
fedruantine has joined #crystal-lang
snsei has quit [Remote host closed the connection]
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<asterite> BlaXpirit: sure!
FromGitter has joined #crystal-lang
<BlaXpirit> Here it is. Welcome, FromGitter
<FromGitter> BlaXpirit, I'm a bot, *bleep, bloop*. I relay messages between here and https://gitter.im/crystal-lang/crystal.
<FromGitter> <BlaXpirit> Welcome, @FromIRC
paulcsmith_ has joined #crystal-lang
paulcsmith_ has quit [Client Quit]
paulcsmith_ has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
<Davy_CC> Cool
<crystal-gh> [crystal] jhass opened pull request #2825: Build standard library specs with the currently released compiler first (master...stdlib_specs_prev) https://git.io/voCP4
sdogruyol has quit [Quit: Connection closed for inactivity]
Oliphaunte has joined #crystal-lang
<asterite> Nice!
Oliphaunte has quit [Ping timeout: 250 seconds]
Oliphaunte has joined #crystal-lang
fedruantine has quit [Max SendQ exceeded]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/voCDX
<crystal-gh> crystal/master 88bd6d0 Ary Borenszweig: Fixed missing error location. Fixes #2819
<travis-ci> crystal-lang/crystal#88bd6d0 (master - Fixed missing error location. Fixes #2819): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/137312615
ozra_ has joined #crystal-lang
fedruantine has joined #crystal-lang
ozra_ has quit [Ping timeout: 272 seconds]
matp has quit [Max SendQ exceeded]
matp has joined #crystal-lang
matp has quit [Max SendQ exceeded]
matp has joined #crystal-lang
<jhass> BlaXpirit: btw did you ever look into https://github.com/crystal-lang/crystal/issues/1646 ?
<BlaXpirit> no
<BlaXpirit> yeah that's a bit of a problem with the lib
<BlaXpirit> the problem is explained quite clearly here. i meant to add the references. but i'm also slowly rewriting the lib :/
<jhass> do you think there's anything we should/can do from the compiler side about it, and be it clarifying some doc somewhere?
<crystal-gh> [crystal] jhass pushed 3 new commits to master: https://git.io/voCxE
<crystal-gh> crystal/master 07ec028 Jonne Haß: Build standard library specs with the currently released compiler first
<crystal-gh> crystal/master d9166fa Jonne Haß: Fix standard library specs for Crystal 0.17.4
<crystal-gh> crystal/master 5a6ca7c Jonne Haß: Merge pull request #2825 from jhass/stdlib_specs_prev...
<BlaXpirit> jhass, well like it was said there, I don't think that a variable that stays in scope should be collected
<jhass> I don't know, I can easily argue the other side, just because I have some broad scope, if I don't reference a variable anymore later it shouldn't bloat my memory
<travis-ci> crystal-lang/crystal#5a6ca7c (master - Merge pull request #2825 from jhass/stdlib_specs_prev): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/137330156
Raimondi has quit [Quit: All hail WeeChat 1.5-dev!]
Raimondi has joined #crystal-lang
emancu has quit [Ping timeout: 264 seconds]
fedruantine has quit [Max SendQ exceeded]
emancu has joined #crystal-lang
<foca> how should we test programs that use ARGF? I am using Markdown::Parser, and passing `ARGF.gets_to_end` as its input. This works great, except that `crystal spec` hangs until I send an EOF
<jhass> 1) make the input more configurable 2) monkey patch ARGF.read
<foca> so this is expected behavior?
<jhass> sure?
<foca> ▸ make test
<foca> echo -n | crystal spec
<foca> problem solved :p
<jhass> I disagree but oh well
<asterite> foca: make your program receive an IO. Then pass ARGF in the program, and a MemoryIO or another IO in your specs
<BlaXpirit> great :D
ozra_ has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
<foca> asterite: I do that already
trapped has quit [Read error: Connection reset by peer]
<foca> I don't quite understand why it calls ARGF.gets_to_end in the specs, other than maybe it executes the main program and expects input? https://gist.github.com/foca/10b969f3fec14ef36e4a6c62fed2d272
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<jhass> foca: what's in spec_helper.cr
<jhass> ?
<jhass> foca: actually the require "./*" loads cli.cr, no?
<foca> yeah
<jhass> there's your issue then
<foca> cases like this is where it's actually nice to have a main function that doesn't get executed automatically when the file is required, I guess :)
<jhass> dunno, I solve that with proper project structures :P
<jhass> asterite: ^ btw probably a case against stripping src/foo/
<foca> can you please enlighten a n00b like me on what is a proper project structure?
<jhass> crystal init app crystoff
<foca> exactly what I did
<jhass> oh we do require "./*" there? :/
<foca> yup
<foca> :)
<foca> ah, no, sorry, it's "./crystoff/*" that gets generated
<jhass> yeah
<jhass> just wanted to say can't find it
<foca> yeah, I generated another one to make sure, sorry
<jhass> and then personally I do would put cli.cr into src/
<foca> fair enough, thanks :)
bcardiff has joined #crystal-lang
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
zodiak_ has quit [Ping timeout: 250 seconds]
Oliphaunte has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Read error: Connection timed out]
Philpax has quit [Ping timeout: 252 seconds]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 272 seconds]
Raimondi has quit [Ping timeout: 240 seconds]
Raimondi has joined #crystal-lang
zodiak has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 252 seconds]
trapped has joined #crystal-lang