Script Language Choice
[ NOTE: This page was copied whole from the old mediawiki is very old by now. To paraphrase Wikipedia, it has many problems, not the least of which is objectivity. Lua solves some problems, perl solves others, and so on. Use the best tool for the job. ]
The short answer: Lua.
The more in depth answer: Use what works for you, but be aware of the limitations.
Python is very popular but that doesn't make it a great choice for embedded telephony programming. It does not embed nicely like Lua does. Furthermore, most of the FreeSWITCH developers are Perl fans. :)
Perl is still popular and it is a decent choice for embedded telephony programming. However, Lua is still lighter than Perl for this sort of thing and doesn't lack any features that Perl has, including regular expressions.
Bottom line: there's just no reason not to use Lua.
It may matter, so let's compare:
|JS is heavier? 50% slower? Are there benchmarks to substantiate these claims? Posted by noliver at Feb 16, 2015 14:36|
|what about golang? erlang? java?And need compare not simple console_log but heavy and/or long operations, ie work with radius, mysql. Lua too much stupid, even "filesize" - need custom funcs.And what about many calls and python GIL? Posted by denis at Jul 08, 2016 07:37|
|Interested developers are welcome to publish abbreviated excerpts of their benchmark tests with links to their full test suite. Facts are better than opinions.Contact me via my Personal page here or e-mail to the FS-Docs mailing list for editor access. Posted by boteman at Dec 21, 2016 12:26|