Add flag to enable lazy array behavior

Open
#58 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start by reading the linked lazy/eager design topic, then inspect the array operations and __int__ behavior in the repository. Determine how an opt-in flag should affect evaluation and which existing behavior should raise an exception; done means the flag is exposed and its behavior is covered by tests.

Written by the indexing model from the issue text.

Description

Low Priority

A flag to enable lazy array behavior would be useful https://data-apis.org/array-api/draft/design_topics/lazy_eager.html.

We have to be careful here because we don't want to actually build a real "lazy" array package here. It should probably just continue to evaluate everything, but make functions like __int__ raise an exception.

Dominant language
Python
Stars
34
Forks
14
Avg merge
3m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from data-apis/array-api-strict

All issues in data-apis/array-api-strict

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.