Stream

Join this community to post or comment

Andrew Mezoni

Discussion  - 
 
gRPC for Dart was not planned initially?

Introducing gRPC, a new open source HTTP/2 RPC Framework

http://googledevelopers.blogspot.ru/2015/02/introducing-grpc-new-open-source-http2.html

The project has support for C, C++, Java, Go, Node.js, Python, and Ruby. Libraries for Objective-C, PHP and C# are in development. 

Projects can be found here:
https://github.com/grpc/grpc/tree/master/src
A high performance, open source, general-purpose RPC framework
3
Shawn Drape's profile photoSeth Ladd's profile photo
2 comments
 
From one of our engineers: "We definitely have plans for adding gRPC for Dart. We are currently working on a HTTP/2.0 protocol stack implementation for Dart which is the main prerequisite for gRPC."
Add a comment...
5
Freemen Muaddib's profile photoThomas Schranz's profile photo
2 comments
 
Thanks for the share, very interesting, it sounds similar to what the Clojure community does with Om's and Reagent's concepts of cursors.
Add a comment...
 
Hello all,
a new problem i want to use the geolocation api but when i use it i have a PositionError with
code: 2
message: Network location provider at 'https://www.googleapis.com/' : Returned error code 400.

thanks
1
Alexandre Ardhuin's profile photoKevin Segaud's profile photo
2 comments
 
thank
Add a comment...
 
 
Good, I can feel your #dartlang, it gives you futures, and makes your types stronger!
View original post
13
1
Ole Martin Gjersvik's profile photoAlexander Zeillinger's profile photoGuillaume Girou's profile photo
4 comments
 
I wish I had colleagues that were as enthusiastic when proposing new technologies ;-(
Add a comment...

Kevin Segaud

Discussion  - 
 
I have a little problem with RandomAccessFile.

The problem is this error: 
Uncaught Error: FileSystemException: writeFrom failed, path = './disk/test' (OS Error: The operation completed successfully.

my code
EDIT:

RandomAccessFile raf = this._d.openSync();
int start_at = old_start + old_length;
int length = content.length;
print(start_at);
print(length);
raf.setPositionSync(start_at);
raf.writeStringSync("${filename} ${start_at} ${length}\n");
raf.closeSync();
2
Kevin Segaud's profile photoGünter Zöchbauer's profile photo
8 comments
 
No prob, glad it was so easy to fix :-) 
Add a comment...
 
I've opened two issues for two long coveted security features currently missing from Dart: HSTS (HTTP Strict Transport Security) and PFS (Perfect Forward Secrecy).
According to Luiz Mineo, developer of Redstone.dart, HSTS can only be implemented resorting to an interceptor (i.e. a cpp wrapper of an instance of a native peer C/C++ object) or using shelf middleware, while there is no support for PFS on Dart at all. This is a serious shortcoming for a web development platform like Dart.
If you agree, please star the following issues on the Dart tracker:

Issue 22611: Add support for PFS (Perfect Forward Secrecy)
https://code.google.com/p/dart/issues/detail?id=22611

Issue 22612: Add support for HSTS (HTTP Strict Transport Security)
https://code.google.com/p/dart/issues/detail?id=22612
Dart - Structured Web Programming
10
Add a comment...

Nawaf Alsulami

Discussion  - 
 
Is there a ppa repo for Dart dev channel?
1
Andreas Ölund's profile photo
 
I haven't seen anything like that. +Harald Glatt​ runs one for stable (https://launchpad.net/~hachre/+archive/ubuntu/dart). Another alternative is the official deb packages (https://www.dartlang.org/tools/debian.html) if you only need the SDK.
Add a comment...

Frank Pepermans

Discussion  - 
 
I'm sure this was asked before, but I could find a matching question. Anyway, any ideas on how to tackle this? http://stackoverflow.com/questions/28780022/can-i-reflect-html-libraries-in-the-stand-alone-dart-vm
1
Add a comment...
 
Hi, guys! Do you know any good and alive dart sources, blogs and so on? Excepts this group and official page :) Please, share links for me and may somebody else!
2
Andreas Ölund's profile photo
 
+Christian Grobmeier runs http://www.dartosphere.org/ which is a Dart news aggregator!
Add a comment...

