Source code online books for professionals by professionals


Weave, Cinpy, and PyInline



Download 4,67 Mb.
Pdf ko'rish
bet219/266
Sana31.12.2021
Hajmi4,67 Mb.
#213682
1   ...   215   216   217   218   219   220   221   222   ...   266
Bog'liq
2 5296731884800181221

Weave, Cinpy, and PyInline. These three packages let you use C (or some other languages) directly in your Python 
code. This is done quite cleanly, by keeping the C code in multiline Python strings, which are then compiled on the 
fly. The resulting code object is then available to your Python code, using facilities such as ctypes for the interfacing.
Other tools. Clearly there are plenty of other tools out there, which may be of more use to you than these, depending 
on your needs. For example, if you want to reduce memory use rather than time, a JIT is not for you—JITs generally 
need a lot of memory. Instead, you might want to check out Micro Python, which is designed to have a minimal 
memory footprint and to be suited for using Python on microcontrollers and in embedded devices. And, who knows, 
maybe you don’t even require the use of Python. Perhaps you’re working in a Python environment, and you want 
a high-level language, but you want all of your code to be really fast. Though it might be Pythonic heresy, I suggest 
looking at Julia. While it’s a different language, its syntax should be familiar enough to any Python programmer. It also 
has support for calling Python libraries, which means that the Julia team is cooperating with Python projects such as 
IPython,
2
 and it has even been the subject of a SciPy conference lecture already.
3
2
See, for example, 
http://jupyter.org
.
3
https://conference.scipy.org/scipy2014/schedule/presentation/1669
.

Download 4,67 Mb.

Do'stlaringiz bilan baham:
1   ...   215   216   217   218   219   220   221   222   ...   266




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish