00:05
bjz has joined #crystal-lang
00:07
<
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
00:08
<
FromGitter >
<mverzilli> hey I'm not sure if I'll be able to help you but I can give it a try
00:09
<
FromGitter >
<mverzilli> what's blocking you?
00:13
<
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.
00:14
<
FromGitter >
<ttdonovan> I think I might just be in over my head.
00:15
<
FromGitter >
<ttdonovan> I need sign-off but if you have any pointers or suggestion on where to look it would be appreciated.
00:16
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:19
<
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
00:19
<
FromGitter >
<ttdonovan> maybe i need to look closer at crystal_lib
00:21
<
FromGitter >
<ttdonovan> so in your example where is the source for the lapack C code?
00:24
<
FromGitter >
<ttdonovan> err nevermind i see in your docker file
00:26
<
FromGitter >
<mverzilli> yeah, well you just link to it
00:26
<
FromGitter >
<ttdonovan> so my example with gRPC I would need to compile the source for gRPC core library?
00:28
<
FromGitter >
<mverzilli> not necessarily, you can use your system's package manager (if grpc is available)
01:07
<
FromGitter >
<mverzilli> but the steps laid out there seem to be a good pointer
01:11
<
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)
01:12
<
FromGitter >
<Sija> @ttdonovan perhaps u miss `brew link llvm --force`?
01:15
<
FromGitter >
<ttdonovan> I have `llvm37` and it just did an `unlink` and `link` same issue...
01:16
<
FromGitter >
<Sija> IIRC llvm 3.7 is unsupported, try with 3.8
01:18
<
FromGitter >
<ttdonovan> ok thanks look now
01:18
<
FromGitter >
<ttdonovan> *looking
01:21
Crizkov has quit [Quit: Page closed]
01:38
bjz has joined #crystal-lang
01:45
Oliphaunte has joined #crystal-lang
01:47
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:47
<
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
01:48
<
FromGitter >
<ttdonovan> just not sure how to include the `grpc.h` file
01:48
bjz has joined #crystal-lang
01:50
<
FromGitter >
<ttdonovan> yeah i can get that example to work - but am uncertain about grpc
01:52
<
FromGitter >
<Sija> I'd try putting in there `vendor/grpc/include/grpc/grpc.h`
01:53
<
FromGitter >
<ttdonovan> is the `Include` path relative to the file that's tries to include the `*.h`
01:57
<
FromGitter >
<Sija> more to `-I` path passed to `C(PP)FLAGS` but damn, i'm not sure 'bout that
01:59
<
FromGitter >
<Sija> next thing I guess would be `PWD` which would be your lib's root directory
02:00
<
FromGitter >
<ttdonovan> OK - I'll try playing around with the paths - need to go afk for awhile. Thanks for the assist.
02:01
<
FromGitter >
<Sija> Good luck :)
02:13
Cidan has quit [Ping timeout: 252 seconds]
02:48
willl has quit [Quit: Connection closed for inactivity]
02:57
zz_Cidan has joined #crystal-lang
02:57
zz_Cidan is now known as Cidan
02:57
Cidan has quit [Changing host]
02:57
Cidan has joined #crystal-lang
03:01
tomchapi_ has joined #crystal-lang
03:02
Oliphaunte has quit [Remote host closed the connection]
03:02
tomchapin has quit [Ping timeout: 244 seconds]
03:28
akwiatkowski has joined #crystal-lang
03:31
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:32
bjz has joined #crystal-lang
04:08
akwiatkowski has quit [Ping timeout: 244 seconds]
04:56
xmgx has quit [Remote host closed the connection]
05:32
Oliphaunte has joined #crystal-lang
05:38
Oliphaunte has quit [Ping timeout: 252 seconds]
06:05
bjz has quit [Ping timeout: 258 seconds]
06:10
bjz has joined #crystal-lang
06:48
txdv has quit [Ping timeout: 276 seconds]
06:48
justinmcp_ has joined #crystal-lang
06:49
badeball_ has joined #crystal-lang
06:49
jsaak_ has joined #crystal-lang
06:50
aarongodin_ has joined #crystal-lang
06:52
asterite_ has joined #crystal-lang
06:52
emmanueloga_ has joined #crystal-lang
06:53
samis has joined #crystal-lang
06:54
emmanueloga has quit [*.net *.split]
06:54
justinmcp has quit [*.net *.split]
06:54
asterite has quit [*.net *.split]
06:54
CompanionCube has quit [*.net *.split]
06:54
aarongodin has quit [*.net *.split]
06:54
jsaak has quit [*.net *.split]
06:54
badeball has quit [*.net *.split]
06:54
bjmllr has quit [*.net *.split]
06:54
samis is now known as CompanionCube
06:54
asterite_ is now known as asterite
06:55
aarongodin_ is now known as aarongodin
06:55
emmanueloga_ is now known as emmanueloga
07:20
Oliphaunte has joined #crystal-lang
07:25
Oliphaunte has quit [Ping timeout: 240 seconds]
07:33
bjmllr has joined #crystal-lang
07:48
trapped has joined #crystal-lang
08:11
trapped has quit [Read error: Connection reset by peer]
08:14
Oliphaunte has joined #crystal-lang
08:19
Oliphaunte has quit [Ping timeout: 265 seconds]
08:54
Philpax has joined #crystal-lang
10:03
Oliphaunte has joined #crystal-lang
10:07
Oliphaunte has quit [Ping timeout: 276 seconds]
10:17
Raimondi has quit [Quit: WeeChat 1.6-dev]
10:57
Oliphaunte has joined #crystal-lang
11:02
Oliphaunte has quit [Ping timeout: 264 seconds]
11:10
Raimondi has joined #crystal-lang
11:14
Raimondii has joined #crystal-lang
11:17
Raimondi has quit [Ping timeout: 240 seconds]
11:17
Raimondii is now known as Raimondi
11:19
Raimondii has joined #crystal-lang
11:22
Raimondi has quit [Ping timeout: 240 seconds]
11:22
Raimondii is now known as Raimondi
11:35
tomchapin has joined #crystal-lang
11:35
tomchapi_ has quit [Ping timeout: 260 seconds]
11:36
A124 has quit [Ping timeout: 265 seconds]
11:39
A124 has joined #crystal-lang
11:51
Oliphaunte has joined #crystal-lang
11:55
Oliphaunte has quit [Ping timeout: 244 seconds]
12:20
bjz_ has joined #crystal-lang
12:21
bjz has quit [Ping timeout: 250 seconds]
14:12
bjz has joined #crystal-lang
14:13
bjz_ has quit [Ping timeout: 244 seconds]
14:40
xmgx has joined #crystal-lang
15:16
Ven has joined #crystal-lang
15:24
soveran has joined #crystal-lang
15:24
soveran has quit [Changing host]
15:24
soveran has joined #crystal-lang
16:36
kulelu88 has joined #crystal-lang
17:01
soveran has quit [Remote host closed the connection]
17:04
Oliphaunte has joined #crystal-lang
17:14
Oliphaunte has quit [Remote host closed the connection]
17:14
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:18
Oliphaunte has joined #crystal-lang
17:19
Oliphaunte has quit [Remote host closed the connection]
17:33
glenab has joined #crystal-lang
17:38
Oliphaunte has joined #crystal-lang
18:02
soveran has joined #crystal-lang
18:02
soveran has quit [Changing host]
18:02
soveran has joined #crystal-lang
18:07
soveran has quit [Ping timeout: 260 seconds]
18:09
Oliphaunte has quit [Remote host closed the connection]
18:17
Oliphaunte has joined #crystal-lang
18:18
Philpax_ has joined #crystal-lang
18:20
Philpax has quit [Ping timeout: 240 seconds]
18:20
Oliphaunte has quit [Remote host closed the connection]
18:21
Oliphaunte has joined #crystal-lang
18:24
Philpax_ has quit [Ping timeout: 240 seconds]
18:25
Oliphaunte has quit [Remote host closed the connection]
18:41
Oliphaunte has joined #crystal-lang
18:54
Oliphaunte has quit [Remote host closed the connection]
19:02
Oliphaunte has joined #crystal-lang
20:03
soveran has joined #crystal-lang
20:08
soveran has quit [Ping timeout: 244 seconds]
20:12
Dreamer3 has joined #crystal-lang
20:19
Oliphaunte has quit [Remote host closed the connection]
20:24
Oliphaunte has joined #crystal-lang
20:38
Oliphaunte has quit [Remote host closed the connection]
20:39
Oliphaunte has joined #crystal-lang
20:43
Oliphaunte has quit [Ping timeout: 250 seconds]
20:46
Oliphaunte has joined #crystal-lang
20:49
Oliphaunte has quit [Remote host closed the connection]
20:54
Ven has joined #crystal-lang
21:03
soveran has joined #crystal-lang
21:03
A124 has quit [Quit: '']
21:06
A124 has joined #crystal-lang
21:32
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:03
ssvb has quit [Ping timeout: 252 seconds]
22:03
woodruffw has quit [Ping timeout: 252 seconds]
22:08
woodruffw has joined #crystal-lang
22:08
woodruffw has quit [Excess Flood]
22:09
woodruffw has joined #crystal-lang
22:17
ssvb has joined #crystal-lang
22:38
xmgx has quit [Remote host closed the connection]