jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.7 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
vluft has quit [Quit: Textual IRC Client: www.textualapp.com]
bjz has joined #crystal-lang
<FromGitter> <ttdonovan> This idea may have been to ambitious for my skills - I was hoping to use gRPC Ruby as and example for a Crystal implementation. C bindings seem to go way over my head and not really sure how to proceed or where to get more insight. If anyone could point me to useful examples of working with C bindings or suggestions on where I should go next it would greatly be appreciated. (Might also be a lost cause and I should just delete
<FromGitter> ... this repo and let someone more qualified than me start it) https://github.com/ttdonovan/grpc-crystal
<FromGitter> <mverzilli> hey I'm not sure if I'll be able to help you but I can give it a try
<FromGitter> <mverzilli> what's blocking you?
<FromGitter> <ttdonovan> I really don't have much at this time, just the example of the a desired "helloworld". I was looking over the Ruby grpc gem and hoping to use that as start. I'm confused about the Ruby `GRPC::RpcServer` and the use of `Core::Server.new`. It's unclear to me how Ruby defines this with the C bindings and then looking it over not sure how to correctly do this in Crystal.
<FromGitter> <ttdonovan> I think I might just be in over my head.
<FromGitter> <ttdonovan> I need sign-off but if you have any pointers or suggestion on where to look it would be appreciated.
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <mverzilli> I guess you checked here? https://crystal-lang.org/docs/syntax_and_semantics/c_bindings/index.html
<FromGitter> <mverzilli> then there's also https://github.com/crystal-lang/crystal_lib
<FromGitter> <mverzilli> if the C lib isn't too crazy binding it to Crystal shouldn't be difficult at all, it usually is almost mechanic
<FromGitter> <ttdonovan> maybe i need to look closer at crystal_lib
<FromGitter> <mverzilli> this is manual example (without crystal_lib) of binding LAPACK: https://github.com/mverzilli/crystalla/blob/master/src/crystalla/lib_lapack.cr
<FromGitter> <ttdonovan> so in your example where is the source for the lapack C code?
<FromGitter> <ttdonovan> err nevermind i see in your docker file
<FromGitter> <mverzilli> yeah, well you just link to it
<FromGitter> <ttdonovan> so my example with gRPC I would need to compile the source for gRPC core library?
<FromGitter> <mverzilli> not necessarily, you can use your system's package manager (if grpc is available)
<FromGitter> <mverzilli> it seems the gRPC team isn't super excited about people using the C core lib: https://github.com/grpc/grpc/issues/6814
<FromGitter> <mverzilli> but the steps laid out there seem to be a good pointer
<FromGitter> <ttdonovan> thanks for the pointers... looking at crystal_lib now but trying to run the example/lib_git2.cr raises an error on my machine (banging head against wall)
<FromGitter> <ttdonovan> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=57b7ae926981f5f269018300]
<FromGitter> <Sija> @ttdonovan perhaps u miss `brew link llvm --force`?
<FromGitter> <ttdonovan> I have `llvm37` and it just did an `unlink` and `link` same issue...
<FromGitter> <Sija> IIRC llvm 3.7 is unsupported, try with 3.8
<FromGitter> <ttdonovan> ok thanks look now
<FromGitter> <ttdonovan> *looking
Crizkov has quit [Quit: Page closed]
bjz has joined #crystal-lang
Oliphaunte has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <ttdonovan> @mverzilli I'm a little bit closer - just updated the README.md with steps for compiling and install gRPC but ran into an issue with generating the Crystal lib bindings
<FromGitter> <ttdonovan> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=57b7b6c587f779f069109396]
<FromGitter> <ttdonovan> just not sure how to include the `grpc.h` file
bjz has joined #crystal-lang
<FromGitter> <ttdonovan> yeah i can get that example to work - but am uncertain about grpc
<FromGitter> <Sija> I'd try putting in there `vendor/grpc/include/grpc/grpc.h`
<FromGitter> <ttdonovan> is the `Include` path relative to the file that's tries to include the `*.h`
<FromGitter> <Sija> more to `-I` path passed to `C(PP)FLAGS` but damn, i'm not sure 'bout that
<FromGitter> <Sija> next thing I guess would be `PWD` which would be your lib's root directory
<FromGitter> <ttdonovan> OK - I'll try playing around with the paths - need to go afk for awhile. Thanks for the assist.
<FromGitter> <Sija> Good luck :)
Cidan has quit [Ping timeout: 252 seconds]
willl has quit [Quit: Connection closed for inactivity]
zz_Cidan has joined #crystal-lang
zz_Cidan is now known as Cidan
Cidan has quit [Changing host]
Cidan has joined #crystal-lang
tomchapi_ has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
tomchapin has quit [Ping timeout: 244 seconds]
akwiatkowski has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 244 seconds]
xmgx has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 252 seconds]
bjz has quit [Ping timeout: 258 seconds]
bjz has joined #crystal-lang
txdv has quit [Ping timeout: 276 seconds]
justinmcp_ has joined #crystal-lang
badeball_ has joined #crystal-lang
jsaak_ has joined #crystal-lang
aarongodin_ has joined #crystal-lang
asterite_ has joined #crystal-lang
emmanueloga_ has joined #crystal-lang
samis has joined #crystal-lang
emmanueloga has quit [*.net *.split]
justinmcp has quit [*.net *.split]
asterite has quit [*.net *.split]
CompanionCube has quit [*.net *.split]
aarongodin has quit [*.net *.split]
jsaak has quit [*.net *.split]
badeball has quit [*.net *.split]
bjmllr has quit [*.net *.split]
samis is now known as CompanionCube
asterite_ is now known as asterite
aarongodin_ is now known as aarongodin
emmanueloga_ is now known as emmanueloga
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 240 seconds]
bjmllr has joined #crystal-lang
trapped has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 265 seconds]
Philpax has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 276 seconds]
Raimondi has quit [Quit: WeeChat 1.6-dev]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 264 seconds]
Raimondi has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii is now known as Raimondi
tomchapin has joined #crystal-lang
tomchapi_ has quit [Ping timeout: 260 seconds]
A124 has quit [Ping timeout: 265 seconds]
A124 has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 244 seconds]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 250 seconds]
bjz has joined #crystal-lang
bjz_ has quit [Ping timeout: 244 seconds]
xmgx has joined #crystal-lang
Ven has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
kulelu88 has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
glenab has joined #crystal-lang
Oliphaunte has joined #crystal-lang
glenab has quit []
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Philpax_ has quit [Ping timeout: 240 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
Dreamer3 has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Ven has joined #crystal-lang
soveran has joined #crystal-lang
A124 has quit [Quit: '']
A124 has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ssvb has quit [Ping timeout: 252 seconds]
woodruffw has quit [Ping timeout: 252 seconds]
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
woodruffw has joined #crystal-lang
ssvb has joined #crystal-lang
xmgx has quit [Remote host closed the connection]