Nim — a modern “glue” language like Python

Nim is a statically typed compiled systems programming language. It supports various backends: it compiles to C, C++ or JavaScript so that Nim can be used for all backend and frontend needs. Via importc, importcpp, importjs pragmas, Nim can import C/C+…


This content originally appeared on DEV Community and was authored by flywind

Nim is a statically typed compiled systems programming language. It supports various backends: it compiles to C, C++ or JavaScript so that Nim can be used for all backend and frontend needs. Via importc, importcpp, importjs pragmas, Nim can import C/C++/JS/ObjC methods or symbols in general. You can refer to the manual of 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 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.


This content originally appeared on DEV Community and was authored by flywind


Print Share Comment Cite Upload Translate Updates
APA

flywind | Sciencx (2021-10-12T05:47:45+00:00) Nim — a modern “glue” language like Python. Retrieved from https://www.scien.cx/2021/10/12/nim-a-modern-glue-language-like-python/

MLA
" » Nim — a modern “glue” language like Python." flywind | Sciencx - Tuesday October 12, 2021, https://www.scien.cx/2021/10/12/nim-a-modern-glue-language-like-python/
HARVARD
flywind | Sciencx Tuesday October 12, 2021 » Nim — a modern “glue” language like Python., viewed ,<https://www.scien.cx/2021/10/12/nim-a-modern-glue-language-like-python/>
VANCOUVER
flywind | Sciencx - » Nim — a modern “glue” language like Python. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/12/nim-a-modern-glue-language-like-python/
CHICAGO
" » Nim — a modern “glue” language like Python." flywind | Sciencx - Accessed . https://www.scien.cx/2021/10/12/nim-a-modern-glue-language-like-python/
IEEE
" » Nim — a modern “glue” language like Python." flywind | Sciencx [Online]. Available: https://www.scien.cx/2021/10/12/nim-a-modern-glue-language-like-python/. [Accessed: ]
rf:citation
» Nim — a modern “glue” language like Python | flywind | Sciencx | https://www.scien.cx/2021/10/12/nim-a-modern-glue-language-like-python/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.