nimjl VS c2nim

Compare nimjl vs c2nim and see what are their differences.

nimjl

A bridge between Nim-lang and Julia ! (by SciNim)

c2nim

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. (by nim-lang)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
nimjl c2nim
5 7
46 490
- 0.6%
5.3 4.1
1 day ago 5 months ago
Nim Nim
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nimjl

Posts with mentions or reviews of nimjl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-04.
  • Deeplearning in Nim?
    6 projects | /r/nim | 4 Jul 2022
    While indeed we are less people developing stuff in Nim compared to even the Julia community (which itself is of course much smaller than say Python), we do have cover a large amount of the typical needs in the scientific computing domain. And where we miss stuff it's a) easy to wrap C/C++ or b) simply call Julia, R or Python (As a personal reference I'm doing data analysis & numerical physics stuff in context of my PhD in physics and I literally do everything in Nim. The only significant C dependency {and only as a shared lib} I depend on is libhdf5 via nimhdf5).
  • Stan in Nim?
    5 projects | /r/nim | 25 May 2022
    use nimjl to access the Julia bindings
  • Generate Python extensions using Nim language
    5 projects | news.ycombinator.com | 15 Apr 2022
    To add to that, there's also a Nim <-> Julia bridge: https://github.com/clonkk/nimjl
  • Computer Programming with Nim
    13 projects | news.ycombinator.com | 27 Feb 2022
  • Nim -- a modern "glue" language like Python
    9 projects | dev.to | 11 Oct 2021
    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 after the translation process. If you are tired of wrapping C library, you can try futhark which supports "simply import C header files directly into Nim". Similar to futhark, cinterop allows one to interop with C/C++ code without having to create wrappers. nimLUA is a glue code generator to bind Nim and Lua together using Nim's powerful macro. nimpy and nimporter is a bridge between Nim and Python. rnim is a bridge between R and Nim. nimjl is a bridge between Nim and Julia! Last but not least, genny generates a shared library and bindings for many languages such as Python, Node.js, C.

c2nim

Posts with mentions or reviews of c2nim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-12.
  • I learned 7 programming languages so you don't have to
    8 projects | news.ycombinator.com | 12 Feb 2023
    Also on the game development front, 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 more automatic by writing a callback exposed by c2nim that transform the generated code using Nim's AST. But regardless in that project I was able to write safe language abstractions on top of the bindings that provide a more native experience. It has scope-based memory management, generics and ... function overloading.
  • The way integrate Rust into Nim
    2 projects | dev.to | 21 Jan 2023
    Rust also has a library called safer_ffi that makes FFI easier, and I tried to use that, but the library seems to be immature, and I could not get arguments in Rust functions. If this library can be used properly, it will be possible to output C header files from Rust functions and automatically generate Nim interface functions from C header files using c2nim. We look forward to further development of this feature.
  • Checked C
    14 projects | news.ycombinator.com | 21 Dec 2022
    Well I'm 99.5% certain at least. Even now I'm uncertain of the C syntax. And I've not been bold enough to test 3rd order C function pointers. I figure that's probably C code you don't wanna touch if possible.

    https://github.com/nim-lang/c2nim/blob/11f2c5363dfe7e8c7c8ce...

    The other annoying one is that "signed" and "unsigned" are basically adjectives, but "long" can be both a type and a modifier. So it's difficult to parse unless you're the target C compiler. Technically you can, but you have to use backtracking.

  • Nim -- a modern "glue" language like Python
    9 projects | dev.to | 11 Oct 2021
    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 after the translation process. If you are tired of wrapping C library, you can try futhark which supports "simply import C header files directly into Nim". Similar to futhark, cinterop allows one to interop with C/C++ code without having to create wrappers. nimLUA is a glue code generator to bind Nim and Lua together using Nim's powerful macro. nimpy and nimporter is a bridge between Nim and Python. rnim is a bridge between R and Nim. nimjl is a bridge between Nim and Julia! Last but not least, genny generates a shared library and bindings for many languages such as Python, Node.js, C.
  • Genny – Generate Nim library bindings for many languages
    6 projects | news.ycombinator.com | 12 Sep 2021
    Now if only a full binding generator for C and C++ headers to Nim was done, the language would really be cooking!

    "What do you mean, Nim has two of these already?"

    Yeah, I know, and -- not to hurt anyone's feelings -- but: they kind of suck. And there's no way I see them able to be extended to do the job fully, based on the way they're currently built.

    Those are some bold claims to make!

    So before I get stoned to death (no offense to the authors, I am grateful that they exist and have used them both) let me attempt an explanation and back up these statements.

    ---

    To start off, the two tools available are "c2nim" and "nimterop". c2nim is a Nim official library, while nimterop is a community library.

      https://github.com/nim-lang/c2nim
  • ffipf - quickly jump to file in a project with a native module
    5 projects | /r/emacs | 10 Jan 2021
    Yes. Nim compiles to C and has a lot of features for interacting with C code. You can easily call C routines from Nim and Nim functions from C. There's a bit of a ceremony you need to go through, but most of it can be automated with c2nim tool: https://github.com/nim-lang/c2nim
  • C2nim: A tool to translate ANSI C code to Nim
    3 projects | news.ycombinator.com | 1 Jan 2021

What are some alternatives?

When comparing nimjl and c2nim you can also consider the following projects:

nimterop - Nimterop is a Nim package that aims to make C/C++ interop seamless

futhark - Automatic wrapping of C headers in Nim

nimLUA - glue code generator to bind Nim and Lua together using Nim's powerful macro

cinterop - A C/C++ interop library for the Nim programming language

genny - Generate a shared library and bindings for many languages.

tinycc - Unofficial mirror of mob development branch

nim-emacs-module

nimskull - An in development statically typed systems programming language; with sustainability at its core. We, the community of users, maintain it.

ClangSharp - Clang bindings for .NET written in C#

fuzzy_file_finder - A (slightly enhanced) implementation of TextMate's cmd-T lookup functionality, in Ruby, for embedding in other projects

rnim - A bridge between R and Nim