Stream

Join this community to post or comment

Peter StJ

Discussion  - 
 
Anyone else have noticed how 'poor' are the dart classes for math: for example trivial things like Rectanble.diagonal or Rectangle.longest or Rectangle.getDistanceToFurthestCorner(Point p) and so on and so on are simply not there.

Not that it is not possible to calculate them on our own but basically those are not further optimizable so it is pointless to leave it for dart users to implement those imho.

Also I firmly believe that dart is about faster development, having those missing is not great example for faster and easier dev cycles. 

Also I don't get it why there is MutableRectangle and not MutablePoint?

All of those classes (and some more that are missing) are very useful when creating custom effects in apps and are used in very sensitives code paths (animationFrame) so I think it is important to have those completed (as well as mutable to void garbage on fars).

What do you think, should this be filed as bug?
17 votes  -  votes visible to Public
Yes, we deserve complete implementation
59%
No, its okay I can write it in my code
41%
1
Bernhard Pichler's profile photoFilipe Morgado's profile photo
16 comments
 
A good use-case for extension methods.
Add a comment...

Alex Haslam

Discussion  - 
 
I need to connection to an SSH server though dart, but dart does not have a package for ssh yet, so I am looking to attempt to write one myself. But I have hit a snag... I don't understand it at all.

If anyone can link me to an article about making SSH libarys or doing SSH over a socket... I would be very grateful.
2
Robert Åkerblom-Andersson's profile photoDavid Overcash's profile photo
4 comments
 
Someone has done this in Javascript - I think you'd probably be able to work off of their example to get things pulled together in Dart.  Here's their API:
https://github.com/mscdex/ssh2-streams

And their client library:
https://github.com/mscdex/ssh2
Add a comment...
 
What do you think about this, guys? It's just a concept and maybe there are some pitfalls.

#dart   #javascript   #interoperability  
direct_js_interop - Concept of interoperability between Dart and JS
5
1
Greg Sherman's profile photoGünter Zöchbauer's profile photoGuillaume Girou's profile photo
Add a comment...

Terry Warwar

Discussion  - 
 
I'm very excited on the more focused web strategy for Dart.  Is there a roadmap of the new features?
We work with many teams, inside and outside of Google, that use Dart every day to build business-critical apps. Their feedback is consistent: they love working with the Dart language, libraries, and tools, and they compile Da...
5
Dan Grove's profile photoTerry Warwar's profile photo
2 comments
 
+Dan Grove I'm particularly interested in any js-interop and dart2js enhancements.  Is dart2es5/6 a new feature?
Add a comment...

Kasper Peulen

Discussion  - 
 
You can now try out dartpad with documentation support at:
http://dev.dart-pad.appspot.com/

I'm working on getting parameter info in as well:
http://i.imgur.com/9DyOitH.gif
25
1
David Sergey's profile photoDevon Carew's profile photoGuillaume Girou's profile photo
3 comments
 
+David Sergey The current version (dartpad.dartlang.org) support a pre-release version of 1.9. The next push - early next week - will support the latest 1.9.1 stable.
Add a comment...
 
This may be more of a general web development question than a Dart question, but compatibility does play a part in it. I have a Dart web app that I want to start creating/adding user account information to. I was thinking the most logical way to go was connecting to a database and saving everything there. I'm really open to any option right now, but is there a recommended way of doing this? Do I connect to a local DB file and upload it to a server when I am ready to publish, or should I look for a hosted DB that works best with Dart?

Thanks!
1
Jonas Kello's profile photoAnders Holmgren's profile photo
6 comments
 
