Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Rework the return of a compiler to avoid async and make target optional. #36

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

Yoric
Copy link
Collaborator

@Yoric Yoric commented Jan 30, 2025

We don't want our users to need to understand async/await until they need to,
so we rework the output of extractors to make them usable without async/await.
Only users who write code for servers or interactive applications will need to await.

Also, we make target optional, because we want to be able to use our kernel with
data that does not come from the training material!

Note: breaking API changes, we'll need to bump version.

@Yoric Yoric requested a review from RolandMacDoland January 30, 2025 11:52
@Yoric Yoric force-pushed the yoric/loaders-await branch from 05d0166 to 2c8265c Compare January 30, 2025 12:02
Copy link
Collaborator

@RolandMacDoland RolandMacDoland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Yoric. Minor nit-picky comments, otherwise LGTM.

examples/tutorial.ipynb Show resolved Hide resolved
examples/tutorial.ipynb Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
qek/data/dataset.py Outdated Show resolved Hide resolved
qek/data/dataset.py Show resolved Hide resolved
qek/data/graphs.py Outdated Show resolved Hide resolved
qek/data/graphs.py Outdated Show resolved Hide resolved
qek/data/graphs.py Outdated Show resolved Hide resolved
qek/data/graphs.py Outdated Show resolved Hide resolved
qek/data/graphs.py Outdated Show resolved Hide resolved
@Yoric Yoric requested a review from RolandMacDoland January 30, 2025 15:37
Copy link
Collaborator

@RolandMacDoland RolandMacDoland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks.

…et` optional.

We don't want our users to need to understand `async`/`await` until they need to,
so we rework the output of extractors to make them usable without `async`/`await`.
Only users who write code for servers or interactive applications will need to `await`.

Also, we make `target` optional, because we want to be able to use our kernel with
data that does not come from the training material!

Note: breaking API changes, we'll need to bump version.
@Yoric Yoric force-pushed the yoric/loaders-await branch from 7eb786d to bebd7b5 Compare February 3, 2025 15:48
@Yoric Yoric merged commit 9455daa into main Feb 3, 2025
7 checks passed
@Yoric Yoric deleted the yoric/loaders-await branch February 3, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants