General-purpose Water Dissolves XML Complexity

General-purpose Water Dissolves XML Complexity

XML is not all it could be. Despite all its promise for free data exchange among disparate applications, Web application developers still contend with XML’s shortcomings: it’s too verbose, it’s too ambiguous to be a true standard, and standards bodies are pulling it in a million different directions. Mike Plusch, CEO/CTO of the Cambridge, Mass., startup Clear Methods, cites these flaws, along with the complexity it breeds and the static manner in which it’s often used, as obstacles that have left the language’s dynamic potential for Web-based programming untapped.

Plusch, a Web development veteran of more than 10 years, believes he and Clear Methods co-founder Christopher Fry have a powerful yet simple solution: XML as a general-purpose programming language. With Water, Clear Methods’ object-oriented programming language, developers can write executable code in XML, describe persistent structured data on the Web with a simplified, XML 1.0-compatible syntax called ConciseXML, and still utilize the widely known markup capabilities of HTML.

Clear Methods licenses Steam, its development platform for Water, which includes a runtime engine and an IDE. However, Water has a freely available runtime and is openly documented at waterlanguage.org. Designed for deployment on any tier (data, logic, presentation) of a Java environment, Water is flexible enough to replace any special-purpose language that a developer may need to support in today’s heterogeneous Web application environments. “The idea,” explained Plusch, “is to establish Water as the XML language of choice and then sell the business tools to use it.”

XML as Clear as Water
What frustrated Plusch about XML, particularly XML 1.0, and led to his creating Water was chiefly its ambiguity. The XML 1.0 specification is not only verbose?a common developer complaint?but it also has multiple representations for the same object, which causes an ambiguity problem. To define the problem, Plusch offered this hypothetical: “If you asked 12 developers to present an XML representation of one object, you’d probably receive at least 12 different representations?and probably 24. Each developer likely would present one representation that he or she would find too verbose and then submit another, stripped-down version.” ConciseXML, so named for its less verbose syntax, has only one XML representation for a given object.

“Companies are treating XML as a wrapper. They’re just bolting it to the outside of their programming languages.”

Plusch believes Water addresses the shortcomings not only in XML itself but also in the ways vendors and developers have used it. Developers commonly treat XML as a static hierarchical representation instead of as executable code. Plusch acknowledges that there are thousands of XML generators, but says very few of them execute it, in terms of treating XML as program code. “Clear Methods is the only one that actually executes XML,” he said.

Plusch also believes vendors are misusing XML and consequently ignoring its power. “Companies are treating XML as a wrapper,” he explained. “They’re just bolting it to the outside of their programming languages.” For example, Plusch points to JSP wrapped in XML for transport, a scenario in which the XML can actually offer more functionality than the Java itself.

Programming for the Web Today
XML data exchanges via the Web are often complicated by the myriad customizations that developers perform to have XML fit their individual environments. They employ any number of the dozen or more special-purpose XML languages available. The resulting differences in semantics, syntax, and interfaces among organizations can be significant barriers to an open data exchange and present quite a burden to developers. Plusch pointed out that as easy as exposing data in XML is for these programmers, enabling their applications to consume the various flavors is much harder. He said, “With all the incoming XML data, developers need a flexible way of consuming it all.”

” With all the incoming XML data, developers need a flexible way of consuming it all.”

The advent of Web services has done nothing but obfuscate matters, according to Plusch. With its own set of varying languages and standards, Plusch says, “Web services [development] adds complexity on top of complexity.”

Another XML Language Is Supposed to Simplify Web Development?
A developer who is confronted with all the languages he or she must support in today’s heterogeneous environments may view Water as yet another language to throw on an already overwhelming heap. Unless everybody’s using it, how does Water simplify my day-to-day support, he may ask. And who has the time to learn another language?

According to Clear Methods, “Water extends the syntax of XML to make the language less cumbersome to write code in. The new language provides a way to define and call functions in addition to defining and instantiating objects.” In other words, a programmer who is familiar with XML syntax does not have a steep learning curve for Water and can begin using it right away to replace any programming languages he or she is using. “An HTML developer can learn the basics in a few days, yet a Lisp or SmallTalk developer will feel right at home with Water,” wrote Fry in his paper, “Water Rationale.”