Thanks +Jonas Kello. With #gitbacklog I took the view that users shouldn't have to create a new account to use the app. Personally I really hate it when apps want me to create an account and it often stops me using the app.
So I chose to start with Google (as I'm on appengine that is dead simple). Later I'll support GitHub and bitbucket and possibly others.
Unless users demand it I will actively avoid having my own accounts. I don't want to have to manage this with all the password recovery and everything else that goes with it
Add a comment...
 
Welp, shoulda seen that coming. At least they were monitoring the situation, which is great to hear about from the Microsoft browser team.
16
3
James Parsons's profile photogeorge oloo's profile photoJannik Zschiesche's profile photoGabor Orosz's profile photo
3 comments
 
Yeah Google has been pissing me off, so I don't blame MS. Plus, who would even care if IE got a Dart runtime. IE sucks. I did vote for the idea though.
Add a comment...

Alex Haslam

Discussion  - 
 
I'm looking for people in the UK (or around about) who are either setting up... or looking to help setup or attend a Dart Developer Summit stream viewing event in the UK.

Let me know if you are interested.

https://www.dartlang.org/events/2015/summit/ 
Build the Dartiverse together. Join Dart engineers and developers on April 28th and 29th, 2015 in San Francisco, California, and live stream.
5
Alex Haslam's profile photoJana Moudrá's profile photo
7 comments
 
+Alex Haslam you can also try to contact these guys (I once read on Dart forums that they set up the new user Dart group in London) 
http://www.meetup.com/Dart-London-User-Group/
Add a comment...

Peter StJ

Discussion  - 
 
DartEditor  1.9.1  broke auto completion for imports for me, where should I cry about it?

Also warning signs on my projects but only on project folder and no clue where to look for what the warning is, before that it used to put the warnings side in the navigation tree on a particular file and I could drill down to see what is the problem. Any hints on this one?
2
Peter StJ's profile photoKasper Lund's profile photo
5 comments
 
Thanks, +Peter StJ! 
Add a comment...

Peter StJ

Discussion  - 
 
I am looking for robust library that can work with colors: parse anything that can be used as CSS color and also spit out in any css color format (hex, hls, rgba, color names) and can also manipulate colors easily.

I have found several but wither not supporting everything or part of something much much bigger and tons of dependencies.

Any advice? Favorite color package?
2
Adalberto Lacruz's profile photoPeter StJ's profile photo
3 comments
 
Would have been nice if named constructor had docs - like what would 'keyword' be...
Also toRGBA seem to be missing.  I assume those are not needed so its fine for the package but not what I need. Thanks anyway.
Add a comment...
 
Tricks

I have made a collection of tips and tricks for Dart. Suggest more and PR!

https://github.com/DirectMyFile/tricks
tricks - Dart Tips and Tricks
11
Jonathan Søyland-Lier's profile photo
 
Great job! Nice collection of tips and tricks.
Add a comment...

Alex Haslam

Discussion  - 
 #UK
 
Still looking for interest in a streaming event. I need confirm interest before I can commit my resources. 

Dart Developer Summit UK Streaming meetup survey.

I am looking to setup a steam viewing event in the UK for the 2015 Dart Developer Summit in the UK. So I ask you to fill in this short survey so I can gauge interest.

We have the offer of a venue in Grantham, Lincolnshire, United Kingdom (NG31)
Due to time zones, event would run from 3:30pm until 1am UTC/GMT

https://docs.google.com/forms/d/1_MHsDnqMCbN6t8JR6Ag73ZuR7ouzuF5F7vXTrQqPF38/viewform?usp=send_form
Drive
Dart Developer SummitWe are looking to set-up a stream viewing event for the 'Dart Developer Summit 2015' in the UK. Basic idea is we can watch the stream, interact and meet other dart developers and program. All questions cover the dates of April 28th and 29th, 2015. We have the offer of a venue in Grantham, Lincolnshire, United Kingdom (NG31) Due to time zones, event would run from 3:30pm until 1am UTC/GMT
7
Add a comment...
 
Dart 1.9 is awesome the Asynchrony Support functions rock they make my life easier in declaring futures #dart    #asynchrony    #google  

Does any one else feel the same?
104 votes  -  votes visible to Public
Yes, they rock
96%
No,I Prefer declaring futures the old wa
4%
3
Bernhard Pichler's profile photoAndrew Mezoni's profile photo
3 comments
 
+Bernhard Pichler

>>  Sorry +Andrew Mezoni 

No problem.
But I found that the options of answers are illogical.
What means"Yes, they rock" I can understand.
But what means "No, I prefer declaring futures the old wa" I cannot understand.

First, they don't helps declaring futures.
And I declare futures the old way.

And, yes they helps a lot to easy:
- Declaring asyncronous functions (async, async*)
- Expressing asynchronous operations (await)

Second, in Dart asynchronous does not means only futures because streams also asynchronous.

So, maybe "No, I prefer the old way"? would be more logical pair to first option of answer?
Add a comment...
 
could package developers please be so kind and take a few minutes to explain their packages? so many packages so little description..

no how to's. no what is it trying to do.. 

need some inspiration? have a look at these

https://pub.dartlang.org/packages/dartabase_migration
https://pub.dartlang.org/packages/dartabase_model
https://pub.dartlang.org/packages/routes
https://pub.dartlang.org/packages/rainbow
https://pub.dartlang.org/packages/dev_string_converter
https://pub.dartlang.org/packages/params
https://pub.dartlang.org/packages/material_paper_colors

I know my docs aint the best, but please
It helps so much to see a little more than autodocs 

:)
7
Peter StJ's profile photo
8 comments
 
+Rasmus Eneman I can, but those can get out of sync pretty quick for < 1.0.0... that's why I don't.
Add a comment...

George Kormaris

Discussion  - 
 
Probably a dumb question, but according to the release notes, in dart:isolate: "spawnFunction now allows passing top-level and static functions as in the message argument."

I can't find spawnFunction anywhere in the documentation. Help? Can someone give a code example of this?
1
Alan Knight's profile photoGeorge Kormaris's profile photo
4 comments
 
Thank you, I spent a few hours looking for spawnFunction, I'm not that bright :D
Add a comment...
 
 
On Dart...

Now it's clear, the Dart VM is not getting integrated into Chrome. It's probably better this way after all, and here is why:

Javascript legacy: The value of the javascript libraries can't be overstated. There is no way that any new language can succeed without a decent integration with those, as it's simply too much work to re-create all this value (1).

I guess that having a Dart VM that works seamlessly with any given javascript code is not easy at all. I'm not a VM specialist so I may be wrong, but I guess it's simpler to have an integration with any piece of javascript by using dart2js. Having a Dart VM integrate with, say, V8 looks more difficult to get right.

Speed: One may argue that a native dart VM can always go faster than a generated javascript. This is somewhat questionable. One could imagine that the javascript that is produced can be well understood by V8 (if it contains clues for V8, for instance). V8, in turn, can do a very good job at optimizing for performance. It may not be as efficient than a pure Dart VM, but it can be rather close.

Focus: If there is one thing I learnt, it's that focus matters. I guess that putting a Dart VM within Chrome is a big effort; and that the one thing people ask was something different: a better integration with javascript libraries (for me: D3.js). So this big effort was not targeting what people asked for.

Now, if there is one area of improvement in the Dart universe, that's communication and I guess we should all make an effort there. Also, the (lack of) maturity of some critical pieces like Polymer (version 0.16 today) and the confusing communication around Angular has not helped. Obviously, people need clarity when it comes to UIs and so far, well, it's not obvious to everyone which way to go when it comes to UIs.

Dart is simply a very nice language, it's easy to understand, it's powerful, it make sense when you debug it even with asynchronous code. In other words, it's much better than javascript.

It's following the same pattern as any new technology: the hype curve. Maybe now is the toughest time... but I'm convinced that Dart is the future.

#dartlang  

(1) This is not by chance that we see so many languages that simply extend the javascript syntax instead of taking a fresh start, as that makes them compatible with existing JS libraries.
We work with many teams, inside and outside of Google, that use Dart every day to build business-critical apps. Their feedback is consistent: they love working with the Dart language, libraries, and tools, and they compile Da...
View original post
8
1
seb mitchell's profile photoJames Parsons's profile photoGabor Orosz's profile photo
4 comments
 
I'm done with Dart, and Google. Too many decisions they make are angering me >:(
Add a comment...
 
No Dart VM: a good thing!!
First, it allows to concentrate on the Javascript generation & optimization.
Second, no need to think about how to protect the Dart code ... the generated Javascript stuff is very hard to re-engineer.
Maybe with this, we could get better support for traces (i.e. convert Javascript stack trace to Dart)
6
Jonas Kello's profile photoYissachar Radcliffe's profile photo
13 comments
 
I have used GWT super Dev mode and it is OK, but the Dartium experience is much more pleasant. 
Add a comment...

King J

Discussion  - 
 
Even tho Dart is open source and a ECMA standard Microsoft removed Dart VM in IE/Spartan from consideration due to Googles decision. 

My question is do you see browser vendors contributing to Dart?
Google contributes to Microsoft TypeScirpt will Microsoft contribute to Dart? It seems they removed it from consideration..
2
Ole Martin Gjersvik's profile photo
 
Don't put to much into this. If Google has no plans for Dart in Chrome then its only natural for other browser vendors to lay any plans to rest.

But to answer your question more directly not every likely. Google runs almost entirely on the web. So its smart from them to hedge there bets. MS and Apple are to diverse. And Mozilla is js town. They will work on making js a better compiler target than to favor one compiled to js over another.
Add a comment...
 
My reaction to the VM news.

tl;dr: It isn't surprising. Though this is bad PR for Dart, practically speaking this doesn't change Dart's value proposition, since Dart was never really about the VM. And if we can get a better dart2js story, that's a good thing. 
Today the hopes of ever seeing the Dart VM in Chrome finally died. I doubt this comes as much of a surprise to anyone who's been working with Dart these past few years. The Dart VM was never going to...
4
2
Rasmus Eneman's profile photoSeth Ladd's profile photoGabor Orosz's profile photogeorge oloo's profile photo
8 comments
 
The Dart VM is going strong. Just not for the browser. 
Add a comment...