Woxi — README-work

Raku-Woxi

Raku package for invoking Woxi, the Rust implementation of a subset of the Wolfram Language.

Prerequisite: install Woxi

Woxi is a separate project and is not bundled with this package. Install its woxi executable before using this module. Follow the installation directions in the Woxi README; it documents Cargo installation and prebuilt binaries.

Installation

From Zef ecosystem:

zef install Woxi

From GitHub:

zef install https://github.com/antononcube/Raku-Woxi.git

Usage

use Woxi;

my $result = woxi-eval('Plus[1, 2]');
say (:$result);
say $result.stdout;

my $script = woxi-run($*CWD.add(<resources analysis.wls>));
say $script.stdout;
  • woxi-eval, woxi-run, and woxi-version return Woxi::Result, which contains .stdout, .stderr, .exitcode, .signal, and .source.

  • Non-zero Woxi statuses remain inspectable; call .throw-on-error to raise Woxi::CommandFailed.

  • Use :timeout(seconds) and :executable(path) to control execution. woxi-available checks whether an executable can respond to --version.

The supported Wolfram Language subset is defined by Woxi itself; consult its README and function-status list.

Woxi v0.0.1

A package interfacing Woxi (https://woxi.ad-si.com, limited Rust implementation of Wolfram Language).

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Woxi

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.