Reply to comment
I mentioned Scala in my
I mentioned Scala in my article. This is a great language and I would love seeing support for it. Unfortunately JSR-223 implementation for Scala is very poor. I have spent whole day trying to make it working without much luck.
It works well as long as you don't need to exchange any data between Tigase (Java) environment and the script environment. The existing JSR-223 support requires providing variable bindings in non-standard way which is sort of acceptable as I would need some special code for the language. This is doable. But then I couldn't manage to make it working with any Tigase specific class. I don't know why, maybe this is my lack of knowledge about Scala.
I read that Scala is as fast as Java (or even better in some places) although I am not sure how fast it would run when executed as a script. If it would run with the same speed as compiled code I could even add support for it in all other places of the server. That would really open completely new possibilities.
Loading packet filters, packet processors, plugins, it could be attached everywhere basically....
On the other hand, as you said this is a language with static typing which might be actually disadvantage for a scripting programming. Actually we could consider Java support as a scripting language as well.....









Recent comments
3 hours 31 min ago
4 hours 54 min ago
6 hours 31 min ago
6 hours 51 min ago
7 hours 37 min ago