Blosc / Blosc/python-blosc2

Standardise DSL and UDF interface

Open
#597 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
211
Forks
58
Avg merge
1d 17h
Merged PRs (30d)
6

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.