ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
fifr_ has quit [Ping timeout: 258 seconds]
_ht has joined #crystal-lang
_ht has quit [Quit: _ht]
straight-shoota has quit [Ping timeout: 272 seconds]
straight-shoota has joined #crystal-lang
fifr_ has joined #crystal-lang
notzmv has quit [Ping timeout: 272 seconds]
notzmv has joined #crystal-lang
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
mps has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
_ht has joined #crystal-lang
dostoyevsky2 has quit [Ping timeout: 252 seconds]
dostoyevsky2 has joined #crystal-lang
SamantazFox has quit [Read error: Connection reset by peer]
SamantazFox has joined #crystal-lang
<mps> I have problem with string grow in loop, using this `str += second_str` is very slow for big number of iterations
<mps> is there a better way to do this?
hightower2 has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
hightower3 has joined #crystal-lang
<mps> maybe IO::Memory is solution
hightower4 has joined #crystal-lang
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #crystal-lang
hightower3 has quit [Ping timeout: 258 seconds]
hightower4 has quit [Ping timeout: 258 seconds]
<mps> yes
<mps> yes
hightower2 has quit [Read error: Connection reset by peer]
<riza> mps: if you can, check out string.build -- it's built for that sort of thing
<mps> riza: I did, but it doesn't fit well in part of code I'm using in this case
hightower2 has joined #crystal-lang
<riza> yeah, I get that. The block notation kind of wants a specific way of formatting yoru code
<riza> you can do a string builder without the block notation, and then pass the builder around a bit, too...but it's obviously not what was intended by the designer
<mps> riza: tbh I still learning crystal and because this I'm trying to avoid 'smart' tricks and concentrate on coding style which fits to my previous programming experience
<mps> riza: I solved today problem with IO::Memory and I learned about it. So, it was good day and crystal saved me of big headache for one task on my $day_job
<riza> awesome!
<riza> I love hearing about folks using crystal professionally -- I cannot for the life of me find any work that's interested in crystal
<mps> yes, no big and famous company behind crystal to promote or even force it
_ht has quit [Quit: _ht]
thatcher has quit [Remote host closed the connection]
thatcher has joined #crystal-lang
<riza> mps: here's a place where I used String::Builder without the block invocation, in case you're interested: https://github.com/mosquito-cr/mosquito/pull/108/files#diff-9999fa71f67ebeb4ef162ddf3004616fc18c2ba853666c8f5c5166fc965f86d8R46