python libraries
|
04-23-2021, 10:54 AM
Post: #16
|
|||
|
|||
RE: python libraries
(04-23-2021 09:23 AM)jonmoore Wrote: Bernard, out of interest. How much of Numpy and Scipi did you 'clone' for the Ndless version of XCAS/Giac?It's hard to answer, because I do not know numpy and scipy myself. I just looked at some scripts for schools and tried to make them compatible. A little bit like Python syntax in Xcas, but I tested much less, because in the meantime I decided it was not worth the time required to have something more compatible. The guys who have imposed Python as the unique langage in French highschools are mostly closed-minded, they will probably never consider Xcas to be an alternative to Python for programming in math classes despite my efforts. And if are already using Xcas, it's much easier to run the native commands of Xcas than using all these Python modules. Quote:And on the subject of Cython/Cpython, don't the developers of SageMath use the optimisations you discuss in your last post to optimise certain aspects of SageMath inclusive of those that utilise Giac?Giac is interfaced to CPython with Cython, independently from Sage, you can import giacpy from Python if you install giacpy. I don't know if all C libraries are interfaced using cython inside Sagemath, probably. My opinion is that Sagemath "Python as a common basis" choice is wrong, because if you want to use their code inside your code, then you must interface with Python. It means that C libraries inside Sagemaths can not talk together unless they have their own interface. Inside Sage, at the Python level, you can choose one algorithm or another one, but once you are in non Python code (e.g. Maxima code because Sage does not have calculus itself, or C code because Python is slow), you can not benefit from other parts of the whole system (for example your C code can not benefit from other C libraries included in Sage unless you wrote your own interface to these other C libraries, or Maxima code does not benefit from fast linear algebra). You must write Python code to benefit from Sage and it will be useful to Python programmers only. I believe that the choice should have been to make C libraries talk together, because it does not make assumptions on the caller language. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
python libraries - robmio - 04-20-2021, 11:49 AM
RE: python libraries - jonmoore - 04-20-2021, 05:21 PM
RE: python libraries - parisse - 04-21-2021, 02:20 PM
RE: python libraries - cyrille de brébisson - 04-22-2021, 11:17 AM
RE: python libraries - jonmoore - 04-22-2021, 12:44 PM
RE: python libraries - toml_12953 - 04-22-2021, 01:28 PM
RE: python libraries - John Keith - 04-22-2021, 04:11 PM
RE: python libraries - roadrunner - 04-22-2021, 01:07 PM
RE: python libraries - parisse - 04-22-2021, 03:07 PM
RE: python libraries - jonmoore - 04-22-2021, 04:38 PM
RE: python libraries - robmio - 04-22-2021, 04:24 PM
RE: python libraries - parisse - 04-22-2021, 06:58 PM
RE: python libraries - jonmoore - 04-23-2021, 05:13 AM
RE: python libraries - parisse - 04-23-2021, 05:51 AM
RE: python libraries - jonmoore - 04-23-2021, 09:23 AM
RE: python libraries - parisse - 04-23-2021 10:54 AM
RE: python libraries - jonmoore - 04-23-2021, 11:08 AM
|
User(s) browsing this thread: 2 Guest(s)