Skip to content

create a pexpect interface to julia #17230

@williamstein

Description

@williamstein

I spent a few hours writing a pexpect interface to Julia. There's no doctests, and I had to do some odd things to make it work well (e.g., using vt100 mode for the TERM so that errors get reported! actually making use of the control codes for much, much better synchronization; putting in a bunch of \n's to ensure that opening strings don't hang the interface). I'm too busy to doctest this and "do everything right" for Sage, but maybe somebody else wants to. I think there is potential value for some users in having a pexpect Julia interface in Sage, since it makes it possible to easily move (small) data back and forth between systems, compare algorithms implemented in both, etc. As with all the other interfaces, something at the C library level can be much faster and more scalable... but both approaches have unique value (in my opinion).

Link to code for this in SMC: https://github.com/sagemathinc/smc/blob/master/src/smc_sagews/smc_sagews/julia.py

CC: @staroste

Component: interfaces: optional

Branch/Commit: public/17230 @ 26e8060

Issue created by migration from https://trac.sagemath.org/ticket/17230

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions