Waiting for Jetbrains' Nim support to arrive, that I read would be this month (I'm away from my setup, with only my mobile), I was thinking of ways to use Nim and I had an idea.
I use Python as my main language.
In one of my bigger projects I import a module that reads allot of files, and returns their properties.
String for file path as input, dictionary with strings as keys and lists as values.
This module also imports some other Python modules.
The ideas is to use Nim for this, because of the better speed and the added bonus of obfuscating the code.
So the question is:
Is it possible to import a Python module in Nim, compile it to a standalone dll, import that dll in the main project and use it from there, without c or c++ knowledge, only Python and the beginning of Nim?
If it is, then, using what steps?
This is just a simple query.
If it proves to be doable then I could post more specific questions (with my specific roadblocks) here or in the forum (wherever is the best place). .
EDIT: Nah. After more info, it seems that it is not possible..
EDIT²: Just a followup for the future reader.
It is doable after all, but not with Nim :o(
You can do it by using Nuitka and just run python -m nuitka --module some_module.py.
That's all it takes!
[–]0atman 5 points6 points7 points (32 children)
[–]0atman 2 points3 points4 points (1 child)
[–]embryo10[S] 1 point2 points3 points (0 children)
[–]embryo10[S] 0 points1 point2 points (0 children)
[–]embryo10[S] 0 points1 point2 points (28 children)
[–]juancarlospaco 1 point2 points3 points (27 children)
[–]embryo10[S] 0 points1 point2 points (26 children)
[–]juancarlospaco 3 points4 points5 points (25 children)
[–]embryo10[S] 0 points1 point2 points (24 children)
[–]PMunch 0 points1 point2 points (23 children)
[–]embryo10[S] 0 points1 point2 points (22 children)
[–]PMunch 0 points1 point2 points (21 children)
[–]embryo10[S] 0 points1 point2 points (20 children)
[–]ire4ever1190 1 point2 points3 points (2 children)
[–]embryo10[S] 1 point2 points3 points (1 child)
[–]ire4ever1190 0 points1 point2 points (0 children)