LUA-Scripting integration

Use this forum if you want to suggest a new feature to hMailServer. Before posting, please search the forum to confirm that it has not already been suggested.
Post Reply
User avatar
Dravion
Senior user
Senior user
Posts: 2071
Joined: 2015-09-26 11:50
Location: Germany
Contact:

LUA-Scripting integration

Post by Dravion » 2018-12-29 19:17

Ok, why in the World need we another Scripting Language?

VBScript is great, even JScript works :)

I know, bit VBScript is Windows bound and can be abdoned or deprecated like many other Microsoft Technologies in no time and
its not OpenSource so there is nothing we can do if Microsoft says: Its deprecated, use Powershell or Python or something else.

Ok, to stay independent we need a beginner friendly but powerfull lovely Scripting language.

Why not Python?
To be honest, i dont like it, because of this identation stuff. I like to format my Script as i want and dont
want to be forced to something plus its slow and gigantic, nothing your can simply embedd into something which exists
allread.

Why not Perl?
Its old, the Documentation and Tutorials are to and its overly compley and not verry well supported on Windows.
Lately i had to maintain a few Perl scripts and finding uptodate Infos, espacially for Windows was time consuming as hell.

Why LUA?
Its used in such kind of Projects trillion of times. In fact i was working for a Stockmarket Company and our Scripts
and Software was used in Trading and LUA works really well and even our Accountants and Girls like to do littke Macros
and Sripts with it.

LUA is OpenSource, invented by the Catholic Church of Brasil and really tiny.
As a Developer, i (or a diffrent Programmer) can add basic LUA Support to hMailServer in no time.

My 2 Cents on it.

mats
Normal user
Normal user
Posts: 46
Joined: 2018-05-06 20:58

Re: LUA-Scripting integration

Post by mats » 2019-01-05 17:59

For some strange reason I do prefer powershell.
The core edition is open source under MIT licensing

prisma
Senior user
Senior user
Posts: 325
Joined: 2010-07-09 13:16

Re: LUA-Scripting integration

Post by prisma » 2019-01-22 13:45

No, it's not strange. Powershell is perfectly structured, flexible and extensible. Love powershell!

User avatar
Dravion
Senior user
Senior user
Posts: 2071
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: LUA-Scripting integration

Post by Dravion » 2020-02-09 15:17

Powershell 1.x / 2.x / 3.x / 4.x ect. depends on the (old) Microsoft .NET Framework.
The "OLD" .NET Framework is now deprecated in favor of the new .NET-Platform ".NET Core".

However:
,NET "old" and.NET "new" isn't something you can fully integrate into the hMailServer.exe Windows Service.
You can Interface with it (the same way Martin integrated VBScript in hMailServer) but it exists outside of hMailServer
and relies on a specific OS-Version and can deprecate quickly, as we saw in many cases in the past years.

LUA is different:
The Language itself is easy to learn and the complete Language is so tiny, it can be integrated completely inside a Project like
hMailServer without extreme Testing effort (regarding different Operating Environments). Embedding LUA-Scripting into hMailServer is
way more simple than .NET "old" / .NET Core "new" or Perl or Python - and thats why i recommend it.

Post Reply