SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. (by swig)

SWIG Alternatives

Similar projects and alternatives to SWIG

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better SWIG alternative or higher similarity.

Suggest an alternative to SWIG

Reviews and mentions

Posts with mentions or reviews of SWIG. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-16.
  • SWIG and Perl
    reddit.com/r/perl | 2021-10-16
    Check out the site www.swig.org it will answer several of your questions. XS code is specific to Perl that you have to know how to code and use. SWIG takes code from C and C++ (actually several languages) and uses code templates to generate all the XS code for you. I wrote both a C library and C++ library doing different things, and used SWIG to import them into Perl (via "use"), Python and PHP. There is a learning curve, but it's not that bad, and there is a lot of great documentation and examples on the SWIG site.
  • Text extraction, HELP
    Ohhh alrightt I went through the installation of pypodofo. 1. Install podofo library. For example in archlinux, pacman -S podofo 2. Install swig tool. Note, you should have installed gcc and g++ compilers 3. Build wrapper. python setup.py build 4. Copy dynamic library to python package. cp build/lib.linux-x86_64-3.7/_api.cpython-37m-x86_64-linux-gnu.so pypodofo/ 5. Install requirements. pip install -r requirements.txt (if possible in a virtualenv). 6. Run tests. nosetests tests/
  • Trying to write a cross-language library
    reddit.com/r/rust | 2021-07-25
    Another option is SWIG, but I don't like it too much.
  • Obvious and possible software innovations nobody does
    news.ycombinator.com | 2021-06-19
    * I was using SWIG (http://www.swig.org/) 15+20 years ago to bind C/C++ to Perl and Java and it still exists.*

    I've used it. It took the entire thing you want to call and generated one giant file of munged C. That's sort of where that idea takes you.

    But the author is on to something. There's a C to Rust translator. It sucks, because it works by emulating C pointer arithmetic in unsafe Rust, using its own set of primitives along the lines of "offset this pointer by this much". Now you have ugly, unsafe Rust.

    What's needed is something that infers the meaning of an ambiguous function call from the code. Something that reasons like this:

    Function call:

        int read(char* buf, size_t n)
  • ¿Cómo mejorar el rendimiento de una aplicación hecha en Django?
    dev.to | 2021-05-26
  • Are there extensible environments in the manner of Emacs outside of text editors and developer tools generally?
    reddit.com/r/emacs | 2021-04-03
    For the parsing part it is probably not a big deal. Either your own elisp code or use something like clangd. I am not so knowledgable about the implementation deatils for LSP & Co, but it is definitely possible to parse headers and extract definitions. There are also tools like swig.
  • What exactly are bindings and how do they work?
    I’m not an expert on this but usually the use cases revolve around being able to reuse C/C++ within “scripting” languages. The SWIG Project is one that I know of for this exact use case. (I’m not sure what would cause some language to bind better or worse, it’s a weird angle on the question)
  • 2 steps into one of the most basic Kubernetes tutorials and it already doesn't work....this is why Kubernetes is so frustrating
    What I know is that I never experienced these pain points learning Docker Swarm, Ansible, Linux in general, or really anything else for that matter. The only thing that comes to mind that was more painful was when I had to use SWIG to get some legacy C code working in a Java environment in a production manner. I wouldn't wish that on anyone. It was awful, not just for me but an entire team of people.
  • Making A Synthesizer Using Python
    reddit.com/r/Python | 2021-03-02
    SWIG is quite popular for this: http://www.swig.org/


Basic SWIG repo stats
2 days ago

swig/swig is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Find remote C++ jobs at our new job board 99remotejobs.com. There is 1 new remote job listed recently.
Are you hiring? Post a new remote job listing for free.