jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.1 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
xd1le has joined #crystal-lang
ssvb has quit [Ping timeout: 265 seconds]
ismael_ has joined #crystal-lang
ismael_ has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 246 seconds]
ssvb has joined #crystal-lang
Sadin has joined #crystal-lang
Sadin has quit [Ping timeout: 264 seconds]
<crystal-gh> [crystal] will closed pull request #1840: Build all files in ./src when there are no arguments (master...buildall) http://git.io/vltCV
lokulin has quit [Ping timeout: 250 seconds]
blue_deref has quit [Quit: bbn]
Renich has quit [Quit: leaving]
lokulin has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 272 seconds]
fowlduck has quit [Remote host closed the connection]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
slash_nick is now known as slash_quit
slash_quit is now known as slash_nick
ponga has joined #crystal-lang
trapped has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
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
matp has quit [Excess Flood]
havenwood has quit [Excess Flood]
havenn has joined #crystal-lang
havenn has joined #crystal-lang
havenn is now known as havenwood
matp has joined #crystal-lang
kulelu88 has joined #crystal-lang
kulelu88 has joined #crystal-lang
trapped has joined #crystal-lang
ssvb has quit [Quit: Leaving]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
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
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
matp has quit [Ping timeout: 240 seconds]
matp has joined #crystal-lang
trapped has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 272 seconds]
bjmllr has quit [Ping timeout: 247 seconds]
bjmllr has joined #crystal-lang
<[spoiler]> Should #first and #last use Enumerable's methods, or should they behave more like Ruby's? Namely Range's first returns @begin regardless whether the range is `x...x`, same for last. While the Enumerable spec requires a raise. If Raising is required, I could just remove first() and add first(n) to Enumerable (same for last, but last is missing altogether)
<[spoiler]> however in (a...b).last will return b even if the range is exclusive
<[spoiler]> so it's essentially a synonym for end
<[spoiler]> (which I disagree with, personally)
<[spoiler]> so I would vote we change this from Ruby's behaviour. Should I modify the PR and start a discussion there?
<jhass> Yes, let's have this as a less epheremal discussion
<[spoiler]> k
<jhass> [spoiler]: also maybe split your PR up into smaller parts so we can get the uncontroversial stuff out of the way
xd1le has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<[spoiler]> jhass: meant to, yeah
<[spoiler]> oh you meant into multiple PRs or multiple commits?
<jhass> multiple PRs actually
<[spoiler]> Ah right
Sadin has joined #crystal-lang
Davy_CC_ has quit [Ping timeout: 250 seconds]
Davy_CC has joined #crystal-lang
kulelu88 has left #crystal-lang ["Leaving"]
<[spoiler]> jhass: done (for range). lemme just add the specs for #last and #last? in Enumerable specs
<[spoiler]> well lemme run the full spec actually last time i just ran the spec for range lol
* [spoiler] groans.
<[spoiler]> This will take an hour
<[spoiler]> ok they all passed on my pc, but the i368 check fails on travis for some reason
<[spoiler]> i386
<[spoiler]> but it seems unrelated
trapped_ has joined #crystal-lang
matp has quit [Ping timeout: 240 seconds]
trapped has quit [Ping timeout: 265 seconds]
<RX14> This looks like a cool article
<RX14> Crystal has great error messages but I'm sure some I'd the ideas are new
<jhass> [spoiler]: doesn't look unrelated at all to me
<jhass> [spoiler]: though you may just want to change the includes? call to .covers? I guess
matp has joined #crystal-lang
<[spoiler]> jhass: oh you mean `CallStack.makecontext_range.includes?`
<[spoiler]> Still slightly confused why it didn't break on 64bit though! *fixes*
fowlduck has joined #crystal-lang
<[spoiler]> jhass: yep changing to covers? worked
<crystal-gh> [crystal] omninonsense opened pull request #1896: Enumerable improvements (master...enumerable_improvements) http://git.io/v4SRe
<[spoiler]> oh drat
<[spoiler]> ok fixed
<[spoiler]> I'm getting good at rebasing (not sure if yay or nay)
ponga has quit [Quit: Connection closed for inactivity]
shama has joined #crystal-lang
trapped_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
jwaldrip has joined #crystal-lang
qard_ has joined #crystal-lang
bjmllr has quit [Remote host closed the connection]
bjmllr has joined #crystal-lang
jwaldrip has quit [Quit: Be back later ...]
jwaldrip has joined #crystal-lang
jwaldrip has quit [Ping timeout: 252 seconds]
blue_deref has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
jwaldrip has joined #crystal-lang
jwaldrip has quit [Remote host closed the connection]
sdogruyol has joined #crystal-lang
<sdogruyol> does File and HTTP::Server share the same event loop?
<jhass> there's only one globally
<sdogruyol> jhass: does spawn also share the same event loop?
<jhass> I repeat, there's only one globally
<jhass> sdogruyol: all File and HTTP::Server internally do is use spawn
<sdogruyol> jhass: that explains it
<sdogruyol> jhass: i'm having a weird issue when trying to use 1 file handle to log the output to a file and a http server to listen at the same time
<sdogruyol> jhass: sometime the logs are appended after closing the server
<sdogruyol> jhass: not in order
<jhass> you still don't need to highly me on every message
<jhass> my client doesn't want to be a christmas tree
<jhass> do you use Logger?
<jhass> er, highlight
<sdogruyol> no i dont use Logger to output to file
<jhass> why not?
<sdogruyol> because i'm writing to a file
<jhass> Logger can write to any IO
<sdogruyol> okay
<sdogruyol> i'm not sure if it solves my problem though
<sdogruyol> need to check
<sdogruyol> non atomic
<sdogruyol> :(
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
<crystal-gh> [crystal] hoffi opened pull request #1897: Enhance HTML::Builder (master...html_builder_enhancement) http://git.io/v49ol
sdogruyol has quit [Ping timeout: 240 seconds]
<[spoiler]> oh that bug
jwaldrip has joined #crystal-lang
<[spoiler]> in hindsight. I think you can't puts to stdout from a coroutine?
<[spoiler]> ie from a fiber
<jhass> pretty sure you can
<jhass> you can't from a Thread, that might be what you're remembering
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[spoiler]> Oh might be
sdogruyol has joined #crystal-lang
sdogruyol has quit []
petercommand has quit [Ping timeout: 240 seconds]
petercommand has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
jwaldrip has quit [Quit: Lingo: www.lingoirc.com]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
blue_deref has quit [Quit: bbn]
AckZ has quit []
BlaXpirit has quit [Quit: Bye]
BlaXpirit has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jokke> hey
<jokke> this throws an error at the last puts
<jokke> File not open for writing (IO::Error)
<jokke> this used to work
<jokke> but doesn't with the latest crystal version
trapped has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
trapped has quit [Quit: Textual IRC Client: www.textualapp.com]