Collecting downvotes since before forums even had thank you’s.

  • 0 Posts
  • 7 Comments
Joined 3 years ago
cake
Cake day: July 6th, 2023

help-circle
  • Restart, Restart, Restart

    I see the author is still pretending lspmux doesn’t exist, which is ironically making his implementation look worse*, except for the restart benchmark itself 🙂

    memory vs. disk, memory vs. disk, memory vs. disk

    The author should try vmtouchfor a realistic** memory vs. disk-in-memory comparison, which shouldn’t be a problem at all considering the specs of the devices the author is benchmarking on 😉


    * If I’m understanding the “server ready” numbers correctly.
    ** Using tmpfs or zram with any fs would work too obviously, but wouldn’t match a realistic use-case. And we don’t want to lose the excellent restart time 😉 on device reboot.



  • However, by not pinning to an exact version, your reexport may vary between installs despite the user using the same v1.0.1 version of your package, which may be unexpected and arguably violates the purpose of having immutable versions in crates.io.

    Re-exports exist outside of trick usage. num re-exports from num-* crates without exact version dependency restrictions, just to provide one major example.

    If v1.0.1 depends only on a subset of v2’s versions, then you still get a split between, say, [1.0.1, 2.1.0) and [2.1.0,).

    You can still release 1.1.x tracking 2.1.x, 1.2.x tracking 2.2.x, …etc to satisfy your restrictions 😉

    But as the sibling comment pointed out. People don’t care about MINOR vs PATCH that much anyway. And the point of the trick is to smooth over a transition period, not keep the split forever.

    under the assumption the struct previously had nonpublic members of course

    Just for the sake of… exhaustiveness 😉, you can use #[non_exhaustive] on structs too.