Dan Schultz

Discussion  - 
 
I built a registration form widget in Frappe to test some of the changes I've been making to the library. If you're interested in how an FRP widget might look like, check out the link below.

Note, many callbacks and mutable state variables were harmed in the making of this demo :)

https://github.com/danschultz/frappe/tree/v0.4/example/registration_form
11
2
Dan Schultz's profile photoAnders Holmgren's profile photoThomas Schranz's profile photoGuillaume Girou's profile photo
7 comments
 
cool. I just took it for a quick spin and after working around https://github.com/danschultz/frappe/issues/31 I only have one unit test break. Haven't figured out why it's breaking yet
Add a comment...

Adrián Avila

Discussion  - 
 
Some one asked me this:

What is Dart's killer feature? that feature other languajes lack and make Dart special.

Honestly, I didn't know what to answer, can I get some feedback please?
2
1
Patrick Arnesen's profile photoSeth Ladd's profile photogeorge oloo's profile photo
12 comments
 
+Patrick Arnesen thanks! and the Future/then code will get a lot nicer with async/await :)
Add a comment...
 
Last stable minor version (1.8.0) was announced 14 weeks ago. How much time need to wait next stable minor version (1.9.0)?
Is this not so long a 14 weeks between the stable releases?

I don't think that the intermediate patch versions (1.8.3 and 1.8.5) will be very useful because the bugs found in 1.8.0 still remains within 14 weeks.

#1.
How much time need to wait?

#2.
Why development goes so slowly?
3
Freemen Muaddib's profile photoAndrew Mezoni's profile photo
11 comments
 
+Freemen Muaddib

Problem in that the Google thinks that only the Go language can be an alternative to the Python language but not the Dart language.
Dart has Virtual machine, package manager but on the server side Dart is just a bit more then nothing.
And problem are not in the Dart.
Problem in that the Google does not have any plans for that.
They want that Dart will be a king in the web.
And problem are not in the lack of browser integration.
Problem in that the Dart are not so popular.
It are not so popular because it can not compete with "node.js", Python, Ruby because, as I say "on the server side Dart is just a bit more then nothing".
All server-side projects in Dart only goes from the enthusiast but not professional programmers.
I wrote a lot of packages with functionality as the Python "C types" but who need this?
Nobody!
But why? It (ctypes) is very bad?
I do not think so because every problem is solvable.
Problem in that the Dart has a lot unsolved problems with working on server side and Dart team never to begins to solve them to make Dart more attractive to work on the server side.
A lot of system calls available through the "binary interop" but who need this?
Another problem in that the Dart never to want to negotiate with anyone.
They only know how to answer in this case: "We better know because we are developers".

P.S.
I know how to load dynamic libraries (as an alternatives, in common cases, to the native extensions) from the "http" location on server side (eg. from within "pub serve") but who need this?
Nobody.
I know how to locate them (for loading) in the "pub cache" from the "http" (not only from the "file://" scheme of the running script path) but who need this?
Nobody.
But who knows (except me) an alternative on "how to call C code" from "pub serve", "pub run"?
Maybe you?

Who know how to convert C header ".h" into the Dart binary declarations and use them from Dart (eg. libc.so.6, kernel32.dll, sqlite.dll)?
Everyone knows. All I say nothing.
Add a comment...

Anders Holmgren

Discussion  - 
 
Be cool when it gets support for dart
 
Google Compute Engine can now use Cloud Debugger  for both production and staging instances of your app while adding less than 10ms to request latency without blocking or halting execution.

Spend less time debugging and more time building:  http://goo.gl/mCZNgk
3 comments on original post
7
1
James Parsons's profile photo
Add a comment...
 
Are there any good examples on using Dart analyzer to manipulate Dart code? (from AST nodes that is). I would like to experiment with creating more dart "compilers", e.g. Dart to ES6 / Typescript, or even Dart to .NET.

Microsoft has a nice compiler technology (Roslyn), I wonder if Dart.analyzer is something similar to it. Any advice?
3
Anders Holmgren's profile photoFrank Pepermans's profile photo
4 comments
 
Looks very cool indeed, what is the current status?
Add a comment...
 
Just wrote a literate Dart processor.

