Page 1 of 1

Can i use torch7, scientific computing framework?

PostPosted: Fri Jan 06, 2017 08:05
by Swablu
Is it possible to use the torch7 framework in a minetest mod?
Website: http://www.torch.ch
It uses lua so i tought that maybe i could use this, it would make things a lot easier.
No Idea how to get it in minetest through.

Re: Can i use torch7, scientific computing framework?

PostPosted: Fri Jan 06, 2017 09:09
by hajo
Swablu wrote:Is it possible to use the torch7 framework in a minetest mod?
Website: http://www.torch.ch

Looking at that site:
A summary of core features:
* a powerful N-dimensional array
* lots of routines for indexing, slicing, transposing, ...
* linear algebra routines
* neural network, and energy-based models

So, it's kind-of a better calculator :-)

Swablu wrote:No Idea how to get it in minetest through.

I guess it will be a lot of work to include and support it.
So, why?
How could such a package be used in minetest ?

Re: Can i use torch7, scientific computing framework?

PostPosted: Fri Jan 06, 2017 10:02
by Byakuren
Swablu wrote:Is it possible to use the torch7 framework in a minetest mod?
Website: http://www.torch.ch
It uses lua so i tought that maybe i could use this, it would make things a lot easier.
No Idea how to get it in minetest through.

You can require it as a package like in other lua scripts, but it needs to be installed in your environment.

hajo wrote:
Swablu wrote:Is it possible to use the torch7 framework in a minetest mod?
Website: http://www.torch.ch

Looking at that site:
A summary of core features:
* a powerful N-dimensional array
* lots of routines for indexing, slicing, transposing, ...
* linear algebra routines
* neural network, and energy-based models

So, it's kind-of a better calculator :-)

Swablu wrote:No Idea how to get it in minetest through.

I guess it will be a lot of work to include and support it.
So, why?
How could such a package be used in minetest ?


You could use it for AI or other machine learning tasks (such as cheat detection).

Re: Can i use torch7, scientific computing framework?

PostPosted: Fri Jan 06, 2017 10:31
by Swablu
Byakuren wrote:
Swablu wrote:Is it possible to use the torch7 framework in a minetest mod?
Website: http://www.torch.ch
It uses lua so i tought that maybe i could use this, it would make things a lot easier.
No Idea how to get it in minetest through.

You can require it as a package like in other lua scripts, but it needs to be installed in your environment.

Is this the only way?
It would require everyone to install it, which basically means nobody will try a mod which depends on it.
Can't I include it somehow?

Byakuren wrote:
hajo wrote:
Swablu wrote:Is it possible to use the torch7 framework in a minetest mod?
Website: http://www.torch.ch

Looking at that site:
A summary of core features:
* a powerful N-dimensional array
* lots of routines for indexing, slicing, transposing, ...
* linear algebra routines
* neural network, and energy-based models

So, it's kind-of a better calculator :-)

Swablu wrote:No Idea how to get it in minetest through.

I guess it will be a lot of work to include and support it.
So, why?
How could such a package be used in minetest ?


You could use it for AI or other machine learning tasks (such as cheat detection).

I want to use it for AI and learning mobs, but cheat detection is indeed possible to :P

Re: Can i use torch7, scientific computing framework?

PostPosted: Fri Jan 06, 2017 12:03
by Byakuren
Swablu wrote:
Byakuren wrote:
Swablu wrote:Is it possible to use the torch7 framework in a minetest mod?
Website: http://www.torch.ch
It uses lua so i tought that maybe i could use this, it would make things a lot easier.
No Idea how to get it in minetest through.

You can require it as a package like in other lua scripts, but it needs to be installed in your environment.

Is this the only way?
It would require everyone to install it, which basically means nobody will try a mod which depends on it.
Can't I include it somehow?

I don't know, I've never used torch.

Re: Can i use torch7, scientific computing framework?

PostPosted: Fri Jan 06, 2017 18:00
by sfan5
Minetest mods can use the require() function to include any kind of Lua modules. If this works with Torch7 then you can use it like that.