Can i use torch7, scientific computing framework?

Swablu
Member
 
Posts: 16
Joined: Sun Dec 18, 2016 18:44
GitHub: LHolten
In-game: hytak

Can i use torch7, scientific computing framework?

by Swablu » Fri Jan 06, 2017 08:05

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.
 

hajo
Member
 
Posts: 262
Joined: Thu Oct 13, 2016 10:45

Re: Can i use torch7, scientific computing framework?

by hajo » Fri Jan 06, 2017 09:09

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 ?
Some of 'my' wiki-pages: Build-a-home - basic-robot - basic-machines - digtron
 

Byakuren
Member
 
Posts: 441
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri

Re: Can i use torch7, scientific computing framework?

by Byakuren » Fri Jan 06, 2017 10:02

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).
Every time a mod API is left undocumented, a koala dies.
 

Swablu
Member
 
Posts: 16
Joined: Sun Dec 18, 2016 18:44
GitHub: LHolten
In-game: hytak

Re: Can i use torch7, scientific computing framework?

by Swablu » Fri Jan 06, 2017 10:31

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
 

Byakuren
Member
 
Posts: 441
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri

Re: Can i use torch7, scientific computing framework?

by Byakuren » Fri Jan 06, 2017 12:03

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.
Every time a mod API is left undocumented, a koala dies.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

Re: Can i use torch7, scientific computing framework?

by sfan5 » Fri Jan 06, 2017 18:00

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.
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 19 guests

cron