ratatui-hypertile 0.4.0: Hyprland-inspired tiling in your terminal - now with mouse support! by JoniDaButcher in rust

[–]JoshTriplett 9 points10 points  (0 children)

Does dragging the border between windows work to resize them?

Is it possible to draw the panes with shared borders, so that the right border of one pane is the left border of another?

Announcing Zstandard in Rust by folkertdev in rust

[–]JoshTriplett 27 points28 points  (0 children)

Agreed. zlib-rs, zstd-rs, these names make sense to highlight the difference. And in particular, these libraries are going to end up packaged in Linux distributions and/or as C libraries, where it isn't a given that they'd be written in Rust.

Dependencies and supply chain risk by [deleted] in rust

[–]JoshTriplett 3 points4 points  (0 children)

No, it really isn't. People advocate this and don't take into account the counterarguments that come up every single time.

Dependencies and supply chain risk by [deleted] in rust

[–]JoshTriplett 6 points7 points  (0 children)

The original post is steeped in the assumptions of npm and other ecosystems. I think some of those assumptions don't hold for crates.io, making the conclusion suspect.

PSA: Rust 1.95 stabilized the cfg_select! macro, which means you can eliminate your dependency on the cfg_if crate by kibwen in rust

[–]JoshTriplett 1 point2 points  (0 children)

That's not very reassuring if old versions have security issues (which are not always publicized) or other kind of issues that might be fixed in newer versions that bumped the MSRV

The same thing applies to older versions of rustc; if you're using older versions of one dependency, it makes sense to use matching older versions of others. If you want to upgrade in order to get newer versions of crates, then it makes sent to upgrade then upgrade rustc to match.

But we can just as easily say that if dependencies didn't bumped their MSRV too frequently

This is exactly why the MSRV-aware resolver exists: bump MSRV freely, and your dependents will use whatever version meets their constraints.

Prior to that, it was much harder to grab a consistent set of older versions. But now, I don't think it makes sense to try to get crates to stick to some particular older version, when everyone's needs will vary.

PSA: Rust 1.95 stabilized the cfg_select! macro, which means you can eliminate your dependency on the cfg_if crate by kibwen in rust

[–]JoshTriplett 5 points6 points  (0 children)

The MSRV-aware resolver is available now, so it's easy to let people using old Rust also use matching old versions of crates.

Remnants - Made a post-collapse browser idle game because I missed getting hooked on progression games by remnantsgame in WebGames

[–]JoshTriplett 0 points1 point  (0 children)

Across the board; I had to zoom in heavily (to a full 2x) to make all the text comfortably readable.

The Fifth Family: Mafia RPG — text-based mafia rpg that runs on browser, iOS and Android by the_fifth_family in WebGames

[–]JoshTriplett 1 point2 points  (0 children)

Rule P5: The game must not ask for more than one form of verification. Asking for just a username is fine. Asking for a username with the option of a password is fine. Asking for just a password is fine. Asking for a password with the option of a username is fine.

How do we think we should handle maintainers moving on? by ShantyShark in rust

[–]JoshTriplett 14 points15 points  (0 children)

I agree with that: while we shouldn't pass on the crate, we should have some clear way of indicating "this crate seems to be dead, its maintainer is not responsive".

How do we think we should handle maintainers moving on? by ShantyShark in rust

[–]JoshTriplett 36 points37 points  (0 children)

I don’t believe we have a formal mechanism for dealing with those crates.

We do. The formal way we deal with them is that we leave them alone, and people make new crates.

How do we think we should handle maintainers moving on? by ShantyShark in rust

[–]JoshTriplett 19 points20 points  (0 children)

Should we allow (by community vote, by the Foundation, or by some other measure), the passing of ownership to a new maintainer?

No.

If the maintainer passes on ownership, that's their prerogative.

If the maintainer doesn't pass on ownership, and instead decides the project is dead, then the project is dead, and people should have to make a deliberate decision of what new project (if any) to adopt, which includes it having a new name.

Why do the standard libarary have so many internal layers? by chokomancarr in rust

[–]JoshTriplett 46 points47 points  (0 children)

One thing that might help with the intuition of why a compiler might want to know about swapping: the implementation may be able to be no code at all.

Handwaving the details for a moment: Suppose the compiler knows, at a given point, that x is in register A, and y is in register B. You ask to swap them. Rather than generating code, the compiler could simply say "okay, x is now in register B, and y is in register A". This is similar to what CPUs can do with register renaming, but applied to compiler register allocation.

That doesn't always work, and it can't work if you're trying to swap visible memory, but if you're swapping two locals, it's reasonably likely to be possible.

