Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: alexwallis646 on June 11, 2009, 07:16:16 AM

Title: idea for hosting lua script files
Post by: alexwallis646 on June 11, 2009, 07:16:16 AM
HI I hope this is the right section to post this idea.
I had an idea for a new website feature, however it is directly related to rockbox so with luck this is the right place.
My idea is as follows.

Now that lua has been introduced as a scripting language for rockbox, why not open a section on the website where people can post lua script files they create for rockbox so that everyone can benefit from them?
This would serve two purposes, firstly it would allow people to share files they have created for rockbox and might give people ideas about possibilities for lua they hadn't considered, it would allow the hole community to benefit.
Secondly, if this feature was put into place it would serve as a kind of ongoing example resource for people wanting to learn lua.
I think also eventually it might be good if this could be expanded so that if a lua file was felt to be particularly useful in rockbox it could be included officially.
Anyway, this is just an idea what do people think?
Title: Re: idea for hosting lua script files
Post by: LambdaCalculus on June 11, 2009, 07:17:02 AM
We can create a wiki page to post some scripts to. After all, that's what it's there for! ;)
Title: Re: idea for hosting lua script files
Post by: alexwallis646 on June 11, 2009, 07:28:20 AM
A wiki page could be a good idea, however you know how big the wiki is, I think its possible such a page could easily be forgotten about unless perhaps it was given a direct link on the front page.
I was thinking perhaps maybe create an actual website section similar to themes.rockbox.org for script files.
Title: Re: idea for hosting lua script files
Post by: Llorean on June 11, 2009, 07:35:43 AM
If everything went on the front page, it would be just as big as the wiki.

People searching for lua scripts will just type lua into the search box, and find the page, no matter how big the wiki is. And lua scripts shouldn't need the kind of infrastructure the theme site has. If they end up needing so, it can be expanded later, but for now it really is the ideal job for a wiki page.

Even if it were to gain a site, it would just be one linked to from the "extras" page, definitely not front-page material.
Title: Re: idea for hosting lua script files
Post by: alexwallis646 on June 11, 2009, 08:12:53 AM
OK, that's a fair point.
What do you think about eventually possibly including some files in rockbox?
I have to be honest, maybe i'm just very limited in my thinking, I am not really sure what sort of things you might want to make lua scripts to do, so if people do start posting them I will be very interested to see what kind of things they come up with for it to do.
Title: Re: idea for hosting lua script files
Post by: Llorean on June 11, 2009, 08:16:10 AM
Lua scripts could potentially be used to write something very much like our existing plugins. They'd in many cases be slower than native C plugins would be, but for many purposes speed is either unimportant, or the differences would not make any difference in usability.

In the case of well written Lua plugins, I'm sure at some point in the future we'll be discussing whether one is suitable for inclusion. Of course, exactly like patches, anything being submitted for inclusion belongs on the tracker.
Title: Re: idea for hosting lua script files
Post by: alexwallis646 on June 11, 2009, 08:39:21 AM
In that case, perhaps a new entry should be created in the types of patches list for lua scripts, unless that would just get confusing if we had both a wiki page and an option on the tracker.
Title: Re: idea for hosting lua script files
Post by: Llorean on June 11, 2009, 08:41:55 AM
It really depends on what people are trying to do with them. Sample scripts, coding examples, and basic utility scripts can probably stay on the wiki.

Things that are intended for inclusion in Rockbox should go on the tracker.

It shouldn't get confusing, because people shouldn't be using things on the tracker. They should be developing them, and trying to fix them so that they can be included. Once they're included or rejected, there's once again nothing on the tracker to get confused about.