Discussion:
[dart-misc] New release candidate for the formatter
'Bob Nystrom' via Dart Misc
2015-07-24 20:31:05 UTC
Permalink
I just published a new version of the Dart formatter. It is not in the SDK
yet, but it is, I believe, very close to what I will bring into the 1.12
version of Dart.

Compared to the last release candidate, this one fixes another thirteen
bugs. It also has a new optimized line splitter. Compared to the old one,
it:

- Produces better output in some complex cases :)
- Produces much faster output in most cases :D
- Is slower in some bad cases :(
- But has better worst case performance in the nastiest cases :-/

It's also a much simpler algorithm
<https://github.com/dart-lang/dart_style/blob/master/lib/src/line_splitter.dart#L22-L87>
and easier to maintain. The previous one was a highly recursive dynamic
programming + memoization puzzle box that made my brain hurty every time I
had to fix a bug in it.

I would love some feedback on how it works on your code before I ship it in
the SDK. You can try it out like so:

$ pub global activate dart_style 0.2.0-rc.2
$ darformat <your stuff>


(Using "dartformat" instead of "dartfmt" ensures you run the one from the
package and not "dartfmt" from the SDK.)

If you run into issues <https://github.com/dart-lang/dart_style/issues>,
questions, etc. please let me know. I have a couple more fixes and
optimizations in mind, but they are a bit of work so I'm trying to figure
out if I need to squeeze them in before 0.2.0.

Thanks!

- bob
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Bob Nystrom' via Dart Misc
2015-07-30 16:41:02 UTC
Permalink
News flash! I just put out an even fresher release candidate.

It tweaks the way function arguments are indented
<https://github.com/dart-lang/dart_style/issues/369> in some cases. But,
more awesomely (is that a word?), it completely addresses the performance
pecadillos noted below. The formatter is now
*significantly faster than it's ever been, even in worst case code, while
also producing better output.*

My hope is that this release candidate will become the 0.2.0 release which
goes out in Dart 1.12, but I would very much appreciate some tire-kicking
from you folks. If you're like to try it out on your code, just do:

$ pub global activate dart_style 0.2.0-rc.*4*
$ darformat <your stuff>


And let me know if you run into any issues.

Thank you!

- bob
Post by 'Bob Nystrom' via Dart Misc
I just published a new version of the Dart formatter. It is not in the SDK
yet, but it is, I believe, very close to what I will bring into the 1.12
version of Dart.
Compared to the last release candidate, this one fixes another thirteen
bugs. It also has a new optimized line splitter. Compared to the old one,
- Produces better output in some complex cases :)
- Produces much faster output in most cases :D
- Is slower in some bad cases :(
- But has better worst case performance in the nastiest cases :-/
It's also a much simpler algorithm
<https://github.com/dart-lang/dart_style/blob/master/lib/src/line_splitter.dart#L22-L87>
and easier to maintain. The previous one was a highly recursive dynamic
programming + memoization puzzle box that made my brain hurty every time I
had to fix a bug in it.
I would love some feedback on how it works on your code before I ship it
$ pub global activate dart_style 0.2.0-rc.2
$ darformat <your stuff>
(Using "dartformat" instead of "dartfmt" ensures you run the one from the
package and not "dartfmt" from the SDK.)
If you run into issues <https://github.com/dart-lang/dart_style/issues>,
questions, etc. please let me know. I have a couple more fixes and
optimizations in mind, but they are a bit of work so I'm trying to figure
out if I need to squeeze them in before 0.2.0.
Thanks!
- bob
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
DoHyung Kim
2015-07-31 03:14:22 UTC
Permalink
I'm using rc.2 in WebStorm and just switched to rc.4 upon reading your
announcement below.
rc.1 frequently failed to format without any good reason, and sometimes
took a while to finish formatting.
But rc.2 haven't caused any problem so far. Expecting rc.4 be even better.

Thanks for the great job.
Post by 'Bob Nystrom' via Dart Misc
News flash! I just put out an even fresher release candidate.
It tweaks the way function arguments are indented
<https://github.com/dart-lang/dart_style/issues/369> in some cases. But,
more awesomely (is that a word?), it completely addresses the performance
pecadillos noted below. The formatter is now
*significantly faster than it's ever been, even in worst case code, while
also producing better output.*
My hope is that this release candidate will become the 0.2.0 release which
goes out in Dart 1.12, but I would very much appreciate some tire-kicking
$ pub global activate dart_style 0.2.0-rc.*4*
$ darformat <your stuff>
And let me know if you run into any issues.
Thank you!
- bob
Post by 'Bob Nystrom' via Dart Misc
I just published a new version of the Dart formatter. It is not in the
SDK yet, but it is, I believe, very close to what I will bring into the
1.12 version of Dart.
Compared to the last release candidate, this one fixes another thirteen
bugs. It also has a new optimized line splitter. Compared to the old one,
- Produces better output in some complex cases :)
- Produces much faster output in most cases :D
- Is slower in some bad cases :(
- But has better worst case performance in the nastiest cases :-/
It's also a much simpler algorithm
<https://github.com/dart-lang/dart_style/blob/master/lib/src/line_splitter.dart#L22-L87>
and easier to maintain. The previous one was a highly recursive dynamic
programming + memoization puzzle box that made my brain hurty every time I
had to fix a bug in it.
I would love some feedback on how it works on your code before I ship it
$ pub global activate dart_style 0.2.0-rc.2
$ darformat <your stuff>
(Using "dartformat" instead of "dartfmt" ensures you run the one from the
package and not "dartfmt" from the SDK.)
If you run into issues <https://github.com/dart-lang/dart_style/issues>,
questions, etc. please let me know. I have a couple more fixes and
optimizations in mind, but they are a bit of work so I'm trying to figure
out if I need to squeeze them in before 0.2.0.
Thanks!
- bob
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Bob Nystrom' via Dart Misc
2015-07-31 16:04:01 UTC
Permalink
Post by DoHyung Kim
I'm using rc.2 in WebStorm and just switched to rc.4 upon reading your
announcement below.
rc.1 frequently failed to format without any good reason, and sometimes
took a while to finish formatting.
But rc.2 haven't caused any problem so far. Expecting rc.4 be even better.
Yes, it will be noticeably faster than both rc.2 and previous releases.

Cheers!

- bob
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Continue reading on narkive:
Search results for '[dart-misc] New release candidate for the formatter' (Questions and Answers)
43
replies
Do they have a yahoo Answers where you live?
started 2006-09-14 15:54:56 UTC
polls & surveys
Loading...