Sem descrição

blueloveTH c7157443aa Update vm.h há 3 anos atrás
.github 7909f00e50 up há 3 anos atrás
docs 24b2140959 update readme há 3 anos atrás
plugins 2cc47b9574 up há 3 anos atrás
scripts 5c64b0da81 Update run_tests.py há 3 anos atrás
src c7157443aa Update vm.h há 3 anos atrás
tests 8008f131fb up há 3 anos atrás
web 7ad0ed1e2e remove threaded vm há 3 anos atrás
.gitattributes 0891000a46 init há 3 anos atrás
.gitignore 4ccb124eec Update .gitignore há 3 anos atrás
.gitmodules b247723b80 up há 3 anos atrás
LICENSE 5fe61c2e11 up há 3 anos atrás
README.md f66e92954b Update README.md há 3 anos atrás
amalgamate.py f129b1913d rename há 3 anos atrás
build_cpp.sh 7ad0ed1e2e remove threaded vm há 3 anos atrás
build_wasm.sh 7909f00e50 up há 3 anos atrás
test_cpp.sh 85bbdeaf9c up há 3 anos atrás

README.md

pocketpy

C++17 header-only Python interpreter for game engines.

Please see https://pocketpy.dev for details or try Live Demo.

sample_img

News

PocketPy is undergoing a major reconstruction. The next version, 0.8.x, is a huge break change compared with 0.6.x.

Changes in 0.8.x:

  1. better way for C bindings/host bindings
  2. try/catch support
  3. yield/coroutine support (we will try to implement asyncio)
  4. complete reflection (exec/eval/getattr/setattr/hasattr)
  5. bytecode optimizer (will improve the performance by 2x-3x)

Since the main purpose of PocketPy is for game engines, which is usually single-threaded. We will change some designs to fit this situation. All threaded interfaces will be deleted. PocketPy will no longer provide thread support at the C language level. If one needs to run the virtual machine in a thread, we recommend to use the thread support provided by the host language.

Reference