Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)CA
Posts
1
Comments
593
Joined
2 yr. ago

  • I'll train my AI on just the bee movie. Then I'm going to ask it "can you make me a movie about bees"? When it spits the whole movie, I can just watch it or sell it or whatever, it was a creation of my AI, which learned just like any human would! Of course I didn't even pay for the original copy to train my AI, it's for learning purposes, and learning should be a basic human right!

  • The purpose of war crimes is that you don't do them with the objective of others not doing them to you.

    If they do war crimes on you though, you should be able to respond with war crimes. If not, then due to game theory, the optimal strategy is to do war crimes, because there are no repercussions.

  • To be fair, mechanic items, and especially electronic ones were far more repairable back then.

    You could see, desolder and solder components without issue. Nowadays most of the electronics are inside chips, and only the components that need to be physically big (like those responsible for the power supply) are human sized. Sure, there are some small SMD that can be manually diagnosed and replaced, but even then you often need a lot of skill and equipment.

  • The good thing about Box::leak() is that it returns a raw *mut pointer. So you need unsafe{} to dereference it. Might as well: let my_ref = &mut unsafe{*ptr}; while you are at it, so you have a perfectly normal rust reference, so the function signatures don't need any change.

    The problem with Rc is that it would also require a RefCell most of the time. So the whole thing would be filled with Rc<RefCell

    <T>

    >. With the required .borrow_mut(). It would both do a pain to do and undo.

    And of course I want to undo it, because RC is a shitty GC.

  • I've re-thought about the problem and I think for prototyping I should just Box::leak() and work with raw pointers.

    This approach also doesn't allow you to not learn the borrow checker, since leaking everything is not a good memory management strategy, but might be fine for rapidly iterating on a design.

    EDIT: maybe use a leak!() Macro that does Box::leak(Box::new()) in debug mode but panics on release (as long as you execute once in release it should be fine).

  • Another user already proposed Odin, but no one yet Jonathan blow's unnamed programming language (people call it jay). Those are the 2 programming languages that came to mind when I think of game development.

    I haven't tried either so I don't know if they fit you, but they are new languages so they should avoid java's and C++'s pitfalls.

  • Interfaces (traits in rust) are the best imo. Way better than raw structs in C or the mess that is inheritance.

    What I don't like about go's interfaces is that they're implemented implicitly. I much prefer java's and Rust's way to implicitly say which classes/structs extend/implement which interfaces.

  • Using "clever" ways to disable the borrow checker is one of the few things I don't like about rust. I much rather it having a "borrow checker version" and a "garbage collector version". That way we could rapidly iterate through design choices with the GC, and once the design has proven good, apply lifetimes and such to use with the borrow checker. The only downside to this I can think of is that most would just leave it in the GC version and not bother to move to borrow checker. But that's fine by me, rust has many other features to take advantage of. As long as no GC libraries are allowed in crates.io, it should be fine.

  • Of course younger generations are more likely to believe in pseudo science, they haven't yet learned that they are bullshit. Once they get older and have more experience with detecting bullshit, it's popularity should decline.

  • Those things are useful as fuck. At first they blocked mind controlling aliens. Then it also worked against mind-reading NSA. And now it blocks brainwashing 5G. The DoD must be spending trillions to bypass tinfoil technology.