¿El desarrollo del lado del servidor de soporte dará DART?
Pregunta
¿Vamos a poder usar DART no solo en el cliente / navegador, sino también en nuestro servidor?
Escribe algún código para un servidor por ejemplo.Apache, acepta solicitudes de navegador, consulta una base de datos y devuelve una respuesta al navegador?Tal vez crear servicios web?
Editar : Aquí está el enlace a un video donde se confirma el dardo del lado del servidor:
http://news.dartlang.org / 2012/03 / Video-Josh-Bloch-Talks-sobre-dart.html [Min 36:00]
Solución
Short answer yes.
Longer answer. The Dart VM already contains a HTTP chat server example that shows how to use the dart:io HTTP API to implement a web service. In general the dart:io library contains functionality that is meant to be used in server side programming such as sockets and file/directory handling.
Its still very early stage but already now you can play around with some early attempts of implementing connect/node style applications using the Dart SDK.
As for communicating between the client and the server you will have to use classic REST/HTTP mechanisms, but in the future (when reflection is implemented in Dart) you will be able to serialize actual Dart objects and thus share them between the client and server.