Thanks to visit codestin.com
Credit goes to github.com

Skip to content

koek67/zigpython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zigpython

We can compile the Python interpreter (CPython) using Zig. Zig is a systems programming language that can not only compile Zig, but also compile C/C++.

  1. Download Zig

  2. Run

    bash compile.sh
    
  3. Run the python interpreter

    ./cpython/python
    

    You should see:

    ➜  zigpython git:(main) ✗ ./cpython/python 
    Python 3.12.0a3+ (heads/main:532aa4e4e0, Dec 18 2022, 21:02:08) [Clang 15.0.3 ([email protected]:ziglang/zig-bootstrap.git 85033a9aa569b41658404d0e on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages