Discussion:
[dart-misc] Node.js as a target for dart2js or DDC: effort required?
DoHyung Kim
2016-11-23 10:00:34 UTC
Permalink
Dear all,

Recently my team has been writing a simple CI system in Dart currently for
running on Google Cloud Platform. We had hard time due to lack of readily
available libraries including official support for Google Cloud Platform
and simple things like ssh client. Different from front-end and typical web
back-end, it was really painful to do such things in Dart. So after having
hit an internal milestone recently, we are in the course of discussing on
whether we should keep Dart.

So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.

Could someone in the Dart team give me some hints on how much work it would
be? I know there have been some effort from outside of the Dart team to run
dart2js output on Node.js and to implement dart:io on Node.js APIs. Though
such outcome can be leveraged, I think it's better to have it incorporated
into the Dart SDK in the end.

Any hint will be appreciated.

Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Florian Loitsch' via Dart Misc
2016-11-23 10:46:58 UTC
Permalink
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart currently for
running on Google Cloud Platform. We had hard time due to lack of readily
available libraries including official support for Google Cloud Platform
and simple things like ssh client. Different from front-end and typical web
back-end, it was really painful to do such things in Dart. So after having
hit an internal milestone recently, we are in the course of discussing on
whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
DoHyung Kim
2016-11-23 11:07:23 UTC
Permalink
Thanks, Florian.

I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM
and Node.js.

In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?

BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart currently
for running on Google Cloud Platform. We had hard time due to lack of
readily available libraries including official support for Google Cloud
Platform and simple things like ssh client. Different from front-end and
typical web back-end, it was really painful to do such things in Dart. So
after having hit an internal milestone recently, we are in the course of
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Vyacheslav Egorov' via Dart Misc
2016-11-23 12:44:27 UTC
Permalink
Until Dart has an ecosystem comparable to Node.js', I think it's
practical and beneficial to leverage that of Node.js where appropriate.

That is certainly a valid approach from the practical standpoint.

However here is a thing to think about.

When node.js was just released it had no ecosystem.

Ecosystem grew because people started writing tons and tons of libraries
ignoring the fact that similar libraries already exist for languages like
Ruby, Python, etc.

If those people would instead start compiling JavaScript to Ruby then there
would be no such thing as node.js ecosystem.

In other words - ecosystem will only grow if there are people willing to
invest their faith and time into growing it.
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM
and Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?
BR, DH
I believe Natalie did some work on this, to make sass run on node.js.
Dear all,
Recently my team has been writing a simple CI system in Dart currently for
running on Google Cloud Platform. We had hard time due to lack of readily
available libraries including official support for Google Cloud Platform
and simple things like ssh client. Different from front-end and typical web
back-end, it was really painful to do such things in Dart. So after having
hit an internal milestone recently, we are in the course of discussing on
whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
// Vyacheslav Egorov
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
DoHyung Kim
2016-11-23 14:06:09 UTC
Permalink
I fully understand your point. But at least, the initial momentum on Dart
has been lost somewhat (regardless of Dart's future), and I can't write
everything missing myself from the scratch.

For instance, the major public cloud providers including Google provide SDK
for their selection of languages. And it's non-trivial to write and
maintain non-official SDKs for them.

My point here is I want to stay in the Dart ecosystem as close as possible
while leveraging Node.js (hopefully tentatively). Don't get me wrong. My
colleagues are already contributing small packages to the Dart ecosystem,
and I want to keep doing so by not deviating too much from the standard
Dart.


DH
Post by 'Vyacheslav Egorov' via Dart Misc
Until Dart has an ecosystem comparable to Node.js', I think it's
practical and beneficial to leverage that of Node.js where appropriate.
That is certainly a valid approach from the practical standpoint.
However here is a thing to think about.
When node.js was just released it had no ecosystem.
Ecosystem grew because people started writing tons and tons of libraries
ignoring the fact that similar libraries already exist for languages like
Ruby, Python, etc.
If those people would instead start compiling JavaScript to Ruby then
there would be no such thing as node.js ecosystem.
In other words - ecosystem will only grow if there are people willing to
invest their faith and time into growing it.
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM
and Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Dear all,
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
Recently my team has been writing a simple CI system in Dart currently
for running on Google Cloud Platform. We had hard time due to lack of
readily available libraries including official support for Google Cloud
Platform and simple things like ssh client. Different from front-end and
typical web back-end, it was really painful to do such things in Dart. So
after having hit an internal milestone recently, we are in the course of
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
// Vyacheslav Egorov
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Natalie Weizenbaum' via Dart Misc
2016-11-23 20:46:37 UTC
Permalink
There isn't currently a Node implementation of dart:io, mostly because no
one's decided to sat down and put in the effort to create one. Making one
is tricky because we don't have a great test suite for dart:io, so making
it robust would probably involve writing a lot of tests, too. But if you're
interested, I certainly encourage you to create one!

Once nice thing is that such a package could be written externally and
incrementally. You wouldn't even need to use configuration-specific imports
in the package itself; if you match (a subset of) the dart:io API, you can
just rely on downstream users to do a configured import if it fits their
needs.
Post by DoHyung Kim
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM
and Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart currently
for running on Google Cloud Platform. We had hard time due to lack of
readily available libraries including official support for Google Cloud
Platform and simple things like ssh client. Different from front-end and
typical web back-end, it was really painful to do such things in Dart. So
after having hit an internal milestone recently, we are in the course of
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Filip Hracek' via Dart Misc
2016-11-23 21:20:25 UTC
Permalink
I'm not sure this is entirely relevant, but there's node_io
<https://github.com/kaendfinger/node_io.dart>, which is used at DGLogic.
Kenneth is probably on this list.

Filip Hráček
https://google.com/+filiphracek


On Wed, Nov 23, 2016 at 12:46 PM, 'Natalie Weizenbaum' via Dart Misc <
Post by 'Natalie Weizenbaum' via Dart Misc
There isn't currently a Node implementation of dart:io, mostly because no
one's decided to sat down and put in the effort to create one. Making one
is tricky because we don't have a great test suite for dart:io, so making
it robust would probably involve writing a lot of tests, too. But if you're
interested, I certainly encourage you to create one!
Once nice thing is that such a package could be written externally and
incrementally. You wouldn't even need to use configuration-specific imports
in the package itself; if you match (a subset of) the dart:io API, you can
just rely on downstream users to do a configured import if it fits their
needs.
Post by DoHyung Kim
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM
and Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart currently
for running on Google Cloud Platform. We had hard time due to lack of
readily available libraries including official support for Google Cloud
Platform and simple things like ssh client. Different from front-end and
typical web back-end, it was really painful to do such things in Dart. So
after having hit an internal milestone recently, we are in the course of
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'William Hesse' via Dart Misc
2016-11-23 21:30:29 UTC
Permalink
Isn't https://github.com/dart-lang/googleapis , with documentation at
https://www.dartdocs.org/documentation/googleapis/0.32.0/ ,
a supported, complete Dart package supporting all Google cloud APIs?

On Wed, Nov 23, 2016 at 10:20 PM, 'Filip Hracek' via Dart Misc
I'm not sure this is entirely relevant, but there's node_io, which is used
at DGLogic. Kenneth is probably on this list.
Filip Hráček
https://google.com/+filiphracek
On Wed, Nov 23, 2016 at 12:46 PM, 'Natalie Weizenbaum' via Dart Misc
Post by 'Natalie Weizenbaum' via Dart Misc
There isn't currently a Node implementation of dart:io, mostly because no
one's decided to sat down and put in the effort to create one. Making one is
tricky because we don't have a great test suite for dart:io, so making it
robust would probably involve writing a lot of tests, too. But if you're
interested, I certainly encourage you to create one!
Once nice thing is that such a package could be written externally and
incrementally. You wouldn't even need to use configuration-specific imports
in the package itself; if you match (a subset of) the dart:io API, you can
just rely on downstream users to do a configured import if it fits their
needs.
Post by DoHyung Kim
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM and
Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart currently
for running on Google Cloud Platform. We had hard time due to lack of
readily available libraries including official support for Google Cloud
Platform and simple things like ssh client. Different from front-end and
typical web back-end, it was really painful to do such things in Dart. So
after having hit an internal milestone recently, we are in the course of
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
William Hesse
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
DoHyung Kim
2016-11-23 23:55:27 UTC
Permalink
It's an autogenerated APIs. My team encountered many edge cases where it
doesn't handle properly. This is same for other cloud providers than
Google. For instance, Azure has a swagger spec for all of its APIs but with
MS specific extensions. MS has their own API generator that understands
those extensions. If one generates an API implementation with a plain
swagger generator, it lacks much of features available to API
implementations generated with MS' generator.

If you are interested, I'll invite one of my colleagues to describe what he
encountered. We observed a weird behavior, and then had to consult the
source code of an officially supported SDK to find out what's different.

DH
Post by 'William Hesse' via Dart Misc
Isn't https://github.com/dart-lang/googleapis , with documentation at
https://www.dartdocs.org/documentation/googleapis/0.32.0/ ,
a supported, complete Dart package supporting all Google cloud APIs?
On Wed, Nov 23, 2016 at 10:20 PM, 'Filip Hracek' via Dart Misc
I'm not sure this is entirely relevant, but there's node_io, which is
used
at DGLogic. Kenneth is probably on this list.
Filip Hráček
https://google.com/+filiphracek
On Wed, Nov 23, 2016 at 12:46 PM, 'Natalie Weizenbaum' via Dart Misc
Post by 'Natalie Weizenbaum' via Dart Misc
There isn't currently a Node implementation of dart:io, mostly because
no
Post by 'Natalie Weizenbaum' via Dart Misc
one's decided to sat down and put in the effort to create one. Making
one is
Post by 'Natalie Weizenbaum' via Dart Misc
tricky because we don't have a great test suite for dart:io, so making
it
Post by 'Natalie Weizenbaum' via Dart Misc
robust would probably involve writing a lot of tests, too. But if
you're
Post by 'Natalie Weizenbaum' via Dart Misc
interested, I certainly encourage you to create one!
Once nice thing is that such a package could be written externally and
incrementally. You wouldn't even need to use configuration-specific
imports
Post by 'Natalie Weizenbaum' via Dart Misc
in the package itself; if you match (a subset of) the dart:io API, you
can
Post by 'Natalie Weizenbaum' via Dart Misc
just rely on downstream users to do a configured import if it fits
their
Post by 'Natalie Weizenbaum' via Dart Misc
needs.
Post by DoHyung Kim
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it
on
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Node.js and configuration-specific imports for doing I/O both on Dart
VM and
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to
stick
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
with standard dart:io. Maybe adding the preamble and creating patches
for
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart
currently
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
for running on Google Cloud Platform. We had hard time due to lack
of
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
readily available libraries including official support for Google
Cloud
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
Platform and simple things like ssh client. Different from front-end
and
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
typical web back-end, it was really painful to do such things in
Dart. So
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
after having hit an internal milestone recently, we are in the
course of
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility
of
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
making dart2js or DDC available on Node.js ourselves. Until Dart has
an
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
ecosystem comparable to Node.js', I think it's practical and
beneficial to
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work
it
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
would be? I know there have been some effort from outside of the
Dart team
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
to run dart2js output on Node.js and to implement dart:io on Node.js
APIs.
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it,
send
Post by 'Natalie Weizenbaum' via Dart Misc
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by 'Natalie Weizenbaum' via Dart Misc
---
You received this message because you are subscribed to the Google
Groups
Post by 'Natalie Weizenbaum' via Dart Misc
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
an
--
William Hesse
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
DoHyung Kim
2016-11-24 01:00:07 UTC
Permalink
To be clear, I'm not saying googleapis package is useless. And maybe I
should have said "a few" in place of "many" when I said my team encountered
edge cases. :)
Post by DoHyung Kim
It's an autogenerated APIs. My team encountered many edge cases where it
doesn't handle properly. This is same for other cloud providers than
Google. For instance, Azure has a swagger spec for all of its APIs but with
MS specific extensions. MS has their own API generator that understands
those extensions. If one generates an API implementation with a plain
swagger generator, it lacks much of features available to API
implementations generated with MS' generator.
If you are interested, I'll invite one of my colleagues to describe what
he encountered. We observed a weird behavior, and then had to consult the
source code of an officially supported SDK to find out what's different.
DH
Post by 'William Hesse' via Dart Misc
Isn't https://github.com/dart-lang/googleapis , with documentation at
https://www.dartdocs.org/documentation/googleapis/0.32.0/ ,
a supported, complete Dart package supporting all Google cloud APIs?
On Wed, Nov 23, 2016 at 10:20 PM, 'Filip Hracek' via Dart Misc
I'm not sure this is entirely relevant, but there's node_io, which is
used
at DGLogic. Kenneth is probably on this list.
Filip Hráček
https://google.com/+filiphracek
On Wed, Nov 23, 2016 at 12:46 PM, 'Natalie Weizenbaum' via Dart Misc
Post by 'Natalie Weizenbaum' via Dart Misc
There isn't currently a Node implementation of dart:io, mostly because
no
Post by 'Natalie Weizenbaum' via Dart Misc
one's decided to sat down and put in the effort to create one. Making
one is
Post by 'Natalie Weizenbaum' via Dart Misc
tricky because we don't have a great test suite for dart:io, so making
it
Post by 'Natalie Weizenbaum' via Dart Misc
robust would probably involve writing a lot of tests, too. But if
you're
Post by 'Natalie Weizenbaum' via Dart Misc
interested, I certainly encourage you to create one!
Once nice thing is that such a package could be written externally and
incrementally. You wouldn't even need to use configuration-specific
imports
Post by 'Natalie Weizenbaum' via Dart Misc
in the package itself; if you match (a subset of) the dart:io API, you
can
Post by 'Natalie Weizenbaum' via Dart Misc
just rely on downstream users to do a configured import if it fits
their
Post by 'Natalie Weizenbaum' via Dart Misc
needs.
Post by DoHyung Kim
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it
on
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Node.js and configuration-specific imports for doing I/O both on Dart
VM and
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to
stick
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
with standard dart:io. Maybe adding the preamble and creating patches
for
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on
node.js.
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart
currently
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
for running on Google Cloud Platform. We had hard time due to lack
of
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
readily available libraries including official support for Google
Cloud
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
Platform and simple things like ssh client. Different from
front-end and
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
typical web back-end, it was really painful to do such things in
Dart. So
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
after having hit an internal milestone recently, we are in the
course of
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate
possibility of
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
making dart2js or DDC available on Node.js ourselves. Until Dart
has an
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
ecosystem comparable to Node.js', I think it's practical and
beneficial to
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work
it
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
would be? I know there have been some effort from outside of the
Dart team
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
to run dart2js output on Node.js and to implement dart:io on
Node.js APIs.
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
Though such outcome can be leveraged, I think it's better to have
it
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see
https://groups.google.com/a/dartlang.org/
Post by 'Natalie Weizenbaum' via Dart Misc
Post by DoHyung Kim
Post by 'Florian Loitsch' via Dart Misc
Post by DoHyung Kim
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it,
send
Post by 'Natalie Weizenbaum' via Dart Misc
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by 'Natalie Weizenbaum' via Dart Misc
---
You received this message because you are subscribed to the Google
Groups
Post by 'Natalie Weizenbaum' via Dart Misc
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
an
--
William Hesse
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
DoHyung Kim
2016-11-23 23:43:23 UTC
Permalink
As Flilip pointed out, node_io is an existing attempt to provide an API
compatible implementation of dart:io using node.js APIs, but resides in
libraries with different names.

