The post says the reason they did this was to motivate themselves to make the javascript version better? Strange.
$20k bounty was claimed
31–40 of 345 posts
Re: $20k bounty was claimed
#32I'm still salty that all my eslint plugins decided to remove perfectly fine linters in lieu of Prettier. I find Prettier to be way too heavy handed and hard to reason about, and yet another tool that I never asked for...
> I find Prettier to be way too heavy handed But that's the purpose of such tools: to stop endless debates about style.
Re: $20k bounty was claimed
#33Would it be realistic to expect a solution for this issue now that "prettier needs to step up it's game"?
Re: $20k bounty was claimed
#34> One question you are probably wondering is why would the Prettier team fund another project!? In practice, Prettier has been the dominant code formatter for JavaScript and as a result of a lack of competition, there has been little incentive to push on performance and fix various edge cases. I was indeed wondering that but the answer doesn't really answer the question for me. Why not set a bounty to improve Prettie…
I think it's about escaping local minima? You can always look at the biggest sink for performance and say "there's definitely something we can do better in there" but unless you have something objectively better to compare it to, you'd never be sure.
Imitation is the sincerest form of flattery. And knowing that of the hard problems you solved, someone else can solve them and in a different language, I think there's quite a bit of value to be obtained just through the competitive process that emerges when there is competition.
You can't fully have competitiveness without an actual alternative to compare yourself against. If the Rust folks can do the problem slightly faster by shaving off just 5% or less of the test suite, what all does that tell us about the theoretical limits of a solution when compared against the canonical version?
I have only limited understanding of the problem space, but I think there's always something intangible to be gained from having a quite similar implementation in a different language.
Re: $20k bounty was claimed
#35Speed is always welcome, but I just wish prettier was a little less opinionated. Specifically around line length, it will just not leave my formatting alone. I find prettier formatted code much less readable than unformatted code, and this isn't a problem I have with other code formatters like rustfmt.
I wish it were more opinionated. It treats new lines as significant in a lot of its formatting
Re: $20k bounty was claimed
#36On November 9th, we put up a $10k bounty for any project written in Rust that would pass 95% of Prettier test suite."
I don't see how better performance follows from the fact that something is written in Rust. One could have simply transpiled the existing codebase into Rust, and collect the reward.
Re: $20k bounty was claimed
#37Earlier quoted context omitted.
> I find Prettier to be way too heavy handed But that's the purpose of such tools: to stop endless debates about style.
I mean.. sure https://xkcd.com/927/
Re: $20k bounty was claimed
#38While it's always great to see performance gains, my largest pain point with prettier was never performance. Instead my only gripe with prettier is the "line wrapping noise" it creates, illustrated here by Anthony Fu: https://antfu.me/posts/why-not-prettier#the-line-wrapping-no... Would it be realistic to expect a solution for this issue now that "prettier needs to step up it's game"?
Re: $20k bounty was claimed
#39I'm still salty that all my eslint plugins decided to remove perfectly fine linters in lieu of Prettier. I find Prettier to be way too heavy handed and hard to reason about, and yet another tool that I never asked for...
Re: $20k bounty was claimed
#40Earlier quoted context omitted.
What do you mean by "backwards"?
The "diff" appears to be backwards (it's subtracting what prettier would emit, and adding back the original).