DeciMojo v0.6.0 released: faster big numbers and cleaner Mojo testing

DeciMojo v0.6.0 is out! :grinning_face_with_smiling_eyes:

The latest DeciMojo releases focus on significantly expanding high-precision math capabilities and improving long-term maintainability.

v0.5.0 (feature-heavy release)

  • Major upgrades to BigUInt and BigDecimal, with substantial performance improvements.

  • Added high-precision math support, including trigonometric functions and π computation (Chudnovsky algorithm).

  • Introduced faster algorithms for large numbers (Karatsuba multiplication, Burnikel-Ziegler division), SIMD optimizations, and more efficient in-place operations.

  • API refinements such as renaming Decimal → Decimal128 and improved error handling via a unified DeciMojoError.

v0.6.0 (infrastructure & compatibility release)

  • Migrated the entire test suite to Mojo’s native TestSuite framework, replacing deprecated tooling.

  • Updated the codebase for compatibility with Mojo v0.25.7.

You can install DeciMojo v0.6.0 by adding the following line to the dependencies section of your pixi.toml file:

[dependencies]
decimojo = "==0.6.0"

Full release notes and details are available in the GitHub repo:
https://github.com/forfudan/decimojo/releases

3 Likes

This is really cool Yuhao! Do you have any specific applications that could be built on top of this that you’d like others to pursue? It could be a great learning project for someone to try that out!

Thank you, Chris!

The most straightforward use of DeciMojo is as a pure-Mojo alternative to Python’s int, especially when you need big integers. It also covers much of what Python’s decimal module is used for.

On top of that, it could be a fun foundation for learning projects like a finance/tax or invoice calculator, a scientific calculator, stable JSON serialization for exact numeric output, or even basic symbolic computation.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.