• node.js

    From Mortifis@VERT/ALLEYCAT to All on Monday, July 22, 2019 00:20:09
    I was wondering, can SBBS use node.js


    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From echicken@VERT/ECBBS to Mortifis on Monday, July 22, 2019 00:02:06
    Re: node.js
    By: Mortifis to All on Mon Jul 22 2019 00:20:09

    I was wondering, can SBBS use node.js

    Not in any meaningful way.

    If a script was written to be run under node.js, it is almost guaranteed not to work in Synchronet's JS
    environment. The reverse is also true. There are many reasons for this and we can get into them if you
    really care.

    A node.js application could interact with Synchronet in various ways. Through a web API or some other
    network service, through stdio, or even (with high probability of corrupting things) through Synchronet's
    data files. The same could be said for a program written in just about any other language (which is why
    I said "meaningful" at the top).

    Basically there's no special integration opportunity just because both use javascript. At best there's
    an easier path to porting / sharing scripts between the two than with, say, Python.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Mortifis@VERT/ALLEYCAT to echicken on Monday, July 22, 2019 01:27:34
    Re: node.js
    By: Mortifis to All on Mon Jul 22 2019 00:20:09

    I was wondering, can SBBS use node.js

    Not in any meaningful way.

    Basically there's no special integration opportunity just because both use javascript. At best there's
    an easier path to porting / sharing scripts between the two than with, say, Python.

    I hadn't thought so, was just looking at cvs commit log from a few days ago and saw the event-emitter.js and was feeling a little hopeful. I had seen a while ago that DM was querying about mysql schemas and thought maybe something like an embedded mysql server was in the works and hoping that the node.js mysql would be able to be used with a sbbs .js script (even without node.js) ... the future is on it's way, I am sure :-)


    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From echicken@VERT/ECBBS to Mortifis on Monday, July 22, 2019 01:12:33
    Re: Re: node.js
    By: Mortifis to echicken on Mon Jul 22 2019 01:27:34

    I hadn't thought so, was just looking at cvs commit log from a few days ago and saw the event-emitter.js and was feeling a little hopeful. I had

    It's inspired by the node.js EventEmitter, but that's about it. Just something I wrote a while back that
    could be useful in some scenarios.

    seen a while ago that DM was querying about mysql schemas and thought maybe something like an embedded mysql server was in the works and hoping

    I think he's looking at sqlite for message storage, and we would potentially be able to use sqlite for
    arbitrary things via JS.

    that the node.js mysql would be able to be used with a sbbs .js script (even without node.js) ... the future is on it's way, I am sure :-)

    If certain BBS data was stored in an SQL database, then you could access it easily from some other
    program entirely external to Synchronet - node.js or otherwise - so that would open some doors.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Mortifis@VERT/ALLEYCAT to echicken on Monday, July 22, 2019 02:49:09
    Re: Re: node.js
    By: Mortifis to echicken on Mon Jul 22 2019 01:27:34

    I hadn't thought so, was just looking at cvs commit log from a few days ago and saw the event-emitter.js and was feeling a little hopeful. I had

    It's inspired by the node.js EventEmitter, but that's about it. Just something I wrote a while back that
    could be useful in some scenarios.

    seen a while ago that DM was querying about mysql schemas and thought maybe something like an embedded mysql server was in the works and hoping

    I think he's looking at sqlite for message storage, and we would potentially be able to use sqlite for
    arbitrary things via JS.

    that the node.js mysql would be able to be used with a sbbs .js script (even without node.js) ... the future is on it's way, I am sure :-)

    If certain BBS data was stored in an SQL database, then you could access it easily from some other
    program entirely external to Synchronet - node.js or otherwise - so that would open some doors.

    I had been experimenting with using the exec() function to shell out to a php script I have(had?) that reads/writes to a mysql database with the user.dat info in it but it didn't seem very useful since either the stock web/root or webv4 already displays what is needed ... perhaps I will look into that a little bit more ... just seems the mysql.js requires node.js ... I'll look into that more as well ... thanks


    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81