+1 if you think this should be added directly to the VM and dart2js.

Compare this to Literate CoffeeScript

https://gist.github.com/kaendfinger/726d44a6afdf53c6e920
6
Alexander Zeillinger's profile photoJohn Evans's profile photo
2 comments
 
+1 for excellent work. :)
Add a comment...

Nawaf Alsulami

Discussion  - 
 
I'm trying to build dart dev release on ubuntu 14.10. The sdk successfully builds but the editor fails with "Java returns 13 error". I tried building with Oracle Java 8 & 7 and OpenJDK6 but it still fails. Did anyone experience the same issue?
1
Nawaf Alsulami's profile photo
 
Managed to build dart editor after downgrading to openjdk-6-jdk. I probably did not correctly downgrade to openjdk-6-jdk before. 
Add a comment...
 
I'm preparing a speech about some Dart awesome libraries, I choosed Polymer, Dart Force Framework and StageXL right now, I want to give the audience some cool and simple samples of powerful Dart apps using these. Could be better integrate them all in a whole project. Any suggestions? Some features to highlight more?
7
Bernhard Pichler's profile photoTomáš Zvěřina's profile photo
5 comments
Add a comment...
 
Hi folk!

I almost finished my first dart application, it's here: 
look: http://kelegorm.github.io/DartMotivator/
read: https://github.com/kelegorm/DartMotivator

But one question: why builded files so huge? 22mb! May be I don't know how to build it in right way?
#label.focused, #floatedLabel.focused { color: {{g.paperInput.focusedColor}}; } #underlineHighlight.focused, #caretInner { background-color: {{g.paperInput.focusedColor}}; } #error, :host(.invalid) #label.focused, :host(.invalid) #floatedLabel.focused { color: {{g.paperInput.
8
1
Günter Zöchbauer's profile photoDmitriy Vasilyev's profile photoGuillaume Girou's profile photo
21 comments
 
+Günter Zöchbauer removed comments, spaces, empty strings, minified included js and css.

Look at the source: http://kelegorm.github.io/DartMotivator/index.html
Add a comment...
 
Hello I have a problem how do I get my paper-checkbox to look like the updated one in the dart editor?  because i have tried importing it with the dart but it only imports 0.5.0 #PolymerProject     #Dart     #Polymer  
1
Lionel Mbankeu's profile photoGünter Zöchbauer's profile photo
11 comments
 
Can you please post the full error message. I'm working with 1.9 since about a month and there are seldom bugs where it's hard to work around.
Add a comment...
 
Which style of the comments use for when commenting members and types?

Acorrding to style guide Dart developers prefer using /// for doc comments.

https://www.dartlang.org/articles/style-guide/#do-use-doc-comments-when-commenting-members-and-types

I have an informal question:
Should I use style for commenting members and types prefered by the Dart developers (but used by them much less frequently) or I should use only prefered??? style?

The "used by them much less frequently" means a much less amount in characters that can be found in Dart SDK (maybe in 30 times less).

Also, when "dart style linter" arrives then will it check Dart SDK on the conformance style guide or it only intended to accustomed to the discipline of ordinary programmers?

https://github.com/dart-lang/linter

My question are an informal question because I cannot understand what means "we prefer using /// for doc comments" if in practice this is not true (at least for Dart SDK).
Follow these guidelines for consistent, readable Dart code.
2
Andrew Mezoni's profile photoLasse Reichstein Holst Nielsen's profile photo
15 comments
 
Whenever you are working with an existing code base, it is important to be consistent with the coding style of that code base.
Nothing prevents each Dart package project from having their own coding style, if that is what they want. It is just easier to get more collaborators if there isn't too high a syntax barrier to overcome.
Following the Dart style guide is a good starting point because it makes some choices for you that you might not have had time to think about yourself, and it picks a choice that users have been found to be agreeable to, even when they don't always prefer it outright. It's still a guide, not a law. 
If you really can't abide by some of the guide's choices, you can definitely choose to do something else. And if you are working on existing code that already has a different style, it's probably safer to keep that style that it is to modify the entire project, unless you really, really prefer the new style.

So, it has so far not been a goal to go back and change the comments of Dart platform libraries. They work, so they don't need fixing.
Add a comment...