jagomart
digital resources
picture1_Python Pdf 185987 | Pytutorial97


 160x       Filetype PDF       File size 0.49 MB       Source: www.swig.org


File: Python Pdf 185987 | Pytutorial97
interfacing c c and python with swig david m beazley department of computer science university of utah salt lake city utah 84112 beazley cs utah edu swig tutorial 6th international ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 2 years ago
Partial capture of text on file.
           
                                         Interfacing C/C++ and Python with SWIG
                                                                David M.  Beazley
                                                         Department of Computer Science
                                                                 University of Utah
                                                            Salt Lake City, Utah 84112
                                                             beazley@cs.utah.edu
                        SWIG Tutorial                         6th International Python Conference                        1
                     
                                                            Prerequisites
                           C/C++ programming
                                 • You’ve written a C program.
                                 • You’ve written a Makefile.
                                 • You know how to use the compiler and linker.
                           Python programming
                                 • You’ve heard of Python.
                                 • You’ve hopefully written a few Python programs.
                           Optional, but useful
                                 • Some knowledge of the Python C API.
                                 • C++ programming experience.
                           Intended Audience
                                 This tutorial is aimed at C/C++ application developers who are interested in using 
                                 Python as an interface (I am one of these developers).
                         SWIG Tutorial                        6th International Python Conference                         2
                      Notes
                            
                                                     C/C++ Programming
                            The good
                                 • High performance.
                                 • Low-level systems programming.
                                 • Available everywhere and reasonably well standardized
                            The bad
                                 • The compile/debug/nap development cycle.
                                 • Difficulty of extending and modifying.
                                 • Non-interactive.
                            The ugly
                                 • Writing user-interfaces.
                                 • Writing graphical user-interfaces (worse).
                                 • High level programming (“claims” about C++ are questionable).
                                 • Trying to glue different “components” together (i.e. reuse).
                         SWIG Tutorial                         6th International Python Conference                          3
                       Notes
                                   
                                          What Python Brings to C/C++
                            An interpreted high-level programming environment
                                 • Flexibility.
                                 • Interactivity.
                                 • Scripting.
                                 • Debugging.
                                 • Testing
                                 • Rapid prototyping.
                            Component gluing
                                 • A common interface can be provided to different C/C++ libraries.
                                 • C/C++ libraries become Python modules.
                                 • Dynamic loading (use only what you need when you need it).
                            The best of both worlds
                                 By mixing Python and C/C++ we not only get the high-performance of C, but also 
                                 get the benefits of interpreted environments--rapid development, interactivity, 
                                 components, debugging, and high level programming.    This is a powerful 
                                 computing model.
                         SWIG Tutorial                         6th International Python Conference                         4
                      Notes
The words contained in this file might help you see if this file matches what you are looking for:

...Interfacing c and python with swig david m beazley department of computer science university utah salt lake city cs edu tutorial th international conference prerequisites programming you ve written a program makele know how to use the compiler linker heard hopefully few programs optional but useful some knowledge api experience intended audience this is aimed at application developers who are interested in using as an interface i am one these notes good high performance low level systems available everywhere reasonably well standardized bad compile debug nap development cycle difculty extending modifying non interactive ugly writing user interfaces graphical worse claims about questionable trying glue different components together e reuse what brings interpreted environment flexibility interactivity scripting debugging testing rapid prototyping component gluing common can be provided libraries become modules dynamic loading only need when it best both worlds by mixing we not get also b...

no reviews yet
Please Login to review.