[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[task #13786] Usable libraries for other languages
From: |
Mohammad Akhlaghi |
Subject: |
[task #13786] Usable libraries for other languages |
Date: |
Thu, 19 Mar 2020 10:59:23 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0 |
Update of task #13786 (project gnuastro):
Summary: Usable libraries for other languages (maybe using
SWIG) => Usable libraries for other languages
_______________________________________________________
Follow-up Comment #8:
Yes ;-)! So far, I think this it the cleanest and lowest-level way: at the
start of the function we have some special functions to convert framework to C
(while keeping the originally allocated array: not making an extra copy), do
the main job in C through any number of calls to any library, and then convert
the output data structures back to Python and return them.
Python is a language that evolves/changes a lot! Numpy evolves even faster
than Python!!! So if you want your work to used in a more generic/longer-term
manner, it is best to minimize the exposure of your work to this changing
environment and just update the conversion tools when they change.
However, as you go deeper into it (during the implementation), you may find
that for some cases/situations, it may be better to make Python classes,
you'll definitely figure this out as you go ahead during implementation ;-).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?13786>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [task #13786] Usable libraries for other languages (maybe using SWIG), madhav_bansal, 2020/03/19
- [task #13786] Usable libraries for other languages (maybe using SWIG), Sachin Kumar Singh, 2020/03/19
- [task #13786] Usable libraries for other languages (maybe using SWIG), madhav_bansal, 2020/03/19
- [task #13786] Usable libraries for other languages (maybe using SWIG), Mohammad Akhlaghi, 2020/03/19
- [task #13786] Usable libraries for other languages (maybe using SWIG), madhav_bansal, 2020/03/19
- [task #13786] Usable libraries for other languages,
Mohammad Akhlaghi <=
- [task #13786] Usable libraries for other languages, madhav_bansal, 2020/03/20
- Message not available
- [task #13786] Usable libraries for other languages, madhav_bansal, 2020/03/20
- [task #13786] Usable libraries for other languages, Mohammad Akhlaghi, 2020/03/20
- [task #13786] Usable libraries for other languages, Mohammad Akhlaghi, 2020/03/24
- Message not available
- [task #13786] Usable libraries for other languages, Mohammad Akhlaghi, 2020/03/25
- [task #13786] Usable libraries for other languages, Kartik Ohri, 2020/03/28
- [task #13786] Usable libraries for other languages, madhav_bansal, 2020/03/28
- [task #13786] Usable libraries for other languages, Mohammad Akhlaghi, 2020/03/28
- [task #13786] Usable libraries for other languages, madhav_bansal, 2020/03/28