F# Units of Measure – Survey on Lack of Adoption of UoM libraries

Are you guys uncomfortable with this piece of C-type code?

static final double c = 1079252849;

static final double SPEED_OF_LIGHT = 1079252849;

static final double SPEED_OF_LIGHT_IN_KM_PER_H = 1079252849;

I am an informatics masters student working towards my thesis in Sweden at Uppsala University and I am currently looking at the lack of adoption of UoM (Unit of Measurement) libraries and why that’s the case in computer science and scientific/programming communities in general. More than 3000 UoM libraries exist from previous research, indicating that these libraries aren’t really adopted by wider communities and that there is no ‘standard’, so to say.

If you’ve ever used C++ Boost.Units, JSR-385, F#’s inbuilt support for UoM or any other UoM library in any language (or have implemented your own custom solution, or considered using one of these libraries), I would be super grateful if you could spare a moment of your time to fill out the following survey for me. It only takes about 5 minutes to fill out.

Here is the link to the questionnaire: https://docs.google.com/forms/d/e/1FAIpQLSfGsH9qSllDPaM5qBuvcSISWNH4fwzl1Gkcf50IOT9F4kABUQ/viewform.

I posted this survey on the cpp and compsci subreddits and some other forums and I got some really interesting answers which you can find on: https://www.reddit.com/r/cpp/comments/b6wsyy/c_boostunits_survey_on_lack_of_adoption_of_uom/. The issue is really language agnostic which is why I also posted it here. I got quite a lot of responses, but I just need a few more to gauge the severity of this issue.

If you have any questions or insights, please feel free to message me or post it here!

submitted by /u/Alfredius
[link] [comments]

Leave a Reply