GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Notices by jorendorff (jorendorff@kfogel.org)

  1. Embed this notice
    jorendorff (jorendorff@kfogel.org)'s status on Wednesday, 13-Aug-2025 22:35:19 JST jorendorff jorendorff

    I stan sort_by_key. It's the elegant sort_by.

    Rust's type system will be finished when sort_by_key can use sort keys that include borrowed references, so you can sort on string fields without cloning them. (This would be safe, but currently the type system can't express the bound properly.)

    Rust has f32/f64::total_cmp for sorting floats, but I wish it had f32/f64::sort_key returning i32/i64, or maybe just impl Ord. Then you could use a float field as a component of a tuple sort key, etc. And I could retire a dependency (ordered-float).

    In conversation about 7 months ago from kfogel.org permalink
  2. Embed this notice
    jorendorff (jorendorff@kfogel.org)'s status on Wednesday, 13-Aug-2025 22:33:16 JST jorendorff jorendorff

    It's bad in Rust that BinaryHeap<T> makes you implement Ord for the type T.

    It's a little bad that BTreeSet<T> has the same requirement.

    Everywhere else, three kinds of sort order are supported: sort, sort_by, and sort_by_key. BinaryHeap pressures me to add an Ord impl for a type that really shouldn't have one, when what I really want is BinaryHeap::new_by_key(|task| task.priority). I can't implement Ord for tasks without affecting the meaning of ==.

    stdlib needs a new heap type. I'll just go ahead and put that on my priority queue of tasks...

    In conversation about 7 months ago from kfogel.org permalink

    Attachments


  3. Embed this notice
    jorendorff (jorendorff@kfogel.org)'s status on Friday, 20-Dec-2024 04:49:20 JST jorendorff jorendorff
    in reply to
    • Paul Cantrell
    • Bill Seitz
    @inthehands @billseitz idunno sounds like it could lead to spaghetti code
    In conversation about a year ago from kfogel.org permalink
  4. Embed this notice
    jorendorff (jorendorff@kfogel.org)'s status on Friday, 20-Dec-2024 04:46:43 JST jorendorff jorendorff
    in reply to
    • Paul Cantrell
    • Bill Seitz
    @inthehands @billseitz If it has a frontend and a backend, it's a compiler. if backend only, it's a database. if it doesn't end, it's called a daemon. if it also has a leftend and a rightend it's ravioli
    In conversation about a year ago from kfogel.org permalink
  5. Embed this notice
    jorendorff (jorendorff@kfogel.org)'s status on Wednesday, 11-Dec-2024 12:42:39 JST jorendorff jorendorff
    in reply to
    • Paul Cantrell
    @inthehands I'm not cut out for Minnesota winters, but can I ask a silly question anyway? Why does it make sense to hire visiting faculty for a 1-2 year stint?
    In conversation about a year ago from kfogel.org permalink
  6. Embed this notice
    jorendorff (jorendorff@kfogel.org)'s status on Wednesday, 11-Dec-2024 04:36:57 JST jorendorff jorendorff
    in reply to
    • Adrianna Tan
    • Ted Mielczarek
    @tedmielczarek @RainbowStardiver @skinnylatte Is there a reason this has to be a joke? What if we took the economic aspect of this seriously, how do you really explain this? What is holding the price down?
    In conversation about a year ago from gnusocial.jp permalink
  7. Embed this notice
    jorendorff (jorendorff@kfogel.org)'s status on Thursday, 05-Dec-2024 16:31:06 JST jorendorff jorendorff
    in reply to
    • Karl Fogel
    @kfogel It is weird that that is clearly super wrong and "She made a couple more of those mini pies for the meeting" is fine. I conclude that pastry takes precedence over the laws of grammar.
    In conversation about a year ago from kfogel.org permalink

User actions

    jorendorff

    jorendorff

    .

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          303341
          Member since
          5 Dec 2024
          Notices
          7
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.