vlang/vsl

V library to develop Artificial Intelligence and High-Performance Scientific Computations

What it solves

VSL provides a high-performance scientific computing and AI foundation for the V programming language. It fills the gap for mathematical operations, linear algebra, and GPU acceleration, allowing developers to perform complex calculations without needing to rely solely on external C or Fortran libraries.

How it works

VSL uses a tiered architecture for computation. It offers a pure-V implementation of BLAS/LAPACK routines for portability and ease of installation. For maximum performance, it provides optional backends that can dispatch operations to optimized C libraries (OpenBLAS, LAPACK) or GPU hardware via CUDA, Vulkan Compute, and OpenCL/VCL.

Who it’s for

It is designed for developers using the V language who need to build AI, machine learning, or scientific applications requiring heavy matrix operations, numerical methods, and data visualization.

Highlights

  • Comprehensive Math Suite: Includes linear algebra, numerical methods (differentiation, integration), and statistical analysis.
  • Multi-Backend Support: Seamlessly switches between pure V, C-optimized, and GPU-accelerated (CUDA, Vulkan, OpenCL) paths.
  • ML Primitives: Provides the underlying compute primitives (GEMM, softmax, LayerNorm) used by higher-level neural network libraries like VTL.
  • Scientific Tooling: Integrated support for HDF5 data formats and Plotly-style 2D/3D data visualization.

Related

  • Project
  • Project
  • Project
  • Project
  • Project