jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.14.1 | 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
ARM9 has quit [Ping timeout: 244 seconds]
willl has joined #crystal-lang
Dreamer3 has joined #crystal-lang
Dreamer3_ has joined #crystal-lang
bazaar has joined #crystal-lang
kulelu88 has joined #crystal-lang
kulelu88 has joined #crystal-lang
jhass has quit [Ping timeout: 268 seconds]
jhass has joined #crystal-lang
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
bcardiff has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
mjblack has quit [Ping timeout: 250 seconds]
bcardiff has quit [Quit: bcardiff]
mjblack has joined #crystal-lang
Gasher^ has quit [Quit: Leaving]
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #crystal-lang
kfpratt has quit [Client Quit]
edjsu has quit [Quit: WeeChat 1.2]
edjsu has joined #crystal-lang
matp has quit [Ping timeout: 246 seconds]
unshadow has quit [Quit: leaving]
matp has joined #crystal-lang
mondok has joined #crystal-lang
<mondok> hi,i have problem
<crystal-gh> [crystal] will opened pull request #2356: Playground: add workbook support (master...workbook) https://git.io/va56Y
<mondok> if i try to execute program , i have nothing , but program run on another pc
<mondok> this is website
PragTob has joined #crystal-lang
trapped has joined #crystal-lang
matp has quit [Quit: Textual IRC Client: www.textualapp.com]
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
matp has joined #crystal-lang
rkeene has quit [Ping timeout: 244 seconds]
rkeene has joined #crystal-lang
pawnbox has joined #crystal-lang
splattael has joined #crystal-lang
Gasher has joined #crystal-lang
<BlaXpirit> is it just me or does the latest crystal release eat a ton of memory?
<BlaXpirit> is it just me or does the latest crystal release eat a ton of memory?
<BlaXpirit> oops
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<jokke> RX14: i'm here
<jokke> RX14: still relevant?
buggs has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
willl has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vadJR
<crystal-gh> crystal/master 317e044 Ary Borenszweig: Merge branch 'release/0.14'
mondok has quit [Ping timeout: 246 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vadUX
<crystal-gh> crystal/master 7a8ab5a Ary Borenszweig: Changelog: added missing breaking change related to HTTP::WebSocketHandler
rok has joined #crystal-lang
rok is now known as rok_
jnylen is now known as voldeman
voldeman is now known as taco
taco is now known as steamy
<travis-ci> crystal-lang/crystal#317e044 (master - Merge branch 'release/0.14'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117935773
<travis-ci> crystal-lang/crystal#7a8ab5a (master - Changelog: added missing breaking change related to HTTP::WebSocketHandler): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117937370
unshadow has joined #crystal-lang
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
rok has joined #crystal-lang
rok_ has quit [Ping timeout: 276 seconds]
edjsu has quit [Quit: WeeChat 1.2]
edjsu has joined #crystal-lang
edjsu has quit [Client Quit]
edjsu has joined #crystal-lang
<tilpner> How would I get a line number and filename for a TypeCastError?
<BlaXpirit> tilpner, i think it tells you only the function that it's in :(
<tilpner> BlaXpirit - That'd be good enough, but I can't even see that in http://ix.io/uSw . Do I need to enable -d?
<BlaXpirit> I don't know, sorry
<BlaXpirit> well it's probably in some spawn thingy
<tilpner> Yes, it seems so.
rok has quit [Quit: rok]
sr2016 has joined #crystal-lang
bcardiff has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
Philpax has quit [Ping timeout: 244 seconds]
rok has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
sr2016 has left #crystal-lang [#crystal-lang]
sr2016 has joined #crystal-lang
[spoiler] has quit [Ping timeout: 250 seconds]
Veejay has quit [Ping timeout: 250 seconds]
[spoiler] has joined #crystal-lang
Veejay has joined #crystal-lang
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vadhp
<crystal-gh> crystal/master 22f5762 Ary Borenszweig: Fixed #2352: don't mix classes on nested class definition
pawnbox has quit [Ping timeout: 276 seconds]
marcosdsanchez has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
marcosdsanchez has joined #crystal-lang
bcardiff has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
<travis-ci> crystal-lang/crystal#22f5762 (master - Fixed #2352: don't mix classes on nested class definition): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/117994865
rok has quit [Quit: rok]
soveran has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vaFq2
<crystal-gh> crystal/master 43edda3 Ary Borenszweig: Fixed #2354: `super` wasn't being called in a generic class if the base class was never instantiated
rok has joined #crystal-lang
soveran has quit [Remote host closed the connection]
bcardiff has quit [Ping timeout: 248 seconds]
<travis-ci> crystal-lang/crystal#43edda3 (master - Fixed #2354: `super` wasn't being called in a generic class if the base class was never instantiated): The build has errored. https://travis-ci.org/crystal-lang/crystal/builds/118005407
PragTob has quit [Remote host closed the connection]
splattael has quit [Quit: Connection closed for inactivity]
<travis-ci> crystal-lang/crystal#43edda3 (master - Fixed #2354: `super` wasn't being called in a generic class if the base class was never instantiated): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/118005407
soveran has joined #crystal-lang
willl has joined #crystal-lang
unshadow has quit [Quit: leaving]
<crystal-gh> [crystal] MaloJaffre opened pull request #2359: Fix invocations of tools in help messages. (master...fix_help_messages) https://git.io/vaFVJ
<donpdonp> is this a compiler bug? it says Array has no #find https://carc.in/#/r/v08
<donpdonp> oh its the diff between an array type and an actual array. toy = [] of Toy works
<RX14> jokke, i wanted to make a comment about crouter
<RX14> if you're still here
<jokke> yeah i'm here
<jokke> but not for long :)
<RX14> it's annoying that all the routes have to end with "nil"
<RX14> otherwise it doesn't compile
<jokke> ooh that's the thing
<RX14> yep
<jokke> thanks for finding out
<RX14> edit the macro
<RX14> make it always end with "nil"
<jokke> feel free to make a pull request!
<jokke> :)
<RX14> the error message was really cryptic
<jokke> yes
<jokke> that's why i haven't fixed it yet
<RX14> it took me a good 10 mins
<jokke> but nice to know someone's giving it a shot
<RX14> yeah I like it
<jokke> cool :)
<RX14> it's a library not a framework
<jokke> yeah
<RX14> i need to embed a HTTP api in a larger application
<jokke> i see
<jokke> well it should come in handy then :)
<RX14> yup
<jokke> so do you want me to fix it or do you want to submit a pull request?
<RX14> i'll PR if you want
<jokke> sure, it's you who figured it out, after all
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vaFKN
<crystal-gh> crystal/master 68f909c Ary Borenszweig: Compiler: disallow `Object` and similar top types in block return types. Fixes #2358
<jokke> should give you credit for that
<jokke> i'll merge it in a few hours when i get back (if you've submitted it until then)
<RX14> jokke, PRd
fridgerator has joined #crystal-lang
<fridgerator> I am curious, is there any mechanism for aliasing a property on a class?
<fridgerator> property :thing
<fridgerator> alias :thing_b, :thing
<travis-ci> crystal-lang/crystal#68f909c (master - Compiler: disallow `Object` and similar top types in block return types. Fixes #2358): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/118034528
soveran has quit [Remote host closed the connection]
<RX14> If I wanted to compare every value in an array I would want each_combination(2) right?
A124 has quit [Ping timeout: 240 seconds]
A124 has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
<jeromegn> is it a bad idea to do HTTP requests in fibers with spawn?
<jeromegn> I basically don't care about the result of the request
<RX14> why would it be bad?
<jeromegn> I mean, will that speed things up?
<jeromegn> bad as in, it's still going to block? :) still trying to wrap my head around: https://gist.github.com/Kilobyte22/e51a6b16703694f861a3
<RX14> why would it block?
<RX14> it will start executing the fiber
<RX14> perform the http request
<RX14> reschedule the fiber
<RX14> start doing other work
<RX14> when the response comes back
<RX14> the fiber will get rescheduled and handle the response
<RX14> and then the fiber will exit
toydestroyer has quit [Remote host closed the connection]
<jeromegn> alright, that's indeed what I need
<RX14> it will "make it faster" for most definitions of faster
toydestroyer has joined #crystal-lang
<RX14> Kilo`byte, you can use just "sleep" instead of "loop { sleep 9001 }" from your gist
soveran has quit [Remote host closed the connection]
sr2016_ has joined #crystal-lang
<sr2016> [Andrei Soroker] Hello - I work at sameroom.io, we integrate chat services. Someone from your community reached out and mentioned the IRC-Gitter fragmentation problem and suggested we offer a solution. We'd be happy to sponsor an unlimited bi-directional, real-time bridge to sync all messages between this channel and https://gitter.im/crystal-lang/crystal. You can reach me at andrei@sameroom.io if there's interest. Than
<sr2016> [Andrei Soroker] *Thanks
<RX14> there's a gitter?
<BlaXpirit> it's pretty much dead
<BlaXpirit> thankfully
<BlaXpirit> slack, on the other hand, may not be as dead
<RX14> there's a slack?
<BlaXpirit> damn hipsters
<RX14> indeed
<RX14> bridge them all
<RX14> is what I say
<BlaXpirit> there's no good way
<RX14> write own brigebots?
<BlaXpirit> it's not even difficult to write but there is no good way like i'm saying
<sr2016_> sameroom.io will sponsor the bridges, if you want
<RX14> can you do things like not pass crystal-gh messages to slack?
<BlaXpirit> RX14, uh of course that's possible
<RX14> yeah but with sameroom.io
<RX14> i've never used it
<BlaXpirit> i'm not even considering this option :D
<RX14> same tbh
<sr2016_> we don't filter anything - everything is synced (except slash commands)
<RX14> well thats out the window
<BlaXpirit> it's funny because that may initiate an infinite loop
<BlaXpirit> because i think slack also gets these notifications, from what i see in travis.yml
<RX14> not mif you write the bot correctly
<RX14> i don't see how it's hard?
<RX14> you just configure what to ignore
sr2016_ has quit [Quit: Page closed]
[spoiler] has quit [Ping timeout: 250 seconds]
sr2016 has left #crystal-lang [#crystal-lang]
[spoiler] has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
endou_ has quit [Read error: Connection reset by peer]
endou has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vabf7
<crystal-gh> crystal/master d172e3a Malo Jaffré: Fix invocations of tools in help messages....
<crystal-gh> crystal/master 47fe1dd Ary Borenszweig: Merge pull request #2359 from MaloJaffre/fix_help_messages...
<crystal-gh> [crystal] asterite closed pull request #2349: Remove browser tool completion. (master...remove-browser) https://git.io/va7kv
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vabJx
<crystal-gh> crystal/master f76c9cb Ary Borenszweig: Merge pull request #2336 from DougEverly/tmpfile_dirname2...
<crystal-gh> crystal/master 6c128bf Doug Everly: Added Tempfile.dirname
willl_ has joined #crystal-lang
danzilio_ has joined #crystal-lang
danzilio has quit [Ping timeout: 250 seconds]
willl has quit [Ping timeout: 250 seconds]
willl_ is now known as willl
danzilio_ is now known as danzilio
jhass has quit [Ping timeout: 240 seconds]
jhass has joined #crystal-lang
fridgera_ has joined #crystal-lang
fridgerator has quit [Ping timeout: 244 seconds]
<travis-ci> crystal-lang/crystal#47fe1dd (master - Merge pull request #2359 from MaloJaffre/fix_help_messages): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/118057068
<travis-ci> crystal-lang/crystal#6c481c6 (master - Merge pull request #2349 from MaloJaffre/remove-browser): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/118057121
fridgera_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tilpner> Indexing into a String by Range will not copy the substring, correct?
<RX14> tilpner, strings are substringed by copy I think
<tilpner> That's unexpected. I can't find a []= for String, so why wouldn't it return a reference? Are there problems GC'ing the string?
<BlaXpirit> tilpner, what are you trying to do?
<tilpner> BlaXpirit - I'm trying to parse things, and I'd like to know how expensive taking a substring really is. I'm going to do it either way, I'm just curious.
<BlaXpirit> tilpner, if you're parsing, maybe you won't need to substring at all
<BlaXpirit> many string-searching methods have a start pos argument
<RX14> tilpner, well I've written really fast parsers in crystal
<RX14> what I do it I turn the string into a Slice of UInt8
<RX14> then parse it by iteration
<BlaXpirit> i wouldn't want to work with that
<RX14> no, you don't
<RX14> but it's nice and fast
<BlaXpirit> why not keep it in one String?
<RX14> because it comes out of a socket at a slice of UInt8
<BlaXpirit> oh well that's good then
<tilpner> I'm not so concerned about speed just yet. Not enough to use byte indices manually. Thanks a lot for the suggestions!
<BlaXpirit> hm I suppose String really can't be fast even if you use the start pos argument instead of slicing
<RX14> you want as little memory allocations as possible
fridgerator has joined #crystal-lang
<BlaXpirit> because of utf-8 things all the time
<RX14> so I pass around indexes to the Slice and lazilly convert to strings
<RX14> BlaXpirit, and it's not often you have to deal with UTF8 when parsing
<RX14> you just have to keep it intact
<RX14> I get 2 million IRC message parses per second with my library
<BlaXpirit> RX14, I get it but with String the program deals with UTF8 whether you need it or not
<RX14> which is one of the reasons I didn't use string
<RX14> i mean, my IRC parsing library is crazy
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
<RX14> but it was fun to write
<tilpner> RX14 - Is the code online? Do you use String#bytes for the conversion?
bcardiff has joined #crystal-lang
<RX14> no
<tilpner> Do you read a String at all, or read into an Array right away?
<RX14> I just accept a Slice(UInt8)
<tilpner> RX14 - Thanks. What does the Projectfile belong to?
<tilpner> (Which tool processes it)
<RX14> Projectfile?that's the old crystal deps
<RX14> it's dead now
<RX14> replaced by shards
<tilpner> Okay, it's still in your README, I'm using shard.yml, so I didn't recognize it. :)
<RX14> yeah I need to update it
bcardiff has quit [Ping timeout: 260 seconds]
ragmaanir has joined #crystal-lang
<RX14> tilpner, and yeah, that code is a mess
<RX14> don't look at the ircv3 tags code
* tilpner looks at it
<RX14> i understood it when I wrote it
<RX14> i need to rewrite it tbh
kfpratt has joined #crystal-lang
<tilpner> "need" O.o
<RX14> make it a little cleaner
<RX14> extract the parsing macros to be more generic
<RX14> maybe make them a shard
emancu has joined #crystal-lang
soveran has quit [Remote host closed the connection]
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fridgerator has joined #crystal-lang
fridgerator has quit [Ping timeout: 240 seconds]
bcardiff has joined #crystal-lang
<jokke> RX14: merged
<RX14> great
soveran has joined #crystal-lang
soveran has joined #crystal-lang
Philpax has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
rok has quit [Quit: rok]
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
soveran has quit [Remote host closed the connection]
bcardiff has quit [Quit: bcardiff]
A124 has quit [Ping timeout: 276 seconds]
Philpax has joined #crystal-lang
jokke has quit [Ping timeout: 240 seconds]
jokke has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
Gasher has quit [Ping timeout: 244 seconds]
Raimondi has quit [Quit: The road to wisdom?—Well, it's plain and simple to express: Err and err and err again, but less and less and less. — Piet Hein]
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
Gasher has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]