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

Codegen #27

Open
wants to merge 177 commits into
base: master
Choose a base branch
from
Open

Codegen #27

wants to merge 177 commits into from

Conversation

TK-21st
Copy link
Collaborator

@TK-21st TK-21st commented Mar 28, 2022

Major refactor of the package.

Major design changes include:

  1. Migrating to Numba for codegeneration, which removes dependency on pycodegen. No codegen is required beside formatting methods before calling numba's jit decorator
  2. Backends are designed as Mixins and directly replaces model methods for maximum performance and quality of life for users.
  3. Every model instance has associated num and is therefore aware of the number of components being instantiated, and model attributes are wrapped in a structured array called _data. This significantly simplifies codegeneration.

@TK-21st TK-21st self-assigned this Mar 28, 2022
@TK-21st TK-21st added this to the 0.2.0 milestone Mar 28, 2022
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.

1 participant