4 ms·
After a week, I've finally had time to look at cffi. It's not even remotely as easy. I tried using it just now to call nanomsg and gave up immediately. I can't
by atilaneves 7y ago
After a week, I've finally had time to look at cffi. It's not even remotely as easy. I tried using it just now to call nanomsg and gave up immediately. I can't just give it the headers, I have to pass it a string which is valid C code. I can't read the headers (separately!) and pass that in either because it can't handle preprocessor directives. It's a mess.
In the article, I do this:
```
#include "nanomsg/nn.h"
#include "nanomsg/pipeline.h"
```
That's it. I don't think the approaches can be compared.