Author Topic: Nodejs library compatible to javascript.yate  (Read 68 times)

Anton

  • Newbie
  • *
  • Posts: 14
    • View Profile
Nodejs library compatible to javascript.yate
« on: January 26, 2020, 11:09:16 AM »
Maybe someone will be useful
https://github.com/0LEG0/next-yate
Best regards,
Anton

Anton

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Nodejs library compatible to javascript.yate
« Reply #1 on: February 11, 2020, 10:56:59 AM »
Library are published as npm module now.
to install run:
Code: [Select]
npm install next-yate
Best regards,
Anton

P.S.
Any suggestions and criticism are welcome

cc08

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Nodejs library compatible to javascript.yate
« Reply #2 on: February 11, 2020, 01:37:31 PM »
Anton, can you suggest more complex use cases that reveal the benefits of this module.
Waht differens from others ?

Anton

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Nodejs library compatible to javascript.yate
« Reply #3 on: February 12, 2020, 01:32:03 AM »
Hello.

This library does not have obvious advantages over libraries in python, php or perl.
All advantages only over the javascript.yate module.
At the moment, I see the following problems with the javascript.yate module:
1. Low performance: slow arrays and operations with them, it is almost impossible to work with> 200 simultaneous calls.
2. Poor language constructs: it is impossible to call the function returned by the expression in without intermediate storage of the result in variable; lack of syntactic sugar.
3. There is no way to go beyond the yate sandbox.
All of these shortcomings motivated me to take up the development of a full-fledged javascript library, while the idea to preserve the original javascript.yate API seemed interesting to me.
Inside my library, all entities are connected by events and promises. Perhaps as one of the advantages over libraries in php and perl there will be no need to develop your own event reading / processing loop. This simplifies the code a bit.
Otherwise, as I said, there are no advantages over other external libraries.

Best regards,
Anton

Anton

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Nodejs library compatible to javascript.yate
« Reply #4 on: February 16, 2020, 03:42:42 AM »
Dear Community.

"Channel" support was added.
Here is example of adapted welcome.js script:
https://github.com/0LEG0/next-yate/blob/master/examples/welcome.js

Best regards,
Anton