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

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events