DEV Community

Cover image for Announcing Abscom — Python-flavored C11
RK Riad Khan
RK Riad Khan

Posted on

Announcing Abscom — Python-flavored C11

I've spent a while building Abscom, a C11 library of reusable data structures with a Python-inspired dynamic runtime. It's now in review for the two big package registries: vcpkg and ConanCenter.

Home

Examples

Abs

What you get

  • Core data structures: dynamic arrays, strings, hashmaps, sets, matrices, data frames, CSV
  • A dynamic runtime that makes C feel like Python: var, None, List(), Dict(), print, foreach, try/catch
  • Practical extras: regex, WebSockets, crypto, a small ML stack, image/plotting helpers
  • Strict C11, no C++ required, zero deps

Example

#include "abscom/abs.h"

int main(void) {
    var list = List();
    list_add(list, 40); list_add(list, 2);
    print("sum = %d", list_sum(list));   // sum = 42
    return 0;
}
Enter fullscreen mode Exit fullscreen mode

Packaging status:

  • vcpkg — port submitted: all 15 CI jobs (MSVC x86/x64/arm64, Linux, macOS, Android) are green
  • *ConanCenter *— recipe submitted and building Try it: github.com/rkriad585/Abscom

Top comments (0)