• 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.1øF, 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.ãã Sp> 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.ã >ã > Sp> 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