Frink is a programming language designed to make physical calculations simple

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. rink-rs

    Unit conversion tool and library written in rust

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. FsFrink

    An effort to bring frinklang.org UoMs into F# ecosystem

    I came across this repo where someone actually took the time to convert Frink's unit data to F# (which also supports units of measure) and I got to wondering if Frink's inspired it.

    https://github.com/avestura/FsFrink

    BTW, I'd love to see more mainstream languages consider features like units of measure. I understand the tech-debt it would likely-incur, but I think it would be a fun mental exercise to really go through the different languages and ask how one might add units of measure.

    For example, in F#, the units are erased when they're compiled, so there is no runtime support for units. But I could imagine a dynamic/weaker typed language implementing it with runtime support where units are implemented like atomic symbols that are paired with numbers. Maybe each compound unit could be represented with a unique symbol that's created at runtime.

    Personally, I don't think languages explore enough with interesting literals. Combining units with non-numeric types like strings might make interpolation a little more interesting.

  4. units

    The home of the units Haskell package (by goldfirere)

    It seems to me that Haskell would be a great language for such a thing, ensuring correctness at compile time through the type system, e.g. using the units package https://hackage.haskell.org/package/units https://github.com/goldfirere/units/tree/master/units

    It even has nice features like: "The laws of nature have dimensions, and they hold true regardless of the units used. For example, the gravitational force between two bodies is (gravitational constant) * (mass 1) * (mass 2) / (distance between body 1 and 2)^2, regardless of whether the distance is given in meters or feet or centimeters. In other words, every law of nature is unit-polymorphic."

    "The units package supports unit-polymorphic programs ..."

  5. unitdc-rs

    A dc-like arbitrary precision quantity calculator.

    I found this one, but I haven't tested it:

    https://github.com/eternal-flame-AD/unitdc-rs

    I ran across it because I wanted to know if dc, the old Unix rpn calculator, could do units.

  6. dimensioned

    Compile-time dimensional analysis for various unit systems using Rust's type system.

    Rust as well. There are at least a few libraries to do it, but I'll link the one I wrote:

    https://crates.io/crates/dimensioned

  7. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Rink: An open source unit-aware calculator

    1 project | news.ycombinator.com | 8 Feb 2025
  • Stochastic-rs math finance/quant lib

    2 projects | news.ycombinator.com | 11 Oct 2024
  • Rink issue: Add `assload` and `buttload`

    1 project | news.ycombinator.com | 28 Aug 2024
  • What's the point of std:monostate? You can't do anything with it

    1 project | news.ycombinator.com | 22 Jul 2024
  • RustQuant: NEW Derivatives and Hedging - star count:485.0

    1 project | /r/algoprojects | 10 Dec 2023