this post was submitted on 17 Nov 2023
33 points (92.3% liked)

Rust

7065 readers
40 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

The Prettier Bounty is a challenge to write a prettier-compliant pretty printer in Rust

top 7 comments
sorted by: hot top controversial new old
[–] RonSijm@programming.dev 14 points 2 years ago (2 children)

$22k is pretty nice. Through I have no idea what "the prettier JavaScript tests" even means.

Is there a unit-test bootstap project someone could download that verifies this requirement? I'm already too confused deciphering what the contest even is

[–] Sigmatics@lemmy.ca 2 points 2 years ago (1 children)

If you can do it in 2-3 months it's worth it, else you're probably not getting paid enough

[–] RonSijm@programming.dev 3 points 2 years ago (1 children)

It looks like a bunch of people from biomejs are already working on this:

https://github.com/biomejs/biome/commits/main

Not sure what they're going to do with the money if it's a team effort though

[–] sukhmel@programming.dev 2 points 2 years ago

Split it maybe? After all, they've started before any prize was available for that, so it'll be a nice bonus

[–] sugar_in_your_tea@sh.itjust.works 0 points 2 years ago* (last edited 2 years ago) (1 children)

Prettier is a Javascript code formatter, so it seems the challenge is to rewrite it in Rust.

[–] Anders429@programming.dev 0 points 2 years ago (1 children)

Wow, they really did not make that clear at all on the contest description.

[–] sugar_in_your_tea@sh.itjust.works 1 points 2 years ago* (last edited 2 years ago)

Yeah, "pretty printer" to me means some kind of pretty output library, like for terminal applications. I'd call this a "code formatter," but whatever.

I guess this is what happens when your community doesn't standardize on something early on. I guess I take cargo fmt for granted.