jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.4 | 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
vikaton has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
flaviu has quit [Ping timeout: 250 seconds]
flaviu has joined #crystal-lang
flaviu has quit [Read error: Connection reset by peer]
fowlduck has joined #crystal-lang
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
ozra has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
zodiak has quit [Read error: Connection reset by peer]
zodiak_ has joined #crystal-lang
Cidan is now known as zz_Cidan
zodiak_ has quit [Quit: Leaving]
vikaton has quit []
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
ponga has joined #crystal-lang
bcardiff has joined #crystal-lang
havenwood has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
<crystal-gh> [crystal] yui-knk opened pull request #915: Implement Set#subset? (master...feature/set_subset) http://git.io/vtx8E
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
ponga has quit []
ponga has joined #crystal-lang
daneb has joined #crystal-lang
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
havenwood has joined #crystal-lang
BlaXpirit has joined #crystal-lang
strcmp2 has quit [Quit: Leaving]
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
sandelius has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
_whitelogger has joined #crystal-lang
unshadow has joined #crystal-lang
<unshadow> jhass: I can't provide the code to reproduce, I can't figure out what part of the code is making the crash, and I can't provide the full code as it is a prat of a company project
<unshadow> jhass: ... I'll try to minimize this issue as much as I can, it will take some time
<unshadow> jhass: what does this means: Bug: trying to downcast (StaticArray(UInt8, 16384) | StaticArray(UInt8, 512) | StaticArray(UInt8, 10)) <- StaticArray(UInt8, 512)
<jhass> well, that crystal tries to cast a potential StaticArray(UInt8, 16384) or StaticArray(UInt8, 10) into a StaticArray(UInt8, 512)
daneb has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<unshadow> thats wierd ...
<unshadow> jhass: this is the code, though it compiles in carc : http://carc.in/#/r/65v
<jhass> I think a latter usage of buf is what triggers it
<unshadow> jhass: Found it !
<unshadow> jhass: http://carc.in/#/r/65y
<jhass> unshadow: it's the to_slice call already http://carc.in/#/r/666
<unshadow> jhass: Nice, updated the issue
<jhass> well, http://carc.in/#/r/66e ;)
daneb has quit [Remote host closed the connection]
willl has quit [Quit: Connection closed for inactivity]
<unshadow> jhass: nice catch, so it's both .to_slice and .buffer ....
<jhass> no
<jhass> .to_slice uses .buffer
<unshadow> oh, so it's actually .buffer's fault
<jhass> yes
<unshadow> I guess this is because buff is getting built at compile time, and I gave it an option to be this or that depending on the calling method
<jhass> something around that, it goes into the compiler internals beyond this point
daneb has joined #crystal-lang
<unshadow> Do we have defined?(veriable)
<unshadow> >> defined?(a)
<DeBot> unshadow: Error in line 4: undefined local variable or method 'a' - http://carc.in/#/r/66r
<unshadow> >> return a if a
<DeBot> unshadow: Error in line 4: undefined local variable or method 'a' - http://carc.in/#/r/66s
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
daneb_ has joined #crystal-lang
daneb has quit [Ping timeout: 276 seconds]
humlereader has joined #crystal-lang
<BlaXpirit> unshadow, why would you need that?
<BlaXpirit> whether a variable is defined is always known at compile time
daneb_ has quit [Remote host closed the connection]
daneb has joined #crystal-lang
daneb has quit [Ping timeout: 255 seconds]
daneb has joined #crystal-lang
daneb has quit [Remote host closed the connection]
<unshadow> BlaXpirit: true... sometimes I'm too used to Ruby way of thinking
<jhass> unshadow: I consider defined? a really bad code smell in Ruby
<jhass> the valid usecases are extremely rare
daneb has joined #crystal-lang
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
unshadow_ has joined #crystal-lang
unshadow has quit [Ping timeout: 256 seconds]
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
unshadow has joined #crystal-lang
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
daneb_ has joined #crystal-lang
daneb has quit [Read error: Connection reset by peer]
strcmp1 has joined #crystal-lang
unshadow_ has quit [Ping timeout: 256 seconds]
BlaXpirit has quit [Quit: Quit Konversation]
humlereader has quit [Quit: humlereader]
daneb_ has quit [Remote host closed the connection]
daneb has joined #crystal-lang
daneb has quit [Client Quit]
ponga has quit [Quit: Connection closed for inactivity]
unshadow has quit [Quit: leaving]
BlaXpirit has joined #crystal-lang
bcardiff has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
NeverDie has joined #crystal-lang
bcardiff has joined #crystal-lang
havenwood has joined #crystal-lang
jtarchie has quit [Quit: Connection closed for inactivity]
zodiak has joined #crystal-lang
shama has joined #crystal-lang
zz_Cidan is now known as Cidan
willl has joined #crystal-lang
Cidan is now known as zz_Cidan
fowlduck_ has joined #crystal-lang
fowlduck has quit [Ping timeout: 248 seconds]
fowlduck has joined #crystal-lang
fowlduck_ has quit [Ping timeout: 248 seconds]
zz_Cidan is now known as Cidan
unshadow has joined #crystal-lang
<unshadow> >> a = [1,2,3,4,5,6,7,8,9,0]; puts a[-1..-3]
<DeBot> unshadow: [] - more at http://carc.in/#/r/68k
<unshadow> why ?
<jhass> because start > end
<jhass> same in ruby btw
<unshadow> why ? jhass lets say I want to print from last to "7"
<unshadow> (sorry about the why?)
<jhass> .reverse.first(4)
<unshadow> ohhh
<unshadow> cool
<unshadow> >> a = [1,2,3,4,5,6,7,8,9,0]; puts a.last(4)
<DeBot> unshadow: Error in line 4: wrong number of arguments for 'Array(Int32)#last' (1 for 0) - http://carc.in/#/r/68l
<unshadow> haha I tried
<jhass> or .last(4).reverse might be a bit faster actually
<jhass> meh, should totally patch that in
<unshadow> >> a = [1,2,3,4,5,6,7,8,9,0]; puts a.reverse.first(4)
<DeBot> unshadow: [0, 9, 8, 7] - more at http://carc.in/#/r/68m
<jhass> [-4..-1].reverse
<unshadow> >> a = [1,2,3,4,5,6,7,8,9,0]; puts a[-4..-1]
<DeBot> unshadow: [7, 8, 9, 0] - more at http://carc.in/#/r/68n
Ven has joined #crystal-lang
Guest43280 is now known as orliesaurus
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fowlduck has quit [Remote host closed the connection]
_whitelogger has joined #crystal-lang
NeverDie_ has joined #crystal-lang
fowlduck has joined #crystal-lang
NeverDie has quit [Ping timeout: 256 seconds]
NeverDie_ has quit [Ping timeout: 246 seconds]
NeverDie has joined #crystal-lang
<BlaXpirit> so I can't help but notice that most of operations on Enumerable just return an Array
<BlaXpirit> complete lack of lazy computation saddens me
<jhass> the Iterator stuff is new, needs to be backfilled still I guess
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
ponga has joined #crystal-lang
ozra has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
ponga has quit []
Cidan is now known as zz_Cidan
fowlduck has joined #crystal-lang
willl has quit [Ping timeout: 252 seconds]
willl has joined #crystal-lang
havenwood has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
zz_Cidan is now known as Cidan
ponga has joined #crystal-lang
ponga has quit [Client Quit]