将 Octave 代码集成到均值堆栈网站 [英] Integrate Octave code to a mean-stack website

查看:58
本文介绍了将 Octave 代码集成到均值堆栈网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(* 超级用户不喜欢这个问题,所以我把它贴在这里*)

(* superuser does not like this question, so i post it here *)

我在 Octave 中有一组脚本来进行机器学习算法.我也有一个平均堆栈的网站.我的问题是是否可以将此 Octave 代码集成到站点 web 中,无论是前端还是后端.我是否必须用 JavaScript 或 nodeJS 重写所有内容?

I have a set of scripts in Octave to undertake a machine-learning algorithm. I have also a website by mean-stack. My question is whether it is possible to integrate this Octave code into the site web, either front-end or back-end. Do I have to rewrite everything in JavaScript or nodeJS?

推荐答案

您有多种选择.从后端的角度来看:

You have several options. From a backend point of view:

  • 使用标准的cgi 解决方案.Octave 有一个您可以使用的 cgi 包.这将是我最好的选择.
  • 更一般地说,使用服务器端系统"调用在您的服务器上运行特定脚本,捕获文件等中的输出,并在您的网络会话中读取这些文件
  • 尝试与开放的八度音程会话进行通信并通过套接字执行命令(需要更多的大量编程)
  • 尝试找到第三方 javascript-octave 桥接/接口(不确定是否存在 - this 出现在 github 上,但不知道它是否有效)
  • use standard cgi solutions. Octave has a cgi package you can use. This would be my best bet.
  • more generally, use server-side 'system' calls to run particular scripts on your server, capture the output in files etc, and read those files back in your web-session
  • try to communicate with an open octave session and execute commands via sockets (would require more substantial programming)
  • try to find a third-party javascript-octave bridge / interface (not sure one exists - this appears on github but no idea if it works)

从前端的角度来看,您可能会很幸运地找到在线代码执行服务,我现在不记得也不推荐实际名称,但我过去肯定看到过此类服务的广告.

From a front-end point of view, you may have some luck finding online code execution services, I can't remember nor recommend actual names at the moment, but I've definitely seen such services advertised in the past.

这篇关于将 Octave 代码集成到均值堆栈网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