6 ms·
Solving Wordle with uv's dependency resolver
- stared 1y agoNext step: playing Doom with uv's dependency resolver (reference to: https://news.ycombinator.com/item?id=43184291 https://news.ycombinator.com/item?id=43184291)
- deleted 1y ago[deleted]
- slightwinder 1y agoExtra points when it runs on an oscilloscope (because pregnancy testers are boring now).
- falcor84 1y agoNot directly related to uv, but I started looking into this now and stumbled upon this discussion about how it's easier to have Quake "render" onto an oscilloscope than Doom: https://forums.sufficientvelocity.com/threads/is-it-possible-to-play-doom-on-an-analog-oscilloscope-using-only-lissajous-figures.126232/ https://forums.sufficientvelocity.com/threads/is-it-possible...
- contravariant 1y agoDrawing images on an oscilloscope is fun, but I'm not sure if I would count it as a novel hack.
- voidUpdate 1y agoI'm still waiting to see doom run on a pregnancy test
- Fuzzy1000 1y agoYes please
- kibwen 1y agoIf you wanted to leverage uv's package resolver for a less deliberately silly purpose, note that it's using the pubgrub-rs library under the hood: https://github.com/pubgrub-rs/pubgrub https://github.com/pubgrub-rs/pubgrub
- usernamp 1y ago[flagged]
- Joker_vD 1y agoI express my deepest gratitude to the author for not publishing all those "wordle-*" packages to the PyPI. Thank you!
- deleted 1y ago[deleted]
- simonw 1y agoHere's my favorite of the Soduku attempts at this (easier to get your head around than Wordle since it's a much simpler problem): https://github.com/konstin/sudoku-in-python-packaging https://github.com/konstin/sudoku-in-python-packaging Here's the same Sudoku trick from 2008 using Debian packages: https://web.archive.org/web/20080823224640/https://algebraicthunk.net/~dburrows/blog/entry/package-management-sudoku/ https://web.archive.org/web/20080823224640/https://algebraic...
- mildbyte 1y agoFunnily enough, I did a Sudoku one too (albeit with Poetry) a few years ago: https://github.com/mildbyte/poetry-sudoku-solver https://github.com/mildbyte/poetry-sudoku-solver
- spelunker 1y agoOk, now do npm!
- chatmasta 1y agonpm 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.”
- spelunker 1y agoYeah, 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.
- deleted 1y ago[deleted]
- davejagoda 1y agoYet 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.
- jeremyscanvic 1y agoThat's really neat. I didn't know about those string constants!
- remedan 1y agoThis is off-topic, but I use the Firefox extension Foxy Gestures. When I draw a gesture on the featured website, a pop-up shows the gesture I'm drawing. I have never seen that before. Is that some JS/CSS trickery? Or a bug in the extension?
- greenmartian 1y agoSo I use the same extension and this piqued my interest. On a standard website, FoxyGestures will pop a status box at the bottom, with the gesture you just drew (UDUDLRLR etc). This is done by appending a div at the end of the html body. It so happens that the website has a CSS style[0] for the last div in the body with no class and no id (search for `body>div:last-child` in the css) - and use it to indicate "admonition-danger" (maybe to show errors?). [0]: https://mildbyte.xyz/main.css https://mildbyte.xyz/main.css
- wordglyph 1y agoI'm wondering if one could be done for https://WordGlyph.xyz https://WordGlyph.xyz?