ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.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
<crystal-gh> [crystal] ysbaddaden opened pull request #3439: Support LLVM 3.9 (master...fix-llvm-3.9) https://git.io/vPy2X
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
soveran has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
ruby_ has quit [Remote host closed the connection]
soveran has quit [Ping timeout: 256 seconds]
ruby_ has joined #crystal-lang
ruby_ has quit [Read error: Connection reset by peer]
Liothen has quit [Changing host]
Liothen has joined #crystal-lang
ruby_ has joined #crystal-lang
vikaton has joined #crystal-lang
snsei has joined #crystal-lang
jfontan has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
snsei has quit [Remote host closed the connection]
Philpax_ has quit [Ping timeout: 256 seconds]
sp4rrow has joined #crystal-lang
snsei has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
sp4rrow has quit [Quit: Textual]
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #crystal-lang
ltran has joined #crystal-lang
HakanD__ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
ltran has quit [Quit: Lost terminal]
ruby_ has quit [Ping timeout: 256 seconds]
HakanD__ has quit [Quit: Be back later ...]
HakanD__ has joined #crystal-lang
HakanD__ has quit [Ping timeout: 265 seconds]
eizua has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
<FromGitter> <johnjansen> ok peeps any way to subclass string
johnjansen has joined #crystal-lang
johnjansen has quit [Client Quit]
pawnbox has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
snsei has quit [Remote host closed the connection]
HakanD__ has joined #crystal-lang
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
HakanD__ has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
HakanD___ has joined #crystal-lang
eizua has quit [Quit: Leaving]
onethirtyfive has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
elia has joined #crystal-lang
mark_66 has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
HakanD___ has quit [Quit: Be back later ...]
bjz has joined #crystal-lang
snsei has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
snsei has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
onethirtyfive has quit [Remote host closed the connection]
bjz has joined #crystal-lang
soveran has quit [Remote host closed the connection]
HakanD___ has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 265 seconds]
gewo has quit [Quit: WeeChat 1.0.1]
soveran has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
pduncan has quit [Ping timeout: 245 seconds]
kochev has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
elia has joined #crystal-lang
pawnbox has joined #crystal-lang
gewo has joined #crystal-lang
bew78 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
snsei has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
snsei has quit [Ping timeout: 260 seconds]
gewo has quit [Quit: WeeChat 1.0.1]
pawnbox has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
ruby_ has joined #crystal-lang
tliff has quit [Remote host closed the connection]
<bew78> Hi, is there a way to destructure and Array(Int) like in Ruby : x, *y = [1, 2, 3, 4]
<bew78> This way in ruby:
<bew78> x = 1
<bew78> y = [2, 3, 4]
<bew78> (this is the result)
tliff has joined #crystal-lang
ruby_ has quit [Ping timeout: 256 seconds]
<FromGitter> <jwoertink> I don't think so currently. There's an issue https://github.com/crystal-lang/crystal/issues/132 that relates to that
pduncan has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vPSHj
<crystal-gh> crystal/master 203da3a Ary Borenszweig: Fixed #3438: missing handling of restriction of virtual metaclass type against metaclass
matp has quit [Quit: ZZzzzZz...]
go|dfish has quit [Ping timeout: 244 seconds]
bew78 has quit [Ping timeout: 256 seconds]
bew78 has joined #crystal-lang
ruby_ has joined #crystal-lang
<FromGitter> <sdogruyol> Kemal + Tren is a really great combo for building complex web apps
<FromGitter> <sdogruyol> Also Micrate for Db migrations <3
ysbaddaden has joined #crystal-lang
go|dfish has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
johnjansen has joined #crystal-lang
kochev has quit [Ping timeout: 260 seconds]
<travis-ci> crystal-lang/crystal#203da3a (master - Fixed #3438: missing handling of restriction of virtual metaclass type against metaclass): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/168927783
<DeBot> https://github.com/crystal-lang/crystal/issues/3438 (conditional block altering class to abstract / virtual)
matp has joined #crystal-lang
HakanD___ has quit [Quit: Be back later ...]
HakanD___ has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
HakanD___ has quit [Ping timeout: 256 seconds]
ysbaddaden has quit [Ping timeout: 260 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
snsei has joined #crystal-lang
Philpax has quit [Ping timeout: 256 seconds]
snsei has quit [Ping timeout: 252 seconds]
mark_66 has quit [Quit: Leaving.]
johnjansen has quit [Quit: johnjansen]
jeromegn_ has joined #crystal-lang
jeromegn has quit [Ping timeout: 256 seconds]
jeromegn_ is now known as jeromegn
snsei has joined #crystal-lang
bew78 has quit [Ping timeout: 260 seconds]
elia has quit [Quit: Computer has gone to sleep.]
pawnbox has quit [Quit: gotta go guys.]
pawnbox has joined #crystal-lang
HakanD___ has joined #crystal-lang
bew78 has joined #crystal-lang
hmans has quit [Quit: ZNC 1.6.3+deb1+xenial0 - http://znc.in]
elia has joined #crystal-lang
ruby_ has quit [Remote host closed the connection]
<FromGitter> <johnjansen> @asterite any idea whats going on here
ysbaddaden has joined #crystal-lang
ruby_ has joined #crystal-lang
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #crystal-lang
ruby_ has quit [Read error: Connection reset by peer]
<FromGitter> <asterite> @johnjansen It's a bug, please report it
<FromGitter> <asterite> It happens with captures that might not always succeed
<FromGitter> <johnjansen> thanks Ary … its my turn to trip over bugs today
<FromGitter> <johnjansen> oh @asterite any more thoughts on String#partition / rpartition ???
<FromGitter> <asterite> @johnjansen Until we find a strong use case for it I don't know if and how to include it in the standard library
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vP9CM
<crystal-gh> crystal/master 2754433 Ary Borenszweig: String#split: skip nil groups. Fixes #3440
<FromGitter> <johnjansen> damn you are fast at closing those bugs ;-)
matp has quit [Quit: ZZzzzZz...]
<FromGitter> <johnjansen> also @asterite is this correct ⏎ ```x = "Стойностни” ⏎ x.downcase # => "Стойностни"``` [https://gitter.im/crystal-lang/crystal?at=5807a2c98d2babbd0889aa49]
ruby_ has joined #crystal-lang
matp has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
ysbaddaden has quit [Quit: Page closed]
go|dfish has quit [Ping timeout: 260 seconds]
<FromGitter> <asterite> @johnjansen Whether it's correct or not is subjective. The current implementation only applies downcase to the ASCII range. Ideally we should do that for all characters, but it's pretty hard
go|dfish has joined #crystal-lang
<FromGitter> <asterite> There's an open issue about it
<FromGitter> <johnjansen> cool … i know absolutely nothing about that part of the char set i.e. what the up / downcase of each char is … so its a mystery to me … ⏎ all i know is that this seems to deviate from ruby and it could become a problem if we want to detect equivalent words regardless of their capitalization …
soveran has quit [Remote host closed the connection]
<FromGitter> <asterite> @johnjansen It basically involves huge tables that map from lowercase chars to uppercase chars. We have to put those tables somewhere and use them, though I think the problem doesn't end there. For example I think that depending on the language this process varies
<FromGitter> <johnjansen> yeah, i can imagine … i dont want to think about it :-)
<FromGitter> <johnjansen> just patching those PR’s now
<FromGitter> <asterite> Great! After that I'll merge them :)
<FromGitter> <johnjansen> @asterite do you like this one ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5807a94b8d2babbd0889c5ec]
<FromGitter> <johnjansen> personally i think i prefer the cleaner ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5807aa0736d64226368842ee]
<FromGitter> <asterite> Yeah, the second one looks better
kochev has joined #crystal-lang
ruby_ has quit []
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<pawnbox> Looks like more people prefer gitter. Hmm.
soveran has quit [Remote host closed the connection]
<havenwood> IRC forever!
<Papierkorb> simple IRC trumps webservices which may change tomorrow or just stop existing
<RX14> I like IRC more because the clients are better
<RX14> i find it more readable
<BlaXpirit> readable until there's this bot xD
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<RX14> yes
<RX14> would be nice if you colourised usernames
<RX14> my discord bridgebots do that
<RX14> you hash username -> colour
<RX14> then highlight their username with that irc colour
<RX14> it makes it a whole lot more readable
soveran has quit [Remote host closed the connection]
<BlaXpirit> we've been through this..
<travis-ci> crystal-lang/crystal#2754433 (master - String#split: skip nil groups. Fixes #3440): The build has errored. https://travis-ci.org/crystal-lang/crystal/builds/168983262
<DeBot> https://github.com/crystal-lang/crystal/issues/3440 (Nil assertion bug when regex captures fail)
<FromGitter> <sdogruyol> :D
Raimondi has quit [Ping timeout: 244 seconds]
bew78 has quit [Quit: WeeChat 1.5]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 252 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
vikaton has joined #crystal-lang
kochev has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<BlaXpirit> how to do array.each_with_index but in reverse order?
snsei has quit [Remote host closed the connection]
<FromGitter> <jwoertink> `array.reverse.each_with_index` ?
<FromGitter> <sdogruyol> yeah that's also what i thought
<BlaXpirit> but indices do not correspond to array items!
bjz has joined #crystal-lang
Raimondi has joined #crystal-lang
<BlaXpirit> anyway, i did `(0...stack.size).reverse_each do |ci|; c = stack[ci]`
HakanD___ has quit [Quit: Be back later ...]
HakanD___ has joined #crystal-lang
soveran has quit [Remote host closed the connection]
HakanD___ has quit [Ping timeout: 244 seconds]
<travis-ci> crystal-lang/crystal#2754433 (master - String#split: skip nil groups. Fixes #3440): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/168983262
<DeBot> https://github.com/crystal-lang/crystal/issues/3440 (Nil assertion bug when regex captures fail)
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <johnjansen> @BlaXpirit you can do this ⏎ ```[1,2,3].reverse_each.each_with_index do |i, idx| ⏎ {i, idx} ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5807e946b17b667961d8e8b7]
<FromGitter> <johnjansen> what i dont know is if reverse_each is an Iterator and lazy, or an enum, im presuming the former
<FromGitter> <johnjansen> i mean enumerable
bjz has joined #crystal-lang
<FromGitter> <johnjansen> you can figure that bit out ;-)
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
bjz has quit [Client Quit]
<BlaXpirit> ok thanks
<FromGitter> <johnjansen> the difference between `reverse` and `reverse_each` i think being one is an iterator
<FromGitter> <johnjansen> i think !!
<crystal-gh> [crystal] luislavena opened pull request #3441: Allows running spec within Docker container (master...support-spec-docker) https://git.io/vPHqT
soveran has quit [Remote host closed the connection]
<pabs> johnjansen: ahoy!
<FromGitter> <johnjansen> @pabs hi
<pabs> johnjansen: did you get a chance to try out v0.1.2, and did it fix your problems?
<FromGitter> <iDev0urer> Just wanted to say hi. I just discovered crystal yesterday and I think I'm already in love. As soon as we get some Windows support up in here it'll be perfect
<FromGitter> <johnjansen> not quite, im stuck in my own little tricky area
<FromGitter> <johnjansen> but thanks for closing that bug
<pabs> johnjansen: sure, thanks for finding it
<pabs> johnjansen: it's a wonder i didn't get bitten by that earlier
<FromGitter> <johnjansen> totally, kinda odd really
<FromGitter> <johnjansen> ive found a bunch of little things like that in the last couple of weeks
<pabs> johnjansen: it's either a curse or a gift!
<FromGitter> <johnjansen> totally a gift of a language, but probably a touch early to be doing what i am ;-)
elia has joined #crystal-lang
<pabs> johnjansen: you mean crystal? yeah, i feel the same way "oh this doesn't exist? guess i'll write it then"
<FromGitter> <johnjansen> and ive realized just how frequently ruby developers are let off the hook by dynamic typing
<FromGitter> <raydf> @johnjansen, are you working the tokenizer for natural language?
<FromGitter> <raydf> Hi
<FromGitter> <johnjansen> yep
<FromGitter> <raydf> Nice
<FromGitter> <johnjansen> but stdlib is catching me a fair bit
<FromGitter> <raydf> :)
<FromGitter> <johnjansen> like this ⏎ ```x = "Стойностни” ⏎ x.downcase # => “Стойностни”``` [https://gitter.im/crystal-lang/crystal?at=5807f59db17b667961d91aed]
<FromGitter> <raydf> you're contributing a lot with you PRs.
<FromGitter> <johnjansen> a little ;-)
<FromGitter> <johnjansen> also, the original tokenizer code is a little spaghetti like, which is making the whole process way harder than it needs to be
<FromGitter> <johnjansen> between that, and the differences in regex and other bits and bobs, its an interesting learning curve ;-)
<FromGitter> <raydf> yeah, but i love to have both options, ruby gems code to translate to crystal or the wrapping of c libs.
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 245 seconds]
HakanD___ has joined #crystal-lang
HakanD___ has quit [Ping timeout: 260 seconds]
<BlaXpirit> how to run a process and supply its STDIN from a string?
<BlaXpirit> nvm
<BlaXpirit> `Process.run("xdotool", ["-"], input: MemoryIO.new(commands.join("\n")))`
bjz has joined #crystal-lang
bjz has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]