Skip to main content

Posts

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

WebStorm 9 released with improved Dart support

Today, JetBrains announced WebStorm 9 , an update to their powerful web development editor. Highlights for the Dart developer include: pub serve support, improved isolates debugging, Observatory support, new syntax support, and more. WebStorm 9 now launches pub serve, Dart's development server, when the developer runs a Dart web app. Pub serve takes care of generating assets, compiling to JavaScript, and more. Developing and debugging apps that run multiple computations in parallel is now easier, thanks to the new ability to set breakpoints inside of isolates. For deep insight into your app running on the Dart VM, you can now open the Observatory directly from WebStorm 9. Use the Observatory to learn how memory is used, where CPU time is spent, and more. It's now easier to debug apps that use collections (which is every app), thanks to the debugger's logical view of maps and lists. Developers now see the logical data structure instead of internal implementation details. W...

Dart 1.7: easily share and use command-line applications built with Dart

The Dart language, libraries, and runtime make it easy to create command-line applications. In fact, all of the core tools in the Dart SDK – dart2js, pub, and dartanalyzer – are written in Dart. We wanted to allow developers to easily get their own Dart scripts and command-line apps into users' hands. With Dart 1.7, users now have an easy way to install and run scripts built with Dart, making first-class command-line Dart apps a reality. Developers can specify executables (Dart scripts) in their pub package, which are made available to a user when the package is installed. Before: $> git clone https://git.example.com/my_cool_app $> cd my_cool_app $> pub install $> dart bin/my_cool_app.dart Now: $> pub global activate my_cool_app $> my_cool_app Dart 1.7 also includes improvements to our code isolation models. You can now launch isolates with a different package root than the host application, allowing for composition of Dart applications w...

Dart plugin for Sublime updated with many new features

Many of our developers enjoy using lightweight text editors, but still want to use features traditionally found in powerful IDEs. Today, in partnership with Guillermo López-Anglada , lead developer of the Dart plugin for Sublime , we are announcing many new features to help Dart developers stay productive in Sublime Text 3. With the Dart plugin, Sublime understands your Dart code and projects. Dart code is syntax highlighted, with support for the latest language keywords like async/await and deferred . To provide you with feedback on code quality, the plugin displays errors and warnings from static analysis. You can run web applications, command-line scripts, and servers without leaving Sublime. The Dart plugin starts and manages pub serve , Dart's development server, making it easy to launch your web app into Dartium or any browser. Integration with various Dart SDK tools is now more complete. Keep your Dart code in sync with the Dart Style Guide with the new...

Google Elections Launches New App Built with Dart, Polymer

This past weekend, the Google Elections team introduced their Elections Explorer for Brazil : a live, real-time election results experience for the presidential, gubernatorial, senate, and chamber races in Brazil. This is the Google Elections team's second app built with Dart , and their first to use Polymer . The Google Elections team is happy with their experience. They write: "We love writing Dart because it's fast, compact, and sane. Great tools and a readable language give us the confidence we need to move quickly. But adding Polymer to the mix is pure gold. After years of writing code for the web, this was the first time I've felt like I'm working with a real platform. We threw away tons of the boilerplate we've built up over time and just focused on the app itself. This was awesome." Sean Diamond, new to our team this year, said, "Being new to web development, but having done years of UI development on native platforms, writing Polyme...

Dart launches support for Homebrew

Developers can now easily install and update Dart SDK and Dartium on Macs with Homebrew, a popular package manager for Mac OS X. Both the stable SDK and (for the more adventurous) the dev channel SDK are available via Homebrew. It's easy to get started. After you install Homebrew , run these commands to install the stable channel Dart SDK and Dartium:   brew tap dart-lang/dart   brew install dart   brew install dartium # if you build Dart client apps When there is a new build of the SDK or Dartium, run these commands to stay up to date:   brew update   brew upgrade dart   brew upgrade dartium Use Homebrew if you build server-side Dart apps, or you are not using Dart Editor (for example, if you use WebStorm or Sublime ). To download Dart Editor, you can continue to use the download page. We hope our support for Homebrew makes it easy for our Mac developers to stay on the latest versions of the Dart SDK. Thanks to the Homebrew developers for an...

New Google APIs Client Libraries for Dart help Dart apps use Google services

We are always working on providing new APIs for Dart. If you have been using Google services from Dart, we are happy to say that the Dart Team is now supporting a client library for accessing a set of APIs to Google services. Most Google services have an API described by the Google Discovery Service. This includes both Apps APIs (such as Gmail and Drive) and Cloud APIs (such as Cloud Datastore and Cloud Storage). Based on previous work by GDEs Adam Singer and Gerwin Sturm , the Dart Team has built an API generator to create Dart client libraries enabling access to Google services. We recently published the following two packages on pub.dartlang.org:   googleapis   googleapis_beta The googleapis package contains all the APIs that are available in a stable version. The googleapis_beta package contains the APIs that are currently in beta and possible only available through a Limited Preview program. We will be updating these packages on a monthly basis to ensure that...

Docker images for Dart now available

Developers increasingly want to use the same language and business logic on the client and the server to reduce risk and complexity. To help developers easily build and deploy end-to-end Dart apps, we are happy to announce ready-to-use Docker images for Dart. This expands our Docker usage further beyond the recently announced Docker support in Google App Engine. There are now three Dart-related images on hub.docker.com for you to use: dart , dart-runtime and dart-hello , which uses the same naming scheme as the corresponding Node, Python and Go images already offered. The image google/dart adds the Dart SDK to google/debian Debian wheezy image. Running Dart in a container is now as simple as this:   $ docker run -i -t google/dart /usr/bin/dart --version The image google/dart-runtime inherits from google/dart, and provides a convenient way to run a Dart server application using a one line Dockerfile. To inherit from google/dart-runtime, your server application requires...