dkrdzic / python_c_cpp Goto Github PK
View Code? Open in Web Editor NEWBinding Python Code with C/C++ Code
Binding Python Code with C/C++ Code
Omogucavanje C/C++ funkcija u python kodu. Cilj - poziv C/C++ f-je iz python koda. Wrapper sluzi da parametre C/C++ f-je koju python poziva prihvati, njihov tip konvertuje u C/C+ 'bezbedan' tip (npr. float u python-u konvertuje u double u C/C++ itd), pozove C/C++ f-ju za dohvacene parametre, dohvati rezultat f-je, zapakuje ga u python bezbedan tip (npr. ako je tip povratne vrednosti double, konvertuje u float) i takav prosledi python kodu koji moze da ga koristi. Prilikom prevodjenja bitno je naglasiti kompajleru gde da trazi Python.h zaglavlje u kome se nalaze sve f-je za bezbedno importovanje modula itd. (u linux path je uglavnom /usr/include/pythonX.Y) Pisanje wrapper-a i drugih f-ja za uspeno izvrsavanje se moze automatizovati pomocu SWIG-a (sudo apt-get install swig) i komande 'swig -python example.i' gde se u example.i nalazi SWIG module.. Napomena .so file u SWIG treba da ima oblik _imeModula.so
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.