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
soveran has quit [Remote host closed the connection]
akwiatkowski has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 258 seconds]
<crystal-gh> [crystal] bmulvihill opened pull request #3642: Update comments to use atomic.get (master...atomic-value) https://git.io/v1BcF
ome has joined #crystal-lang
ltran has quit [Ping timeout: 265 seconds]
dioxylin has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] MakeNowJust opened pull request #3643: Enhance --stats option (master...feature/more-stats) https://git.io/v1B0q
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
dioxylin has quit [Quit: leaving]
<adam12> Does anybody have a good Makefile / buildscript they are using with a Crystal project and enjoy?
bjz has joined #crystal-lang
<adam12> :) thnx. Forgot I wrote a tiny Rakefile for my last one, but gonna dig through this one for some ideas.
bjz has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
ome has quit [Quit: Connection closed for inactivity]
snsei has joined #crystal-lang
triangles has joined #crystal-lang
_jungh4ns has quit [Ping timeout: 244 seconds]
_jungh4ns has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has quit [Ping timeout: 246 seconds]
ltran has joined #crystal-lang
bjz has joined #crystal-lang
ltran has quit [Ping timeout: 268 seconds]
Philpax has quit [Ping timeout: 248 seconds]
matp_ is now known as matp
muelleme has joined #crystal-lang
Philpax has joined #crystal-lang
muelleme has quit [Ping timeout: 248 seconds]
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]
<FromGitter> <david50407> Can I write `class Bar(T, T2); end; class Foo(*T) < Bar(*T); end;`?
<FromGitter> <david50407> playground throw a error back https://play.crystal-lang.org/#/r/1fka
<FromGitter> <david50407> > Error in line 7: wrong number of type vars for Bar(T, T2) (given 1, expected 2)
<FromGitter> <david50407> But it works when I give `class Foo(*T) < Bar(*T, Int32); end`
<FromGitter> <david50407> https://play.crystal-lang.org/#/r/1fk9
Philpax has quit [Read error: Connection reset by peer]
<FromGitter> <david50407> I'm working on #2803 , but this confused me
<DeBot> https://github.com/crystal-lang/crystal/issues/2803 (Request for generic alias)
ltran has joined #crystal-lang
mark_66 has joined #crystal-lang
ltran has quit [Ping timeout: 265 seconds]
gloscombe has joined #crystal-lang
Philpax has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 265 seconds]
akwiatkowski has joined #crystal-lang
akwiatkowski has quit [Quit: Konversation terminated!]
akwiatkowski has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
bjz_ has quit [Ping timeout: 250 seconds]
matp has quit [Read error: Connection reset by peer]
matp_ has joined #crystal-lang
soveran has quit [Remote host closed the connection]
bjz has quit [Ping timeout: 265 seconds]
jeromegn has quit []
bjz has joined #crystal-lang
soveran has joined #crystal-lang
jeromegn has joined #crystal-lang
ltran has joined #crystal-lang
ltran has quit [Ping timeout: 250 seconds]
soveran has quit [Remote host closed the connection]
mentero has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/v1ReP
<crystal-gh> crystal/master d20f420 Ary Borenszweig: travis: run specs in verbose mode
<crystal-gh> crystal/master a3fd15c Ary Borenszweig: Makefile: can now pass `verbose=1` for spec runs
<travis-ci> crystal-lang/crystal#d20f420 (master - travis: run specs in verbose mode): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/181622111
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1Rkc
<crystal-gh> crystal/master 2e9c9b5 Ary Borenszweig: Mark condition variable specs as pending for now
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1RIR
<crystal-gh> crystal/master 858b3e1 TSUYUSATO Kitsune: Enhance --stats option
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1RIr
<crystal-gh> crystal/master 5d2c24a Bryan Mulvihill: Update comments to use atomic.get
snsei has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 260 seconds]
poikon has quit []
poikon has joined #crystal-lang
<travis-ci> crystal-lang/crystal#2e9c9b5 (master - Mark condition variable specs as pending for now): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/181636010
ltran has joined #crystal-lang
ltran has quit [Ping timeout: 265 seconds]
bjz has quit [Ping timeout: 250 seconds]
<travis-ci> crystal-lang/crystal#858b3e1 (master - Enhance --stats option): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/181637739
bjz_ has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #3645: Fix stats for spec and eval (master...fix/stats-eval-and-spec) https://git.io/v1RYW
<travis-ci> crystal-lang/crystal#5d2c24a (master - Update comments to use atomic.get): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/181637892
ltran has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1RZR
<crystal-gh> crystal/master 284f7d6 TSUYUSATO Kitsune: Fix stats for spec and eval
ltran has quit [Ping timeout: 256 seconds]
<travis-ci> crystal-lang/crystal#284f7d6 (master - Fix stats for spec and eval): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/181657394
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
triangles has quit [Ping timeout: 265 seconds]
triangles has joined #crystal-lang
<FromGitter> <yxhuvud> Heh. Typing columns(matrix).map |column| do instead of columns(matrix).map do |column| does interesting things to the parser/formatter
<FromGitter> <johnjansen> @david50407 you cant splat them no … https://play.crystal-lang.org/#/r/1fn2
gloscombe has quit [Ping timeout: 246 seconds]
dbell has joined #crystal-lang
<dbell> Having some issues with Regex#match and Regex::MatchData, anyone around who can help?
<FromGitter> <johnjansen> ill try to, whats up
<dbell> based on https://crystal-lang.org/api/0.20.0/Regex/MatchData.html, I should be able to pass a block to Regex.match, but getting the following error
vivus-ignis has joined #crystal-lang
<dbell> /([LR])([0-9]+)/.match(step) {|md| p md.class} 'Regex#match' is not expected to be invoked with a block, but a block was given
<dbell> this is a secondary error, which I ran into while trying to figure out why my match data always presents as nil
<dbell> step="R3"
<dbell> m = /([LR])([0-9]+)/.match(step)
<dbell> p m
<dbell> => #<Regex::MatchData "R3" 1:"R" 2:"3">
<dbell> p m[1]
<dbell> => Error in line 4: undefined method '[]' for Nil (compile-time type is (Regex::MatchData | Nil))
<FromGitter> <johnjansen> yeah, looks like its not defined with a block on the string class (which is an omission) ⏎ you can use scan however https://play.crystal-lang.org/#/r/1fnc
<dbell> so the docs are wrong?
<BlaXpirit> dbell, docs for matchdata are wrong, yes
<BlaXpirit> so, what are you trying to do?
<BlaXpirit> do some action if there is a match?
<dbell> are the docs the intended behaviour, and this is a code error?
<FromGitter> <david50407> @johnjansen but it compiled
<FromGitter> <johnjansen> he wants an each_match, ala scan
<BlaXpirit> docs are not intended behavior, possibly old behavior
<BlaXpirit> sorry, i was unable to guess >_>
<FromGitter> <david50407> so this is a bug if the compiler should throw an error
<dbell> basically, trying to figure out why my match returns a MatchData object, but all queries to the resulting object behave as if its nil
<dbell> there are two issues, the block one does throw an error
<FromGitter> <johnjansen> it didn’t compile in playground
pawnbox has quit [Remote host closed the connection]
<BlaXpirit> dbell, `match` might return MatchData or nil
<FromGitter> <david50407> sorry I'm talking about the splat type vars
<dbell> the original issue I was having is that block of code above
<BlaXpirit> it happened to return MatchData this time, but that is not known
<dbell> ah, so how do I protect the code during compile time so that I can retrieve the match data?
<BlaXpirit> dbell, that's all described in the great docs
<dbell> you mean the docs that are wrong?
<BlaXpirit> dbell, that's API docs
<BlaXpirit> to do some action if there is a match: `if "asdf" =~ /(.)sd./; matchdata = $~; first_bracket = $1; end`
<BlaXpirit> dbell, this in particular https://crystal-lang.org/docs/syntax_and_semantics/if_var.html but it's all worth reading
<dbell> thanks
<dbell> do you mind if I update the API docs to match current behaviour?
<BlaXpirit> dbell, that would be nice, you can make a pull request
snsei has joined #crystal-lang
<dbell> will do; I'm super excited with the prospect of Crystal and would love to help it be successful
<Yxhuvud> I prefer x = /foo/.match "foo"; if x; do_something_with(x[1])
* dbell is 10+ years of Ruby, Engine Yard alumni
<dbell> thanks all
snsei has quit [Ping timeout: 268 seconds]
vivus-ignis has quit [Quit: vivus-ignis]
pawnbox has joined #crystal-lang
vivus-ignis has joined #crystal-lang
<dbell> BlaXpirit: looks like Ary Borenszweig updated those docs on Nov 29th.
<crystal-gh> [crystal] luislavena opened pull request #3646: Includes debug flag when compiling in debug mode (master...add-debug-to-flags) https://git.io/v1RSe
soveran has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
soveran has joined #crystal-lang
ltran has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 264 seconds]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Read error: Connection reset by peer]
sp4rrow has joined #crystal-lang
muelleme has joined #crystal-lang
dbell has quit [Ping timeout: 260 seconds]
Guest49009 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #crystal-lang
muelleme has quit [Ping timeout: 268 seconds]
RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.1 | Fund Crystal's 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
<RX14> hmm, breaking chnages in point releases
<BlaXpirit> not the first time
ltran has quit [Quit: Lost terminal]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
soveran_ has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
<Papierkorb> Looks like it breaks the torrent shard
<Papierkorb> *will break
<Yxhuvud> is there a changelog for 20.1?
<Papierkorb> > Added support for declaring the type of a local variable
<Papierkorb> Interesting
emancu has joined #crystal-lang
_jungh4ns has quit [Ping timeout: 248 seconds]
soveran_ has quit [Remote host closed the connection]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Read error: Connection reset by peer]
sp4rrow has joined #crystal-lang
_jungh4ns has joined #crystal-lang
muelleme has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
asdlh has joined #crystal-lang
Ven has joined #crystal-lang
asdlh has quit [Ping timeout: 265 seconds]
matp_ has quit [Excess Flood]
vivus-ignis1 has joined #crystal-lang
vivus-ignis has quit [Remote host closed the connection]
vivus-ignis1 is now known as vivus-ignis
asdlh 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 [Read error: Connection reset by peer]
matp has joined #crystal-lang
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asdlh has quit [Quit: Leaving]
vivus-ignis has quit [Ping timeout: 268 seconds]
akwiatkowski has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 264 seconds]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
muelleme has quit [Ping timeout: 260 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triangles2 has joined #crystal-lang
triangles has quit [Ping timeout: 258 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
vivus-ignis has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 246 seconds]
<crystal-gh> [crystal] dennisjbell opened pull request #3650: Feature: Add default result to try method (master...try-with-alternative-value) https://git.io/v10NI
Philpax has joined #crystal-lang
emancu has quit []
soveran has quit [Remote host closed the connection]
[spoiler] has quit [Ping timeout: 246 seconds]
akwiatkowski has joined #crystal-lang
muelleme has joined #crystal-lang