Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Demonstrate Mapping of Python's asyncio to Compute Platform

オープン
#12 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, wasm

調査の方向性

まず、Spin SDK の src/spin_sdk/http/poll_loop.py と wasm_abi/wit/deps/fastly/compute.wit にある async_io 定義を比較し、次に componentize-py と Python の asyncio.AbstractEventLoop が preview2 にどう適合するかを確認します。完了とは、サポートされている compute interface 上で Python の async/await が Fastly およびサードパーティコードと連携できる、明確に定義されたマッピングができていることです。

索引モデルが issue の本文から書いたものです。

説明

Many python backend developers may want to use python 3's asyncio in order to interact with fastly and third-party code using async/await. While, at this time, it is unlikely that we'll have significant parallelism outside of what is provided by the platform, this is something that would be a major missing piece as far as developer experience goes.

There's some prior art here for the work required in order to map python's asyncio to something like our WIT async_io definitions by folks at fermyon in the spin sdk (also referenced from compute-sdk-python documentation): https://github.com/spinframework/spin-python-sdk/blob/ffc517a11b2925e9e0338c44d3ce08d75f9fc0a1/src/spin_sdk/http/poll_loop.py

In the case of spin, they are defining an asyncio.AbstractEventLoop subclass. It is likely that with preview3 support this sort of definition may be provided as part of componentize-py; for preview2 compute only supports its bespoke select-ish thing which is what we would have to try to target, but it shouldn't be radically different from wasi:io/poll is my expectation.

主要言語
Python
スター
5
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fastly/compute-sdk-python のほかの issue

fastly/compute-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。