Google throws new version of Dart at the desktop, will be hoping it sticks with app devs

Reformed JavaScript killer now useful on the command line

Google software engineers have delivered Dart 2.6, an update to the open source programming language that provides the ability to create self-contained, native executables for the major desktop operating systems.

That capability comes from an extension to the Dart compiler set called dart2native, which makes it possible to turn Dart files into self-contained executables holding ahead-of-time (AOT) compiled machine code. In other words, these executables will run on machines that don't have the Dart SDK installed.

"With dart2native, you can create tools for the command line on macOS, Windows, or Linux using Dart," said Michael Thomsen, a Google product manager, in a blog post.

Thomsen notes that Dart has supported AOT compilation to x86 and ARM executables for several years through Dart Native, but this capability has only been exposed through the Flutter SDK, Google's framework for creating native Android and iOS mobile applications using Dart.

Dart 2.6 also includes an improved version of dart:ffi, which provides C interoperability, and a new language feature called extension methods.

Introduced in 2011 (and originally called Dash), Dart initially alienated web developers because the Google engineers behind it believed JavaScript had "fundamental flaws that cannot be fixed merely by evolving the language." That’s how a message by a Google employee sent to an internal mailing list framed the issue in 2010. Google computer scientist Mark Miller, designer of the E and Caja programming languages, was trying to forward it to another internal list but inadvertently sent it to an external one. (Previously, The Register erroneously said Miller wrote it but he told us he merely forwarded it and within the company he objected to it loudly.)

Brendan Eich, CTO of Mozilla at the time, dismissed the assertion about JavaScript’s failings and expressed concern that Google’s go-it-alone approach would hinder the advancement of web technology.

In a post to Hacker News in 2011, he wrote, "The leaked Google doc's assertion that this is impossible and that a 'clean break' is required to make significant improvements is nonsense, a thin rationale for going it alone rather than cooperating fully."

His concern about Dart was that Google would divide the web community and fragment web content. In order for Dart to replace JavaScript, it would first need support in browsers, in the form of the Dart VM. Eich said that would never happen.

"A Dart to JS compiler will never be 'decent' compared to having the Dart VM in the browser," Eich wrote. "Yet I guarantee you that Apple and Microsoft (and Opera and Mozilla, but the first two are enough) will never embed the Dart VM."

Eich's prediction proved prophetic. In 2015, Google decided not to build the Dart VM into its Chrome browser, effectively conceding that Dart won't replace JavaScript in the current web ecosystem. Instead, Dart code gets converted into JavaScript to run on the browser and gets converted into AOT-compiled Dart code for app store distribution using the Flutter framework or for use as a command-line executable.


Python overtakes Java to become second-most popular language on GitHub after JavaScript


If developers were initially skeptical about Dart, they appear to be warming to it, thanks perhaps to Google's persistent promotion of Flutter and its promise that Flutter apps will run on the company's nascent Fuchsia operating system.

In GitHub's State of the Octoverse report, covering October 1, 2018 through September 30, 2019, the Microsoft-owned code hosting biz observed a surge in Dart interest. The language saw a 532 per cent increase during the report period, more than any other programming language and twice as much growth as the second-place rising star, Rust.

JavaScript remained the top language, followed by Python (which knocked Java down a peg). Eich, the inventor of JavaScript, is known among other things for saying, "Always bet on JavaScript."

Dart still has a ways to go before it enters anyone's list of top ten programming languages – consultancy Redmonk ranked it #27 in July – but at least now its potential uses have moved beyond internal Google ad tech. ®

Broader topics

