00:27
vikaton has joined #crystal-lang
00:38
fowlduck has quit [Remote host closed the connection]
00:40
flaviu has quit [Ping timeout: 250 seconds]
00:43
flaviu has joined #crystal-lang
00:48
flaviu has quit [Read error: Connection reset by peer]
01:00
fowlduck has joined #crystal-lang
02:38
fowlduck has quit [Remote host closed the connection]
02:41
fowlduck has joined #crystal-lang
02:43
zodiak has quit [Read error: Connection reset by peer]
02:43
zodiak_ has joined #crystal-lang
03:08
Cidan is now known as zz_Cidan
03:13
zodiak_ has quit [Quit: Leaving]
03:23
vikaton has quit []
03:49
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
03:50
ponga has joined #crystal-lang
03:53
bcardiff has joined #crystal-lang
04:01
havenwood has joined #crystal-lang
04:28
bcardiff has quit [Quit: bcardiff]
04:28
bcardiff has joined #crystal-lang
04:29
bcardiff has quit [Client Quit]
05:00
<
crystal-gh >
[crystal] yui-knk opened pull request #915: Implement Set#subset? (master...feature/set_subset)
http://git.io/vtx8E
05:08
ponga has joined #crystal-lang
05:23
daneb has joined #crystal-lang
05:40
daneb has quit [Remote host closed the connection]
05:41
daneb has joined #crystal-lang
05:48
havenwood has joined #crystal-lang
05:57
BlaXpirit has joined #crystal-lang
06:19
strcmp2 has quit [Quit: Leaving]
06:22
daneb has quit [Remote host closed the connection]
06:31
daneb has joined #crystal-lang
07:29
sandelius has joined #crystal-lang
07:40
BlaXpirit has quit [Quit: Quit Konversation]
07:42
BlaXpirit has joined #crystal-lang
08:07
_whitelogger has joined #crystal-lang
08:25
unshadow has joined #crystal-lang
08:27
<
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
08:27
<
unshadow >
jhass: ... I'll try to minimize this issue as much as I can, it will take some time
08:28
<
unshadow >
jhass: what does this means: Bug: trying to downcast (StaticArray(UInt8, 16384) | StaticArray(UInt8, 512) | StaticArray(UInt8, 10)) <- StaticArray(UInt8, 512)
08:36
<
jhass >
well, that crystal tries to cast a potential StaticArray(UInt8, 16384) or StaticArray(UInt8, 10) into a StaticArray(UInt8, 512)
08:39
daneb has joined #crystal-lang
08:41
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
08:43
<
unshadow >
thats wierd ...
08:45
<
jhass >
I think a latter usage of buf is what triggers it
08:47
<
unshadow >
jhass: Found it !
08:59
<
unshadow >
jhass: Nice, updated the issue
09:00
daneb has quit [Remote host closed the connection]
09:01
willl has quit [Quit: Connection closed for inactivity]
09:01
<
unshadow >
jhass: nice catch, so it's both .to_slice and .buffer ....
09:02
<
jhass >
.to_slice uses .buffer
09:02
<
unshadow >
oh, so it's actually .buffer's fault
09:04
<
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
09:05
<
jhass >
something around that, it goes into the compiler internals beyond this point
09:06
daneb has joined #crystal-lang
09:09
<
unshadow >
Do we have defined?(veriable)
09:09
<
unshadow >
>> defined?(a)
09:09
<
unshadow >
>> return a if a
09:14
daneb_ has joined #crystal-lang
09:18
daneb has quit [Ping timeout: 276 seconds]
09:30
humlereader has joined #crystal-lang
09:36
<
BlaXpirit >
unshadow, why would you need that?
09:36
<
BlaXpirit >
whether a variable is defined is always known at compile time
09:37
daneb_ has quit [Remote host closed the connection]
09:38
daneb has joined #crystal-lang
09:42
daneb has quit [Ping timeout: 255 seconds]
09:44
daneb has joined #crystal-lang
09:46
daneb has quit [Remote host closed the connection]
09:51
<
unshadow >
BlaXpirit: true... sometimes I'm too used to Ruby way of thinking
09:52
<
jhass >
unshadow: I consider defined? a really bad code smell in Ruby
09:52
<
jhass >
the valid usecases are extremely rare
09:52
daneb has joined #crystal-lang
09:54
daneb has quit [Remote host closed the connection]
10:03
daneb has joined #crystal-lang
10:05
daneb has quit [Remote host closed the connection]
10:09
daneb has joined #crystal-lang
10:09
unshadow_ has joined #crystal-lang
10:13
unshadow has quit [Ping timeout: 256 seconds]
10:15
daneb has quit [Remote host closed the connection]
10:15
daneb has joined #crystal-lang
10:20
unshadow has joined #crystal-lang
10:20
daneb has quit [Remote host closed the connection]
10:20
daneb has joined #crystal-lang
10:21
daneb_ has joined #crystal-lang
10:21
daneb has quit [Read error: Connection reset by peer]
10:22
strcmp1 has joined #crystal-lang
10:23
unshadow_ has quit [Ping timeout: 256 seconds]
10:25
BlaXpirit has quit [Quit: Quit Konversation]
10:46
humlereader has quit [Quit: humlereader]
10:50
daneb_ has quit [Remote host closed the connection]
11:10
daneb has joined #crystal-lang
11:14
daneb has quit [Client Quit]
11:20
ponga has quit [Quit: Connection closed for inactivity]
11:22
unshadow has quit [Quit: leaving]
11:24
BlaXpirit has joined #crystal-lang
12:27
bcardiff has joined #crystal-lang
13:46
bcardiff has quit [Quit: bcardiff]
14:07
NeverDie has joined #crystal-lang
14:09
bcardiff has joined #crystal-lang
14:36
havenwood has joined #crystal-lang
15:16
jtarchie has quit [Quit: Connection closed for inactivity]
16:27
zodiak has joined #crystal-lang
16:34
shama has joined #crystal-lang
16:40
zz_Cidan is now known as Cidan
16:51
willl has joined #crystal-lang
16:54
Cidan is now known as zz_Cidan
17:18
fowlduck_ has joined #crystal-lang
17:18
fowlduck has quit [Ping timeout: 248 seconds]
17:34
fowlduck has joined #crystal-lang
17:35
fowlduck_ has quit [Ping timeout: 248 seconds]
17:48
zz_Cidan is now known as Cidan
18:09
unshadow has joined #crystal-lang
18:09
<
unshadow >
>> a = [1,2,3,4,5,6,7,8,9,0]; puts a[-1..-3]
18:10
<
jhass >
because start > end
18:10
<
jhass >
same in ruby btw
18:11
<
unshadow >
why ? jhass lets say I want to print from last to "7"
18:11
<
unshadow >
(sorry about the why?)
18:11
<
jhass >
.reverse.first(4)
18:12
<
unshadow >
>> a = [1,2,3,4,5,6,7,8,9,0]; puts a.last(4)
18:12
<
unshadow >
haha I tried
18:12
<
jhass >
or .last(4).reverse might be a bit faster actually
18:12
<
jhass >
meh, should totally patch that in
18:13
<
unshadow >
>> a = [1,2,3,4,5,6,7,8,9,0]; puts a.reverse.first(4)
18:13
<
jhass >
[-4..-1].reverse
18:14
<
unshadow >
>> a = [1,2,3,4,5,6,7,8,9,0]; puts a[-4..-1]
18:38
Ven has joined #crystal-lang
18:52
Guest43280 is now known as orliesaurus
19:37
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:48
fowlduck has quit [Remote host closed the connection]
20:22
_whitelogger has joined #crystal-lang
20:23
NeverDie_ has joined #crystal-lang
20:24
fowlduck has joined #crystal-lang
20:26
NeverDie has quit [Ping timeout: 256 seconds]
20:27
NeverDie_ has quit [Ping timeout: 246 seconds]
20:28
NeverDie has joined #crystal-lang
20:45
<
BlaXpirit >
so I can't help but notice that most of operations on Enumerable just return an Array
20:45
<
BlaXpirit >
complete lack of lazy computation saddens me
20:55
<
jhass >
the Iterator stuff is new, needs to be backfilled still I guess
21:17
ponga has joined #crystal-lang
21:17
ozra has joined #crystal-lang
21:49
fowlduck has quit [Remote host closed the connection]
22:15
Cidan is now known as zz_Cidan
22:34
fowlduck has joined #crystal-lang
22:43
willl has quit [Ping timeout: 252 seconds]
22:43
willl has joined #crystal-lang
22:45
havenwood has joined #crystal-lang
23:02
BlaXpirit has quit [Quit: Quit Konversation]
23:38
zz_Cidan is now known as Cidan
23:58
ponga has joined #crystal-lang
23:58
ponga has quit [Client Quit]