NNPDF / pineappl

PineAPPL is not an extension of APPLgrid
https://nnpdf.github.io/pineappl/
GNU General Public License v3.0
12 stars 3 forks source link

Investigate possible Python interface improvements #96

Closed cschwan closed 2 years ago

cschwan commented 2 years ago

I've just seen the following on reddit:

https://www.reddit.com/r/rust/comments/rk12bg/writing_rust_libraries_for_the_python_scientific/

Can we learn anything from it for our Python bindings? In particular I noticed the following points:

alecandido commented 2 years ago

Thank you very much, I guess one of the reasons why it has been rather difficult to write these bindings actually was lack of examples, so it's good to have some more.

Unfortunately, I don't believe those points are much relevant, but this boils down to opinions in some cases.

Let's provide details:

cschwan commented 2 years ago

@AleCandido OK thanks for going over the points I mentioned. Feel free to leave the Issue open (for the points you mentioned) or to close it!

alecandido commented 2 years ago

I guess I can leave it open to improve a bit the wheels.yml workflow, I'll do it.

The last point has already its own dedicated issue, while the second one I'm not sure we want. In case, I would open another issue/PR to implement it.

cschwan commented 2 years ago

Here's another discussion: https://www.reddit.com/r/rust/comments/rtnwd5/python_extensions_in_rust_lessons_learned_from/

alecandido commented 2 years ago

Here's another discussion: https://www.reddit.com/r/rust/comments/rtnwd5/python_extensions_in_rust_lessons_learned_from/

Interesting in general, thanks :)

Do you believe there is anything in particular we should take care in pineappl? (and we're not already doing...)

cschwan commented 2 years ago

I still have to read it, it was also a way to 'bookmark' it :smile:

alecandido commented 2 years ago

In commit 22964c2774fca019e10acc64162b71b988af23db I actually merged the windows + Mac workflows, now they should be more consistent.

As usual, I couldn't test, since it requires running. Nevertheless, the change is tiny, so I don't expect much noise, and all the jobs will run independently in any case (less repetition in the declaration, same repetition in the run, as wanted).

Whenever we like we can even close this issue, or we can keep it open for the second discussion, if you find anything useful for pineappl.

cschwan commented 2 years ago

Let me make another beta release to test it...

cschwan commented 2 years ago

It seems to have worked, there I'll close this Issue.