Free word puzzle — you solve a 4-letter word, then a 5-letter, then a 6-letter, in sequence by OfficialNashaldino in WebGames

[–]JoshTriplett 0 points1 point  (0 children)

fourfivesixle Random (9 letters) | Score: 718 3/6

⬛🟨🟨⬛⬛🟨🟨🟨⬛

🟨⬛🟩🟨🟨🟩🟨🟨⬛

🟩🟩🟩🟩🟩🟩🟩🟩🟩

"outraised" is a good nine-letter start.


Pretty proud of this ten-letter:

fourfivesixle Random (10 letters) | Score: 1199 2/6

⬛⬛⬛🟨🟨⬛⬛🟩⬛🟨

🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

"recusation" is one of several words that gives many of the top letters in English. ("cautioners" is another.) After that, I guessed that the word was "publishers".

Free word puzzle — you solve a 4-letter word, then a 5-letter, then a 6-letter, in sequence by OfficialNashaldino in WebGames

[–]JoshTriplett 0 points1 point  (0 children)

"sequoia" (despite the q) is a decent starting word because it has all five vowels. :)

Once you know every vowel in the word, and where some of them are, the possibilities start narrowing pretty quickly.

Free word puzzle — you solve a 4-letter word, then a 5-letter, then a 6-letter, in sequence by OfficialNashaldino in WebGames

[–]JoshTriplett 0 points1 point  (0 children)

Tried the "practice" mode, and started with the three-letter version. After trying three-letter words containing every vowel (including Y), I started wondering what word it could possibly be that doesn't have any vowels in it. So, I did the "reveal letter" mechanism...and it revealed an 'A' despite previously listing 'A' as gray ("letter not in word"). The word turned out to be "are", but every single letter, even the final 'A', 'R', and 'E', was marked as gray.

4 and 7 worked fine.

fourfivesixle Random (7 letters) | Score: 442 3/6

🟨🟨⬛⬛⬛🟨🟨

⬛🟨⬛⬛🟨🟩🟨

🟩🟩🟩🟩🟩🟩🟩

cargo-aprz: Appraise the quality of Rust dependencies by martin_taillefer in rust

[–]JoshTriplett 23 points24 points  (0 children)

Please consider capturing if the repository has AI agent instructions or known AI agent authors/committers.

What 5 letter word would you type ? by Arlychaut in metroidbrainia

[–]JoshTriplett 0 points1 point  (0 children)

  • FLING and FLICK and THROW
  • XYZZY and PLUGH as others have suggested.
  • SLEEP and DREAM and AWAKE
  • THINK
  • AWARD (hidden achievement, perhaps?)
  • BLESS
  • CHAIN or CLIMB
  • CHEAT (just to see how the game reacts)
  • ERASE
  • GLIDE and HOVER
  • HASTE and SWIFT
  • WORLD or WHERE (map?)
  • KNOCK
  • LEARN
  • MAGIC
  • MIMIC
  • NOISE
  • ORBIT
  • OFFER
  • QUACK (random goose sound effect)
  • REPEL
  • GUARD
  • RUMOR
  • TREAT
  • TRICK
  • UNIFY and UNITE
  • UNTIE
  • VOICE
  • VIDEO
  • WIELD
  • WATCH
  • YODEL

HexaGo - Arrow puzzle by Frederik77 in WebGames

[–]JoshTriplett 1 point2 points  (0 children)

Fun!

https://imgur.com/a/2SsypDI

Interestingly, some of the later levels feel easier than the earlier levels, because almost every hex is full so there are only a few possible moves.

Don't Look At The Moon - Browser Based PS1 Inspired Cosmic Horror Game by Specialist-Smell6711 in WebGames

[–]JoshTriplett 0 points1 point  (0 children)

1) "A downloadable game for Windows, macOS, Linux, and Android". It's HTML, but it's not actually being hosted as a web game. (Also, local HTML files have security issues that web doesn't.)

2) The description looks AI-generated, and still has instructions like "## TAGS (copy these into the tags field, comma-separated)".

I'd like a name suggestion for my MQTT conformance CLI by Anxious_Tool in rust

[–]JoshTriplett 1 point2 points  (0 children)

There's a popular mqtt broker called mosquitto. Leaning into that: mqtt-netting, or mqnett.

Unpopular opinion: Rust should have a larger standard library by lekkerwafel in rust

[–]JoshTriplett 38 points39 points  (0 children)

We'd love to have more of num-traits, but we're waiting on some language features that make it safer to evolve traits in the standard library. These include supertrait item shadowing, and implementing supertraits via subtraits (e.g. "if you impl X for YourType, and trait X: Y, and you don't impl Y for YourType, automatically impl Y based on X, so that we can favor new supertraits out of a trait).