如何使用 WASMTIME 来运行 CPython for WASI,然后利用 Python 实现的 HostFunction 来扩展它?

国庆节搞了一个活,利用 wasmtime 来执行编译成 WASM/WASI 字节码的 CPython 虚拟机,并在宿主机一侧利用 Python 实现的 Host Function 来扩展它。 再次声明一下,这个只是我个人想搞的活,没有再任何生产环境中得到验证,just for fun(XDDD

编程 / CPython编程笔记水文CPythonWASI

How to Run CPython for WASI Using WASMTIME and Extend It with Python-Implemented Host Functions?

During the National Day holiday, I worked on a project to use wasmtime to execute CPython virtual machine compiled into WASM/WASI bytecode, and extend it with Host Functions implemented in Python on the host side. I’d like to clarify again that this is just a personal project I wanted to work on, without any validation in production environments, just for fun (XDDD

编程 / CPython编程CPythonNotesWASIWASM

2024 年了,是 Gevent 还是选择 asyncio Part 1?

Gevent 还是 asyncio 这一直是个经典的问题,在这里我们直接用数据来帮助大家做一下决策

编程 / CPython编程笔记水文CPython

In 2024, Gevent or asyncio? Part 1

The choice between Gevent and asyncio has always been a classic question. Here, we’ll use data to help you make a decision.

编程 / CPython编程CPythonNotesCasual Writing

Debug 日志:CPython GH-121528

Debug 日志系列第二篇,CPython 的 GH-121528,也是很有趣的调试和讨论过程,写出来希望帮助大家 太长不看的版:Python 3.13 Beta 版本中,因为 PEP 683 的实现+周边的改动,导致低版本下编译的一些扩展无法在 Python 3.13 中运行

编程 / CPython编程笔记水文CPython

Debug 日志:CPython GH-120437

和 SRE 日志 系列一样,Debug 日志用来复盘我一些可以公开的调试经历,希望能帮助到大家。 这篇是 Python 3.13 Beta 下 JIT/Tier 2 优化器的一个 Bug ,前后历时五天,最终修改点很小,非常有趣

编程 / CPython编程笔记水文CPython

站内搜索

没有找到内容!