News for hackers. Stuff that matters.
Re:Pint – A Python package to define, operate and manipulate... by okdjnfweonfe on Saturday September 04, 2021 @06:28AM (#28413798)
Pardon my tangent, is there any languages with first class, by default units support?
Re:Pint – A Python package to define, operate and manipulate... by akjssdk on Saturday September 04, 2021 @07:25AM (#28414112)
Not by default, but Julia has various units packages which integrate fairly well with the rest of the ecosystem. Unitful.jl [1] is the most used one I believe and integrates with DifferentialEquations.jl for example. It should also work with many other things, but you might have to patch it up a bit, especially if operations change the units (such as derivatives).

[1] https://github.com/PainterQubits/Unitful.jl

Re:Pint – A Python package to define, operate and manipulate... by dunefox on Saturday September 04, 2021 @06:52AM (#28413926)
Re:Pint – A Python package to define, operate and manipulate... by LegionMammal978 on Saturday September 04, 2021 @09:23AM (#28414861)
The Wolfram Language (i.e., the language used for Mathematica) supports units by default through the Quantity object [0], but the software is somewhat expensive for general-purpose use.

[0] https://reference.wolfram.com/language/ref/Quantity.html

Re:Pint – A Python package to define, operate and manipulate... by elteto on Saturday September 04, 2021 @09:28AM (#28414897)
There is Frink [0] which was created for the manipulation of physical quantities. I used it extensively in college… imperial units for fluid dynamics? yuck!

[0] https://frinklang.org/

Re:Pint – A Python package to define, operate and manipulate... by isaacimagine on Saturday September 04, 2021 @06:31AM (#28413809)
Re:Pint – A Python package to define, operate and manipulate... by ThePadawan on Saturday September 04, 2021 @06:33AM (#28413823)
There is some argument for C++11 which has user-defined literals: https://en.cppreference.com/w/cpp/language/user_literal
Re:Pint – A Python package to define, operate and manipulate... by scotty79 on Saturday September 04, 2021 @04:44PM (#28418967)
Library for physical units using that feature would be awesome.
Re:Pint – A Python package to define, operate and manipulate... by Too on Sunday September 05, 2021 @01:02AM (#28421754)
Built into standard library for time units: https://en.cppreference.com/w/cpp/symbol_index/chrono_litera...
Re:Pint – A Python package to define, operate and manipulate... by walrus on Saturday September 04, 2021 @06:44AM (#28413879)
F#