2025-12-21 15:38:31 +01:00
2025-12-21 15:38:31 +01:00
2025-12-21 15:38:31 +01:00
2025-12-21 15:38:31 +01:00
2025-12-21 15:38:31 +01:00
2025-12-21 15:38:31 +01:00
2025-12-21 15:38:31 +01:00
2025-12-21 15:38:31 +01:00

Bqst

First of all, I wanted to compile libqalculate into wasm to use it for a project, specially to do some calculations with electric units. That was gonna be (and might be at some point) "qalcst".

But I got tired and it's getting close but there's still so much broken stuff (C++ is a mess ngl) that I decided to just implement that aspect of it in rust (ez to cross compile). So I made "bqst", "basic qalcst".

It's just a fancy wrapper for calculations with an arbitrary float precission math backend. It also tracks units and makes sure they match dimension (for add and sub). It even tries to convert some units when mul or div. Lastly, for display it does SI prefixes of decimal exponent multiple of 3 from femto to peta, it also allows parsing of them.

Running test/test.sh will get you a good example of what it does. It also barely has dependencies so compiles very fast (even though rust) and the binary is quite small (also even thugh rust, and opt-level = 3 instead of opt-level = "z").

Description
Basic qalc(like) typst plugin.
Readme GPL-2.0 66 KiB
Languages
Rust 85.3%
Typst 11.3%
Makefile 3.4%