Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

update broken link
Source Link
  1. Yes, at its core this is what Cython does. But ...
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from its dependence on libpython while still using the Python language.

Another option is PyPy, specifically it's translation toolchain translation toolchain, NOT the PyPy Python interpreter. It lets you translate RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may work.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms. This is what allows the PyPy implementation of Python, written in (R)Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

  1. Yes, at its core this is what Cython does. But ...
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from its dependence on libpython while still using the Python language.

Another option is PyPy, specifically it's translation toolchain, NOT the PyPy Python interpreter. It lets you translate RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may work.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms. This is what allows the PyPy implementation of Python, written in (R)Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

  1. Yes, at its core this is what Cython does. But ...
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from its dependence on libpython while still using the Python language.

Another option is PyPy, specifically it's translation toolchain, NOT the PyPy Python interpreter. It lets you translate RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may work.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms. This is what allows the PyPy implementation of Python, written in (R)Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

added 1 characters in body
Source Link
agf
  • 178.3k
  • 45
  • 300
  • 241
  1. Yes, at its core this is what Cython does. But ...
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from its dependence on libpython while still using the Python language.

What you wantAnother option is PyPy, specifically it's translation toolchain, NOT the PyPy Python interpreter.

It lets you translate RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may be your best betwork.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms.

This is what allows the PyPy implementation of Python, written in Python(R)Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

Also, I might as well answer your questions:

  1. Yes, I believe this is possible.
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from it's dependence on libpython easily at all.

What you want is PyPy, specifically it's translation toolchain, NOT the PyPy Python interpreter.

It lets you translate RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may be your best bet.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms.

This is what allows the PyPy implementation of Python, written in Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

Also, I might as well answer your questions:

  1. Yes, I believe this is possible.
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from it's dependence on libpython easily at all.
  1. Yes, at its core this is what Cython does. But ...
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from its dependence on libpython while still using the Python language.

Another option is PyPy, specifically it's translation toolchain, NOT the PyPy Python interpreter. It lets you translate RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may work.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms. This is what allows the PyPy implementation of Python, written in (R)Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

What you want is PyPy, specifically it's translation toolchain translation toolchain, NOT the PyPy Python interpreter.

It lets you translate RPython RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may be your best bet.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms.

This is what allows the PyPy implementation of Python, written in Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

Also, I might as well answer your questions:

  1. Yes, I believe this is possible.
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from it's dependence on libpython easily at all.

What you want is PyPy, specifically it's translation toolchain, NOT the PyPy Python interpreter.

It lets you translate RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may be your best bet.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms.

This is what allows the PyPy implementation of Python, written in Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

Also, I might as well answer your questions:

  1. Yes, I believe this is possible.
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from it's dependence on libpython easily at all.

What you want is PyPy, specifically it's translation toolchain, NOT the PyPy Python interpreter.

It lets you translate RPython, a subset of the Python language, into C. If you really aren't using many Python language features or libraries, this may be your best bet.

PyPy is mostly known as an alternative Python implementation, but it is also a set of tools for compiling dynamic languages into various forms.

This is what allows the PyPy implementation of Python, written in Python, to be compiled to machine code.

If C++ is available, Nuitka is a Python to C++ compiler that works for regular Python, not just RPython (which is what shedskin and PyPy use).

Also, I might as well answer your questions:

  1. Yes, I believe this is possible.
  2. You don't need Cython, however, you do need libpython. You may feel like it doesn't use that many Python features, but I think if you try this you'll find it's not true -- you won't be able to separate your program from it's dependence on libpython easily at all.
added 355 characters in body
Source Link
agf
  • 178.3k
  • 45
  • 300
  • 241
Loading
added 14 characters in body
Source Link
agf
  • 178.3k
  • 45
  • 300
  • 241
Loading
Source Link
agf
  • 178.3k
  • 45
  • 300
  • 241
Loading
default

AltStyle によって変換されたページ (->オリジナル) /