Skip to content

FIX: Update Numba Lecture to Address Deprecation of @jit#296

Merged
mmcky merged 7 commits intomainfrom
update-numba
Dec 14, 2023
Merged

FIX: Update Numba Lecture to Address Deprecation of @jit#296
mmcky merged 7 commits intomainfrom
update-numba

Conversation

@HumphreyYang
Copy link
Copy Markdown
Member

@HumphreyYang HumphreyYang commented Oct 24, 2023

This PR resolves #294.

Future actions are held in QuantEcon/meta#112

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 24, 2023

@github-actions github-actions bot temporarily deployed to pull request October 24, 2023 11:52 Inactive
@HumphreyYang
Copy link
Copy Markdown
Member Author

Hi @mmcky,

Could you please have a first pass on this?

Many thanks in advance.

@mmcky
Copy link
Copy Markdown
Contributor

mmcky commented Oct 25, 2023

@HumphreyYang thanks for putting this together. This looks like a good change to me.

I wonder if using @jit(nopython=True) would be useful to show instead of @njit as we will plan to swap back to using the simpler @jit directive once the deprecation has been made in a later release.

Also can you please create and link the switch back to @jit issue.

Thank you.

@HumphreyYang
Copy link
Copy Markdown
Member Author

@HumphreyYang thanks for putting this together. This looks like a good change to me.

I wonder if using @jit(nopython=True) would be useful to show instead of @njit as we will plan to swap back to using the simpler @jit directive once the deprecation has been made in a later release.

Also can you please create and link the switch back to @jit issue.

Thank you.

Hi @mmcky,

From the roadmap, I think Numba developers want to push people away from @jit(nopython=False). If that is the case, I think @njit is more compact. Maybe we should ask @jstac for his opinion?

Also can you please create and link the switch back to @jit issue.

It has been created in the meta repository here as it might involve more than one lecture.

Many thanks in advance.

Best,
Humphrey

Co-authored-by: mmcky <mmcky@users.noreply.github.com>
@jstac
Copy link
Copy Markdown
Contributor

jstac commented Oct 26, 2023

Thanks @HumphreyYang and @mmcky . I'm indifferent between the two options, since we'll be changing both to @jit soon anyway.

@mmcky
Copy link
Copy Markdown
Contributor

mmcky commented Oct 26, 2023

thanks @HumphreyYang -- that linked issue is useful so I have added it to the top level description.

Do you know if njit is going to persist once the @jit decorator moves to default nopython=True mode?

@HumphreyYang
Copy link
Copy Markdown
Member Author

thanks @HumphreyYang -- that linked issue is useful so I have added it to the top level description.

Do you know if njit is going to persist once the @jit decorator moves to default nopython=True mode?

Many thanks @mmcky,

I checked their documentation, but I did not find anything about the deprecation of njit. There is no deprecation warning when using njit at the moment. Therefore, I think it is not going to be removed.

Copy link
Copy Markdown
Contributor

@mmcky mmcky left a comment

Choose a reason for hiding this comment

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

@HumphreyYang just one minor change. I am happy to keep njit for the sake of being concise.

@github-actions github-actions bot temporarily deployed to pull request November 1, 2023 11:28 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 20, 2023 05:06 Inactive
@HumphreyYang HumphreyYang requested review from jstac and mmcky November 22, 2023 02:23
Copy link
Copy Markdown
Contributor

@mmcky mmcky left a comment

Choose a reason for hiding this comment

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

thanks @HumphreyYang

@jstac there are some changes to content in this PR if you wanted to take a Quick Look.

@mmcky mmcky changed the title Update Numba Lecture to Address Deprecation of @jit FIX: Update Numba Lecture to Address Deprecation of @jit Dec 12, 2023
@jstac
Copy link
Copy Markdown
Contributor

jstac commented Dec 13, 2023

Thanks @HumphreyYang , looking good.

@mmcky Could you please give this a careful proofread and then merge when ready? I flagged a couple of small things above.

@github-actions github-actions bot temporarily deployed to pull request December 13, 2023 04:49 Inactive
@HumphreyYang
Copy link
Copy Markdown
Member Author

HumphreyYang commented Dec 13, 2023

Many thanks @jstac and @mmcky ,

The typo is introduced when I modify the text according to @mmcky's feedback. I will be more careful when deleting content. I also found another typo in the original text : )

@mmcky, would you mind having another review and merge if it looks good?

Many thanks in advance.

@mmcky mmcky merged commit efe322b into main Dec 14, 2023
@mmcky mmcky deleted the update-numba branch December 14, 2023 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation Warnings

3 participants