00:04
ismaelga has joined #crystal-lang
00:05
<
crystal-gh >
[crystal] yyyc514 opened pull request #632: Int#to_s should edge case 1 also (master...int_to_s_edge_cases)
http://git.io/vJ9wE
00:06
<
jeromegn >
>> 0x000000
00:06
<
DeBot >
jeromegn: 0
00:07
<
jeromegn >
>> 0x00001
00:07
<
DeBot >
jeromegn: 1
00:07
<
jeromegn >
>> 0xFFFFFF
00:07
<
DeBot >
jeromegn: 16777215
00:07
ismael has joined #crystal-lang
00:08
ismael is now known as Guest78
00:08
ismaelga has quit [Read error: Connection reset by peer]
00:12
ismaelga has joined #crystal-lang
00:14
<
DeBot >
jeromegn: 2
00:15
Guest78 has quit [Ping timeout: 246 seconds]
00:15
<
DeBot >
jeromegn: 255
00:18
<
DeBot >
jeromegn: 17
00:27
bcardiff has joined #crystal-lang
00:29
bcardiff has quit [Client Quit]
00:34
<
Dreamer3 >
any easy way to get stats on memory allocation inside crystal?
01:08
Cidan is now known as zz_Cidan
01:12
bcardiff has joined #crystal-lang
01:27
bcardiff has quit [Quit: Leaving.]
01:36
<
Dreamer3 >
any easy way to get stats on memory allocation inside crystal?
01:48
<
crystal-gh >
[crystal] michelboaventura opened pull request #634: Doc about accessing not allocated array's element (master...master)
http://git.io/vJ9hB
01:52
ismael has joined #crystal-lang
01:52
ismael is now known as Guest45546
01:55
ismaelga has quit [Ping timeout: 272 seconds]
02:13
ponga has joined #crystal-lang
02:37
ismaelga has joined #crystal-lang
02:40
Guest45546 has quit [Ping timeout: 256 seconds]
02:44
<
fowl >
>> (x = false) && p 1
02:44
<
DeBot >
fowl: Sorry, that took too long.
02:44
<
DeBot >
fowl: Error in line 3: undefined local variable or method 'p1'
02:44
<
fowl >
>> (x = false) && p 1
02:44
<
DeBot >
fowl: false
02:57
kulelu88 has joined #crystal-lang
03:14
willlll has quit [Quit: willlll]
03:22
ismaelga has quit [Remote host closed the connection]
03:22
vikaton has joined #crystal-lang
03:24
vikaton has quit [Client Quit]
03:33
DerisiveLogic has joined #crystal-lang
03:53
HakanD___ has joined #crystal-lang
03:53
HakanD___ has quit [Client Quit]
03:54
HakanD___ has joined #crystal-lang
03:56
<
Dreamer3 >
no array slice methods?
04:23
ismaelga has joined #crystal-lang
04:29
ismaelga has quit [Ping timeout: 272 seconds]
04:33
k2b6s9j has joined #crystal-lang
04:34
<
k2b6s9j >
hey guys, i'm having some issues linking a library for a binding. can someone help?
04:44
bcardiff has joined #crystal-lang
04:45
<
havenwood >
k2b6s9j: Gist the problem you're running into?
05:00
<
k2b6s9j >
I'll be right back. It appears part of the issue may be that I'm using OS X and not Linux. I'll reboot my machine and see if that makes a difference.
05:02
DerisiveLogic has quit [Remote host closed the connection]
05:02
DerisiveLogic has joined #crystal-lang
05:25
JBat has quit [Ping timeout: 250 seconds]
05:26
havenn has joined #crystal-lang
05:29
havenwood has quit [Ping timeout: 256 seconds]
05:35
JBat has joined #crystal-lang
05:44
DeBot has quit [Read error: Connection reset by peer]
05:46
kulelu88 has quit [Quit: Leaving]
06:01
ponga has quit [Remote host closed the connection]
06:15
bcardiff has quit [Quit: Leaving.]
06:26
ismaelga has joined #crystal-lang
06:29
havenwood has joined #crystal-lang
06:31
ismaelga has quit [Ping timeout: 272 seconds]
06:32
ponga has joined #crystal-lang
06:33
ponga has quit [Read error: Connection reset by peer]
06:33
ponga has joined #crystal-lang
06:35
ponga has quit [Read error: No route to host]
06:35
ponga has joined #crystal-lang
06:37
ponga has quit [Read error: No route to host]
06:37
panga has joined #crystal-lang
06:39
panga has quit [Read error: No route to host]
06:39
ponga has joined #crystal-lang
06:40
ponga has quit [Read error: Connection reset by peer]
06:41
panga has joined #crystal-lang
06:42
ponga has joined #crystal-lang
06:42
panga has quit [Read error: No route to host]
06:44
ponga has quit [Read error: No route to host]
06:44
ponga has joined #crystal-lang
06:46
ponga has quit [Read error: Connection reset by peer]
06:46
panga has joined #crystal-lang
06:48
ponga has joined #crystal-lang
06:48
panga has quit [Read error: No route to host]
06:49
ponga has quit [Read error: No route to host]
06:50
ponga has joined #crystal-lang
06:51
ponga has quit [Read error: No route to host]
06:51
ponga has joined #crystal-lang
06:53
panga has joined #crystal-lang
06:53
ponga has quit [Read error: No route to host]
06:55
panga has quit [Read error: No route to host]
06:55
ponga has joined #crystal-lang
06:57
ponga has quit [Read error: No route to host]
06:57
ponga has joined #crystal-lang
06:58
ponga has quit [Read error: No route to host]
06:59
ponga has joined #crystal-lang
07:00
ponga has quit [Read error: No route to host]
07:01
panga has joined #crystal-lang
07:02
panga has quit [Read error: No route to host]
07:02
ponga has joined #crystal-lang
07:04
Ven has joined #crystal-lang
07:05
HakanD___ has quit [Quit: Be back later ...]
07:05
Ven has quit [Read error: Connection reset by peer]
07:14
willlll has joined #crystal-lang
07:25
<
Dreamer3 >
why would rebooting help
07:28
ismaelga has joined #crystal-lang
07:29
HakanD___ has joined #crystal-lang
07:30
strcmp2 has quit [Ping timeout: 240 seconds]
07:30
<
fowl >
what if you rebooted into a different operating system :o
07:32
ismaelga has quit [Ping timeout: 264 seconds]
07:33
ponga has quit [Read error: No route to host]
07:33
ponga has joined #crystal-lang
07:35
ponga has quit [Read error: No route to host]
07:35
ponga has joined #crystal-lang
07:37
<
Dreamer3 >
>> Array(Int).new()
07:37
ponga has quit [Read error: Connection reset by peer]
07:37
panga has joined #crystal-lang
07:38
<
Dreamer3 >
where debot
07:38
panga has quit [Read error: No route to host]
07:39
ponga has joined #crystal-lang
07:40
ponga has quit [Read error: No route to host]
07:41
ponga has joined #crystal-lang
07:42
ponga has quit [Read error: No route to host]
07:42
ponga has joined #crystal-lang
07:44
ponga has quit [Read error: Connection reset by peer]
07:44
panga has joined #crystal-lang
07:45
willlll has quit [Quit: willlll]
07:46
ponga has joined #crystal-lang
07:46
panga has quit [Read error: No route to host]
07:47
ponga has quit [Read error: No route to host]
07:48
ponga has joined #crystal-lang
07:50
ponga has quit [Read error: Connection reset by peer]
07:50
panga has joined #crystal-lang
07:51
panga has quit [Read error: No route to host]
07:52
ponga has joined #crystal-lang
07:53
vegai has joined #crystal-lang
07:53
ponga has quit [Read error: Connection reset by peer]
07:53
ponga has joined #crystal-lang
07:55
ponga has quit [Read error: No route to host]
07:55
ponga has joined #crystal-lang
07:57
ponga has quit [Read error: No route to host]
07:57
panga has joined #crystal-lang
07:58
panga has quit [Read error: No route to host]
07:59
ponga has joined #crystal-lang
08:00
DeBot has joined #crystal-lang
08:00
ponga has quit [Read error: No route to host]
08:01
ponga has joined #crystal-lang
08:02
ponga has quit [Read error: No route to host]
08:02
ponga has joined #crystal-lang
08:03
DerisiveLogic has quit [Remote host closed the connection]
08:04
panga has joined #crystal-lang
08:05
ponga has quit [Read error: No route to host]
08:05
havenwood has quit [Ping timeout: 276 seconds]
08:06
panga has quit [Read error: No route to host]
08:06
ponga has joined #crystal-lang
08:08
ponga has quit [Read error: No route to host]
08:08
ponga has joined #crystal-lang
08:10
ponga has quit [Read error: Connection reset by peer]
08:10
panga has joined #crystal-lang
08:11
panga has quit [Read error: No route to host]
08:12
Ven has joined #crystal-lang
08:12
ponga has joined #crystal-lang
08:13
ponga has quit [Read error: No route to host]
08:14
ponga has joined #crystal-lang
08:14
Ven has quit [Client Quit]
08:15
ponga has quit [Read error: No route to host]
08:15
ponga has joined #crystal-lang
08:17
ponga has quit [Read error: No route to host]
08:17
ponga has joined #crystal-lang
08:18
Ven has joined #crystal-lang
08:18
ponga has quit [Read error: Connection reset by peer]
08:19
ponga has joined #crystal-lang
08:20
ponga has quit [Read error: No route to host]
08:21
ponga has joined #crystal-lang
08:22
ponga has quit [Read error: No route to host]
08:24
ponga has joined #crystal-lang
08:26
ponga has quit [Read error: No route to host]
08:26
ponga has joined #crystal-lang
08:28
ponga has quit [Read error: No route to host]
08:28
ponga has joined #crystal-lang
08:28
ismaelga has joined #crystal-lang
08:29
ponga has quit [Read error: No route to host]
08:30
ponga has joined #crystal-lang
08:31
ponga has quit [Read error: No route to host]
08:32
ponga has joined #crystal-lang
08:33
ponga has quit [Read error: No route to host]
08:33
ismaelga has quit [Ping timeout: 255 seconds]
08:33
ponga has joined #crystal-lang
08:35
ponga has quit [Read error: Connection reset by peer]
08:35
panga has joined #crystal-lang
08:37
panga has quit [Read error: Connection reset by peer]
08:37
ponga has joined #crystal-lang
08:38
ponga has quit [Read error: No route to host]
08:39
ponga has joined #crystal-lang
08:40
ponga has quit [Read error: Connection reset by peer]
08:41
ponga has joined #crystal-lang
08:42
ponga has quit [Read error: No route to host]
08:42
ponga has joined #crystal-lang
08:44
ponga has quit [Read error: No route to host]
08:44
panga has joined #crystal-lang
08:46
panga has quit [Read error: Connection reset by peer]
08:46
ponga has joined #crystal-lang
08:48
ponga has quit [Read error: No route to host]
08:50
ponga has joined #crystal-lang
08:51
panga has joined #crystal-lang
08:52
ponga has quit [Read error: Connection reset by peer]
08:53
panga has quit [Read error: Connection reset by peer]
08:53
ponga has joined #crystal-lang
08:55
ponga has quit [Read error: Connection reset by peer]
08:55
ponga has joined #crystal-lang
08:57
ponga has quit [Read error: Connection reset by peer]
08:57
panga has joined #crystal-lang
08:58
jhass has quit [*.net *.split]
08:58
drizz has quit [*.net *.split]
08:58
ryanf has quit [*.net *.split]
08:58
panga has quit [Read error: Connection reset by peer]
08:59
ponga has joined #crystal-lang
08:59
leafybasil has quit [Remote host closed the connection]
09:00
ponga has quit [Read error: No route to host]
09:00
jhass has joined #crystal-lang
09:00
drizz has joined #crystal-lang
09:00
ryanf has joined #crystal-lang
09:00
ponga has joined #crystal-lang
09:02
panga has joined #crystal-lang
09:03
ponga has quit [Read error: Connection reset by peer]
09:04
panga has quit [Read error: Connection reset by peer]
09:04
ponga has joined #crystal-lang
09:06
ponga has quit [Read error: No route to host]
09:06
panga has joined #crystal-lang
09:08
panga has quit [Read error: Connection reset by peer]
09:08
ponga has joined #crystal-lang
09:09
ponga has quit [Read error: No route to host]
09:10
ponga has joined #crystal-lang
09:11
ponga has quit [Read error: No route to host]
09:12
ponga has joined #crystal-lang
09:12
BlaXpirit has joined #crystal-lang
09:13
ponga has quit [Read error: No route to host]
09:13
ponga has joined #crystal-lang
09:14
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:15
ponga has quit [Read error: No route to host]
09:15
ponga has joined #crystal-lang
09:17
strcmp1 has joined #crystal-lang
09:17
ponga has quit [Read error: Connection reset by peer]
09:17
ponga has joined #crystal-lang
09:18
ponga has quit [Read error: No route to host]
09:18
leafybasil has joined #crystal-lang
09:19
ponga has joined #crystal-lang
09:20
ponga has quit [Read error: No route to host]
09:21
ponga has joined #crystal-lang
09:21
leafybasil has quit [Read error: Connection reset by peer]
09:22
leafybasil has joined #crystal-lang
09:22
ponga has quit [Read error: Connection reset by peer]
09:22
ponga has joined #crystal-lang
09:24
ponga has quit [Read error: Connection reset by peer]
09:24
ponga has joined #crystal-lang
09:26
ponga has quit [Read error: Connection reset by peer]
09:26
panga has joined #crystal-lang
09:28
panga has quit [Read error: Connection reset by peer]
09:28
ponga has joined #crystal-lang
09:30
ponga has quit [Read error: Connection reset by peer]
09:30
panga has joined #crystal-lang
09:30
ismaelga has joined #crystal-lang
09:31
panga has quit [Read error: Connection reset by peer]
09:32
ponga has joined #crystal-lang
09:33
ponga has quit [Read error: No route to host]
09:33
ponga has joined #crystal-lang
09:35
ponga has quit [Read error: No route to host]
09:35
ismaelga has quit [Ping timeout: 255 seconds]
09:35
ponga has joined #crystal-lang
09:36
ponga has quit [Read error: No route to host]
09:37
ponga has joined #crystal-lang
09:38
ponga has quit [Read error: No route to host]
09:39
ponga has joined #crystal-lang
09:40
ponga has quit [Read error: No route to host]
09:40
ponga has joined #crystal-lang
09:42
ponga has quit [Read error: No route to host]
09:42
ponga has joined #crystal-lang
09:44
ponga has quit [Read error: No route to host]
09:44
ponga has joined #crystal-lang
09:46
ponga has quit [Read error: No route to host]
09:46
ponga has joined #crystal-lang
09:47
ponga has quit [Read error: No route to host]
09:48
ponga has joined #crystal-lang
09:49
ponga has quit [Read error: No route to host]
09:49
ponga has joined #crystal-lang
09:51
ponga has quit [Read error: No route to host]
09:51
ponga has joined #crystal-lang
09:53
ponga has quit [Read error: Connection reset by peer]
09:53
ponga has joined #crystal-lang
09:55
ponga has quit [Read error: No route to host]
09:55
ponga has joined #crystal-lang
09:56
ponga has quit [Read error: No route to host]
09:57
ponga has joined #crystal-lang
09:58
ponga has quit [Read error: No route to host]
09:59
ponga has joined #crystal-lang
10:00
ponga has quit [Read error: Connection reset by peer]
10:00
panga has joined #crystal-lang
10:01
aemadrid has joined #crystal-lang
10:02
panga has quit [Read error: Connection reset by peer]
10:02
ponga has joined #crystal-lang
10:04
panga has joined #crystal-lang
10:04
ponga has quit [Read error: Connection reset by peer]
10:05
panga has quit [Read error: No route to host]
10:06
ponga has joined #crystal-lang
10:12
leafybasil has quit []
10:14
strcmp1 has quit [Ping timeout: 250 seconds]
10:31
ismaelga has joined #crystal-lang
10:33
strcmp1 has joined #crystal-lang
10:33
blaix has joined #crystal-lang
10:35
ismaelga has quit [Ping timeout: 240 seconds]
10:37
ponga has quit [Read error: Connection reset by peer]
10:37
panga has joined #crystal-lang
10:39
panga has quit [Read error: No route to host]
10:39
ponga has joined #crystal-lang
10:40
ponga has quit [Read error: No route to host]
10:41
ponga has joined #crystal-lang
10:42
ponga has quit [Read error: No route to host]
10:43
ponga has joined #crystal-lang
10:44
ponga has quit [Read error: Connection reset by peer]
10:45
panga has joined #crystal-lang
10:46
panga has quit [Read error: Connection reset by peer]
10:46
ponga has joined #crystal-lang
10:47
Ven_ has joined #crystal-lang
10:48
ponga has quit [Read error: No route to host]
10:48
ponga has joined #crystal-lang
10:49
ponga has quit [Read error: No route to host]
10:50
ponga has joined #crystal-lang
10:51
ponga has quit [Read error: No route to host]
10:52
ponga has joined #crystal-lang
10:53
ponga has quit [Read error: Connection reset by peer]
10:54
ponga has joined #crystal-lang
10:55
ponga has quit [Read error: No route to host]
10:55
ponga has joined #crystal-lang
10:57
ponga has quit [Read error: No route to host]
10:57
ponga has joined #crystal-lang
10:59
ponga has quit [Read error: Connection reset by peer]
10:59
ponga has joined #crystal-lang
11:00
ponga has quit [Read error: No route to host]
11:01
ponga has joined #crystal-lang
11:02
ponga has quit [Read error: No route to host]
11:03
ponga has joined #crystal-lang
11:04
ponga has quit [Read error: Connection reset by peer]
11:04
ponga has joined #crystal-lang
11:06
ponga has quit [Read error: No route to host]
11:06
ponga has joined #crystal-lang
11:08
ponga has quit [Read error: Connection reset by peer]
11:08
panga has joined #crystal-lang
11:10
panga has quit [Read error: Connection reset by peer]
11:10
ponga has joined #crystal-lang
11:12
ponga has quit [Read error: Connection reset by peer]
11:12
panga has joined #crystal-lang
11:13
panga has quit [Read error: No route to host]
11:14
ponga has joined #crystal-lang
11:15
ponga has quit [Read error: No route to host]
11:15
panga has joined #crystal-lang
11:17
panga has quit [Read error: No route to host]
11:17
ponga has joined #crystal-lang
11:18
blaix has quit [Quit: Leaving.]
11:19
ponga has quit [Read error: No route to host]
11:19
ponga has joined #crystal-lang
11:20
ponga has quit [Read error: No route to host]
11:21
ponga has joined #crystal-lang
11:22
ponga has quit [Read error: No route to host]
11:23
ponga has joined #crystal-lang
11:24
ponga has quit [Read error: No route to host]
11:24
ponga has joined #crystal-lang
11:26
ponga has quit [Read error: No route to host]
11:26
ponga has joined #crystal-lang
11:28
ponga has quit [Read error: Connection reset by peer]
11:28
panga has joined #crystal-lang
11:29
panga has quit [Read error: No route to host]
11:30
ponga has joined #crystal-lang
11:31
ponga has quit [Read error: No route to host]
11:32
ponga has joined #crystal-lang
11:33
ponga has quit [Read error: No route to host]
11:33
ponga has joined #crystal-lang
11:35
ponga has quit [Read error: Connection reset by peer]
11:35
ponga has joined #crystal-lang
11:37
ponga has quit [Read error: No route to host]
11:37
ponga has joined #crystal-lang
11:38
ponga has quit [Read error: No route to host]
11:39
ponga has joined #crystal-lang
11:39
<
BlaXpirit >
ponga pls
11:41
ponga has quit [Read error: Connection reset by peer]
11:41
panga has joined #crystal-lang
11:42
panga has quit [Read error: No route to host]
11:42
ponga has joined #crystal-lang
11:44
ponga has quit [Read error: No route to host]
11:44
ponga has joined #crystal-lang
11:46
ponga has quit [Read error: Connection reset by peer]
11:46
ponga has joined #crystal-lang
11:48
ponga has quit [Read error: Connection reset by peer]
11:50
ponga has joined #crystal-lang
11:51
ponga has quit [Read error: Connection reset by peer]
11:51
ponga has joined #crystal-lang
11:53
ponga has quit [Read error: Connection reset by peer]
11:53
panga has joined #crystal-lang
11:55
panga has quit [Read error: No route to host]
11:55
ponga has joined #crystal-lang
11:56
ponga has quit [Read error: No route to host]
11:57
ponga has joined #crystal-lang
11:59
ponga has quit [Read error: Connection reset by peer]
11:59
panga has joined #crystal-lang
12:00
panga has quit [Read error: No route to host]
12:01
ponga has joined #crystal-lang
12:02
ponga has quit [Read error: Connection reset by peer]
12:02
ponga has joined #crystal-lang
12:04
ponga has quit [Read error: Connection reset by peer]
12:04
panga has joined #crystal-lang
12:06
panga has quit [Read error: Connection reset by peer]
12:06
ponga has joined #crystal-lang
12:07
aemadrid has quit [Quit: Connection closed for inactivity]
12:07
ponga has quit [Read error: No route to host]
12:08
ponga has joined #crystal-lang
12:10
ponga has quit [Read error: Connection reset by peer]
12:10
panga has joined #crystal-lang
12:11
panga has quit [Read error: No route to host]
12:12
ponga has joined #crystal-lang
12:13
ponga has quit [Read error: No route to host]
12:13
ponga has joined #crystal-lang
12:15
ponga has quit [Read error: No route to host]
12:15
ponga has joined #crystal-lang
12:17
ponga has quit [Read error: Connection reset by peer]
12:17
panga has joined #crystal-lang
12:19
panga has quit [Read error: No route to host]
12:19
ponga has joined #crystal-lang
12:21
ponga has quit [Read error: Connection reset by peer]
12:21
ponga has joined #crystal-lang
12:23
ponga has quit [Read error: Connection reset by peer]
12:23
panga has joined #crystal-lang
12:25
panga has quit [Read error: Connection reset by peer]
12:25
ponga has joined #crystal-lang
12:26
ponga has quit [Read error: No route to host]
12:26
ponga has joined #crystal-lang
12:28
ponga has quit [Read error: Connection reset by peer]
12:28
panga has joined #crystal-lang
12:30
panga has quit [Read error: Connection reset by peer]
12:30
ponga has joined #crystal-lang
12:31
ponga has quit [Read error: No route to host]
12:32
ponga has joined #crystal-lang
12:33
ponga has quit [Read error: No route to host]
12:34
ponga has joined #crystal-lang
12:35
ponga has quit [Read error: Connection reset by peer]
12:35
panga has joined #crystal-lang
12:37
ismaelga has joined #crystal-lang
12:37
panga has quit [Read error: Connection reset by peer]
12:37
ponga has joined #crystal-lang
12:39
ponga has quit [Read error: Connection reset by peer]
12:39
panga has joined #crystal-lang
12:41
panga has quit [Read error: Connection reset by peer]
12:41
ponga has joined #crystal-lang
12:42
ponga has quit [Read error: Connection reset by peer]
12:43
panga has joined #crystal-lang
12:43
HakanD____ has joined #crystal-lang
12:44
panga has quit [Read error: No route to host]
12:44
ponga has joined #crystal-lang
12:45
ismaelga has quit [Remote host closed the connection]
12:46
ponga has quit [Read error: Connection reset by peer]
12:46
panga has joined #crystal-lang
12:47
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:47
HakanD___ has quit [Ping timeout: 244 seconds]
12:48
panga has quit [Read error: No route to host]
12:48
ponga has joined #crystal-lang
12:49
ponga has quit [Read error: No route to host]
12:50
ponga has joined #crystal-lang
12:51
ponga has quit [Read error: Connection reset by peer]
12:52
panga has joined #crystal-lang
12:53
bcardiff has joined #crystal-lang
12:53
panga has quit [Read error: No route to host]
12:53
Ven_ has joined #crystal-lang
12:53
ponga has joined #crystal-lang
12:54
JBat has quit [Quit: Computer has gone to sleep.]
12:55
ponga has quit [Read error: No route to host]
12:55
<
jeromegn >
hye there
12:55
ponga has joined #crystal-lang
12:55
<
jeromegn >
so, I’m running my program through Valgrind to figure out why I get a error 11
12:56
<
jeromegn >
I’m fetching values from my BSON object. It works fine the first time around, but the second time, nope! I get Invalid read of size 4
12:56
ponga has quit [Read error: No route to host]
12:57
<
jeromegn >
so I’m thinking it’s probably the Iterator
12:57
ponga has joined #crystal-lang
12:58
<
jeromegn >
def [](key : String); iterator :: LibBSON::Iterator*; ...
12:58
<
jeromegn >
seems like the second time around, that iterator variable (a pointer) has a weird address
12:58
<
jeromegn >
Pointer(LibBSON::Iterator)@0x1
12:58
ponga has quit [Read error: No route to host]
12:58
<
jeromegn >
I probably need to do something different to get a new pointer
12:59
ponga has joined #crystal-lang
12:59
ismaelga has joined #crystal-lang
12:59
Ven_ has quit [Ping timeout: 276 seconds]
13:00
ponga has quit [Read error: Connection reset by peer]
13:00
HakanD____ has quit [Read error: Connection reset by peer]
13:01
ponga has joined #crystal-lang
13:02
ponga has quit [Read error: No route to host]
13:02
ismaelga has quit [Remote host closed the connection]
13:02
ponga has joined #crystal-lang
13:03
ismaelga has joined #crystal-lang
13:04
ponga has quit [Read error: Connection reset by peer]
13:04
ponga has joined #crystal-lang
13:05
ponga has quit [Read error: Connection reset by peer]
13:06
ponga has joined #crystal-lang
13:07
ponga has quit [Read error: Connection reset by peer]
13:08
ponga has joined #crystal-lang
13:09
ponga has quit [Read error: Connection reset by peer]
13:10
ponga has joined #crystal-lang
13:11
ponga has quit [Read error: No route to host]
13:12
ponga has joined #crystal-lang
13:13
ponga has quit [Read error: No route to host]
13:13
ponga has joined #crystal-lang
13:15
ponga has quit [Read error: No route to host]
13:15
ponga has joined #crystal-lang
13:17
ponga has quit [Read error: No route to host]
13:17
ponga has joined #crystal-lang
13:19
ponga has quit [Read error: Connection reset by peer]
13:19
panga has joined #crystal-lang
13:20
<
jhass >
jeromegn: iterator :: LibBSON::Iterator* doesn't null it, it just declares the variable pointing to whatever is in memory at that place in time, you need to initialize it
13:20
panga has quit [Read error: Connection reset by peer]
13:21
<
jeromegn >
yea, I did that and it seems to work
13:21
<
jeromegn >
now I have another issue though
13:21
ponga has joined #crystal-lang
13:21
<
jeromegn >
which I didn’t have before
13:21
<
jeromegn >
Jump to the invalid address stated on the next line
13:21
<
jeromegn >
investigating...
13:23
ponga has quit [Client Quit]
13:23
<
jhass >
sounds still like something is pointing to junk
13:24
<
jeromegn >
I’m doing this: def self.from_bson(bson : LibBSON::Value); String.new(bson.value.v_utf8.str); end
13:24
<
jeromegn >
in class String
13:25
<
jeromegn >
that’s the line where it bombs
13:25
havenwood has joined #crystal-lang
13:28
<
jhass >
sounds like either your struct is configured incorrectly or the data it contains is simply junk
13:36
<
jeromegn >
Address 0x400000000
13:36
<
jeromegn >
that looks like a problematic address
13:37
ismaelga has quit [Remote host closed the connection]
13:38
ismaelga has joined #crystal-lang
13:40
ismaelga has quit [Remote host closed the connection]
13:43
<
jeromegn >
I did a lot of refactoring, no tests, broke a few things. my bad
13:54
<
jeromegn >
the struct looks alright, I can access all its properties
13:55
<
jeromegn >
I might not have created it properly though
14:19
ssvb has quit [Ping timeout: 246 seconds]
14:29
ismaelga has joined #crystal-lang
14:37
<
jeromegn >
I’m not entirely sure what’s up. what reference I’m losing here..
14:38
<
jeromegn >
I just removed the “@“ in front of “@doc” and now it just works...
14:38
<
jeromegn >
I’m not sure I understand this correctly..
14:40
<
jhass >
jeromegn: mh, that sounds like you still access garbage somewhere
14:41
<
jhass >
you removed the @ from both occurrences I assume
14:41
<
jhass >
so you changed the stack layout
14:41
<
jhass >
which means there's other garbage now
14:41
<
jhass >
that might happen to not crash it
14:41
<
jhass >
so LibBSON::Iterator is a struct?
14:41
<
jeromegn >
empty struct
14:42
<
jeromegn >
it used to be an alias
14:42
<
jeromegn >
but I couldn’t instantiate it
14:42
<
jeromegn >
alias Iterator = Void
14:42
<
jhass >
okay, then that's your issue
14:42
<
jhass >
the library for sure doesn't have an empty struct
14:42
<
jeromegn >
it has a struct, but its structure is private ;)
14:43
<
jeromegn >
well considered private by the MongoDB folks
14:43
<
jeromegn >
since it may change
14:43
<
jeromegn >
I can obviously find the details in there
14:43
<
jhass >
yeah, you at least need the correct size
14:44
<
jeromegn >
interesting
14:44
<
jeromegn >
a void alias would not work?
14:44
<
jeromegn >
if I can avoid defining it as a struct that could work for me
14:44
<
jeromegn >
since I never need to access its internal structure
14:45
<
jhass >
you need to allocate the right amount of memory
14:47
<
jhass >
so easiest is to write a little C program that prints sizeof(bson_iter_t) and then just struct IterT; _data : UInt8[42] end
14:48
<
jeromegn >
I just translated the stuff to the struct
14:48
<
jeromegn >
I guess that’ll work for now
14:48
<
jeromegn >
I’m keeping your trick in mind though
14:49
<
jeromegn >
learning so much… my interpreted world was so comfy!
14:53
<
jeromegn >
jhass: what are you working on? I like DeBot
14:54
<
jhass >
mostly private stuff atm ;)
14:57
bcardiff has quit [Quit: Leaving.]
14:59
<
jeromegn >
hehe alright
15:00
<
jeromegn >
given I’m extending Time, String, etc. with from_bson and to_bson methods, where should I put these files in my project? outside src/? I have a libs/ folder with the C bindings, but I’m not sure where the class extensions belong!
15:00
<
jeromegn >
I guess at the root of src/
15:00
<
jeromegn >
src/string.cr
15:28
bcardiff has joined #crystal-lang
15:31
<
jhass >
everything should be inside src
15:31
<
jhass >
libs is for dependencies
15:31
<
jeromegn >
I shall move it too then
15:33
<
jeromegn >
I guess I can rename it to lib_bson.cr
15:33
<
jhass >
I'd say src/bson/core_ext/ for the core extensions
15:44
<
jeromegn >
ah this is so clean now
15:44
<
jeromegn >
thanks for all the advice
15:46
<
jeromegn >
any way around that ugliness? @[Link("libbson-1.0")]
15:46
<
jeromegn >
I bet that wouldn’t work on many setups
15:47
<
jeromegn >
I just installed the libbson via homebrew and that’s what I got
15:47
<
jeromegn >
I could symlink it
15:49
<
BlaXpirit >
jeromegn, shouldn't it be just "bson"?
15:50
<
jeromegn >
I’m not sure
15:50
<
jeromegn >
ld: library not found for -lbson
15:50
<
BlaXpirit >
i have libcsfml-graphics so i link "csfml-graphics"
15:51
<
BlaXpirit >
is it... liblibbson?
15:51
<
jeromegn >
libbson-1.0 -> ../Cellar/libbson/1.1.0/include/libbson-1.0
15:51
<
jeromegn >
that’s in my /usr/local/include
15:51
<
BlaXpirit >
it's not about include, it's about .so
15:52
DeBot has quit [Ping timeout: 272 seconds]
15:52
<
jeromegn >
where should I look for those^
15:53
<
jeromegn >
I got dylib
15:53
<
jeromegn >
that’s about it
15:54
<
BlaXpirit >
ooh sorry. on mac it is indeed .dylib
15:54
<
jeromegn >
libbson-1.0.dylib :(
15:55
<
jeromegn >
I’m sure if I built it from source, it would work better
15:55
<
jeromegn >
I mean, it would have the right name
15:56
<
BlaXpirit >
latest version seems to be 1.1
15:56
<
BlaXpirit >
and there definitely should be a versionless .dylib
15:56
<
jeromegn >
yes indeed
15:56
<
jeromegn >
I’ll build from source I think
15:56
<
jhass >
it doesn't find it with @[Link("bson")] ?
15:57
<
BlaXpirit >
jeromegn, well, i have strange news for you
15:57
<
BlaXpirit >
i just installed libbson 1.1 on linux
15:57
<
BlaXpirit >
and i have now a file libbson-1.0.so
15:57
<
jeromegn >
well that’s perfect
15:57
<
jeromegn >
I don’t need to change anything!
15:58
<
jeromegn >
that is indeed strange news
15:58
<
BlaXpirit >
this should work @[Link("bson-1.0")]
15:58
<
jeromegn >
it does indeed
15:58
<
BlaXpirit >
(i don't have versionless .so by the way)
16:01
ssvb has joined #crystal-lang
16:13
willlll has joined #crystal-lang
16:27
DerisiveLogic has joined #crystal-lang
16:29
blaix has joined #crystal-lang
16:30
DerisiveLogic has quit [Remote host closed the connection]
16:41
<
jeromegn >
ugh, again stumbling on Valgrind stuff
16:41
<
jeromegn >
I feel like I have defined all the structs correctly…
16:42
<
jeromegn >
this time “Invalid write of size 8"
16:42
<
jeromegn >
last time was read
16:44
JBat has joined #crystal-lang
17:00
DeBot has joined #crystal-lang
17:09
DeBot has quit [Ping timeout: 272 seconds]
17:11
jhass has quit [Quit: Bye]
17:14
ssvb has quit [Quit: Leaving]
17:17
jhass has joined #crystal-lang
17:21
jhass has quit [Ping timeout: 252 seconds]
17:25
jhass has joined #crystal-lang
17:34
ponga has joined #crystal-lang
17:54
ponga has quit [Quit: Leaving...]
17:58
bcardiff1 has joined #crystal-lang
18:01
bcardiff has quit [Ping timeout: 264 seconds]
18:14
HakanD has joined #crystal-lang
18:23
kulelu88 has joined #crystal-lang
18:28
jhass has quit [Quit: Bye]
18:34
jhass has joined #crystal-lang
18:39
zz_Cidan is now known as Cidan
18:40
Cidan is now known as zz_Cidan
18:41
zz_Cidan is now known as Cidan
18:42
willlll has quit [Quit: willlll]
18:47
jhass has quit [*.net *.split]
18:47
drizz has quit [*.net *.split]
18:47
ryanf has quit [*.net *.split]
18:47
blaix has quit [*.net *.split]
18:49
blaix has joined #crystal-lang
18:49
jhass has joined #crystal-lang
18:49
drizz has joined #crystal-lang
18:49
ryanf has joined #crystal-lang
18:56
HakanD has quit [Quit: Be back later ...]
18:58
willlll has joined #crystal-lang
18:59
ismaelga has quit [Remote host closed the connection]
19:00
ismaelga has joined #crystal-lang
19:00
ismaelga has quit [Remote host closed the connection]
19:02
DerisiveLogic has joined #crystal-lang
19:05
willlll has quit [Quit: willlll]
19:18
blaix has quit [*.net *.split]
19:19
blaix has joined #crystal-lang
19:29
<
jeromegn >
should I assume the “char” c type translates to UInt8?
19:31
<
jhass >
jeromegn: yeah
19:32
<
jeromegn >
I really don’t know what can be causing my new valgrind error
19:37
JBat has quit [Quit: Computer has gone to sleep.]
19:39
shama has joined #crystal-lang
19:41
<
jeromegn >
why not Char?
19:44
<
jhass >
because we have a proper char type not to be abused for storing a byte
19:44
<
jhass >
and I see no obvious mistakes, assuming the referenced types you didn't show are defined correctly
19:44
<
fowl >
It looks good to me
19:45
<
jeromegn >
ok, I’ll keep digging
19:45
<
fowl >
Fwiw I couldn't wrap bson for Nim either
19:46
<
fowl >
Always some strange errot
19:46
<
jeromegn >
I tried using the Nim mongo lib 2 weeks ago. didn’t work :(
19:46
<
jeromegn >
couldn’t even get the tests to pass
19:46
<
jeromegn >
there are those weird instructions
19:46
<
jeromegn >
BSON_ALIGNED_BEGIN (8)
19:47
<
jeromegn >
define BSON_ALIGNED_BEGIN(_N)
19:47
<
jeromegn >
define BSON_ALIGNED_END(_N) __attribute__((aligned (_N)))
19:47
<
jeromegn >
I have no idea what they do
19:47
<
fowl >
Alignment can be an issue
19:49
<
jeromegn >
anything I can do about it
19:51
<
jhass >
do you need to access the fields of that struct?
19:51
<
jhass >
or even allocate it yourself?
19:51
DeBot has joined #crystal-lang
19:51
<
jeromegn >
there could be a way around it, maybe
19:52
<
jhass >
which of the two?
19:55
<
kulelu88 >
Is there a REST framework for Crystal?
19:55
<
kulelu88 >
I'd like to compare it to 2 python rest frameworks
19:55
<
jeromegn >
if I remove my structs definitions, I won’t be able to extend the core classes and will have to have a bunch of logic like checking types
19:55
<
jeromegn >
but I will give it a try
19:56
DeBot has quit [Ping timeout: 272 seconds]
19:56
<
jhass >
well, if it's not easier than figuring out what that macro is and whether we can emulate it in crystal... ;)
20:03
willlll has joined #crystal-lang
20:21
HakanD has joined #crystal-lang
20:23
<
jeromegn >
it’s probably easier haha
20:24
<
jeromegn >
alright, I have to go… going to work on that tomorrow.
20:24
waterlink has joined #crystal-lang
20:25
DerisiveLogic has quit [Remote host closed the connection]
20:27
<
fowl >
it seems that LLVM lets you specify alignment for structs/members
20:27
<
fowl >
so it just needs crystal support
20:43
<
jhass >
I know we already have @[Packed] or something
20:52
<
fowl >
Packed is diff than specifying an alignment afaik
20:52
<
fowl >
Maybe it works tho
20:59
<
jhass >
yeah, more regarding to "general infrastructure probably already exists"
21:00
<
fowl >
Surely easier to add @[packed(8)] than the whole packed attribute
21:02
bcardiff1 has quit [Quit: Leaving.]
21:07
BlaXpirit has quit [Quit: Quit Konversation]
21:12
<
crystal-gh >
crystal/master 347e5f3 Ary Borenszweig: Disallow empty C structs and unions. Fixes #633
21:12
<
crystal-gh >
crystal/master e0d9e62 Ary Borenszweig: Disallow Void types in C structs and unions fields
21:12
<
crystal-gh >
crystal/master a86874e Ary Borenszweig: Documented a bit of String
21:12
HakanD has quit [Quit: Be back later ...]
21:13
<
crystal-gh >
crystal/master 1815c73 Ary Borenszweig: Small correction in String docs
21:17
ismaelga has joined #crystal-lang
21:19
_havenn has joined #crystal-lang
21:21
havenwood has quit [Ping timeout: 244 seconds]
21:30
blaix has quit [Quit: Leaving.]
21:40
ismaelga has quit [Remote host closed the connection]
21:42
ismaelga has joined #crystal-lang
21:45
<
willlll >
with Range, why is it Range(B, E) instead of like Range(B, B) ? Why different types?
21:50
<
travis-ci >
manastech/crystal#2307 (master - a86874e : Ary Borenszweig): The build is still failing.
21:59
DerisiveLogic has joined #crystal-lang
22:05
<
jhass >
willlll: Int32...Int64, Int32..Float32 stuff like that can be useful
22:06
<
willlll >
ah, thanks
22:06
_havenn is now known as havenwood
22:08
<
travis-ci >
manastech/crystal#2308 (master - 1815c73 : Ary Borenszweig): The build was fixed.
22:22
<
crystal-gh >
[crystal] asterite closed pull request #632: Int#to_s performance (master...int_to_s_edge_cases)
http://git.io/vJ9wE
22:47
<
travis-ci >
manastech/crystal#2311 (master - 968e3eb : Ary Borenszweig): The build was broken.
22:50
DerisiveLogic has quit [Ping timeout: 245 seconds]
22:58
DerisiveLogic has joined #crystal-lang
22:58
DerisiveLogic has quit [Remote host closed the connection]
22:58
DerisiveLogic has joined #crystal-lang
23:01
DeBot has joined #crystal-lang
23:03
ismaelga has quit [Remote host closed the connection]
23:09
DeBot has quit [Ping timeout: 276 seconds]