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/)VI
Posts
0
Comments
526
Joined
2 yr. ago

  • i is still a value type, that never changes. Which highlights another issue I have with the explanation as provided. Using the word "reference" in a confusing way. Anonymous methods capture their enclosing scope, so i simply remains in-scope for all calls to those functions, and all those functions share the same enclosing scope. It never changes from being a value type.

  • I think the explanation they provide is a bit lacking as well. Defining an anonymous function doesn't "create a reference" to any variables it uses, it captures the scope in which it was defined and retains existing references.

  • Exactly this. I had a character go to a brothel in a campaign I ran. I just said okay, you go to the brothel and have whatever you consider a good time. No further detail or RP was requested or required.

  • Permanently Deleted

    Jump
  • C# .NET using reflection, integer underflow, and a touch of LINQ. Should work for all integer types. (edit: also works with char values)

     csharp
        
    // this increments i
    private static T Increment<T>(T i)
    {
        var valType = typeof(T);
        var maxField = valType.GetField("MaxValue");
        var minField = valType.GetField("MinValue");
        if (maxField != null)
        {
            T maxValue = (T)maxField.GetValue(i);
            T minValue = (T)minField.GetValue(i);
    
            var methods = valType.GetTypeInfo().DeclaredMethods;
            var subMethod = methods.Where(m => m.Name.EndsWith("op_Subtraction")).First();
                   
            T interim = (T)subMethod.Invoke(
                null,
                [i, maxValue]);
    
            return (T)subMethod.Invoke(
                null, 
                [interim, minValue]);
        }
        throw new ArgumentException("Not incrementable.");
    }
    
      
  • Water

    Jump
  • "Observable universe" isn't how much we can see, rather how much it is theoretically possible to observe by any physical means.

    I also don't think that water drop fact is correct. The estimated number of stars in the observable universe is 10^24, which is about an order of magnitude more than 1 mol, and 1 mol of water is about 18g, which is quite a bit more than 10 drops.

  • "AI" isn't ready for any type of general consumer market and that's painfully obvious to anyone even remotely aware of how it's developing, including investors.

    ...but the cost benefit analysis on being first-to-market with anything even remotely close to the universal applicability of AI is so absolutely insanely on the "benefit" side that it's essentially worth any conceivable risk, because the benefit if you get it right is essentially infinite.

    It won't ever stop

  • I'm the primary developer for a third party tool for Elite Dangerous and this is basically my entire thought process when I want to work on it.

    I could work on Observatory...

    Or I could play some Elite...

    Or I could just stare at my screen ineffectually for several hours.

    Staring at the screen wins frighteningly often.

  • Half Life Alyx, Lone Echo, and Asgard's Wrath are all incredible experiences that actually feel like "real games" that made meaningful and justifiable use of VR.

    Beat Saber and Robo Recall get honorable mentions from me as well because while neither is groundbreaking, both execute their particular niche more or less perfectly.

    Browsing various VR software storefronts now you find basically nothing like any of the above. Everything seems to be trying to mimic the mobile game "quick distraction" approach and shovel out as much garbage as possible rather than creating anything engaging. For anyone who believes that VR has genuine potential for exciting new experiences, as I do, it's incredibly disheartening.

  • When I initially set up my media server I went with Jellyfin over Plex mostly because the idea of having to create an account on an external service to use software I was hosting myself rubbed me the wrong way. Since then the more learn about Plex the more baffled I am that anyone chooses to use it at all.