00:11
greengriminal has quit [Quit: Leaving]
00:18
Philpax_ has joined #crystal-lang
02:32
fowlduck has quit [Remote host closed the connection]
02:40
fowlduck has joined #crystal-lang
03:02
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
04:26
min has joined #crystal-lang
04:42
min has quit [Ping timeout: 252 seconds]
05:24
krtv` has joined #crystal-lang
05:40
fowlduck has quit [Remote host closed the connection]
06:00
fowlduck has joined #crystal-lang
06:05
fowlduck has quit [Ping timeout: 248 seconds]
06:20
fowlduck has joined #crystal-lang
06:47
Philpax_ has quit [Ping timeout: 256 seconds]
07:17
pawnbox has joined #crystal-lang
07:46
pawnbox has quit [Remote host closed the connection]
07:47
pawnbox has joined #crystal-lang
08:01
pawnbox has quit [Remote host closed the connection]
08:01
pawnbox has joined #crystal-lang
08:11
pawnbox_ has joined #crystal-lang
08:12
fowlduck_ has joined #crystal-lang
08:15
fowlduck has quit [Read error: Connection reset by peer]
08:15
pawnbox has quit [Ping timeout: 240 seconds]
08:15
Guest51001 has quit [Ping timeout: 240 seconds]
08:16
toydestroyer has joined #crystal-lang
08:57
Guest98055 has joined #crystal-lang
09:12
<
crystal-gh >
[crystal] Thyra opened pull request #2152: Fix cookie expiration header (#2150) (master...master)
https://git.io/vgDC3
09:42
zodiak has joined #crystal-lang
09:44
mjblack has quit [Read error: Connection reset by peer]
09:44
zodiak_ has quit [Ping timeout: 248 seconds]
09:58
trapped has joined #crystal-lang
10:40
fowlduck_ has quit [Remote host closed the connection]
11:00
fowlduck has joined #crystal-lang
11:04
fowlduck has quit [Ping timeout: 240 seconds]
11:20
fowlduck has joined #crystal-lang
12:30
ponga has joined #crystal-lang
12:36
Philpax_ has joined #crystal-lang
12:44
thor77 has quit [Quit: Huh, that shouldn't happen]
13:40
Philpax_ has quit [Ping timeout: 276 seconds]
13:52
pawnbox_ has quit [Remote host closed the connection]
13:53
pawnbox has joined #crystal-lang
14:03
Bofu2U has quit [Read error: Connection reset by peer]
14:04
Bofu2U has joined #crystal-lang
14:20
fowlduck has quit [Remote host closed the connection]
14:20
mjblack has joined #crystal-lang
14:30
trapped_ has joined #crystal-lang
14:32
trapped has quit [Ping timeout: 256 seconds]
14:35
<
jokke >
i need some help writing c bindings
14:36
<
jokke >
i have a lib that uses a struct in a lot of places and i need to access one of its fields
14:36
<
jokke >
so i defined the struct in my lib
14:37
<
jokke >
the c functions that use the struct always get it by reference
14:37
<
crystal-gh >
[crystal] asterite closed pull request #2149: Improve Markdown (master...improve-markdown)
https://git.io/vg127
14:37
<
jokke >
so i wrote a class that wraps the lib struct, provides access to the field i need and implements to_unsafe as pointerof(@struct)
14:38
<
jokke >
something goes very wrong though. I'm not exactly sure what, but apparently the c lib can't make much sense out of the struct
14:39
<
jhass >
chances are you defined it wrongly
14:39
<
jhass >
access field = read it?
14:40
<
jokke >
i'll paste the code. one sec
14:40
<
jhass >
make sure the sizeof(struct foo) in C is the same as the sizeof(LibFoo::Foo) in Crystal
14:40
fowlduck has joined #crystal-lang
14:41
<
jokke >
ah could it be the Allocater*?
14:42
<
jokke >
wouldn't that make it a pointer to a pointer, or is it irrelevant
14:42
<
jokke >
since i'm not using it
14:43
<
jhass >
isn't out @buffer already defining a Pointer(Buffer), so pointerof(@buffer) makes a Pointer(Pointer(Buffer))? I don't remember
14:44
<
jokke >
but the compiler would surely tell me about it, right?
14:44
fowlduck has quit [Ping timeout: 240 seconds]
14:45
<
jokke >
it complains if i don't use the pointerof
14:46
<
jokke >
the code runs up until line 79 where i throw an exception
14:46
<
jokke >
so writing to the buffer seems to fail
14:47
<
jokke >
it doesn't fail
14:47
<
jokke >
just took out line 79
14:47
<
jokke >
and i get html output
15:00
fowlduck has joined #crystal-lang
16:02
<
crystal-gh >
[crystal] marceloboeira opened pull request #2153: Spec: Make it possible to use multiple formatters (master...multiple-formatters)
https://git.io/vgDXj
16:15
pawnbox has quit [Remote host closed the connection]
16:15
pawnbox has joined #crystal-lang
16:16
krtv` has quit [Remote host closed the connection]
16:16
pawnbox has quit [Remote host closed the connection]
16:17
pawnbox has joined #crystal-lang
17:06
krtv` has joined #crystal-lang
17:19
thor77_ has joined #crystal-lang
17:20
thor77_ is now known as thor77
17:22
pawnbox has quit [Remote host closed the connection]
17:22
pawnbox has joined #crystal-lang
17:28
pawnbox has quit [Ping timeout: 250 seconds]
17:59
pawnbox has joined #crystal-lang
18:00
fowlduck has quit [Remote host closed the connection]
18:01
pawnbox has quit [Remote host closed the connection]
18:02
pawnbox has joined #crystal-lang
18:20
fowlduck has joined #crystal-lang
18:24
fowlduck has quit [Ping timeout: 240 seconds]
18:40
fowlduck has joined #crystal-lang
18:58
Guest70_ has joined #crystal-lang
19:36
shama has joined #crystal-lang
20:08
<
crystal-gh >
crystal/master 2a1c38c Ary Borenszweig: Parser: parse `call(foo as Bar, Baz)` as `call((foo as Bar), Baz)`....
20:50
<
crystal-gh >
crystal/master 529fccf Ary Borenszweig: Added `IO#read_utf8_byte` and `IO#read_utf(slice : Slice(UInt8))`
20:50
<
crystal-gh >
crystal/master 9c59d1a Ary Borenszweig: Make sure `out x` declares x as a variable for macros
20:50
<
crystal-gh >
crystal/master da5a3d0 Ary Borenszweig: Changed `p` from one argument to a splat
20:51
<
crystal-gh >
[crystal] mmacia opened pull request #2154: fix parse responses that begins with \r\n (master...master)
https://git.io/vgyf4
21:31
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
21:40
fowlduck has quit [Remote host closed the connection]
21:57
pawnbox has quit [Remote host closed the connection]
21:57
pawnbox has joined #crystal-lang
21:58
pawnbox has quit [Remote host closed the connection]
21:58
pawnbox has joined #crystal-lang
22:00
fowlduck has joined #crystal-lang
22:04
pawnbox has quit [Ping timeout: 250 seconds]
22:05
fowlduck has quit [Ping timeout: 256 seconds]
22:20
fowlduck has joined #crystal-lang
22:23
<
jeromegn >
will that latest change allow to pass variables to macros?
22:24
<
jeromegn >
:sadpanda:
22:30
pawnbox has joined #crystal-lang
22:35
pawnbox has quit [Ping timeout: 260 seconds]
22:37
<
thor77 >
jeromegn: your irc-client supports emojis? oO
22:38
<
jeromegn >
well, not :sadpanda:, but yes. irccloud :)
22:38
<
jeromegn >
also embeds a bunch of stuff.
22:38
<
thor77 >
ah, already heard about that
22:39
<
thor77 >
seems like a bnc with some cool features
22:39
<
thor77 >
but not open source :(
22:41
<
jeromegn >
indeed, that's a bit sad :(
23:00
pawnbox has joined #crystal-lang
23:04
pawnbox has quit [Ping timeout: 264 seconds]
23:26
vikaton has joined #crystal-lang
23:30
pawnbox has joined #crystal-lang
23:34
pawnbox has quit [Ping timeout: 256 seconds]