Author Topic: Future of VBScript in EA?  (Read 1522 times)

MichPaule

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Future of VBScript in EA?
« on: May 27, 2024, 07:01:16 pm »
According to Microsoft VBScript will be depreciated soon (see https://techcommunity.microsoft.com/t5/windows-it-pro-blog/vbscript-deprecation-timelines-and-next-steps/ba-p/4148301).
What is Sparx Systems position to that?
TIA

Michael

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8030
  • Karma: +118/-20
    • View Profile
Re: Future of VBScript in EA?
« Reply #1 on: May 28, 2024, 12:02:43 pm »
Use Javascript.

MichPaule

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Future of VBScript in EA?
« Reply #2 on: May 28, 2024, 04:24:06 pm »
Use Javascript.
Which would mean translating ~20000 lines of code in our case. :-[
And No: ChatGPT is NOT an option...

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13065
  • Karma: +544/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Future of VBScript in EA?
« Reply #3 on: May 28, 2024, 04:38:21 pm »
Use Javascript.
Which would mean translating ~20000 lines of code in our case. :-[
And No: ChatGPT is NOT an option...
Yeah, same here, except that I have more like 80.000 lines of code  :-\
But since we are probably not the only ones with this problem, I'm hoping there will be new VBScript to Javascript translators built.
I'm guessing they will be AI based though.

I did some small experiments with Gemini, and that was pretty promising.
We still have a good few years before they will start deprecating it, and given the current speed of AI development...

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8030
  • Karma: +118/-20
    • View Profile
Re: Future of VBScript in EA?
« Reply #4 on: May 28, 2024, 05:05:56 pm »
Which would mean translating ~20000 lines of code in our case. :-[
And No: ChatGPT is NOT an option...
The brute fact is that we just use that OS functionality. Even if we tried to create our own implementation for VBScript it would probably still involve compatibility issues.

I don't think it's feasible for us to do anything other than suggest that you start migrating to Javascript.

We saw the first suggestions of this a few years ago with Microsoft deprecating the debugging API that we used for VBScript and JScript. Since then we've been pushing Javascript because the implementation that we offer is under our control.

MichPaule

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Future of VBScript in EA?
« Reply #5 on: May 28, 2024, 10:35:59 pm »
Sigh... :'(
Somehow I expected this outcome.
Looks like I'll have to revise my retirement planning. 8)

Michael

qwerty

  • EA Guru
  • *****
  • Posts: 13544
  • Karma: +395/-300
  • I'm no guru at all
    • View Profile
Re: Future of VBScript in EA?
« Reply #6 on: May 29, 2024, 03:50:22 am »
Seems like Mickeysoft is going to replace pest by cholera :-/

q.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1295
  • Karma: +119/-10
  • Its the results that count
    • View Profile
Re: Future of VBScript in EA?
« Reply #7 on: May 29, 2024, 10:26:33 am »
I started looking at VBScript to JavaScript converters a while back. The first one I came across was this one.
http://2018.www.slingfive.dev2.slingfive.com/pages/code/scriptconverter/#:~:text=ScriptConverter%20performs%20a%20basic%20translation,to%20the%20equivalent%20in%20Javascript. However whilst a good start wasn't complete. Needed some manual intervention afterwards.
I then came across some guidance converting scripts https://support.smartbear.com/testcomplete/docs/scripting/converting-scripts.html?_ga=2.253818760.1477370505.1716941956-607939705.1716941956 which seemed to be a good source of things to consider.
There are some online converters but I've not found one that is 100% reliable. Was contemplating writing a script myself but due to other priority demands on my time its never at the top of the list.
Maybe someone who has more a vested interest could make a script converter to help address the issue of VBScript and JScript become obsolete.
Happy to help
:)

Elpis

  • EA User
  • **
  • Posts: 24
  • Karma: +5/-0
  • Make MDA/MBSE vital.
    • View Profile
Re: Future of VBScript in EA?
« Reply #8 on: May 29, 2024, 05:51:12 pm »
Since then we've been pushing Javascript because the implementation that we offer is under our control.

Isn't it the SpiderMonkey? (with some tweaks toward EA integration)

Worker

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Future of VBScript in EA?
« Reply #9 on: May 31, 2024, 09:33:39 pm »
The MS Copilot can convert chunks of code relatively OK - but the code only, it removes all the comments. Silly.
Where I have an issue is user interaction - using JS you lose InputBox (which I use to create primitive number-based menues) and MessageBox (where I like both the icons and the selection of buttons).
Ok, there are some workarounds, but working so-so, and only in 32-bit EA. So Sparx should suggest / create some ways of user interactions within JS scripts, beside the Session.Input and Session.Output, but I don't know, if there is enough interest.

DeBAAT

  • EA User
  • **
  • Posts: 59
  • Karma: +2/-0
    • View Profile
Re: Future of VBScript in EA?
« Reply #10 on: May 31, 2024, 09:44:03 pm »
+1

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13065
  • Karma: +544/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Future of VBScript in EA?
« Reply #11 on: May 31, 2024, 09:48:36 pm »
The MS Copilot can convert chunks of code relatively OK - but the code only, it removes all the comments. Silly.

You should be able to instruct it to keep the comments I would think. ???

Geert

MichPaule

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Future of VBScript in EA?
« Reply #12 on: May 31, 2024, 09:56:53 pm »
Ok, there are some workarounds, but working so-so, and only in 32-bit EA. So Sparx should suggest / create some ways of user interactions within JS scripts, beside the Session.Input and Session.Output, but I don't know, if there is enough interest.
I have the strong believe that the interest will arise sooner or later  ;)

qwerty

  • EA Guru
  • *****
  • Posts: 13544
  • Karma: +395/-300
  • I'm no guru at all
    • View Profile
Re: Future of VBScript in EA?
« Reply #13 on: May 31, 2024, 10:30:43 pm »
The "soon" above is according to MS "around 2027"...

q.