• 0 Posts
  • 371 Comments
Joined 2 years ago
cake
Cake day: June 26th, 2023

help-circle


  • vithigar@lemmy.catoProgrammer Humor@lemmy.mlWhat the F#
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    3 days 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.






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

    // 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.");
    }
    


  • vithigar@lemmy.catoScience Memes@mander.xyzWater
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    16 days ago

    “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.


  • vithigar@lemmy.catoFuck AI@lemmy.worldYou think?
    link
    fedilink
    arrow-up
    21
    ·
    18 days ago

    Not even that. LLMs have no concept of meaning or understanding. What they do in essence is space filling based on previously trained patterns.

    Like showing a bunch of shapes to someone, then drawing a few lines and asking them to complete the shape. And all the shapes are lamp posts but you haven’t told them that and they have no idea what a lamp post is. They will just produce results like the shapes you’ve shown them, which generally end up looking like lamp posts.

    Except the “shape” in this case is a sentence or poem or self insert erotic fan fiction, none of which an LLM “understands”, it just matches the shape of what’s been written so far with previous patterns and extrapolates.



  • 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.


  • It depends on the size of the opening. If it’s small that’s no problem. You could block a 1 inch pipe at 10psi with your bare hand and be largely fine. It’s a little less than 10 pounds of force assuming a round opening.

    The problem is that the total force scales geometrically with the size of the opening. Make it two feet wide at the same 10psi and now you’ve got about 4500 pounds of force trying to push you though that opening should you find yourself in the unfortunate situation that it’s been completely blocked by your body.


  • 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.






  • In Force of Nature (S07E09) they discover that high speed warp travel can damage the fabric of space and a speed limit of warp 5 is set by the Federation for non-emergency travel. It gets referenced a couple of times in the final season of TNG but doesn’t come up much after.

    Though arguably Voyager’s situation and the Dominion War could both be reasonably considered “emergencies”. It’s also been suggested that the Federation was very quick to develop warp drives that didn’t cause this damage (this is one official but never-published explanation given for the Intrepid Class variable geometry warp nacelles).