Because Water is pliable enough to use for code, data, and markup, developers can also choose the tier to which they want to apply the language. Its general-purpose functionality enables developers to, as Plusch put it, “learn once, use everywhere.”

Early Adopter: Come on in, the Water’s Fine
Ben Koo, a PhD candidate at MIT who is conducting research to model complex IT systems, has been involved with Water for two years. He initially was intrigued by the ability to apply the language across all tiers. As a former system architect of large-scale IT systems at huge corporations such as AT&T, he appreciated the simplification Water could offer as a cross-platform language. From his current work, he has also gained an appreciation for Water’s modeling capabilities.

“Water as a programming environment has modeling because of its Lisp underpinning,” he explained. As a language and a modeling tool, it can represent and store XML?syntax just about everyone knows?and execute the code, said Koo. He compared this functionality with other tools he’s used. “Traditional modeling tools, such as UML, are domain-specific. They become very constraining,” stated Koo, adding that UML doesn’t execute code. “CORBA’s interface definition language is too convoluted,” he added, while Water has a small runtime engine and borrows XML’s well-known structure and definitions.

” Water as a programming environment has modeling because of its Lisp underpinning.”

The feature Koo most values in Water, however, is its simplification of object-oriented development. Koo explained, “Over-simply put, object-oriented development is about namespace management.” He understands the benefits of “using object-orientated development as a concept” but admits that “libraries take a long time to master.” Water offers what he refers to as “namespace management on top of Lisp management,” or XML as a method for management and Lisp as the runtime engine to execute it.

The only improvement Koo said he would like to see in future releases is in Steam’s user interface. He believes Clear Methods would do well to “improve the look and feel of the programming environment, and add more function. It needs some kind of graphical interface; the artwork needs work.” Specifically, Koo said that although it’s already functional, Steam needs a file management extension.

Just Add Water?A Sip at a Time
By adding programmability to XML, Clear Methods offers a general-purpose language that can replace all the special-purpose languages developers are using to accommodate Web-based applications. At the same time, it has the flexibility for implementation into any tier and task level. This allows for incremental adoption, which Clear Methods has dubbed its “sip of water” strategy.

 

devx-admin

devx-admin

Share the Post:
5G Innovations

GPU-Accelerated 5G in Japan

NTT DOCOMO, a global telecommunications giant, is set to break new ground in the industry as it prepares to launch a GPU-accelerated 5G network in

AI Ethics

AI Journalism: Balancing Integrity and Innovation

An op-ed, produced using Microsoft’s Bing Chat AI software, recently appeared in the St. Louis Post-Dispatch, discussing the potential concerns surrounding the employment of artificial

Savings Extravaganza

Big Deal Days Extravaganza

The highly awaited Big Deal Days event for October 2023 is nearly here, scheduled for the 10th and 11th. Similar to the previous year, this

5G Innovations

GPU-Accelerated 5G in Japan

NTT DOCOMO, a global telecommunications giant, is set to break new ground in the industry as it prepares to launch a GPU-accelerated 5G network in Japan. This innovative approach will

AI Ethics

AI Journalism: Balancing Integrity and Innovation

An op-ed, produced using Microsoft’s Bing Chat AI software, recently appeared in the St. Louis Post-Dispatch, discussing the potential concerns surrounding the employment of artificial intelligence (AI) in journalism. These

Savings Extravaganza

Big Deal Days Extravaganza

The highly awaited Big Deal Days event for October 2023 is nearly here, scheduled for the 10th and 11th. Similar to the previous year, this autumn sale has already created

Cisco Splunk Deal

Cisco Splunk Deal Sparks Tech Acquisition Frenzy

Cisco’s recent massive purchase of Splunk, an AI-powered cybersecurity firm, for $28 billion signals a potential boost in tech deals after a year of subdued mergers and acquisitions in the

Iran Drone Expansion

Iran’s Jet-Propelled Drone Reshapes Power Balance

Iran has recently unveiled a jet-propelled variant of its Shahed series drone, marking a significant advancement in the nation’s drone technology. The new drone is poised to reshape the regional

Solar Geoengineering

Did the Overshoot Commission Shoot Down Geoengineering?

The Overshoot Commission has recently released a comprehensive report that discusses the controversial topic of Solar Geoengineering, also known as Solar Radiation Modification (SRM). The Commission’s primary objective is to

