4 ms·
1. Because it can be done. 2. The native way of doing this in C (without using SWIG or cython or any other such)is more verbose. 3. It may be easier (not nece
by pavanky 14y ago
1. Because it can be done.
2. The native way of doing this in C (without using SWIG or cython or any other such)is more verbose.
3. It may be easier (not necessarily faster) to write certain code in Go as opposed to both python or C.
- rattray 14y agoWould Go's static binaries be an added advantage?
- tiredofcareer 14y agoNo, because in Python's interop model, importing a compiled module involves a shared object (so you don't have to relink the interpreter to add one).
- cdavid 14y agostrictly speaking, it is not required: you can build a giant python binary with all the extensions you need, though it can be quite a bit of work to do so. Granted, the vast majority of users use the loadable module approach.