Live data from Hacker News

Solving Wordle with uv's dependency resolver

mildbyte.xyz

11–20 of 23 posts

Re: Solving Wordle with uv's dependency resolver

#13

Ok, now do npm!

npm allows you to have multiple versions of one package installed, so I’m not sure it will work for this, unless you use a package manager that allows you to set constraints like “only one version of this package can be installed.”

Re: Solving Wordle with uv's dependency resolver

#14

Ok, now do npm!

npm allows you to have multiple versions of one package installed, so I’m not sure it will work for this, unless you use a package manager that allows you to set constraints like “only one version of this package can be installed.”

Yeah, turns out I should have read TFA:

>The short summary of the Sudoku + Poetry post is that unlike Rust or JavaScript, a single Python project cannot use more than one version of a specific Python package.

Re: Solving Wordle with uv's dependency resolver

#18
Yet another reason to use `uv`!

I try to avoid bugs like this:

By accident, at first, I omitted the letter u in my list of letters that I was generating packages for, which caused extremely cryptic and long (500KB of uv painstakingly explaining to me why I was wrong) dependency resolution errors on specific guesses:

by doing this:

  import string
  LETTERS = string.ascii_lowercase
instead of this:

  LETTERS = "abcdefghijklmnopqrstuvwxyz"
It's a few more characters to type, but easier to examine for correctness.

Re: Solving Wordle with uv's dependency resolver

#19

Yet another reason to use `uv`! I try to avoid bugs like this: By accident, at first, I omitted the letter u in my list of letters that I was generating packages for, which caused extremely cryptic and long (500KB of uv painstakingly explaining to me why I was wrong) dependency resolution errors on specific guesses: by doing this: import string LETTERS = string.ascii_lowercase instead of this: LETTERS = "abcdefghijkl…

That's really neat. I didn't know about those string constants!

Re: Solving Wordle with uv's dependency resolver

#20
post #2

Next step: playing Doom with uv's dependency resolver (reference to: https://news.ycombinator.com/item?id=43184291 )

Extra points when it runs on an oscilloscope (because pregnancy testers are boring now).

I'm still waiting to see doom run on a pregnancy test
Post reply on HN