Nim: Question - Can I send libraries my using Pull Request?

Created on 4 Oct 2018  路  11Comments  路  Source: nim-lang/Nim

I want to implement Python (built-in) libraries to Nim (stdlib). Can I send them using Pull Requests?

Most helpful comment

What do you mean exactly?

  • A Nim library whose interface is similar to python stdlib? In this case you have something like nimpylib, nim-pythonfile and others
  • A library to generate python bindings for Nim libraries? In this case, there is nimpy
  • A library to call python from inside Nim? In this case you can use python or the higher level nim-pythonize

In general, all these things can be implemented as external libraries published in Nimble, as in the case of the examples I posted above.

More generally, if you have something you think would be useful for the standard library, you can send a PR, no permission required. But of course it will be subject to discussion: it is not convenient to include everything in the stdlib, for reasons of quality, mantainance and evolving the language

All 11 comments

Or I need a permission to implement them (to create new libraries*).

What do you mean exactly?

  • A Nim library whose interface is similar to python stdlib? In this case you have something like nimpylib, nim-pythonfile and others
  • A library to generate python bindings for Nim libraries? In this case, there is nimpy
  • A library to call python from inside Nim? In this case you can use python or the higher level nim-pythonize

In general, all these things can be implemented as external libraries published in Nimble, as in the case of the examples I posted above.

More generally, if you have something you think would be useful for the standard library, you can send a PR, no permission required. But of course it will be subject to discussion: it is not convenient to include everything in the stdlib, for reasons of quality, mantainance and evolving the language

I just want to implement itertools library to Nim because i find it useful.

So i can implement it without any permissions by sending pr, thanks. I want implement them because Python libraries are awesome.

holy... Thank you :P

Actually it does not everyting Python's itertool can do
I'll try upgrade it.

Actually it does not everyting Python's itertool can do

Hey, I'm the author of the mentioned itertools.

I have neglected this library for some time, but I've started working on it again and since few hours ago we now have combinatoric iterators :)

As you have noticed, some of the iterators are still missing, but my plan was to include them sooner or later.

I'll try upgrade it.

Send a PR when you do :)

Then where is the library repo?

Ok, i find it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juancarlospaco picture juancarlospaco  路  3Comments

hlaaftana picture hlaaftana  路  3Comments

koki-koba picture koki-koba  路  3Comments

Vindaar picture Vindaar  路  3Comments

timotheecour picture timotheecour  路  3Comments