00:11
trapped has joined #crystal-lang
00:21
McDougal has joined #crystal-lang
00:22
blue_deref has joined #crystal-lang
00:29
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:53
NeverDie has joined #crystal-lang
01:11
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:26
Cidan is now known as zz_Cidan
01:34
McDougal has joined #crystal-lang
01:39
<
crystal-gh >
crystal/master b7cd5d2 Santiago Palladino: Rename concucrrent_spec.cr to concurrent_spec.cr...
01:40
NeverDie_ has joined #crystal-lang
01:41
NeverDie has quit [Ping timeout: 250 seconds]
01:52
zz_Cidan is now known as Cidan
02:12
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:14
kulelu88 has quit [Quit: Leaving]
02:14
McDougal has joined #crystal-lang
02:20
Cidan is now known as zz_Cidan
02:24
zz_Cidan is now known as Cidan
02:24
adler has joined #crystal-lang
02:28
NeverDie_ is now known as NeverDie
02:34
rosylilly has joined #crystal-lang
02:39
rosylilly has quit [Ping timeout: 260 seconds]
02:44
rosylilly has joined #crystal-lang
02:50
leafybasil has quit [Remote host closed the connection]
02:53
rosylilly has quit [Remote host closed the connection]
02:54
rosylilly has joined #crystal-lang
02:54
rosylilly has quit [Remote host closed the connection]
02:54
rosylilly has joined #crystal-lang
02:58
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:59
rosylilly has quit [Ping timeout: 265 seconds]
03:00
A124 has quit [Read error: Connection reset by peer]
03:05
A124 has joined #crystal-lang
03:05
n1ftyn8_ has quit [Read error: Connection reset by peer]
03:06
mroth has quit [Read error: Connection reset by peer]
03:08
n1ftyn8_ has joined #crystal-lang
03:12
mroth has joined #crystal-lang
03:12
pawnbox has joined #crystal-lang
03:17
<
crystal-gh >
crystal/master 6b54708 Ary Borenszweig: Renamed `Slice#each_reverse` to `Slice#reverse_each` for consistency. Don't use `-=` inside call
03:17
<
crystal-gh >
crystal/master b3b1223 Ary Borenszweig: Updated Changelog
03:18
pawnbox has quit [Remote host closed the connection]
03:18
pawnbox has joined #crystal-lang
03:26
Cidan is now known as zz_Cidan
03:36
zz_Cidan is now known as Cidan
03:41
McDougal has joined #crystal-lang
04:07
rosylilly has joined #crystal-lang
04:07
pawnbox has quit [Ping timeout: 240 seconds]
04:09
pawnbox has joined #crystal-lang
04:10
pawnbox has quit [Client Quit]
04:13
pawnbox has joined #crystal-lang
04:17
shama has quit [Read error: Connection reset by peer]
04:18
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:18
shama has joined #crystal-lang
04:19
Cidan is now known as zz_Cidan
04:19
pawnbox has quit [Read error: Connection reset by peer]
04:20
pawnbox has joined #crystal-lang
04:22
zz_Cidan is now known as Cidan
04:40
Cidan is now known as zz_Cidan
04:48
zz_Cidan is now known as Cidan
04:59
pawnbox has quit [Remote host closed the connection]
05:00
pawnbox has joined #crystal-lang
05:00
leafybasil has joined #crystal-lang
05:05
leafybasil has quit [Ping timeout: 250 seconds]
05:13
adler has quit [Remote host closed the connection]
05:20
pawnbox has quit [Ping timeout: 272 seconds]
05:36
pawnbox has joined #crystal-lang
05:43
adler has joined #crystal-lang
05:50
adler has quit [Ping timeout: 256 seconds]
05:52
McDougal has joined #crystal-lang
05:53
adler has joined #crystal-lang
05:56
McDougal has quit [Client Quit]
05:59
pawnbox has quit [Ping timeout: 240 seconds]
06:00
McDougal has joined #crystal-lang
06:00
pawnbox has joined #crystal-lang
06:01
leafybasil has joined #crystal-lang
06:05
leafybasil has quit [Ping timeout: 240 seconds]
06:05
rosylilly has quit [Remote host closed the connection]
06:07
Cidan is now known as zz_Cidan
06:08
pawnbox has quit [Remote host closed the connection]
06:09
pawnbox has joined #crystal-lang
06:10
zz_Cidan is now known as Cidan
06:10
pawnbox has quit [Remote host closed the connection]
06:11
pawnbox has joined #crystal-lang
06:12
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:15
pawnbox has quit [Read error: Connection reset by peer]
06:20
Cidan is now known as zz_Cidan
06:20
zz_Cidan is now known as Cidan
06:22
pawnbox has joined #crystal-lang
06:28
pawnbox has quit [Ping timeout: 250 seconds]
06:30
pawnbox has joined #crystal-lang
06:53
rosylilly has joined #crystal-lang
07:01
Cidan is now known as zz_Cidan
07:24
pawnbox has quit [Read error: Connection reset by peer]
07:27
pawnbox has joined #crystal-lang
07:31
blue_deref has quit [Quit: bbn]
07:32
alsm has joined #crystal-lang
07:35
McDougal has joined #crystal-lang
07:39
McDougal has quit [Client Quit]
07:41
pawnbox has quit [Remote host closed the connection]
07:42
pawnbox has joined #crystal-lang
07:42
alsm has quit [Remote host closed the connection]
07:44
pawnbox has quit [Remote host closed the connection]
07:45
pawnbox has joined #crystal-lang
07:50
McDougal has joined #crystal-lang
07:51
McDougal has quit [Client Quit]
08:08
SergXIIIth has joined #crystal-lang
08:16
McDougal has joined #crystal-lang
08:17
pawnbox has quit [Read error: Connection reset by peer]
08:17
leafybasil has joined #crystal-lang
08:19
pawnbox has joined #crystal-lang
08:21
<
adler >
Which example are you running?
08:21
leafybasil has quit [Ping timeout: 250 seconds]
08:24
<
SergXIIIth >
# In C: double cos(double x)
08:24
<
SergXIIIth >
C.cos(1.5) #=> 0.0707372
08:24
<
SergXIIIth >
fun cos(value : Float64) : Float64
08:26
<
SergXIIIth >
I think I should some how declare what cos in math.h. Is not it?
08:41
pawnbox has quit [Ping timeout: 268 seconds]
08:41
<
noumar >
SergXIIIth: works fine for me.
08:42
<
noumar >
did you compile Crystal or use binary?
08:42
pawnbox has joined #crystal-lang
08:43
<
SergXIIIth >
use bin, via apt-get
08:43
BlaXpirit has joined #crystal-lang
08:44
<
SergXIIIth >
linked details - Error: execution of command failed with code: 1: `cc -o "/home/msa/prj/vid/sev/.crystal/crystal-run-sev.tmp" "${@}" -rdynamic -lmath -levent -lrt -lpcl -lpcre -lgc -lpthread -ldl`
08:46
<
noumar >
it seem's to be linking math, by -lmath
08:47
<
noumar >
are you running it with e.g. "crystal ex.cr"?
08:53
<
SergXIIIth >
Yep, I try link math, since origin example not work. Yes, run via "crystal src/sev.cr". Change to origin example and got - "main_module:(.text+0x8eb): undefined reference to `cos'
08:53
<
SergXIIIth >
collect2: error: ld returned 1 exit status
08:53
<
SergXIIIth >
Error: execution of command failed with code: 1: `cc -o "/home/msa/prj/vid/sev/.crystal/crystal-run-sev.tmp" "${@}" -rdynamic -levent -lrt -lpcl -lpcre -lgc -lpthread -ldl`"
08:54
pawnbox has quit [Remote host closed the connection]
08:54
pawnbox has joined #crystal-lang
08:57
<
SergXIIIth >
I found work around "@[Link("m")]
09:03
<
noumar >
indeed. I get the same on 15.04.
09:05
pawnbox has quit [Ping timeout: 246 seconds]
09:14
pawnbox has joined #crystal-lang
09:30
pawnbox has quit [Ping timeout: 244 seconds]
09:31
pawnbox has joined #crystal-lang
09:31
<
noumar >
SergXIIIth: looking at the source code you should just use "Math" module and then Math.cos
09:37
<
noumar >
that links in "m" on Linux
09:40
pawnbox has quit [Read error: Connection reset by peer]
09:45
leafybasil has joined #crystal-lang
09:46
pawnbox has joined #crystal-lang
09:49
leafybasil has quit [Remote host closed the connection]
09:54
pawnbox has quit [Read error: Connection reset by peer]
09:58
pawnbox has joined #crystal-lang
10:16
pawnbox has quit [Remote host closed the connection]
10:16
noumar has quit [Quit: Page closed]
10:20
pawnbox has joined #crystal-lang
10:32
trapped has joined #crystal-lang
10:47
noumar has joined #crystal-lang
10:53
leafybasil has joined #crystal-lang
10:55
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
11:11
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
11:12
adler has quit [Remote host closed the connection]
11:20
trapped has joined #crystal-lang
11:30
pawnbox has quit [Remote host closed the connection]
11:30
pawnbox has joined #crystal-lang
11:41
rosylilly has quit [Remote host closed the connection]
11:45
pawnbox has quit [Read error: Connection reset by peer]
11:46
McDougal has joined #crystal-lang
11:46
pawnbox has joined #crystal-lang
11:48
pawnbox has quit [Remote host closed the connection]
11:48
pawnbox has joined #crystal-lang
12:07
tatey_ has joined #crystal-lang
12:21
pawnbox has quit [Read error: Connection reset by peer]
12:21
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:22
pawnbox has joined #crystal-lang
12:31
emancu has joined #crystal-lang
12:58
pawnbox_ has joined #crystal-lang
12:58
pawnbox has quit [Ping timeout: 250 seconds]
13:08
trapped has joined #crystal-lang
13:15
jtarchie has joined #crystal-lang
13:21
pawnbox_ has quit [Ping timeout: 240 seconds]
13:23
pawnbox has joined #crystal-lang
13:38
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:54
pawnbox has quit [Ping timeout: 265 seconds]
13:57
pawnbox has joined #crystal-lang
14:13
xdougx has joined #crystal-lang
14:14
<
xdougx >
someone already worked with solr with crystal?
14:35
pawnbox_ has joined #crystal-lang
14:37
pawnbox has quit [Ping timeout: 265 seconds]
14:42
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:56
BlaXpirit has quit [Read error: Connection reset by peer]
14:56
BlaXpirit has joined #crystal-lang
15:12
jokke has quit [Ping timeout: 240 seconds]
15:12
BlaXpirit has quit [Quit: Konversation]
15:19
jokke has joined #crystal-lang
15:21
jtarchie has quit [Quit: Connection closed for inactivity]
15:44
<
crystal-gh >
[crystal] will opened pull request #1840: Build all files in ./src when there are no arguments (master...buildall)
http://git.io/vltCV
15:58
kgadek has joined #crystal-lang
15:59
zz_Cidan is now known as Cidan
16:09
greengriminal has joined #crystal-lang
16:09
BlaXpirit has joined #crystal-lang
16:22
<
crystal-gh >
crystal/master 0f4e586 Ary Borenszweig: Format all source code
16:34
noumar has quit [Ping timeout: 246 seconds]
16:36
leafybas_ has joined #crystal-lang
16:39
leafybasil has quit [Ping timeout: 256 seconds]
16:40
leafybas_ has quit [Ping timeout: 252 seconds]
17:03
hangyas has joined #crystal-lang
17:06
adler has joined #crystal-lang
17:06
<
xdougx >
my i ask a question about crystal application folder structure?
17:21
<
hangyas >
however it works fine with a clean project, so I'm not sure if it's a bug in the std lib, but I have no idea what to do
17:21
pawnbox_ has quit [Remote host closed the connection]
17:23
<
jhass >
hangyas: can it be that you pass nil for the ssl flag?
17:24
<
hangyas >
well, i don't do anything with ssl flags
17:25
<
hangyas >
should i?
17:25
McDougal has joined #crystal-lang
17:26
<
jhass >
it would be great to have a way to reproduce ...
17:29
<
hangyas >
well, it looks like, if i don't require some of my other code it will work
17:29
<
hangyas >
but that code doesn't even use http
17:29
McDougal has quit [Remote host closed the connection]
17:30
leafybasil has joined #crystal-lang
17:31
gamemanj has joined #crystal-lang
17:37
hangyas_ has joined #crystal-lang
17:40
hangyas has quit [Ping timeout: 250 seconds]
17:51
adler has quit [Remote host closed the connection]
17:53
<
hangyas_ >
ok, it looks like i shouldn't make class named File
17:59
NeverDie has joined #crystal-lang
18:01
trapped has joined #crystal-lang
18:15
gamemanj has quit [Remote host closed the connection]
18:22
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:31
<
crystal-gh >
crystal/master e9b4800 Ary Borenszweig: Fixed #1842: retain value of expression assigned to `_`
18:32
tdc has joined #crystal-lang
18:39
kgadek has quit [Quit: gone sleep]
19:14
blue_deref has joined #crystal-lang
19:17
<
jhass >
hangyas_: not at the toplevel, no
19:17
<
jhass >
you reopn the stdlib class
19:36
walkingtoast has joined #crystal-lang
19:37
<
[spoiler] >
I have a question about #1839. Suppose `Generic` was some library, why wouldn't it be acceotable for the library
*user* to do `a << Generic(Int32).new(1)` instead of `a << Generic.new(1)`? Or am I kinda missing the point
19:38
<
[spoiler] >
No I think I am missing the point...
19:38
<
BlaXpirit >
[spoiler], i don't get it. it's supposed to be possible to do Generic.new(1)
19:38
<
BlaXpirit >
that works well
19:40
<
[spoiler] >
BlaXpirit: oh drat, yeah it's complaining about line 10
19:41
<
[spoiler] >
Ok yeah I see now, that
*should* be possible. I think the complaint was that one shouldn't need to write `a = [] of Generic(String) | Generic(Int32)`
19:41
<
[spoiler] >
Bleh had a brain fart I guess
19:52
walkingtoast has quit [Quit: Leaving...]
20:02
fowlduck has joined #crystal-lang
20:10
hangyas_ has quit [Quit: hangyas_]
20:16
sdogruyol has joined #crystal-lang
20:20
<
crystal-gh >
crystal/master 3acd6b9 Jonne Haß: TCPServer: close(2) may reset errno, ensure raising the correct error
20:20
<
crystal-gh >
crystal/master 488f14c Jonne Haß: Don't hardcode server ports in specs...
20:21
<
[spoiler] >
Is there a specific reason why we can't do `sizeof(var)` but can do `sizeof(typeof(var))`? I know they're not identical, but the typeof step could be intermediate, or is it on purpose like this, so people don't accidentally use `sizeof` instead of #size or #length?
20:28
<
jhass >
well, actually needing that construct is very rare
20:28
<
jhass >
and every shortcut you add makes something less coherent and harder to explain
20:28
<
[spoiler] >
I know, I was just curious :P
20:29
<
[spoiler] >
jhass: ok, I'm sold on that last one :)
20:33
<
jhass >
also it's hard to find the right balance between special cases and intuitive behavior. Removing special cases is hard, adding them is comparably easy. So it's often better to start out with the less intuitive and more explicit behavior (and yes, those are actually orthogonal properties, just not always), identify the common patterns and judge whether making them shorter is worth it
20:38
leafybasil has quit [Read error: Connection reset by peer]
20:39
leafybasil has joined #crystal-lang
20:42
fowlduck has quit [Remote host closed the connection]
20:46
<
[spoiler] >
Hmm. Is there a tool to get the memory "layout" (with or without alignment, doesn't matter) of a class? Again, I'm just curious :P
20:53
<
jhass >
crystal tool hierarchy shows the sizes of instance vars, not sure if the order is significant there, but I'd even assume so
20:58
<
sdogruyol >
jhass: isnt it a bit verbose?
20:59
<
jhass >
send a PR if you have a great idea for formatting it differently
21:00
<
sdogruyol >
jhass: wish i had an idea for that :P
21:02
fowlduck has joined #crystal-lang
21:31
sdogruyol has quit [Remote host closed the connection]
21:43
A124 has quit [Quit: '']
21:51
A124 has joined #crystal-lang
21:55
NeverDie has quit [Ping timeout: 268 seconds]
22:01
NeverDie has joined #crystal-lang
22:03
NeverDie has quit [Max SendQ exceeded]
22:03
NeverDie has joined #crystal-lang
22:07
greengriminal has quit [Quit: Leaving]
22:19
fowlduck has quit [Remote host closed the connection]
22:25
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
22:34
BlaXpirit has quit [Quit: Konversation]
22:39
BlaXpirit|m has joined #crystal-lang
22:48
A124 has quit [Quit: '']
22:48
A124 has joined #crystal-lang
22:59
tdc has quit [Ping timeout: 256 seconds]