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

Store unit and constant data in TOML #53

Open
matterhorn103 opened this issue Oct 13, 2024 · 1 comment
Open

Store unit and constant data in TOML #53

matterhorn103 opened this issue Oct 13, 2024 · 1 comment

Comments

@matterhorn103
Copy link
Owner

matterhorn103 commented Oct 13, 2024

This would make the definitions no longer dependent on Python syntax and therefore also usable from Rust.

Will presumably increase import time, which could be a significant disadvantage, but let's see how big of an effect it actually has.

Does also open the door to decreasing memory use by not actually instantiating units/constants at import time but rather deferring creation until first use, and only storing the definitions in memory. But not sure if this would in reality afford any genuine advantage, the memory footprint is not high.

@matterhorn103
Copy link
Owner Author

matterhorn103 commented Oct 16, 2024

This is a WIP on the toml branch.

Module progress:

Units:

  • astro
  • base - won't do, base units should be implemented natively
  • chemistry
  • common
  • computing
  • imperial
  • logarithmic
  • partsper
  • prefixed - also consider what should be implemented natively
  • si - should probably also be implemented natively
  • temperatures
  • time
  • typography
  • us

Constants:

  • codata2018
  • fundamental - again, probably leave as native implementation

@matterhorn103 matterhorn103 changed the title Store unit generation data in TOML Store unit and constant data in TOML Oct 16, 2024
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

No branches or pull requests

1 participant