waj has joined #crystal-lang
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/manastech/crystal/builds/17378214
<travis-ci> [travis-ci] manastech/crystal#838 (master - 587f412 : Juan Wajnerman): The build passed.
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/manastech/crystal/builds/17378869
<travis-ci> [travis-ci] manastech/crystal#839 (master - cc8edd2 : Juan Wajnerman): The build passed.
e_dub has joined #crystal-lang
e_dub has joined #crystal-lang
waj has joined #crystal-lang
waj has joined #crystal-lang
waj has joined #crystal-lang
waj has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek1 has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek1 has joined #crystal-lang
e_dub has joined #crystal-lang
waj has joined #crystal-lang
asterite has joined #crystal-lang
CraigBuchek has joined #crystal-lang
waj has joined #crystal-lang
asterite has joined #crystal-lang
asterite1 has joined #crystal-lang
waj has joined #crystal-lang
waj has joined #crystal-lang
filer has joined #crystal-lang
<filer> thanks to @waj on Twitter I decided I should join
<filer> are there any examples of using C libraries I can look at beyond https://github.com/manastech/crystal/wiki/Introduction ?
<waj> great! welcome! :-)
<filer> thanks
<waj> did you check the source code? there are many examples of using C libraries
<asterite1> Also note that the introduction is somewhat outdated; for c strings you must use UInt8* instead of Char*
<filer> aha, that answers my immediate question :)
<asterite1> To what c library will you bind?
asterite has joined #crystal-lang
<filer> also, thanks, waj, yaml.cr looks helpful
<filer> I was thinking about database libraries, so I thought I'd start by trying mysql_get_client_info() and see what happened
<filer> and yes, UInt8* works much better
<waj> That would be great. I was actually working in a pure crystal mysql connector, but with very slow progress so far.
<filer> that would be cool
<filer> somewhere in the past I wrote some Ruby database library stuff to go from just-barely-wrapped C to more Rubylike stuff
<filer> and I did a Ruby FFI interface to libmdb, so I figured I'd probably be capable of doing mysql bindings
<asterite> Sure. If you have any questions don't hesitate asking :)
<asterite> C callbacks are somewhat challenging to do… well, not challenging but you need to use function pointers, something that doesn't exist in Ruby
waj has joined #crystal-lang
asterite has joined #crystal-lang
waj has joined #crystal-lang
irclogger__ has joined #crystal-lang
travis-ci has joined #crystal-lang
<travis-ci> [travis-ci] Build details : http://travis-ci.org/manastech/crystal/builds/17444305
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> [travis-ci] manastech/crystal#840 (master - c7cb771 : Ary Borenszweig): The build passed.