News

Mercury Is Latest 3rd-Party Visual Basic Effort: 'Multiplatform VB++'

Notwithstanding Microsoft's death knell for Visual Basic, a new project is scheduled to debut this fall that aims to keep at least some semblance of the iconic programming language going and evolving.

That death knell sounded in March when Microsoft finally acknowledged "We Do Not Plan to Evolve Visual Basic as a Language" in the age of .NET Core/.NET 5.

VB, with a loyal, vociferous following that refuses to see the language end, has seen many efforts to keep it going -- open source and otherwise -- since it became clear Microsoft had put the language on the back burner. However, none seem to have gained enough traction to emerge as the frontrunner in the race to provide a successor.

A Graphic Accompanying a UserVoice Post Asking To Bring Back VB6
[Click on image for larger view.] A Graphic Accompanying a UserVoice Post Asking To Bring Back VB6 (source: Microsoft UserVoice)

The latest incarnation of that effort is the brainchild of a professional VB coder since VB3, Theo Verweij, who told Visual Studio Magazine that "since VB2010, I began to worry about the future of Visual Basic as in the following versions (almost) nothing new was developed for VB."

"Therefore, around February this year, I contacted RemObjects -- who have already their own version of C#, next to Object Pascal, Go, Java and Swift -- to ask if they could build a new version of Visual Basic on their tool chain. And they did. I worked with them as a consultant to get the VB specifics in to place and at this moment Mercury (the RemObjects version of VB) is in beta stage, hoping to release this Autumn."

Theo Verweij on Twitter
[Click on image for larger view.] Theo Verweij on Twitter (source: Theo Verweij/Twitter).

RemObjects is a private company with addresses in Hanover Park, Ill., and CuraƧao. It offers the Elements development system, a toolchain comprising a compiler, IDE and various supporting tools and technologies including its own versions of the languages mentioned above.

Verweij said the company "added Unsafe, the Null keyword and a whole bunch of thing that were already available in the other RemObjects languages."

New Keywords
[Click on image for larger view.] New Keywords (source: RemObjects).

The RemObjects web site for Mercury describes it as "a BASIC language implementation that is backwards code-compatible with Microsoft Visual Basic.NET."

The company says developers will be able to use Mercury to build existing VB.NET projects while leveraging their VB skills to write code targeting platforms including:

  • .NET, .NET Core, Mono and ASP.NET Core
  • The Java VM and any device that runs Java code
  • Android, both the Java-based SDK and the CPU-native NDK
  • iOS, macOS, tvOS and watchOS
  • Windows (CPU-native)
  • Linux (CPU-native)
  • WebAssembly, for web browsers and Node.js

That code can be mixed with code from the other five languages, and it has been boosted with a number of extensions and requests, including:

  • Compiler based cross-project Obfuscation (no external obfuscation tool needed anymore)
  • Aspect Oriented Programming (generate code from aspects)
  • Duck Typing (convert types to other types that you normally could not)
  • Soft interfaces (lets you use a type that does not implement an interface, but has the correct functions for that interface use as that interface)

Verweij said "Mercury is about 98 percent code-compatible with VB, but almost all projects will run from Mercury without user intervention."

Interested developers can learn more about Mercury on his Twitter site (where he says "I am VB! and PROUD of it!") and in RemObjects Elements documentation (though it says Mercury is in alpha stage).

There's also an active "Talk" site, where the latest comment, posted five days ago, suggests adding the "Procedure" keyword as an alternative for "Sub."

Whether Mercury rises to a top orbit in the VB solar system remains to be seen. We've been speculating about the future of VB for years ("Viva, Visual Basic! Or, Does VB Have a Future?"). Meanwhile, variants of the language have performed surprisingly strongly recently ("Popularity Index: Classic Visual Basic Hangs In There" and "VB.NET Popularity Still Rising").

For now we'll give Verweij the last word (here, anyway) on his pet project: "Mercury will, unlike VB, evolve in the future and support anything new that emerges."

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube