pybind11
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
pybind11 të lejon ta thërrasësh kodin tënd C++ nga Python-i — kështu pjesët e rënda shkruhen në C++ për shpejtësi, dhe pjesa tjetër në Python. Shumë librari IA dhe shkencore ndërtohen kështu.
EnglishEN
pybind11 lets you call your C++ code from Python — so heavy parts are written in C++ for speed and the rest in Python. Many AI and scientific libraries are built this way.
Si ta mendosh
Si një urë mes dy qyteteve që flasin gjuhë të ndryshme.
Lexoje në anglisht
Like a bridge between two towns speaking different languages.
Shembull kodicpp
PYBIND11_MODULE(llogaritje, m) {
m.def("mblidh", [](int a, int b) { return a + b; });
}