7 releases

0.3.4 Jun 18, 2022
0.3.3 Jun 18, 2022
0.3.2 May 21, 2022
0.3.1 Apr 10, 2022
0.1.1 Dec 20, 2021

#699 in Math

Download history 9/week @ 2024-02-19 6/week @ 2024-02-26 126/week @ 2024-04-01

126 downloads per month

GPL-3.0-or-later

79KB
1.5K SLoC

moonalloy

Smelting moonstone and corroded metal to forge a powerful alloy! (Rust + Lua)

What is moonalloy?

Moonalloy is a library for scientific computing and data analysis. It contains functionality for manipulating mathematical objects like Arrays (Vectors) and Matrices. The library can be used by other rust code or any programming language that supports the C ABI. The author has implemented bindings for LuaJIT.

Goals

The aim of the project is to a all-in-one, go-to library for scientific computing and data analysis. The functionality should include:

  • Tools for numeric linear algebra
  • Tools for computational science
  • Tools for statistics and machine learning for data analysis

In short, it aims to have similar functionality as NumPy/SciPy or BLAS. It does not intent to become an exact clone of the mentioned libraries with a similar API.

Why moonalloy

Moonalloy is written with speed and ease of use in mind. Rust was chosen as the backend language since it is fast (similar to C/C++), but it has more safety features and a more modern toolchain than C/C++ that works out-of-box. It also has a built-in FFI that is compatible with the C/C++ ABI.

Lua (LuaJIT) was chosen as the first-class frontend language since it is a fast, interpreted scripting language similar to python. It also supports operator overloading and object-oriented programming, which makes it pleasant to implement a library with an intuitive syntax.

No runtime deps