• 1 Post
  • 623 Comments
Joined 2 years ago
cake
Cake day: June 26th, 2023

help-circle


  • vithigartomemes@lemmy.world...
    link
    fedilink
    arrow-up
    24
    ·
    5 days ago

    Even more infuriating when not only is it not customisable, but they layout they do use is just… bad in a thousand different tiny ways.

    For example, the tachometer and speedometer on my vehicle have two display modes. The traditional looking dials and a more compact vertical wheel that leaves more room in the middle of the display for other things.

    …but those other things are almost always either useless (I don’t need to see a little picture of the vehicle I’m driving), or actively worse (the media info screen actually shows fewer characters in the larger mode).

    It’s not unusable, it’s just varying levels of awkward or useless in dozens of little aspects.



  • Yes, it all eventually becomes heat, though not all in the room. Some sound escapes, and some light goes through the window or whatever. Those losses are incredibly minor though.

    What makes a big difference between a PC and something purpose built as a heater is generally how the air circulates the room. A space heater is going to project it out into the room, baseboard heaters will create a wide convection current. A PC on a desk in the corner will typically just blast hot air at one localised spot on the wall which isn’t really ideal for dispersing it throughout the room.



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


  • vithigartoProgrammer Humor@lemmy.mlWhat the F#
    link
    fedilink
    arrow-up
    2
    ·
    7 days ago

    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.







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


  • vithigartoScience Memes@mander.xyzWater
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    19 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.


  • vithigartoFuck AI@lemmy.worldYou think?
    link
    fedilink
    arrow-up
    21
    ·
    21 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.