Re: [sage-devel] best practice: programming language & sage interaction

2021-01-27 Thread Vincent Delecroix
Dear Michael, The SageMath software has a long startup time. "sage -python name.py" is likely to be too slow. I would suggest that you use it in a more interactive fashion. As Dima said, anything that works with CPython will work here. Though, if your goal is to find relations between the OEIS s

Re: [sage-devel] best practice: programming language & sage interaction

2021-01-27 Thread Dima Pasechnik
On Wed, Jan 27, 2021 at 10:04 AM Michael Wagner wrote: > What is the recommended way to use SageMath in for example Scala? Given that SageMath is just a Python library (the only Python implementation supported is usual one, CPython, though), anything that works for (C)Python should work for you.

[sage-devel] best practice: programming language & sage interaction

2021-01-27 Thread Michael Wagner
Dear All, What is the recommended way to use SageMath in for example Scala? At the moment I am using a python tcp socket, which I am running via the "sage -python name.py" command. It receives functions, casts them and calls "simplify_full()" on them. (Context: the goal is a program, which c