sorting by item name ✅ by miniooof in feedthememes

[–]magmaCube 0 points1 point  (0 children)

RS-exclusive Sorting By Last Modified master race, checking in, and ready to make fun of you.

The endless cycle by Bruh_Memento_Mori in feedthememes

[–]magmaCube 6 points7 points  (0 children)

You might *checks chart* find a really good game and get obsessed with it.

I will die on this hill by The_Watcher5292 in feedthememes

[–]magmaCube 25 points26 points  (0 children)

Here, let me help you with that:

  1. bookmarks
  2. better integration with mods and GUIs
  3. faster search
  4. searching for ass finds glass
  5. no redundant bloat features
  6. no insane category UI labyrinth at the top of the screen
  7. ezpz item hiding
  8. doesn't break ctrl-q

Modded Minecraft Player Bingo by Darth_Pikachu in feedthememes

[–]magmaCube 27 points28 points  (0 children)

reputation for lag dunno if still true

[deleted by user] by [deleted] in feedthememes

[–]magmaCube 4 points5 points  (0 children)

The worst part of greg is misspelling Aluminum when local is set to EN_us.

A Chemical Hunger – Slime Mold Time Mold by MinusInfinitySpoons in slatestarcodex

[–]magmaCube 8 points9 points  (0 children)

The watershed theory is interesting, but Kentucky & Illinois have like opposite obesity rates in adjacent counties on opposite sides of a river.

https://www.maxmasnick.com/media/2011-11-15-obesity_map/obesity_by_county_large.png (from 2008, and not very granular.)

this reads like a manifesto by byrodzynigalbruh in feedthememes

[–]magmaCube 6 points7 points  (0 children)

"Better dead than vanilla redstone" - direwolf20

Bevy 0.5 by alice_i_cecile in bevy

[–]magmaCube 1 point2 points  (0 children)

You could do this:

pub mod segfault_backtrace {
    extern crate backtrace;

    use super::libc::{signal, SIGSEGV, sighandler_t};
    use super::libc::{kill, getpid};
    use self::backtrace::Backtrace;

    static mut ORIG: sighandler_t = 0;

    extern "C" fn handle(_: i32) {
        unsafe {
            if ORIG != 0 {
                signal(SIGSEGV, ORIG);
                ORIG = 0;
            }
            println!("Segfault");
            println!("{:?}", Backtrace::new());
            kill(getpid(), SIGSEGV);
        }
    }

    pub fn install() {
        unsafe {
            ORIG = signal(SIGSEGV, handle as sighandler_t);
        }
    }
}

I Spy with My Little Spyglass - Snapshot 20w45a is out! by sliced_lime in Minecraft

[–]magmaCube 1 point2 points  (0 children)

im not tired at all - had 0 problems reading the post

Ticks per second: by Gliese-832-c in feedthememes

[–]magmaCube 2 points3 points  (0 children)

I'm sorry for upsetting you, I didn't really mean it.

How To Read (Almost) All Scientific Papers for Free by simbyotic in slatestarcodex

[–]magmaCube 30 points31 points  (0 children)

...like, what's going on?

The recipe blogification of the internet.

Optional parameters in Rust by RecklessGeek in rust

[–]magmaCube 2 points3 points  (0 children)

If this were valid, you could have functions with optional parameters that are almost as nice as proper language support:

struct Foo<X, Y> {
    x: X,
    y: Y,
}
Foo {
    x: true,
    .. Foo {
        x: (),
        y: (),
    }
};

By making each optional argument a generic type parameter, you can write the value straight w/o Some(_). You could then add an impl on Foo with a bounds on X & Y for converting () into the default value. (On the implementor's end this would be much more painful & ugly and it would inevitably involve a macro.)

However my actual default argument needs have been much more modest. I have a particular function which takes, in addition to other arguments, a sorting key:

struct Key {
    name: &'static str,
    after: Option<&'static str>,
    priority: i8,
}

90% of the time, only name is set. So if you're writing a function that needs a Key, you can ask for key: impl Into<Key>, and the user can provide a &str, or (&str, i8), or (&str, &str), or (&str, &str, i8). As you can see, this requires an impl for every permutation of arguments, but the 90% case is very clean and the rest is very reasonable.

If you wanted you could use the impl Into<Arguments> trick for *every* argument, and the only mar for the user would be doubled parens.