00:39:13  * joocain2quit (Ping timeout: 248 seconds)
00:41:10  * joocain2joined
01:35:59  * df00zjoined
01:36:48  <df00z>Erm - libuv is based on callbacks and function pointers, how do you make that play well with C++ - ie classes with non-static member functions?
01:38:57  * joocain2quit (Ping timeout: 248 seconds)
01:41:11  * joocain2joined
02:34:49  * tarruda_quit (Ping timeout: 258 seconds)
02:35:58  * joocain2_joined
02:39:07  <dash>df00z: what difficulty are you facing?
02:39:13  * joocain2quit (Ping timeout: 248 seconds)
02:39:24  * tarruda_joined
02:39:56  <df00z>http://cpp.sh/8kagd C++ having real, real goofy syntax for function pointers.
02:40:08  <df00z>this will work now that i sort of understand the syntax
02:40:38  <dash>you know what they say: if you want good syntax, don't go to c++
02:41:02  <df00z>pffft. C++ is fine when you're not mixing C code in
02:41:52  <dash>mmm. mixing C in seems like the only good reason to use C++ tbh
02:41:57  <df00z>Haha
02:42:24  <dash>there are things for which C++ is the only practical choice, but I don't think any of them need libuv
02:42:45  <df00z>I prefer C++ because of all the safety features it has
02:42:57  <df00z>memory management with smart pointers, OOP
02:43:05  <df00z>It's harder to blow yourself up
02:43:18  <dash>there are plenty of languages that do it better these days :)
02:43:58  <df00z>........honestly this may be true....I could be using C# or Java for this project, didn't even dawn on me to consider it.
02:45:22  <df00z>I'm wondering if I'm gonna burn myself with this. I wanna use gnutls + libuv for network programming. Gnutls likes to manage socket sends and recvs for you
02:45:42  <df00z>I'm thinking libuv is probably gonna fire off events randomly and i'm gonna have to check against gnutls if data is actually ready to be read
02:45:45  <df00z>normally gnutls blocks
02:45:52  <dash>mm, what are you writing?
02:46:04  <df00z>I want to write a very simple websockets library
02:46:09  <dash>i don't know how gnutls differs from openssl, but the "memory BIO" api in openssl is the thing to use there
02:46:14  <dash>mmh
02:46:17  <df00z>to communicate with a web page using javascript
02:46:22  <dash>have you considered... nodejs?
02:46:24  <df00z>I can't stand OpenSSL's documentation.
02:46:36  <df00z>gnutls I was able to work out in a day when I needed to prior
02:46:41  <df00z>OpenSSL i got nowhere
02:47:26  <df00z>I want to use a strongly typed language where certain things are enforced for this
02:47:34  <df00z>JavaScript I will end up blowing myself up
02:47:34  <df00z>lol
02:48:35  <df00z>But, thanks. I'm just going to use Java. I don't know why I didn't think of that before. SSL is built in, sockets are portable and can handle events, whereas raw C sockets with select you're limited, or you need to use an event lib like libevent or libuv
02:49:20  <df00z>oh..right..
02:49:29  <df00z>does protobuf support java, that was the other reason i was using C++
02:49:48  <df00z>Yes it does, all problems solved.
02:52:02  <dash>i am a libuv user because i am a language implementor
02:52:26  <df00z>I was going to use it for cross-platform event-based network io
02:52:32  <df00z>maybe i still will, need to ponder a bit
02:52:36  <df00z>it seems neat
03:38:57  * joocain2_quit (Ping timeout: 248 seconds)
03:40:56  * joocain2joined
03:51:05  * saghuljoined
03:55:08  * saghulquit (Ping timeout: 240 seconds)
04:36:50  * joocain2_joined
04:39:45  * joocain2quit (Ping timeout: 248 seconds)
05:39:30  * joocain2_quit (Ping timeout: 248 seconds)
05:41:29  * joocain2joined
05:51:34  * saghuljoined
06:01:21  * saghulquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
06:03:13  * saghuljoined
06:37:22  * joocain2_joined
06:40:17  * joocain2quit (Ping timeout: 248 seconds)
06:52:22  * rendarjoined
07:37:30  * joocain2joined
07:40:33  * joocain2_quit (Ping timeout: 248 seconds)
07:44:24  * saghulquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:00:31  * saghuljoined
08:08:43  * Ralith_quit (Ping timeout: 268 seconds)
08:22:42  * Ralith_joined
08:37:15  * joocain2_joined
08:40:17  * joocain2quit (Ping timeout: 248 seconds)
09:32:01  * joocain2_quit (Ping timeout: 248 seconds)
09:39:06  * joocain2joined
10:21:45  * saghulquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:25:11  * mylesborinsquit (Quit: farewell for now)
10:25:42  * mylesborinsjoined
10:37:47  * joocain2_joined
10:40:49  * joocain2quit (Ping timeout: 248 seconds)
10:48:43  * rendarquit (Ping timeout: 276 seconds)
10:57:54  * rendarjoined
10:57:54  * rendarquit (Changing host)
10:57:54  * rendarjoined
11:12:17  * joocain2_quit (Ping timeout: 248 seconds)
11:13:55  * joocain2joined
11:34:44  * saghuljoined
11:37:53  * joocain2_joined
11:41:37  * joocain2quit (Ping timeout: 248 seconds)
12:37:47  * joocain2joined
12:38:28  * rendarquit (Ping timeout: 240 seconds)
12:40:49  * joocain2_quit (Ping timeout: 248 seconds)
12:53:04  * Jacob8432joined
12:55:53  * Jacob843quit (Ping timeout: 240 seconds)
13:01:44  * jfejoined
13:01:47  <jfe>hi all.
13:03:13  <jfe>i want to run a unix socket server but for some reason my program instantly ends with a "Killed" message. i'm using this example code: https://github.com/nikhilm/uvbook/blob/master/code/pipe-echo-server/main.c
13:06:19  <jfe>from the strace output, it looks like it's dying on a call to bind().
13:37:47  * joocain2_joined
13:41:08  <jfe>has anyone seen that behavior before?
13:41:37  * joocain2quit (Ping timeout: 248 seconds)
13:42:24  * rendarjoined
13:42:24  * rendarquit (Changing host)
13:42:24  * rendarjoined
13:51:36  <jfe>does anyone know why my process receives a SIGKILL whenever i call uv_pipe_bind()?
14:10:56  <jfe>figured it out. for some reason, i needed to prepend the socket path with './'
14:22:52  * _KryDos_joined
14:38:08  * joocain2joined
14:41:53  * joocain2_quit (Ping timeout: 248 seconds)
15:23:54  * s4ghuljoined
15:27:27  * saghulquit (Ping timeout: 240 seconds)
15:36:23  * Ralith_quit (Ping timeout: 240 seconds)
15:38:18  * Ralith_joined
15:41:05  * joocain2quit (Ping timeout: 248 seconds)
15:42:58  * joocain2joined
16:00:39  * Ralith_quit (Read error: Connection reset by peer)
16:01:12  * Ralith_joined
16:03:46  * Ralith_quit (Read error: Connection reset by peer)
16:04:08  * Ralith_joined
16:05:27  * Ralith_quit (Read error: Connection reset by peer)
16:06:04  * Ralith_joined
16:06:59  * Ralith_quit (Read error: Connection reset by peer)
16:07:10  * Ralith_joined
16:10:51  * Ralith_quit (Read error: Connection reset by peer)
16:10:58  * Ralith_joined
16:13:42  * Ralith_quit (Read error: Connection reset by peer)
16:14:05  * Ralith_joined
16:15:19  * Ralith_quit (Read error: Connection reset by peer)
16:38:50  * joocain2_joined
16:41:53  * joocain2quit (Ping timeout: 248 seconds)
17:01:52  * s4ghulquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:32:22  * rendarquit (Ping timeout: 276 seconds)
17:38:58  * joocain2joined
17:42:09  * joocain2_quit (Ping timeout: 248 seconds)
18:09:50  * saghuljoined
18:35:44  * rendarjoined
18:35:44  * rendarquit (Changing host)
18:35:44  * rendarjoined
18:39:16  * joocain2_joined
18:41:53  * joocain2quit (Ping timeout: 248 seconds)
19:38:51  * joocain2joined
19:42:09  * joocain2_quit (Ping timeout: 248 seconds)
19:52:25  * rendarquit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
20:39:27  * joocain2_joined
20:42:57  * joocain2quit (Ping timeout: 248 seconds)
21:07:24  * saghulquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:26:25  * df00zquit (Ping timeout: 246 seconds)
21:36:56  * _KryDos_quit (Ping timeout: 260 seconds)
21:39:20  * joocain2joined
21:40:31  * df00zjoined
21:42:41  * joocain2_quit (Ping timeout: 248 seconds)
22:42:26  * joocain2quit (Ping timeout: 248 seconds)
22:44:13  * joocain2joined
23:39:55  * joocain2_joined
23:43:13  * joocain2quit (Ping timeout: 248 seconds)