What I'm not satisfied with it is that there is no way to use existing pub
packages that are not written with node_io in mind. If I understand
correctly, what you suggest has the same limitation.

Please correct me if I'm wrong.

Thanks.

DH
Post by 'Natalie Weizenbaum' via Dart Misc
There isn't currently a Node implementation of dart:io, mostly because no
one's decided to sat down and put in the effort to create one. Making one
is tricky because we don't have a great test suite for dart:io, so making
it robust would probably involve writing a lot of tests, too. But if you're
interested, I certainly encourage you to create one!
Once nice thing is that such a package could be written externally and
incrementally. You wouldn't even need to use configuration-specific imports
in the package itself; if you match (a subset of) the dart:io API, you can
just rely on downstream users to do a configured import if it fits their
needs.
Post by DoHyung Kim
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM
and Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart currently
for running on Google Cloud Platform. We had hard time due to lack of
readily available libraries including official support for Google Cloud
Platform and simple things like ssh client. Different from front-end and
typical web back-end, it was really painful to do such things in Dart. So
after having hit an internal milestone recently, we are in the course of
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Natalie Weizenbaum' via Dart Misc
2016-11-24 01:39:14 UTC
Permalink
Dart and its ecosystem aren't generally designed to make it easy to use a
package in a way that it wasn't intended to be used by its authors. Our
philosophy is that GitHub makes it easy to make upstream packages more
flexible as-necessary, so building in enforced flexibility is often more
painful and a higher maintenance burden than you get benefit.
Post by DoHyung Kim
As Flilip pointed out, node_io is an existing attempt to provide an API
compatible implementation of dart:io using node.js APIs, but resides in
libraries with different names.
What I'm not satisfied with it is that there is no way to use existing pub
packages that are not written with node_io in mind. If I understand
correctly, what you suggest has the same limitation.
Please correct me if I'm wrong.
Thanks.
DH
Post by 'Natalie Weizenbaum' via Dart Misc
There isn't currently a Node implementation of dart:io, mostly because no
one's decided to sat down and put in the effort to create one. Making one
is tricky because we don't have a great test suite for dart:io, so making
it robust would probably involve writing a lot of tests, too. But if you're
interested, I certainly encourage you to create one!
Once nice thing is that such a package could be written externally and
incrementally. You wouldn't even need to use configuration-specific imports
in the package itself; if you match (a subset of) the dart:io API, you can
just rely on downstream users to do a configured import if it fits their
needs.
Post by DoHyung Kim
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM
and Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart currently
for running on Google Cloud Platform. We had hard time due to lack of
readily available libraries including official support for Google Cloud
Platform and simple things like ssh client. Different from front-end and
typical web back-end, it was really painful to do such things in Dart. So
after having hit an internal milestone recently, we are in the course of
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility
of making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
DoHyung Kim
2016-11-24 01:11:50 UTC
Permalink
Another point I missed in Natalie's comment below is that multiple dart:io
implementations would become to exist if a node.js implementation of
dart:io is ever created. Going one to two may be a huge undertaking, since
it requires enough test cases to ensure compatibility.

