nim-lang/c2nim
View on GitHub ↗ ★ 528 Nim
c2nim is a tool to translate Ansi C code to Nim. The output is human-readable Nim code that is meant to be tweaked by hand before and after the translation process.
8 mentions on Hacker News by 8 people: 1 story, 7 comments · first 2018-03-02 · latest 2025-09-01
20082026
-
…bindings for the API surface you care about. There are tools to help automate the process ([c2nim]( https://github.com/nim-lang/c2nim ), [futhark]( https://github.com/PMunch/futhark )), but these tools are mostly for C. Theoretically if…
comment by miguel_martin · 2025-09-01 · in A review of Nim 2: The good and bad with example code -
…I maintain a raylib wrapper https://github.com/planetis-m/naylib As long utilities like c2nim https://github.com/nim-lang/c2nim exist, it's trivial to create bindings of C/C++ libraries. One thing I want to experiment more is making it…
comment by planetis · 2023-02-12 · in I learned seven programming languages -
…extensions, etc. OTOH, that also ties it to limitations of backends. Possibly relevant is https://github.com/nim-lang/c2nim & https://github.com/PMunch/futhark & the rather old/probably partly stale in both columns…
comment by cb321 · 2022-10-12 · in Zig-style generics are not well-suited for most languages -
…are "c2nim" and "nimterop". c2nim is a Nim official library, while nimterop is a community library. https://github.com/nim-lang/c2nim https://github.com/nimterop/nimterop To preface this: I've spent a fair amount of time on the "codegen of…
comment by gavinray · 2021-09-13 · in Genny – Generate Nim library bindings for many languages -
…requires it. Finally, there is a tool to help auto-translate C/C++ to Nim with the c2nim tool: https://github.com/nim-lang/c2nim and docs: https://github.com/nim-lang/c2nim/blob/master/doc/c2nim.rst
comment by arc619 · 2020-12-06 · in Std::visit is everything wrong with modern C++ (2017) -
…One of the tools that can be used to create Nim interface code from existing C header files: https://github.com/nim-lang/c2nim
comment by komerdoor · 2018-03-02 · in Nim language v0.18.0 released