jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.11.1 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
greengriminal has quit [Quit: Leaving]
Philpax_ has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
min has joined #crystal-lang
min has quit [Ping timeout: 252 seconds]
krtv` has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 248 seconds]
fowlduck has joined #crystal-lang
Philpax_ has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
fowlduck_ has joined #crystal-lang
fowlduck has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 240 seconds]
Guest51001 has quit [Ping timeout: 240 seconds]
toydestroyer has joined #crystal-lang
Guest98055 has joined #crystal-lang
<crystal-gh> [crystal] Thyra opened pull request #2152: Fix cookie expiration header (#2150) (master...master) https://git.io/vgDC3
zodiak has joined #crystal-lang
mjblack has quit [Read error: Connection reset by peer]
zodiak_ has quit [Ping timeout: 248 seconds]
trapped has joined #crystal-lang
fowlduck_ has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 240 seconds]
fowlduck has joined #crystal-lang
ponga has joined #crystal-lang
Philpax_ has joined #crystal-lang
thor77 has quit [Quit: Huh, that shouldn't happen]
Philpax_ has quit [Ping timeout: 276 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Bofu2U has quit [Read error: Connection reset by peer]
Bofu2U has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
mjblack has joined #crystal-lang
trapped_ has joined #crystal-lang
trapped has quit [Ping timeout: 256 seconds]
<jokke> hey
<jokke> i need some help writing c bindings
<jokke> i have a lib that uses a struct in a lot of places and i need to access one of its fields
<jokke> so i defined the struct in my lib
<jokke> the c functions that use the struct always get it by reference
<crystal-gh> [crystal] asterite closed pull request #2149: Improve Markdown (master...improve-markdown) https://git.io/vg127
<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)
<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
<jhass> chances are you defined it wrongly
<jhass> access field = read it?
<jokke> jhass: yes
<jokke> i'll paste the code. one sec
<jhass> make sure the sizeof(struct foo) in C is the same as the sizeof(LibFoo::Foo) in Crystal
fowlduck has joined #crystal-lang
<jokke> ah could it be the Allocater*?
<jokke> *Allocator
<jokke> wouldn't that make it a pointer to a pointer, or is it irrelevant
<jokke> since i'm not using it
<jhass> isn't out @buffer already defining a Pointer(Buffer), so pointerof(@buffer) makes a Pointer(Pointer(Buffer))? I don't remember
<jokke> but the compiler would surely tell me about it, right?
<jokke> yup
fowlduck has quit [Ping timeout: 240 seconds]
<jokke> it complains if i don't use the pointerof
<jokke> the code runs up until line 79 where i throw an exception
<jokke> so writing to the buffer seems to fail
<jokke> oh wait
<jokke> it doesn't fail
<jokke> wtf
<jokke> just took out line 79
<jokke> and i get html output
<travis-ci> manastech/crystal#12b4c53 (master - Merge pull request #2149 from SebastianSzturo/improve-markdown): The build passed. https://travis-ci.org/manastech/crystal/builds/109008656
fowlduck has joined #crystal-lang
<crystal-gh> [crystal] marceloboeira opened pull request #2153: Spec: Make it possible to use multiple formatters (master...multiple-formatters) https://git.io/vgDXj
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
krtv` has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
krtv` has joined #crystal-lang
thor77_ has joined #crystal-lang
thor77_ is now known as thor77
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 240 seconds]
fowlduck has joined #crystal-lang
Guest70_ has joined #crystal-lang
shama has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vgDjS
<crystal-gh> crystal/master 2a1c38c Ary Borenszweig: Parser: parse `call(foo as Bar, Baz)` as `call((foo as Bar), Baz)`....
<travis-ci> manastech/crystal#2a1c38c (master - Parser: parse `call(foo as Bar, Baz)` as `call((foo as Bar), Baz)`.): The build passed. https://travis-ci.org/manastech/crystal/builds/109055494
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/vgyfW
<crystal-gh> crystal/master 529fccf Ary Borenszweig: Added `IO#read_utf8_byte` and `IO#read_utf(slice : Slice(UInt8))`
<crystal-gh> crystal/master 9c59d1a Ary Borenszweig: Make sure `out x` declares x as a variable for macros
<crystal-gh> crystal/master da5a3d0 Ary Borenszweig: Changed `p` from one argument to a splat
<crystal-gh> [crystal] mmacia opened pull request #2154: fix parse responses that begins with \r\n (master...master) https://git.io/vgyf4
<travis-ci> manastech/crystal#da5a3d0 (master - Changed `p` from one argument to a splat): The build passed. https://travis-ci.org/manastech/crystal/builds/109061403
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
fowlduck has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
fowlduck has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
fowlduck has quit [Ping timeout: 256 seconds]
Guest70_ has quit [Quit: Textual IRC Client: www.textualapp.com]
fowlduck has joined #crystal-lang
<jeromegn> will that latest change allow to pass variables to macros?
<jeromegn> err
<jeromegn> 9c59d1a
<jhass> no
<jeromegn> :sadpanda:
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
<thor77> jeromegn: your irc-client supports emojis? oO
<jeromegn> well, not :sadpanda:, but yes. irccloud :)
<jeromegn> also embeds a bunch of stuff.
<thor77> oO
<thor77> ah, already heard about that
<thor77> seems like a bnc with some cool features
<thor77> but not open source :(
<jeromegn> indeed, that's a bit sad :(
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
vikaton has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]