From my understanding, that means it's difficult to add it to the official
SDK in the near future, even if someone ever contributes it.
Post by 'Natalie Weizenbaum' via Dart Misc
There isn't currently a Node implementation of dart:io, mostly because no
one's decided to sat down and put in the effort to create one. Making one
is tricky because we don't have a great test suite for dart:io, so making
it robust would probably involve writing a lot of tests, too. But if you're
interested, I certainly encourage you to create one!
Once nice thing is that such a package could be written externally and
incrementally. You wouldn't even need to use configuration-specific imports
in the package itself; if you match (a subset of) the dart:io API, you can
just rely on downstream users to do a configured import if it fits their
needs.
Post by DoHyung Kim
Thanks, Florian.
I had a quick look at it. And it's using node_preamble for running it on
Node.js and configuration-specific imports for doing I/O both on Dart VM
and Node.js.
In the case of Sass, I think it's a viable choice, but I'd like to stick
with standard dart:io. Maybe adding the preamble and creating patches for
dart:io using Node.js API will do?
BR, DH
Post by 'Florian Loitsch' via Dart Misc
I believe Natalie did some work on this, to make sass run on node.js.
Post by DoHyung Kim
Dear all,
Recently my team has been writing a simple CI system in Dart currently
for running on Google Cloud Platform. We had hard time due to lack of
readily available libraries including official support for Google Cloud
Platform and simple things like ssh client. Different from front-end and
typical web back-end, it was really painful to do such things in Dart. So
after having hit an internal milestone recently, we are in the course of
discussing on whether we should keep Dart.
So as an alternative we can choose, I'd like to evaluate possibility of
making dart2js or DDC available on Node.js ourselves. Until Dart has an
ecosystem comparable to Node.js', I think it's practical and beneficial to
leverage that of Node.js where appropriate.
Could someone in the Dart team give me some hints on how much work it
would be? I know there have been some effort from outside of the Dart team
to run dart2js output on Node.js and to implement dart:io on Node.js APIs.
Though such outcome can be leveraged, I think it's better to have it
incorporated into the Dart SDK in the end.
Any hint will be appreciated.
Best regards,
DH
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...