gnuastro-devel
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]