Demonstrate Mapping of Python's asyncio to Compute Platform
まだ誰も着手していません。
評価
- 難易度
- 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 はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fastly/compute-sdk-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
fastly/compute-sdk-python#116 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
fastly/compute-sdk-python#98 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
fastly/compute-sdk-python#74 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
fastly/compute-sdk-python#61 ·
-
fastly/compute-sdk-python#60 · 担当者 1 名 ·
fastly/compute-sdk-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/skills#1811 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
speaches-ai/speaches#678 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
datalayer/mcp-compose#42 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
conda-forge/spacy-feedstock#177 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
UKGovernmentBEIS/inspect_evals#2523 ·