Learning Cython Programming
Cython is a very powerful combination of Python and C. Using Cython, you can write Python code that calls back and forth from and to C or C++ code natively at any point. It is a language with extra syntax allowing for optional static type declarations. It is also a very popular language as it can be...
Saved in:
| Main Author: | |
|---|---|
| Format: | eBook |
| Language: | English |
| Published: |
Birmingham
Packt Publishing
2013
Packt Publishing, Limited |
| Edition: | 1 |
| Subjects: | |
| ISBN: | 9781783280797, 1783280794 |
| Online Access: | Get full text |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| Abstract | Cython is a very powerful combination of Python and C. Using Cython, you can write Python code that calls back and forth from and to C or C++ code natively at any point. It is a language with extra syntax allowing for optional static type declarations. It is also a very popular language as it can be used for multicore programming. This book will provide you with a detailed guide to extending your native applications in pure Python; imagine embedding a twisted web server into your native application with pure Python code. You will also learn how to get your new applications up and running by reusing Pythons extensive libraries such as Logging and Config Parser to name a few. |
|---|---|
| AbstractList | Cython is a very powerful combination of Python and C. Using Cython, you can write Python code that calls back and forth from and to C or C++ code natively at any point. It is a language with extra syntax allowing for optional static type declarations. It is also a very popular language as it can be used for multicore programming. This book will provide you with a detailed guide to extending your native applications in pure Python; imagine embedding a twisted web server into your native application with pure Python code. You will also learn how to get your new applications up and running by reusing Pythons extensive libraries such as Logging and Config Parser to name a few. A practical and a fast-paced guide that gives you all the information you need to start programming using Cython.This book is for developers who love C/C++ for low latency and speed but who also require the ability to add more dynamic features to applications both fast and reliably. It will also show you how you can get new applications off the ground by reusing Python libraries to get started. In Detail Cython is a very powerful combination of Python and C. Using Cython, you can write Python code that calls back and forth from and to C or C++ code natively at any point. It is a language with extra syntax allowing for optional static type declarations. It is also a very popular language as it can be used for multicore programming. Learning Cython Programming will provide you with a detailed guide to extending your native applications in pure Python; imagine embedding a twisted web server into your native application with pure Python code. You will also learn how to get your new applications up and running by reusing Python's extensive libraries such as Logging and Config Parser to name a few. With Learning Cython Programming, you will learn that writing your own Python module in C from scratch is not only hard, but is also unsafe. Cython will automatically handle all type-conversion issues as well as garbage collection on your code. You can also still write all your code in Python but have it compiled and called directly in C as if it was just another function or data. This book also demonstrates how you can take the open source project Tmux and extend it to add new commands directly in pure Python. With this book, you will learn everything you need to know to get up and running with Cython and how you can reuse examples in a practical way. Approach A practical and a fast-paced guide that gives you all the information you need to start programming using Cython. Who this book is for This book is for developers who love C/C++ for low latency and speed but who also require the ability to add more dynamic features to applications both fast and reliably. It will also show you how you can get new applications off the ground by reusing Python libraries to get started. |
| Author | Herron Philip |
| Author_xml | – sequence: 1 fullname: Herron, Philip |
| BookMark | eNpF0E1LAzEQBuCIH9jW_gIvvYh4KGQy2XwcdakfsGAP4jVkY7atu93UZK3037u6gofhheHhhZkxOWlD64_IGISikHFQ_JhMtVQgFTJFpZZnZKQyjUoxBedkmtI7pRQAtUQckcvC29hu2tUsP3Tr0M6WMayi3W771QU5rWyT_PQvJ-T1fvGSP86L54en_LaYW2Ca0bmwmUda8UqU4KRFKyVQDQ6FUJw7RTFzb1xAJjnznIHGipcOZInCqX5wQm6GYptq_5XWoemS2Te-DKFO5v-avqm314PdxfDx6VNnfpnzbRdtYxZ3OaBgmZK9vBpk3Ya9b8wubrY2HswPN_WuyJf9I6jAbyevWSA |
| ContentType | eBook |
| Copyright | 2013 |
| Copyright_xml | – notice: 2013 |
| DEWEY | 005.133 |
| DatabaseTitleList | |
| DeliveryMethod | fulltext_linktorsrc |
| Discipline | Computer Science |
| EISBN | 1680154184 9781680154184 9781783280803 1783280808 |
| Edition | 1 |
| ExternalDocumentID | 9781783280803 EBC1362587 book_kpLCP00006 |
| GroupedDBID | -VX 089 20A A4J AABBV AAWZI ABIAV ABQPQ ABVLP ACXXF ADVEM AIXPE AKHYG ALMA_UNASSIGNED_HOLDINGS AMYDA AZZ BBABE BPBUR CMZ CZZ DUGUG GEOUK IVK IWL J-X JJU K-E MYL NK1 NK2 OODEK PQQKQ PYZUL TD3 XI1 |
| ID | FETCH-LOGICAL-a12920-6a5e30f4f6b1c7a3a771091c366844c8035cd4615742e42193f4bc17b36c836c3 |
| IEDL.DBID | CMZ |
| ISBN | 9781783280797 1783280794 |
| IngestDate | Wed May 21 13:04:43 EDT 2025 Wed Aug 20 01:52:42 EDT 2025 Sat Nov 23 14:00:49 EST 2024 |
| IsPeerReviewed | false |
| IsScholarly | false |
| LCCallNum_Ident | QA76.73.P98 -- .H477 2013eb |
| Language | English |
| LinkModel | DirectLink |
| MergedId | FETCHMERGED-LOGICAL-a12920-6a5e30f4f6b1c7a3a771091c366844c8035cd4615742e42193f4bc17b36c836c3 |
| OCLC | 859388281 |
| PQID | EBC1362587 |
| PageCount | 134 |
| ParticipantIDs | askewsholts_vlebooks_9781783280803 proquest_ebookcentral_EBC1362587 knovel_primary_book_kpLCP00006 |
| PublicationCentury | 2000 |
| PublicationDate | 2013 2013-09-25 |
| PublicationDateYYYYMMDD | 2013-01-01 2013-09-25 |
| PublicationDate_xml | – year: 2013 text: 2013 |
| PublicationDecade | 2010 |
| PublicationPlace | Birmingham |
| PublicationPlace_xml | – name: Birmingham |
| PublicationYear | 2013 |
| Publisher | Packt Publishing Packt Publishing, Limited |
| Publisher_xml | – name: Packt Publishing – name: Packt Publishing, Limited |
| SSID | ssj0001139733 |
| Score | 1.9108479 |
| Snippet | Cython is a very powerful combination of Python and C. Using Cython, you can write Python code that calls back and forth from and to C or C++ code natively at... A practical and a fast-paced guide that gives you all the information you need to start programming using Cython.This book is for developers who love C/C++ for... In Detail Cython is a very powerful combination of Python and C. Using Cython, you can write Python code that calls back and forth from and to C or C++ code... |
| SourceID | askewsholts proquest knovel |
| SourceType | Aggregation Database Publisher |
| SubjectTerms | Digital techniques Image processing Paint shop pro Photography Programming Languages Software Engineering |
| TableOfContents | Title Page
Preface
Table of Contents
1. Cython Won't Bite
2. Understanding Cython
3. Extending Applications
4. Debugging Cython
5. Advanced Cython
Index Classes -- C++ new keyword and allocation -- Exceptions -- Bool type -- Overloading -- Templates -- Static class member attribute -- Caveat on C++ usage -- Calling in C and C++ functions -- Namespaces -- Python distutils -- Python threading and GIL -- Atomic instructions -- Read/write lock -- Cython keywords -- Messaging server revisited -- More inspiration -- Messaging server working with SQL -- Python IRC notifier -- Unit testing the native code -- Preventing subclassing -- Cython typing via annotations -- Parsing large amounts of data -- Summary -- 6. Further Reading -- Keyword cpdef -- OpenMP support -- Object initialization -- Compile time -- Python 3 -- Using PyPy -- AutoPXD -- Pyrex versus Cython -- SWIG versus Cython -- Cython and NumPy -- Numba versus Cython -- Parakeet and Numba -- GCCPy Python frontend to GCC -- Links and further reading -- Summary -- Index Intro -- Learning Cython Programming -- Table of Contents -- Learning Cython Programming -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Cython Won't Bite -- What this book is -- What this book isn't -- Installing Cython -- The emacs mode -- Getting the code examples -- Hello World -- Module on your own -- Calling into your C code -- Type conversion -- Summary -- 2. Understanding Cython -- Cython cdef -- Linking models -- The public keyword -- Logging into Python -- Python ConfigParser -- Cython cdef syntax and usage reference -- Structs -- Enums -- Typedef and function pointers -- Scalable asynchronous servers -- C sockets with libevent -- What is libevent? -- Messaging engine -- Cython callbacks -- Cython PXD -- Python messaging engine -- Integration with build systems -- Python distutils -- GNU/Autotools -- Summary -- 3. Extending Applications -- Cython pure Python code -- Python bindings -- Python garbage collector -- Extending Tmux -- Tmux build system -- Embedding Python -- Cythonizing struct cmd_entry -- Implementing a Tmux command -- Hooking everything together -- Compiling pure Python code -- Summary -- 4. Debugging Cython -- Using GDB on your code -- Running cygdb -- General Cython caveats -- Type checking -- No * operator -- Python exceptions in C -- For loops on C types -- Bool type -- No C const -- Multiple Cython files -- Initializing struct -- Calling into pure Python modules -- Keeping call stacks small and pure -- Summary -- 5. Advanced Cython -- C++ constructs -- Namespaces |
| Title | Learning Cython Programming |
| URI | https://app.knovel.com/hotlink/toc/id:kpLCP00006/learning-cython-programming/learning-cython-programming?kpromoter=Summon https://ebookcentral.proquest.com/lib/[SITE_ID]/detail.action?docID=1362587 https://www.vlebooks.com/vleweb/product/openreader?id=none&isbn=9781783280803&uid=none |
| hasFullText | 1 |
| inHoldings | 1 |
| isFullTextHit | |
| isPrint | |
| link | http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwzV3PS8MwFA5jetDL_IlzOop4DWtM2rReBMuG4Bw7yBheSpumc3S2Y60D_wv_ZF_SzgqiXj200LTkkeT1e0ney_sQurSEVN5MG9OAScyYKXCgXIim43LTNWNq64w3kyEfjZzp1B030PvmLIwit0rSbC0XGqafs0I5MntFJnrz6DpZDr2xhtheRaoww-JNHbLHVTjTCxT99u4mWeowN1CTcpvpB8EK1AHIlff34anetFHzJaq4IQiHX8ExeZVc0Pl8BjO3G-QJIBSgV5GDYStr_Yb12oANWv-v6XtoS6qDFvuoIdMD1NrQSxgV2hyiTpX7dWZ4WooxrqUcocmg_-jd4YrLAQdEEWJhO7AkNWMW2yERPKABV1GgRFDbdhgTjkktETHQDFirSwY4SmMWCsJDagsHLnqMmmmWyhNkkIDHPIa5Y2SZjEDPg3LBQoxEoQq5c602uvgyAv56of3OuV8PE0hro27ZZn9ZpvXw1Ud-3c1tZGwGzNcVVNGyfv_WI2D2LYef_lVHB-1cafoMtWVzhprF6lWeo22xLub5qqt1C-73uP8BnDH5XA |
| linkProvider | Knovel |
| openUrl | ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.title=Learning+Cython+Programming&rft.au=Herron%2C+Philip&rft.date=2013-09-25&rft.pub=Packt+Publishing&rft.isbn=9781783280803&rft.externalDocID=9781783280803 |
| thumbnail_m | http://cvtisr.summon.serialssolutions.com/2.0.0/image/custom?url=https%3A%2F%2Fvle.dmmserver.com%2Fmedia%2F640%2F97817832%2F9781783280803.jpg |
| thumbnail_s | http://cvtisr.summon.serialssolutions.com/2.0.0/image/custom?url=https%3A%2F%2Fcontent.knovel.com%2Fcontent%2FThumbs%2Fthumb8023.gif |

