00:48
pawnbox has joined #crystal-lang
00:52
pawnbox has quit [Ping timeout: 240 seconds]
00:57
<
jhass >
Anyone at 32C3?
01:13
elia_ has quit [Quit: Computer has gone to sleep.]
01:18
pawnbox has joined #crystal-lang
01:22
pawnbox has quit [Ping timeout: 240 seconds]
01:48
pawnbox has joined #crystal-lang
01:53
pawnbox has quit [Ping timeout: 265 seconds]
01:54
dylanmei has quit [Quit: ZZZzzz…]
01:57
dylanmei has joined #crystal-lang
01:59
dylanmei has quit [Client Quit]
02:08
kulelu88 has joined #crystal-lang
02:08
kulelu88 has quit [Changing host]
02:08
kulelu88 has joined #crystal-lang
02:19
sadin has joined #crystal-lang
02:27
dylanmei has joined #crystal-lang
02:28
dylanmei has quit [Client Quit]
02:28
pawnbox has joined #crystal-lang
02:33
pawnbox has quit [Ping timeout: 260 seconds]
02:42
kulelu88 has quit [Ping timeout: 256 seconds]
02:52
sadin has quit [Quit: Leaving]
02:53
waterlin1 has joined #crystal-lang
02:55
kulelu88 has joined #crystal-lang
02:56
waterlink has quit [Ping timeout: 260 seconds]
03:01
A124 has quit [Read error: Connection reset by peer]
03:05
A124 has joined #crystal-lang
03:08
pawnbox has joined #crystal-lang
03:13
pawnbox has quit [Ping timeout: 245 seconds]
03:16
dylanmei has joined #crystal-lang
03:29
dylanmei has quit [Quit: ZZZzzz…]
03:30
dylanmei has joined #crystal-lang
03:42
dylanmei has quit [Quit: ZZZzzz…]
03:43
dylanmei has joined #crystal-lang
03:53
dylanmei has quit [Quit: ZZZzzz…]
03:57
dylanmei has joined #crystal-lang
03:58
pawnbox has joined #crystal-lang
04:02
pawnbox has quit [Ping timeout: 246 seconds]
04:05
dylanmei has quit [Quit: ZZZzzz…]
04:23
kulelu88 has quit [Quit: Leaving]
04:48
pawnbox has joined #crystal-lang
04:53
pawnbox has quit [Remote host closed the connection]
04:53
pawnbox has joined #crystal-lang
04:53
pawnbox has quit [Remote host closed the connection]
05:09
osiutino has joined #crystal-lang
05:39
waterlin1 has quit [Ping timeout: 265 seconds]
05:41
pawnbox has joined #crystal-lang
06:41
pawnbox has quit [Remote host closed the connection]
06:43
pawnbox has joined #crystal-lang
06:46
pawnbox has quit [Remote host closed the connection]
07:12
pawnbox has joined #crystal-lang
07:17
pawnbox_ has joined #crystal-lang
07:18
pawnbox has quit [Ping timeout: 260 seconds]
07:31
trapped has joined #crystal-lang
07:38
vikaton has quit [Quit: Connection closed for inactivity]
07:43
robacarp has quit [Ping timeout: 245 seconds]
08:00
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
08:05
robacarp has joined #crystal-lang
08:17
trapped has joined #crystal-lang
08:25
pawnbox_ has quit [Remote host closed the connection]
08:34
pawnbox has joined #crystal-lang
08:36
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
08:40
pawnbox has quit [Remote host closed the connection]
08:43
pawnbox has joined #crystal-lang
08:52
elia_ has joined #crystal-lang
09:03
elia_ has quit [Read error: Connection reset by peer]
09:10
elia_ has joined #crystal-lang
10:22
<
BlaXpirit >
pawnbox, that's exactly what PullParser isn't supposed to do
10:38
pawnbox has quit [Remote host closed the connection]
10:39
pawnbox has joined #crystal-lang
11:13
bmcginty has quit [Ping timeout: 240 seconds]
11:14
trapped has joined #crystal-lang
11:14
bmcginty has joined #crystal-lang
11:54
pawnbox has quit [Remote host closed the connection]
11:55
pawnbox has joined #crystal-lang
12:02
osiutino has quit [Remote host closed the connection]
12:17
pawnbox has quit [Remote host closed the connection]
12:19
bmcginty has quit [Ping timeout: 264 seconds]
12:20
bmcginty has joined #crystal-lang
12:20
pawnbox has joined #crystal-lang
12:28
<
pawnbox >
BlaXpirit: I thought that from_yaml.cr would help me out with that.
12:30
<
BlaXpirit >
pawnbox, i dont know.
12:30
<
BlaXpirit >
you need Parser and not PullParser
12:30
<
BlaXpirit >
to just get a hash object with arbitrary data in it
12:31
<
BlaXpirit >
pawnbox, so just try YAML::Parser.new(string).parse
12:31
<
BlaXpirit >
if this doesnt work then i dont know
12:34
<
pawnbox >
BlaXpirit: got it. Thanks
12:34
<
pawnbox >
By the way YAML.load(string) also works.
12:41
<
pawnbox >
Is before(:each) supported in crystal?
12:41
bmcginty has quit [Ping timeout: 250 seconds]
12:42
bmcginty has joined #crystal-lang
12:42
<
BlaXpirit >
pawnbox, if you could say what you actually want, that would be great
12:43
<
BlaXpirit >
and i'm going away
12:43
<
pawnbox >
BlaXpirit: I want to specify setup data for following specs.
12:44
<
pawnbox >
Like before(:each) in Rspec.
12:59
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:04
elia_ has quit [Quit: Computer has gone to sleep.]
13:20
trapped has joined #crystal-lang
13:30
pawnbox has quit [Remote host closed the connection]
13:30
waterlink has joined #crystal-lang
13:40
pawnbox has joined #crystal-lang
13:42
pawnbox has quit [Remote host closed the connection]
13:42
pawnbox has joined #crystal-lang
13:53
elia_ has joined #crystal-lang
14:17
vikaton has joined #crystal-lang
14:49
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
15:08
Bofu2U has quit [Ping timeout: 265 seconds]
15:08
dylanmei has joined #crystal-lang
15:27
trapped has joined #crystal-lang
15:47
osiutino has joined #crystal-lang
15:52
osiutino has quit [Ping timeout: 276 seconds]
16:03
dylanmei has quit [Quit: ZZZzzz…]
16:04
dylanmei has joined #crystal-lang
16:23
osiutino has joined #crystal-lang
16:27
osiutino has quit [Ping timeout: 255 seconds]
16:30
<
BlaXpirit >
Array is too fat
16:41
elia_ has quit [Read error: Connection reset by peer]
16:45
<
BlaXpirit >
what's a nice way to write a[0]*b[0] + a[1]*b[1] + a[2]*b[2] ......
16:46
<
BlaXpirit >
I see that zip exists but it's not very nice to have a counter and just write += in zip
16:48
<
BlaXpirit >
scratch that. i actually want [a[0]*b[0], a[1]*b[1], ...]
16:48
elia_ has joined #crystal-lang
16:58
Bofu2U has joined #crystal-lang
17:08
<
jhass >
BlaXpirit: a.zip(b).map {|a, b| a*b } ? No idea if it actually works in crystal
17:09
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:12
<
yxhuvud >
jhass: zip in ruby already takes a block, so no need to save it temporarily in a map there.
17:13
<
yxhuvud >
*in an array
17:15
<
BlaXpirit >
i don't think it works in crystal cuz think about it. why would map take 2 arguments?
17:16
<
BlaXpirit >
and what good is the fact that zip takes a block if it doesn't accumulate results?
17:16
<
jhass >
>> [1, 2 3].zip([3, 2, 1]) {|a, b| a*b }
17:17
<
jhass >
>> [1, 2, 3].zip([3, 2, 1]) {|a, b| a*b }
17:17
trapped has joined #crystal-lang
17:18
<
BlaXpirit >
uh that's incorrect
17:18
<
BlaXpirit >
it fooled me first
17:18
<
jhass >
it's like each
17:18
<
jhass >
yield the results and return the receiver
17:18
<
yxhuvud >
may it should be reported as a bug though
17:19
<
jhass >
we don't want to allocate a new array there unless explicitly requested
17:20
<
jhass >
>> [1, 2, 3].zip([3, 2, 1]).map {|p| p[0]*p[1] }
17:21
<
yxhuvud >
hmm. seems I remember wrong. it matches the ruby behaviour except for ruby returning nil if block is given
17:32
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:35
osiutino has joined #crystal-lang
17:35
osiutino has quit [Read error: Connection reset by peer]
17:35
osiutino has joined #crystal-lang
17:40
osiutino has quit [Ping timeout: 265 seconds]
18:00
elia_ has quit [Quit: Computer has gone to sleep.]
18:03
trapped has joined #crystal-lang
18:17
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:17
trapped has joined #crystal-lang
18:47
osiutino has joined #crystal-lang
18:51
osiutino has quit [Ping timeout: 240 seconds]
18:56
elia_ has joined #crystal-lang
19:25
elia_ has quit [Quit: Computer has gone to sleep.]
19:39
osiutino has joined #crystal-lang
19:42
mlitwiniuk has quit [Ping timeout: 246 seconds]
19:43
osiutino has quit [Ping timeout: 240 seconds]
19:48
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:49
mlitwiniuk has joined #crystal-lang
20:00
osiutino has joined #crystal-lang
20:04
pawnbox has quit [Remote host closed the connection]
20:04
osiutino has quit [Ping timeout: 265 seconds]
20:14
pawnbox has joined #crystal-lang
20:19
pawnbox has quit [Ping timeout: 272 seconds]
21:00
dmonster has joined #crystal-lang
21:11
osiutino has joined #crystal-lang
21:13
elia_ has joined #crystal-lang
21:16
osiutino has quit [Ping timeout: 272 seconds]
21:33
pawnbox has joined #crystal-lang
21:48
elia_ has quit [Quit: Computer has gone to sleep.]
21:49
slash_nick is now known as \nick
21:56
elia_ has joined #crystal-lang
21:59
\nick is now known as slash_nick
22:01
trapped has joined #crystal-lang
22:13
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:18
osiutino has joined #crystal-lang
22:23
osiutino has quit [Ping timeout: 260 seconds]
22:46
pawnbox has quit [Remote host closed the connection]
22:51
Philpax has joined #crystal-lang
22:54
osiutino has joined #crystal-lang
22:56
pawnbox has joined #crystal-lang
22:56
Philpax has quit [Ping timeout: 276 seconds]
22:59
osiutino has quit [Ping timeout: 265 seconds]
23:01
pawnbox has quit [Ping timeout: 264 seconds]
23:21
<
crystal-gh >
[crystal] ysbaddaden opened pull request #1977: Time#epoch return local timestamps instead of UTC (master...std-time-epoch)
http://git.io/vESMw
23:25
trapped has joined #crystal-lang
23:26
pawnbox has joined #crystal-lang
23:31
pawnbox has quit [Ping timeout: 256 seconds]
23:41
Renich has joined #crystal-lang