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 at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube