Blosc / Blosc/python-blosc2

Standardise DSL and UDF interface

オープン
#597 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
211
フォーク
58
平均マージ
1日 17時間
マージ済み PR(30日)
6

説明

Currently, one writes a DSL kernel as

```
@dsl_kernel
def myfun(x, y, z):
return x + y * z
```
and a udf as
```
def myfun(inputs, output, offset):
x, y, z = inputs
output[:] = x + y * z
```

but then uses the same interface to wrap them as ``lazyudf``:

``blosc2.lazyudf(myfun, (x,y,z), dtype=np.float32)``

This seems strange and might be confusing for users.

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

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

調査の方向性

まず、issue に示されている dsl_kernel および UDF インターフェースと lazyudf エントリーポイントを比較します。単一の一貫した呼び出し規約をどうすべきか、また既存ユーザーがどのように移行するかを決定します。DSL カーネルと UDF の両方についてインターフェースが標準化され、動作が検証されれば完了です。

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

評価

技術スタック
python
領域
api
issue の種類
リファクタリング
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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