C Machine Learning

Open-source C projects categorized as Machine Learning

Top 23 C Machine Learning Projects

Machine Learning
  1. C

    Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. nmap

    Nmap - the Network Mapper. Github mirror of official SVN repository.

    Project mention: Scripting Challenge Week 1: Port Scanning | dev.to | 2025-12-17

    Compare your implementation to Nmap's source code - industry standard for 20+ years.

  4. kimi-k3-in-c

    A 2.78-trillion-parameter Kimi K3 running inference on a single CPU in 8.24 GB of RAM. Portable C99: no BLAS, no framework, no GPU.

    Project mention: Kimi K3 in 8 GB of RAM: Why 28x More Memory Buys Only 1.7x Speed, and the Byte Math That Predicts It | dev.to | 2026-11-05

    Sources: kimi-k3-in-c repository and README, moonshotai/Kimi-K3 on Hugging Face. All timings, hit rates, memory figures and quantization errors are as reported by the project as of November 5, 2026. Predicted seconds per token, bytes per token and the trunk-quantization projection are our own illustrative arithmetic, not measurements.

  5. lab

    A customisable 3D platform for agent-based AI research

  6. libpostal

    A C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data.

    Project mention: Building a geocoder whose world index rebuilds in minutes | dev.to | 2026-11-14

    OpenGeocoding is one Rust process. It parses an address with libpostal, looks it up in a read-only index and answers. There is no database, and nothing is downloaded at runtime: the index and the libpostal models are mounted read-only.

  7. audioFlux

    A library for audio and music analysis, feature extraction.

  8. Genann

    simple neural network library in C99

  9. osqp

    The Operator Splitting QP Solver

  10. grass

    GRASS - free and open-source geospatial processing engine

    Project mention: Two stack overflows hiding in plain sight | dev.to | 2026-10-04

    GRASS GIS formats map-region coordinates with a helper in lib/gis/wind_format.c:

  11. nnom

    A higher-level Neural Network library for microcontrollers.

  12. RNNLIB

    RNNLIB is a recurrent neural network library for sequence learning problems. Forked from Alex Graves work http://sourceforge.net/projects/rnnl/

  13. microgpt-c

    The most atomic way to train and inference a GPT in pure, dependency-free C (by vixhal-baraiya)

    Project mention: Microgpt in pure C hits 10M tps on Apple m5 | news.ycombinator.com | 2026-08-18
  14. ascii_art

    Real-Time ASCII Art Rendering Library

    Project mention: ASCII characters are not pixels: a deep dive into ASCII rendering | news.ycombinator.com | 2026-01-17
  15. magnetron

    A zero-dependency ML framework in C with a modern Python API for full control over execution and memory.

  16. ruby-fann

    Ruby library for interfacing with FANN (Fast Artificial Neural Network)

  17. onnx2c

    Open Neural Network Exchange to C compiler.

    Project mention: onnx2c VS emx-onnx-cgen - a user suggested alternative | libhunt.com/r/onnx2c | 2026-02-22
  18. tevr-asr-tool

    State-of-the-art (ranked #1 Aug 2022) German Speech Recognition in 284 lines of C++. This is a 100% private 100% offline 100% free CLI tool.

  19. tiny-dream

    Tiny Dream - An embedded, Header Only, Stable Diffusion C++ implementation

  20. Daikon

    Dynamic detection of likely invariants

  21. Recommender

    A C library for product recommendations/suggestions using collaborative filtering (CF)

  22. kernel-ml

    Machine Learning Framework for Operating Systems - Brings ML to Linux kernel

  23. cONNXr

    Pure C ONNX runtime with zero dependancies for embedded devices

  24. WritePadSDK

    WritePad Handwriting Recognition SDK

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C Machine Learning discussion

Log in or Post with

C Machine Learning related posts

  • Show HN: PHP-GPU-tensors – Native GPU operations in PHP

    1 project | news.ycombinator.com | 5 Oct 2026
  • onnx2c VS emx-onnx-cgen - a user suggested alternative

    2 projects | 22 Feb 2026
  • Scripting Challenge Week 1: Port Scanning

    2 projects | dev.to | 17 Dec 2025
  • Mark Zuckerberg freezes AI hiring amid bubble fears

    3 projects | news.ycombinator.com | 21 Aug 2025
  • Ask HN: What are your favorite obscure but brilliant C/C++ libraries?

    1 project | news.ycombinator.com | 15 Aug 2025
  • guiarstr VS C - a user suggested alternative

    2 projects | 24 Jul 2025
  • Libpostal: C library for parsing/normalizing street addresses around the world

    1 project | news.ycombinator.com | 8 Jul 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 17 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Machine Learning projects in C? This list will help you:

# Project Stars
1 C 22,606
2 nmap 14,000
3 kimi-k3-in-c 11,558
4 lab 7,383
5 libpostal 4,923
6 audioFlux 3,383
7 Genann 2,303
8 osqp 2,227
9 grass 1,187
10 nnom 1,167
11 RNNLIB 902
12 microgpt-c 853
13 ascii_art 738
14 magnetron 709
15 ruby-fann 506
16 onnx2c 425
17 tevr-asr-tool 410
18 tiny-dream 270
19 Daikon 269
20 Recommender 268
21 kernel-ml 260
22 cONNXr 219
23 WritePadSDK 185

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Developer survey
Take the C Developer Survey

About 6 minutes on the tools, libraries and AI you use with C. You get the results by email.