calculang is a language for calculations 🧮💬👩‍💻 (by calculang)

Calculang Alternatives

Similar projects and alternatives to calculang

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better calculang alternative or higher similarity.

calculang discussion

Log in or Post with

calculang reviews and mentions

Posts with mentions or reviews of calculang. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-15.
  • Show HN: Open-source, browser-local data exploration using DuckDB-WASM and PRQL
    11 projects | | 15 Mar 2024
  • Dynamic programming in Haskell: automatic memoization
    2 projects | | 20 Jun 2023
    I develop calculang, a language for calculations. It converts concise formulae into Javascript.

    Since calculation formulae are usually inherently pure, a `--memo` flag to the compiler memoizes the lot.

    Many of my models are written in this recursive style and only work because of memoization. Sometimes other tricks are needed e.g. careful ordering of the calls, so that the memo is available before the stack breaks.

    My first calculang example is a bouncing ball: the position at t depends speed and the position at t-1. With loops we'll usually discover the same thing, but it's so much harder to follow.

    First-class memoization to proliferate this style is a really neat thing.


    [1] bouncing ball code:

    [2] bouncing ball initial post:

    [3] if you can tolerate my slow-load WIP devtools and are on a Desktop, this is better, with buttons to navigate through the model development (only some of which are working now!):

  • AI intensifies fight against ‘paper mills’ that churn out fake research
    1 project | | 31 May 2023
    My instinct about numbers (i.e. incl. statistics) is that they should be reproducible: on-demand, with results and workings easily subjected to interrogation.

    In reality in many fields - my experience is in finance, but also in science - calculations are scattered across different languages and systems. This adds friction to any process about reproducing, understanding, analysing numbers.

    This is some motivation for calculang, a language for calculations I develop.

    For the HN crew it's an under-development(!) functional language with properties to permit flexible designs that can scale. It's for numbers and if you share the model alongside your numbers people can check them according to the model and see the workings.

    It goes well with visual number [dev/person]tools that I will release one of soon, and in the future watch for a browser extension for the workings behind numbers you are reading.

    Important, it won't address the raw data part of the problem, but where numbers following from that are concerned, it might get closer to that instinct.

  • Ask HN: Those making $0/month or less on side projects – Show and tell
    95 projects | | 27 Jan 2023
    I'm developing calculang, a language for calculations:

    I've made some examples here:

    Some tooling work for visualizations and for showing the workings will be released in the next weeks.

    There are no positive money flows; I've spent many years experimenting, developing, and now 1 year after a public release the twitter page where I make announcements has 24 followers:

    I'm a modelling consultant - I work with numbers, I think they should be simple, but they are disjointed across systems and entities and programming languages and spreadsheets. The friction accumulates everywhere: to get a simple result, to follow the workings, to do any analysis, to share one or the other.

  • How to store your app's entire state in the url
    17 projects | | 9 Jan 2023
    I'm developing more tools to these ends, via my overarching project calculang, a language for calculations [1].

    I also have a loan/repayment validator [2] but haven't added this QR code feature yet.

    Bank letters e.g. "Interest rates are rising and now we want 100e more per month, every month" could use a QR code to an independent validator or to see the workings behind the 100 calculation.

    Not using this in the real world now and there are security considerations to keep in mind, but reading state from a URL facilitates the usecase, QR codes that link physical numbers to their calculation and model.

    Implementation of payroll calculator is an Observable notebook and thankfully it neatly supports all my strict requirements as a QR code demo.


    +Feature tweet:



  • A note from our sponsor - SurveyJS | 17 Jun 2024
    With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js. Learn more →


Basic calculang repo stats
about 1 month ago

Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.