wasmer icon indicating copy to clipboard operation
wasmer copied to clipboard

Add support for Octave

Open ctaggart opened this issue 5 years ago β€’ 7 comments

Same as #539, but for Octave https://www.gnu.org/software/octave/. Octave is a popular and partly compatible alternative to MATLAB. I'll be using it in the machine learning course I'm taking https://www.coursera.org/learn/machine-learning/. The preferred extension point is C++ oct.h and would require GPL. Octave doesn't support loadlibrary like MATLAB does. However, it would be great to see if it is possible to come up with a loadwasm for it too. cc @mtmiller

ctaggart avatar Jul 09 '19 13:07 ctaggart

I think it's better to discuss in #539 about a possible API in MATLAB, and next, see whether we start an integration in MATLAB or Octave (if it happens).

Hywan avatar Jul 09 '19 14:07 Hywan

Octave doesn't support loadlibrary like MATLAB does

Octave should learn how to loadlibrary. Maybe that would be better than an Octave specific extension here?

mtmiller avatar Jul 12 '19 22:07 mtmiller

@mtmiller It would be cool if Octave supported loadlibrary. I was hoping to base a loadwasm on the loadlibrary code if it existed. My current interest before figuring out where wasmer fits in is to just get native rust extensions working. I've got them compiling, but crashing Octave. https://github.com/ctaggart/octh

ctaggart avatar Jul 15 '19 06:07 ctaggart

@mtmiller Or… you can add extensions support through Wasm directly. Would you be interested by such an approach?

Hywan avatar Jul 15 '19 08:07 Hywan

@Hywan I'm personally not interested in nor know anything about wasm at the moment, just here to help with any Octave issues.

mtmiller avatar Jul 23 '19 22:07 mtmiller

I actually figured out got native Octave extensions built with Rust working on Linux with the latest from https://github.com/ctaggart/octh. However, mapping the C++ API to Rust is not super easy. I think a better solution would be to create another plugin system on top of the wasmer C API.

http://adventures.michaelfbryan.com/posts/wasm-as-a-platform-for-abstraction/ https://docs.rs/crate/wasmer-runtime-c-api/

~I'll echo these thoughts on the Octave dev mailing list.~ However, I'm not the right one to do the work for it. Octave work is currently only academic for me and I'm not interested in coding in C++.

ctaggart avatar Dec 18 '19 07:12 ctaggart

There is a new C API, https://docs.rs/wasmer-c-api/. Maybe this one is easier.

Hywan avatar Jul 13 '21 15:07 Hywan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 20 '22 17:10 stale[bot]

Feel free to reopen the issue if it has been closed by mistake.

stale[bot] avatar Nov 19 '22 23:11 stale[bot]