Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Would Go's static binaries be an added advantage?


No, 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).


strictly 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: