Yo whatup

  • 0 Posts
  • 157 Comments
Joined 2 years ago
cake
Cake day: September 28th, 2023

help-circle





  • JavaScript doesn’t have typed parameters or variables. The function expects a string and does things in the function body which converts the object into a string. JS shares this behavior with all dynamically typed languages and it’s extremely useful in some contexts and extremely frustrating in others. It’s down to what it’s being used for. Dynamic languages make excellent scripting languages, see Python really just being a souped up shell lang






  • I find it unfair to blame my peers for things largly out of their control. If you are born into an abusive family you’ll only ever know if you happen to luck into the information that such behavior is unhealthy. Is it some of their faults? Certainly, I know people who are willfully stupid and refuse to learn but even knowing these people I feel pretty uncomfortable blaming them for it. I’ve talked to them, I’ve educated them on stuff they were willfully ignorant of and do you know what it generally boils down to? School has taught them that learning things is hard and a waste of their time. They’d rather waste hours trying to get an LLM to generate a script for them than sit down and figure out how to do it despite knowing I’d happily help them.

    School has managed to taint “learning” in the minds of many of my peers to such an extent that it should be avoided at any cost. School has failed us, is still failing the current generation and nothing is going to be done about it because it’s working as it’s meant to. This is the intended outcome. Like genuinely the scale of the fuckup is to the extent that enjoying reading is not just rare but seen as weird. We’ve managed to take one of the best ways to educate yourself and instill dread in our children when it’s brought up. How do we expect people who’ve been taught to hate reading to just magically turn around and unfuck themselves? What’d they see a really motivating Tik Tok or some shit? I despise that platform but like seriously you older people just don’t it man. Been complaing since middle school and now people wanna turn around and blame us as if it’s some personal failing it’s fucked up dude. Our education sucks, has sucked and will continue to suck even worse until we stop pretending like this is some kind of personal failing.


  • The main point here (which I think is valid despite my status as a not in this group Gen Z) is that we’re still like really young? I’m 20 dude, it’s just not my or my friends fault that school failed us. The fact it failed us was by design and despite my own and others complaints it’s continued to fail the next generation and alpha is already, very clearly struggling. I really just don’t think there’s much ground to argue about how Gen Z by and large should somehow know better. The whole point of the public education system is to ensure we well educate our children, it’s simply not my or any child’s fault that school is failing to do so. Now that I’m an adult I can, and I do push for improved education but clearly people like me don’t have our priorities straight seeing who got elected…



  • So your writing a game. This game has what I’m going to call “entities” which are the dynamic NPCs and such objects. So these objects are most easily conceptualized as mutable things. Why mutable? Well they move around, change states depending on game events ect. If this object is immutable you’d have to tie the in world representation to a new object, constantly just because it moved slightly or something else. This object is mutable not just because it’s easier to understand but there are even efficiency gains due to not needing to constantly create a new version just because it moved a little bit.

    In contrast the object which holds the position data (in this case we’ll have 3 doubles x, y, z) makes a lot of sense as an immutable object. This kind object is small making it cheap to replace (it’s just 3 doubles, so 3*64 bits or a total of 24 bytes) and it’s representing something that naturally makes sense as being immutable, it’s a set of 3 numbers.

    Now another comparison your typical dynamic array type container (this is your std::vector std::vec ArrayList and friends). These are mutable objects mainly due to efficiency (it’s expensive to copy the contents when adding new values) yet they also are easier to conceptualize when mutable. It’s an object containing a collection of stuff like a box, you can put things in, take stuff out but it’s still the same box, just it’s contents have changed. If these objects are immutable to put something into the box you must first create a brand new box, and create a copy of the old boxes contents, and then put your new item into the box. Every time. Sometimes this kind of thing makes sense but it’s certainly not a common situation.

    Some functional languages do have immutable data structures however in reality the compiler usually does some magic and ends up using a mutable type as it’s simply so much more efficient.






  • Traister101@lemmy.todaytoTechnology@lemmy.worldNeo-Nazis Are All-In on AI
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    11 months ago

    We do know we created them. The AI people are currently freaking out about does a single thing, predict text. You can think of LLMs like a hyper advanced auto correct. The main thing that’s exciting is these produce text that looks as if a human wrote it. That’s all. They don’t have any memory, or any persistence whatsoever. That’s why we have to feed it a bunch of the previous text (context) in a “conversation” in order for it to work as convincingly as it does. It cannot and does not remember what you say