• JScript vs Baja

    From John@VERT/JCBBS to All on Fri Dec 18 16:45:08 2020
    Hi folks:

    I was just wondering which executes faster Baja or
    JScript? I find Baja faster to code with, for
    obvious reasons, but I would like to advance my
    skills into JScript.

    One other question, the node display at the end of
    login when other nodes are in use, where is that? I
    don't see it or login or logon jcsripts.

    Thanks,
    John

    ---
    Synchronet JCBBS what an unoriginal name:)
  • From Digital Man@VERT to John on Fri Dec 18 17:05:09 2020
    Re: JScript vs Baja
    By: John to All on Fri Dec 18 2020 04:45 pm

    Hi folks:

    I was just wondering which executes faster Baja or
    JScript?

    Baja modules will startup faster than JavaScript modules, but once initialized, the JavaScript code will run faster.

    I find Baja faster to code with, for
    obvious reasons, but I would like to advance my
    skills into JScript.

    I think you mean JavaScript. "JScript" is Microsoft's implmentation of ECMAScript, which is pretty similar to the JavaScript engine used in Synchronet, but not identical.

    One other question, the node display at the end of
    login when other nodes are in use, where is that? I
    don't see it or login or logon jcsripts.

    It's in the C/C++ source, logon.cpp.
    --
    digital man

    Sling Blade quote #5:
    Karl Childers (to father): You ought not killed my little brother...
    Norco, CA WX: 62.1F, 32.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From John@VERT/JCBBS to Digital Man on Fri Dec 18 20:24:15 2020
    Re: JScript vs Baja
    By: Digital Man to John on Fri Dec 18 2020 05:05 pm

    Many Thanks, as always!:)

    I will refer to it as javascript then from now on!:)

    Regards,
    John

    John

    ... The things most people want to know are usually none of their business.

    ---
    Synchronet JCBBS what an unoriginal name:)
  • From Tracker1@VERT/TRN to John on Sun Dec 20 19:45:36 2020
    On 12/18/2020 9:45 AM, John wrote:
    Hi folks:

    I was just wondering which executes faster Baja or
    JScript? I find Baja faster to code with, for
    obvious reasons, but I would like to advance my
    skills into JScript.

    One other question, the node display at the end of
    login when other nodes are in use, where is that? I
    don't see it or login or logon jcsripts.

    I'm totally biased, but JavaScript or JS (not JScript) is far and away a
    more capable language for areas beyond telnet interaction and better
    even for it imho.

    --
    Michael J. Ryan
    tracker1 +o Roughneck BBS
    ---
    Synchronet Roughneck BBS - roughneckbbs.com
  • From jc@VERT/JCBBS to Tracker1 on Mon Dec 21 15:19:22 2020
    Re: Re: JScript vs Baja
    By: Tracker1 to John on Sun Dec 20 2020 07:45 pm

    Hi Mike:

    Thanks for the input... Coming from a structured language like turbopascal/freepascal, cobol, yes i said cobol lol, etc... I am just trying to get used to the perceived lack of structure...

    Thanks,
    John

    jc

    ... It's easy to be brave from a safe distance.

    ---
    Synchronet JCBBS what an unoriginal name:)
  • From Tracker1@VERT/TRN to jc on Mon Dec 21 18:19:28 2020
    On 12/21/2020 8:19 AM, jc wrote:

    Thanks for the input... Coming from a structured language like turbopascal/freepascal, cobol, yes i said cobol lol, etc... I
    am just trying to get used to the perceived lack of structure...

    A couple months ago, I started on creating TypeScript definitions for
    use with Synchronet... just been too busy dealing with work and home to
    finish it.

    It's really not so bad though, JS is my favorite language, I also work a
    lot in C# (Grandson language to Pascal) and dabling in Rust.

    --
    Michael J. Ryan
    tracker1 +o Roughneck BBS
    ---
    Synchronet Roughneck BBS - roughneckbbs.com
  • From Sprite@VERT/TINTETBB to Tracker1 on Tue Dec 22 07:24:47 2020
    Re: Re: JScript vs Baja
    By: Tracker1 to jc on Mon Dec 21 2020 18:19:28

    lot in C# (Grandson language to Pascal) and dabling in Rust.

    Really? C# has always reminded me a lot of Java...

    ---
    Synchronet Tinfoil Tetrahedron BBS - skulking seedily against the Brave New World
  • From Nightfox@VERT/DIGDIST to Sprite on Tue Dec 22 13:24:32 2020
    Re: Re: JScript vs Baja
    By: Sprite to Tracker1 on Tue Dec 22 2020 07:24 am

    lot in C# (Grandson language to Pascal) and dabling in Rust.

    Really? C# has always reminded me a lot of Java...

    But remember, Java and JavaScript are two different languages. Yes, C# is a lot like Java (it seemed C# and the .NET platform in general) were designed similarly to Java, but JavaScript is significantly different and has much different use cases.

    Nightfox

    ---
    Synchronet Digital Distortion: digitaldistortionbbs.com
  • From jc@VERT/JCBBS to Sprite on Tue Dec 22 15:22:42 2020
    Re: Re: JScript vs Baja
    By: Sprite to Tracker1 on Tue Dec 22 2020 07:24 am

    Re: Re: JScript vs Baja
    By: Tracker1 to jc on Mon Dec 21 2020 18:19:28

    lot in C# (Grandson language to Pascal) and dabling in Rust.

    Really? C# has always reminded me a lot of Java...

    I think probably because Jscript is a scripting language, it is written more like a script than a program. When compared to other languages, I see it is rather wordy in comparison:) Strange...

    ---
    Synchronet JCBBS what an unoriginal name:)
  • From jc@VERT/JCBBS to Nightfox on Tue Dec 22 19:23:08 2020
    Re: Re: JScript vs Baja
    By: Nightfox to Sprite on Tue Dec 22 2020 01:24 pm

    Re: Re: JScript vs Baja
    By: Sprite to Tracker1 on Tue Dec 22 2020 07:24 am

    lot in C# (Grandson language to Pascal) and dabling in Rust.

    Really? C# has always reminded me a lot of Java...

    But remember, Java and JavaScript are two different languages. Yes, C# is a lot like Java (it
    seemed C# and the .NET platform in general) were designed similarly to Java, but JavaScript is
    significantly different and has much different use cases.

    Nightfox


    Hi Fox:

    I concur, javascript seems great for things like Synchro, where there are specific functions, and each have their own script. The logic is easier to follow that way. In a very large program, those brackets become OOOooo lol

    Thanks,
    John

    ---
    Synchronet JCBBS what an unoriginal name:)
  • From Sprite@VERT/TINTETBB to Nightfox on Wed Dec 23 06:37:18 2020
    Re: Re: JScript vs Baja
    By: Nightfox to Sprite on Tue Dec 22 2020 13:24:32

    But remember, Java and JavaScript are two different languages. Yes, C# is a lot like Java (it seemed C# and the .NET platform in general) were designed similarly to Java, but JavaScript is significantly different and has much different use cases.

    Well aware of the difference between Java & JavaScript. :) I suppose given the thread title, though...
    I was just kind of surprised that someone would call it the grandson of Pascal. Pascal doesn't seem similar to it in the slightest, to me... More like of an offshoot of C...

    ---
    Synchronet Tinfoil Tetrahedron BBS - skulking seedily against the Brave New World
  • From Tracker1@VERT/TRN to Sprite on Sun Dec 27 01:26:29 2020
    On 12/22/2020 6:24 AM, Sprite wrote:
    lot in C# (Grandson language to Pascal) and dabling in Rust.

    Really? C# has always reminded me a lot of Java...

    C# has aspects from Java and Delphi (kind of a son to Pascal) and has
    evolved since then.

    Anders Hejlsberg was chief architect behind Delphi at Borland, then went
    to MS to work on J++ and later the lead architect for C#. So there are definitely influences from both.

    I happen to really like a lot of what C# does, they've managed to
    integrate a lot of features in ways that don't feel completely wrong,
    though I have mixed feelings on linq syntax (the extensions are great
    though).

    JavaScript is still my favorite language, generally speaking and I've
    been warming up to TypeScript recently. Also dabbled in Rust a bit this
    past year, which is nice, but I go a few months without touching it and
    feels like starting over every single time.

    --
    Michael J. Ryan
    tracker1 +o Roughneck BBS
    ---
    Synchronet Roughneck BBS - roughneckbbs.com
  • From Tracker1@VERT/TRN to jc on Sun Dec 27 01:30:18 2020
    On 12/22/2020 8:22 AM, jc wrote:
    I think probably because Jscript is a scripting language, it is
    written more like a script than a program. When compared to other
    languages, I see it is rather wordy in comparison:) Strange...

    JavaScript (not JScript) has evolved quite a bit, Synchronet is pretty
    much EcmaScript (the specification) version 5 at this point, from the
    engine used.

    With other engines and runtimes, it can absolutely be used to write a
    more feature rich application. As to being wordy, take a look at
    PowerShell sometime.

    --
    Michael J. Ryan
    tracker1 +o Roughneck BBS
    ---
    Synchronet Roughneck BBS - roughneckbbs.com
  • From Tracker1@VERT/TRN to Sprite on Sun Dec 27 01:34:45 2020
    On 12/23/2020 5:37 AM, Sprite wrote:
    But remember, Java and JavaScript are two different languages. Yes, C# is a >> lot like Java (it seemed C# and the .NET platform in general) were designed >> similarly to Java, but JavaScript is significantly different and has much
    different use cases.

    Well aware of the difference between Java & JavaScript. :) I suppose
    given the thread title, though...

    I was just kind of surprised that someone would call it the grandson of Pascal. Pascal doesn't seem similar to it in the slightest, to me... More like of an offshoot of C...

    I was saying that C# is the grandson of Pascal. Pascal begat Delphi,
    Delphi + Java begat C#. So there are influences from C/C++/Java and Pascal/Delphi in C#.

    JavaScript is more like a bastard child of scheme with curly braces.
    Though it has evolved into something incredibly flexible, powerful and
    useful by nature of being the language of the browser.

    --
    Michael J. Ryan
    tracker1 +o Roughneck BBS
    ---
    Synchronet Roughneck BBS - roughneckbbs.com
  • From Sprite@VERT/TINTETBB to Tracker1 on Sun Dec 27 08:11:28 2020
    Re: Re: JScript vs Baja
    By: Tracker1 to Sprite on Sun Dec 27 2020 01:26:29

    I happen to really like a lot of what C# does, they've managed to
    integrate a lot of features in ways that don't feel completely wrong,
    though I have mixed feelings on linq syntax (the extensions are great though).

    JavaScript is still my favorite language, generally speaking and I've
    been warming up to TypeScript recently. Also dabbled in Rust a bit this past year, which is nice, but I go a few months without touching it and feels like starting over every single time.

    I enjoy C#, too. I'm really glad that I've finally got enough memory in my primary desktop/server box to be able to run a virtual machine with enough memory to run 'doze & Visual Studio again here. I've neglected a couple of projects that I was working on there for at least 2 years now. I never really thought I'd like coding for 'doze, being as I loathe the operating system so much, but it's actually kind of fun programming for it, IMO.
    I used to do a lot with DM's Synchronet JavaScript API, but I've never really done much with JavaScript in a browser with the DOM. I should probably learn it at some point, especially with the issues that I've been having with D3.js lately on one of my projects, though. And I really do want to
    get back with my command shell work for Synchronet, too. It's been about 5 years since I've done much with it, but I don't think it'd take too terribly long to pick back up. I just need to not have a fulltime job any more. *grin*

    ---
    Synchronet Tinfoil Tetrahedron BBS - skulking seedily against the Brave New World
  • From jc@VERT/JCBBS to Tracker1 on Sun Dec 27 12:29:57 2020
    Re: Re: JavaScript vs Baja
    By: Tracker1 to jc on Sun Dec 27 2020 01:30 am

    On 12/22/2020 8:22 AM, jc wrote:
    I think probably because Jscript is a scripting language, it is
    written more like a script than a program. When compared to other languages, I see it is rather wordy in comparison:) Strange...

    JavaScript (not JScript) has evolved quite a bit, Synchronet is pretty
    much EcmaScript (the specification) version 5 at this point, from the
    engine used.

    With other engines and runtimes, it can absolutely be used to write a
    more feature rich application. As to being wordy, take a look at
    PowerShell sometime.

    Thanks for that. I try to stay away from Windoze as much as I can lol. I am programming more and more in Javascript. Once you get used to the gotchas, it's pretty good. I find Baja pretty quick and dirty, but not as powerful obviously. No arrays, proper looping etc.

    ---
    Synchronet JCBBS what an unoriginal name:)
  • From jc@VERT/JCBBS to Tracker1 on Sun Dec 27 12:32:24 2020
    Re: Re: JScript vs Baja
    By: Tracker1 to Sprite on Sun Dec 27 2020 01:34 am

    On 12/23/2020 5:37 AM, Sprite wrote:
    But remember, Java and JavaScript are two different languages. Yes, C# is a >> lot like Java
    (it
    seemed C# and the .NET platform in general) were designed >> similarly to Java, but JavaScript is
    significantly different and has much
    different use cases.

    Well aware of the difference between Java & JavaScript. :) I suppose given the thread title, though...

    I was just kind of surprised that someone would call it the grandson of Pascal. Pascal doesn't
    seem similar to it in the slightest, to me... More like of an offshoot of C...

    I was saying that C# is the grandson of Pascal. Pascal begat Delphi,
    Delphi + Java begat C#. So there are influences from C/C++/Java and Pascal/Delphi in C#.

    JavaScript is more like a bastard child of scheme with curly braces.
    Though it has evolved into something incredibly flexible, powerful and useful by nature of being the language of the browser.

    Now that is a great summary!! lol. I am still getting used to the braces. I am converting my Mystic baja code to Javascript. That is what I meant as more wordy, Baja is very shorthanded to do something, JS I have to expand, although I am finding it pretty short once I am used to it.

    ---
    Synchronet JCBBS what an unoriginal name:)
  • From Tracker1@VERT/TRN to Sprite on Sun Jan 3 12:01:21 2021
    On 12/27/2020 7:11 AM, Sprite wrote:
    I enjoy C#, too. I'm really glad that I've finally got enough memory in my
    primary desktop/server box to be able to run a virtual machine with enough memory to run 'doze & Visual Studio again here. I've neglected a couple of projects that I was working on there for at least 2 years now. I never really
    thought I'd like coding for 'doze, being as I loathe the operating system so much, but it's actually kind of fun programming for it, IMO.

    FYI, you can use C# (.Net 5, formerly Core) cross platform with tooling
    for Windows, Linux and MacOS. Though Visual Studio proper is still
    windows, you can do a lot with VS Code and the command line tooling.

    A lot of the apps at work are targetting Linux/Docker for testing.
    Depending on what you're using in terms of dependencies may be easy
    enough to update/port.

    I used to do a lot with DM's Synchronet JavaScript API, but I've never really done much with JavaScript in a browser with the DOM. I should probably
    learn it at some point, especially with the issues that I've been having with D3.js lately on one of my projects, though. And I really do want to
    get back with my command shell work for Synchronet, too. It's been about 5 years since I've done much with it, but I don't think it'd take too terribly long to pick back up. I just need to not have a fulltime job any more. *grin*

    LOL, yeah I understand trying to create time and motivation. Of course
    modern node/browser/deno environment development is quite a bit
    different than with Synchronet these days... SBBS feels kind of alien to
    me now, not to mention all the work done by everyone since I last really worked much with it.

    --
    Michael J. Ryan
    tracker1 +o Roughneck BBS
    ---
    Synchronet Roughneck BBS - roughneckbbs.com