--
---
You received this message because you are subscribed to the Google Groups "The Quantified Onion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to the-quantified-o...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yesterday, I uploaded a new version of Astro::Constants v0.1002 to PAUSE and the CPANTS reports are all passing. You can get it from CPAN when it comes to a mirror near you or fresh from the repository at https://github.com/duffee/Astro-Constants It provides physical constants useful for astronomy/astrophysics in both MKS and CGS systems. They are also constant in that the compiler emits warnings if you try to assign to them. The constants are available in two flavours, descriptive names like SPEED_LIGHT or shorter variable names like $A_c. A list of the constants is at https://metacpan.org/pod/Astro::Constants
Why a new release after 13 years? It's a simple module that I used as an example to teach myself how to use Dist::Zilla (and will use again when I get around to learning Perl6), but it's raised some interesting issues that I'd like your feedback on.
1) ** Constants aren't ** One of the big standards bodies, NIST, now releases a listing of physical values every 4 years from the Committee on Data for Science and Technology (CODATA). One change is the Newtonian gravitational constant, G, which in 2010 was 6.67384e-11 and in 2014 is 6.67408e-11. Both these values are within the stated uncertainty values of 1.2e-4 and 4.7e-5, so it's not controversial, but it's something that I'd never considered before. How do you feel about your constants changing? Does this mean that a repository update has the potential to change the results of old programs solving non-linear equations? scipy.constants v0.16 uses CODATA 2010, while v0.17 uses CODATA 2014. There will be another adjustment in 2018 based on a revision to the SI units. Is there any use in being able to refer back to old values for a constant?
2) CGS (centimetres/grams/seconds) is a system historically used by astronomy. The 1987 version of Galactic Dynamics quoted luminosities in ergs s^-1, but moved to SI in 1998. In 2012 (perhaps earlier), the IAU 2012 supported moving to SI. Is there a reason to still keep those values around? The original Astroconst header files that this module is based on was written around 1999, so maybe the time has come to deprecate. Anyone still using it?
Interesting question! Ideally, I guess, the constants would be packaged separately from the Perl code. That way, you could leverage the versioning and archiving scheme from cpan to enable users to update when they wanted. But, not having looked at your Module, I'm not sure how much work that would be.