Other stories you might like

  • Google has more reasons why it doesn't like antitrust law that affects Google
    It'll ruin Gmail, claims web ads giant

    Google has a fresh list of reasons why it opposes tech antitrust legislation making its way through Congress but, like others who've expressed discontent, the ad giant's complaints leave out mention of portions of the proposed law that address said gripes.

    The law bill in question is S.2992, the Senate version of the American Innovation and Choice Online Act (AICOA), which is closer than ever to getting votes in the House and Senate, which could see it advanced to President Biden's desk.

    AICOA prohibits tech companies above a certain size from favoring their own products and services over their competitors. It applies to businesses considered "critical trading partners," meaning the company controls access to a platform through which business users reach their customers. Google, Apple, Amazon, and Meta in one way or another seemingly fall under the scope of this US legislation. 

    Continue reading
  • I was fired for blowing the whistle on cult's status in Google unit, says contractor
    The internet giant, a doomsday religious sect, and a lawsuit in Silicon Valley

    A former Google video producer has sued the internet giant alleging he was unfairly fired for blowing the whistle on a religious sect that had all but taken over his business unit. 

    The lawsuit demands a jury trial and financial restitution for "religious discrimination, wrongful termination, retaliation and related causes of action." It alleges Peter Lubbers, director of the Google Developer Studio (GDS) film group in which 34-year-old plaintiff Kevin Lloyd worked, is not only a member of The Fellowship of Friends, the exec was influential in growing the studio into a team that, in essence, funneled money back to the fellowship.

    In his complaint [PDF], filed in a California Superior Court in Silicon Valley, Lloyd lays down a case that he was fired for expressing concerns over the fellowship's influence at Google, specifically in the GDS. When these concerns were reported to a manager, Lloyd was told to drop the issue or risk losing his job, it is claimed. 

    Continue reading
  • End of the road for biz living off free G Suite legacy edition
    Firms accustomed to freebies miffed that web giant's largess doesn't last

    After offering free G Suite apps for more than a decade, Google next week plans to discontinue its legacy service – which hasn't been offered to new customers since 2012 – and force business users to transition to a paid subscription for the service's successor, Google Workspace.

    "For businesses, the G Suite legacy free edition will no longer be available after June 27, 2022," Google explains in its support document. "Your account will be automatically transitioned to a paid Google Workspace subscription where we continue to deliver new capabilities to help businesses transform the way they work."

    Small business owners who have relied on the G Suite legacy free edition aren't thrilled that they will have to pay for Workspace or migrate to a rival like Microsoft, which happens to be actively encouraging defectors. As noted by The New York Times on Monday, the approaching deadline has elicited complaints from small firms that bet on Google's cloud productivity apps in the 2006-2012 period and have enjoyed the lack of billing since then.

    Continue reading
  • Makers of ad blockers and browser privacy extensions fear the end is near
    Overhaul of Chrome add-ons set for January, Google says it's for all our own good

    Special report Seven months from now, assuming all goes as planned, Google Chrome will drop support for its legacy extension platform, known as Manifest v2 (Mv2). This is significant if you use a browser extension to, for instance, filter out certain kinds of content and safeguard your privacy.

    Google's Chrome Web Store is supposed to stop accepting Mv2 extension submissions sometime this month. As of January 2023, Chrome will stop running extensions created using Mv2, with limited exceptions for enterprise versions of Chrome operating under corporate policy. And by June 2023, even enterprise versions of Chrome will prevent Mv2 extensions from running.

    The anticipated result will be fewer extensions and less innovation, according to several extension developers.

    Continue reading
  • Train once, run anywhere, almost: Qualcomm's drive to bring AI to its phone, PC chips
    Software toolkit offered to save developers time, effort, battery power

    Qualcomm knows that if it wants developers to build and optimize AI applications across its portfolio of silicon, the Snapdragon giant needs to make the experience simpler and, ideally, better than what its rivals have been cooking up in the software stack department.

    That's why on Wednesday the fabless chip designer introduced what it's calling the Qualcomm AI Stack, which aims to, among other things, let developers take AI models they've developed for one device type, let's say smartphones, and easily adapt them for another, like PCs. This stack is only for devices powered by Qualcomm's system-on-chips, be they in laptops, cellphones, car entertainment, or something else.

    While Qualcomm is best known for its mobile Arm-based Snapdragon chips that power many Android phones, the chip house is hoping to grow into other markets, such as personal computers, the Internet of Things, and automotive. This expansion means Qualcomm is competing with the likes of Apple, Intel, Nvidia, AMD, and others, on a much larger battlefield.

    Continue reading
  • UK competition watchdog seeks to make mobile browsers, cloud gaming and payments more competitive
    Investigation could help end WebKit monoculture on iOS devices

    The United Kingdom's Competition and Markets Authority (CMA) on Friday said it intends to launch an investigation of Apple's and Google's market power with respect to mobile browsers and cloud gaming, and to take enforcement action against Google for its app store payment practices.

    "When it comes to how people use mobile phones, Apple and Google hold all the cards," said Andrea Coscelli, Chief Executive of the CMA, in a statement. "As good as many of their services and products are, their strong grip on mobile ecosystems allows them to shut out competitors, holding back the British tech sector and limiting choice."

    The decision to open a formal investigation follows the CMA's year-long study of the mobile ecosystem. The competition watchdog's findings have been published in a report that concludes Apple and Google have a duopoly that limits competition.

    Continue reading
  • Google offers $118m to settle gender discrimination lawsuit
    Don't even think about putting LaMDA on the compensation committee

    Google has promised to cough up $118 million to settle a years-long gender-discrimination class-action lawsuit that alleged the internet giant unfairly pays men more than women.

    The case, launched in 2017, was led by three women, Kelly Ellis, Holly Pease, and Kelli Wisuri, who filed a complaint alleging the search giant hires women in lower-paying positions compared to men despite them having the same qualifications. Female staff are also less likely to get promoted, it was claimed.

    Gender discrimination also exists within the same job tier, too, the complaint stated. Google was accused of paying women less than their male counterparts despite them doing the same work. The lawsuit was later upgraded to a class-action status when a fourth woman, Heidi Lamar, joined as a plaintiff. The class is said to cover more than 15,000 people.

    Continue reading

Biting the hand that feeds IT © 1998–2022