Remote Learning

Revolutionizing Remote Learning for Success

School districts are preparing to reveal a substantial technological upgrade designed to significantly improve remote learning experiences for both educators and students amid the ongoing pandemic. This major investment, which

Revolutionary SABERS Transforming

SABERS Batteries Transforming Industries

Scientists John Connell and Yi Lin from NASA’s Solid-state Architecture Batteries for Enhanced Rechargeability and Safety (SABERS) project are working on experimental solid-state battery packs that could dramatically change the

Build a Website

How Much Does It Cost to Build a Website?

Are you wondering how much it costs to build a website? The approximated cost is based on several factors, including which add-ons and platforms you choose. For example, a self-hosted

Battery Investments

Battery Startups Attract Billion-Dollar Investments

In recent times, battery startups have experienced a significant boost in investments, with three businesses obtaining over $1 billion in funding within the last month. French company Verkor amassed $2.1

Copilot Revolution

Microsoft Copilot: A Suit of AI Features

Microsoft’s latest offering, Microsoft Copilot, aims to revolutionize the way we interact with technology. By integrating various AI capabilities, this all-in-one tool provides users with an improved experience that not

AI Girlfriend Craze

AI Girlfriend Craze Threatens Relationships

The surge in virtual AI girlfriends’ popularity is playing a role in the escalating issue of loneliness among young males, and this could have serious repercussions for America’s future. A

AIOps Innovations

Senser is Changing AIOps

Senser, an AIOps platform based in Tel Aviv, has introduced its groundbreaking AI-powered observability solution to support developers and operations teams in promptly pinpointing the root causes of service disruptions

Bebop Charging Stations

Check Out The New Bebob Battery Charging Stations

Bebob has introduced new 4- and 8-channel battery charging stations primarily aimed at rental companies, providing a convenient solution for clients with a large quantity of batteries. These wall-mountable and

Malyasian Networks

Malaysia’s Dual 5G Network Growth

On Wednesday, Malaysia’s Prime Minister Anwar Ibrahim announced the country’s plan to implement a dual 5G network strategy. This move is designed to achieve a more equitable incorporation of both

Advanced Drones Race

Pentagon’s Bold Race for Advanced Drones

The Pentagon has recently unveiled its ambitious strategy to acquire thousands of sophisticated drones within the next two years. This decision comes in response to Russia’s rapid utilization of airborne

Important Updates

You Need to See the New Microsoft Updates

Microsoft has recently announced a series of new features and updates across their applications, including Outlook, Microsoft Teams, and SharePoint. These new developments are centered around improving user experience, streamlining

Price Wars

Inside Hyundai and Kia’s Price Wars

South Korean automakers Hyundai and Kia are cutting the prices on a number of their electric vehicles (EVs) in response to growing price competition within the South Korean market. Many

Solar Frenzy Surprises

Solar Subsidy in Germany Causes Frenzy

In a shocking turn of events, the German national KfW bank was forced to discontinue its home solar power subsidy program for charging electric vehicles (EVs) after just one day,

Electric Spare

Electric Cars Ditch Spare Tires for Efficiency

Ira Newlander from West Los Angeles is thinking about trading in his old Ford Explorer for a contemporary hybrid or electric vehicle. However, he has observed that the majority of

Solar Geoengineering Impacts

Unraveling Solar Geoengineering’s Hidden Impacts

As we continue to face the repercussions of climate change, scientists and experts seek innovative ways to mitigate its impacts. Solar geoengineering (SG), a technique involving the distribution of aerosols

Razer Discount

Unbelievable Razer Blade 17 Discount

On September 24, 2023, it was reported that Razer, a popular brand in the premium gaming laptop industry, is offering an exceptional deal on their Razer Blade 17 model. Typically

Innovation Ignition

New Fintech Innovation Ignites Change

The fintech sector continues to attract substantial interest, as demonstrated by a dedicated fintech stage at a recent event featuring panel discussions and informal conversations with industry professionals. The gathering,

Import Easing

Easing Import Rules for Big Tech

India has chosen to ease its proposed restrictions on imports of laptops, tablets, and other IT hardware, allowing manufacturers like Apple Inc., HP Inc., and Dell Technologies Inc. more time