• Thorry84@feddit.nl
    link
    fedilink
    arrow-up
    30
    ·
    1 year ago

    Yes the compiler/interpreter can figure it out on the fly, that’s what we mean by untyped languages. And as stated both have their merits and their faults.

    Elon doesn’t know what the words mean and just chimes in with his AI future BS.

    • janAkali@lemmy.one
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      1 year ago

      Yes the compiler/interpreter can figure it out on the fly, that’s what we mean by untyped languages.

      Are there untyped languages? You probably meant ‘dynamically typed languages’.

      But even statically typed languages can figure out most types for you from the context - it’s called ‘type inference’.

      • nul@programming.dev
        link
        fedilink
        arrow-up
        16
        ·
        1 year ago

        Most of my code is untyped. First I type it, then I realize it’s all wrong and use backspace to untype it.

      • Traister101@lemmy.today
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        1 year ago

        Assembly probably? So low level you kinda just play with bits. That’s all I can think of for an untyped language. Everything else I’m aware of is dynamically or statically typed

      • Thorry84@feddit.nl
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        1 year ago

        Well that would depend on the definition and what you exactly mean by untyped.

        The untyped part is usually referring to the way the programmer interacts with the language, for example not setting a type for variables and parameters. But then there is the question of is the programmer ever allowed to explicitly set the type. And further more, if the programmer explicitly set the type, does this mean the type can’t change at a later point? And another question could be, can the programmer check or enforce what type a variable or parameter is? And the question, if there is only one type of data in the language, would that be a typed or untyped language? But I would consider these to be details and all fall under the untyped umbrella, with untyped just meaning not-typed.

        Then there’s the question of the technical implementation of the language. Defining a language is one thing, actually having it run on a real system is another. Usually technical systems at some point require explicit types. Something somewhere needs instructions on how to handle the data and this usually leads to some kind of typing instructions being added along with the data. But depending on how many abstraction layers there are, this can soon become a very pedantic discussion. I feel what matters is the design, definition and intend of a language. The actual technical implementation isn’t what matters in my opinion.

        I feel like there are so many programming languages and technical systems at this point, every variation and exception exists. And if you can think of one that doesn’t exist, expect a follow up comment of somebody pointing out it does exist after all, or them having started a project to make it exist in the near future.

      • jtk@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Might be able to call assembly untyped. Everything beyond that I think would be called either statically or dynamically typed, maybe weakly typed?

  • meow@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    19
    ·
    1 year ago

    He’s the kinda guy whose only programming experience is learning Python for 3 hours 6 years ago, yet he thinks he’s the programming god.

    • Tja@programming.dev
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      I was one of those. In my defense, 2012-2015(ish) he really was doing cool things. Tesla and Space X were super innovative and brought optimism. Then a time traveler stepped on a bug, the whole Thailand pedophile fiasco happened and it went downhill from there. Now we have yokes, dumb turn signals and the whole cybertruck, not to mention removing ultrasound sensors to save a few cents and the whole Twitter debacle. At least space X is still somehow unfucked?

      In case it helps… I’m sorry.

        • DragonTypeWyvern@literature.cafe
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          1 year ago

          The thing is after Peter Thiel made him a multi-billionaire against his best efforts, he did actually put that capital into industries that desperately needed someone to prove to the boomers that you could, and should, make money in them.

          There’s a whole lot to say about his credit stealing, ego, and the system itself, but the fact remains he does have an eye for talent (that he can exploit for gain)

          So, sure, he was just the bankroll, but that doesn’t mean the companies didn’t desperately need that.

          • FiskFisk33@startrek.website
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            That’s fair enough!

            I’m just so used to people calling him an engineer and an inventor, while, as you say, the cool things he did were as an investor.

      • SpaceCowboy@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I think the problem was he started to believe his own hype that he was a super-genius that knew everything about everything.

        I mean I don’t know the nitty gritty details of building an electric car or building rockets. But neither does Elon Musk. Which would be fine except that he tries to talk about these things like he does understand all of the details. Nobody knows everything about everything, it’s only an idiot that tries to act like he does.

        But then he tries talking like he’s an expert in a field I am familiar with and it’s like… there’s points people could make on this subject, but that’s not one of them.

        • Tja@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Same. Can’t judge about auto industry or rocket science, but I know a thing or two about software. And… Yeah, everything he’s said about Twitter internals (and sw dev in general) is brain dead.

        • Da_Boom@iusearchlinux.fyi
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I think he always believed his own hype. Heck there was a point where I was somewhat into his hype.

          Though I never liked Tesla’s interior design philosophy of “just put all the controls on a giant tablet and call it a day”

          Truth is we didn’t know enough about him to gain an opinion. So imaginations ran wild. I mean there are people who have been saying how bad he was since the whole PayPal thing. It’s just those companies weren’t big enough at the time for it to gain any gravity in the public eye.

          Then Tesla and spaceX happened, and people thought what he was doing was awesome, because a lot of it was and it was easy to look past the parts that weren’t.

          Now however the fact he can’t keep his mouth shut and has become a twitter addict has kinda ruined our public opinion on him. If he had just stayed quiet and not bothered with the whole buying twitter thing, people might not care much about him. And the Epstein stuff and affairs and shit didn’t help him one bit. He’s right to mistrust the media - that shit is like a gourmet breakfast for them.

          Basically he revealed himself in the public for what he truly is. A cold blooded greedy ass tycoon with an ego the size of the planets he’s trying to colonise, with a modern style nerd-hipster science theming and old school conservative ideals.

    • katy ✨@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      its amazing how elon was once so milquetoast and inoffensive that he was a guest on the big bang theory and then he was like you know whats good? nazis.

    • molave@reddthat.com
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      At least around 2015 when SpaceX landed a rocket for the first time, it really does look like he’s the real life Tony Stark. People change, sometimes for the worse.

    • bane_killgrind@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      Musk wants Twitter to fail. He bid on it for a laugh and when his bid was accepted he tried to get out of it.

      They made him buy it and he’s been butthurt ever since. He wants everyone involved to suffer, because then the decision to hold him accountable was a bad decision.

      He doesn’t give a fuck about people, or technology, or even the money he sunk on it. So it looks like he’s shaving his eyebrows to spite his face. It doesn’t hurt, so he doesn’t care.

      • CileTheSane@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        He’s not hurting the people who made him buy it.

        If he really wanted to be rid of it he could have instead done nothing. Put someone in charge with the impossible task of “make this profitable in 5 years” and then shut it down after 5 years because “it’s not profitable”.

        Showing his ass to the world and ruining future potential for investment by looking like an incompetent idiot is not a “secretly intelligent move”.

      • mindbleach@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        4D chess isn’t real. Sometimes, rich and powerful people do dumb things. Sometimes they’re not very smart and have a visible personality disorder. Searching for an underlying clever motive is an exercise in your intelligence - not theirs.

        • Jazard23@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I don’t think “they made me buy it so I’m breaking it” is really a 4D move. It’s more like a 4th grade move.

  • Skates@feddit.nl
    link
    fedilink
    arrow-up
    13
    arrow-down
    3
    ·
    1 year ago

    I constantly feel the need to argue with this dumb fuck and his 99% wrong opinions. I usually have to take a step back, remember it’s not worth it, and then move on. It would be a great help if I had a Firefox add-on that precedes all of musk’s tweets with "retard weighing in: ", just as a reminder that he’s also allowed a point of view, despite his mental issues.

    • haui@lemmy.giftedmc.com
      link
      fedilink
      arrow-up
      10
      arrow-down
      2
      ·
      1 year ago

      Pretty sure you‘re only using the r-bomb and „mental issues“ in a joking way but its kind of not funny.

      Musk is a spoiled, unempathetic, overhyped idiot who claims to be autistic… perfect example that autistic people can be cretins as well.

      But a lot of autistic people are getting called the r-word and its not ok. Mental (health) issues are not a stigma. They are okay and normal. Being an asshole isnt normal or okay though.

        • haui@lemmy.giftedmc.com
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          A little disturbing, ngl. Some might have grown up in a time or place where getting bullied and mistreated was no bid deal. Its actually good to see these things changing.

  • barsoap@lemm.ee
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    1 year ago

    For the curious, this is about as easy as it gets for proper type inference. You could leave out the one or other thing (most prominently, polymorphism), but that kind of stuff would hardly qualify as even a toy example.

    I won’t claim that J. Random Hacker will have issues understanding it – it’s a neatly tied bundle of necessary complexity without any distracting parts (like efficiency), if you sit down with the thing (ideally starting the whole series from the beginning) you’ll be able to grok it (and have learned a lot). However, understanding HM isn’t the same as being able to extend it, which includes proving soundness of the system, that kind of stuff is a specialised field within a specialised field within academia with more open questions than answered ones. The reason Rust doesn’t have HKTs? Because their interaction with lifetimes is insufficiently understood. Those kinds of questions can easily start 20+ years of research only to be answered with “yep that’s inherently unsound/uncomputable/whatever”.

    Oh, EDIT, forgot: AI-enabled typing is obviously a completely braindead idea. I don’t need a second lazy, impatient, hubristic idiot looking at my code, I need something to catch mistakes. Something deterministic, rule-based, pure unerring logic. Which is exactly what type systems are and do.

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Elon Musk loves to speak confidently about shit he knows nothing about. This leads to him being a confident speaker on every topic… I just wish we could figure out a way to shut him up.

      • Bonehead@kbin.social
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        The rockets are fine. SpaceX has a team specifically designed to distract Musk and keep him away from the actual work on the rockets. Tesla didn’t have that though. That’s how we ended up with that lame presentation with the weird “S3XY” acromin. That was really the point I realized that he was just an idiot frat boy with too much money. He really is his own worst enemy.

        • katy ✨@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          the thing about spacex is everything they do is because of nasa and government.

          the only thing spacex has going for it is the fact that they can spend a billion dollars exploding a rocket five times before it slightly works the sixth whereas the government can’t do that.

          • Bumblefumble@lemm.ee
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            As someone who does know about this field, and absolute despise Musk, that’s not quite true. SpaceX is very successful thanks to help from the US government, and despite the influence of Musk, but also because they are a team of very competent people who have actually innovated and pushed the boundaries of launch vehicles. To say they have nothing going for them and are being propped up by the government is not at all accurate, and they have been much more succesful than traditional government contractors.

            • zalgotext@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              To say they have nothing going for them and are being propped up by the government is not at all accurate

              That isn’t what they’re saying though, is it? They’re saying that SpaceX has the ability to fail more than NASA, because they’re not a government organization funded solely by taxes.

              • jacksilver@lemmy.world
                link
                fedilink
                arrow-up
                0
                ·
                1 year ago

                Admittedly I think the biggest failures that hurt NASA were incidents when people, not rockets, blew up. It’ll be interesting to see if things change if/when there is a death from a SpaceX rocket.

                • jasondj@ttrpg.network
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  edit-2
                  1 year ago

                  People die in work related incidents all the time. The only thing different about deaths from NASA incidents is that they are (usually) spectacular incidents (like massive explosions or cabin fires…not good things, just stunning) and high-profile.

                  SpaceX does well because they basically ignore Elon.

        • Pringles@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          What’s your source on the spacex team distracting him? I can’t find anything supporting that. I do find some interviews from anonymous employees saying it’s calmer now that he’s so focused on twitter.

          • floofloof@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            1 year ago

            He also seems to have the idea that the best developer is the one who produces the most code. That shows a pretty major lack of understanding of how software development works. Sometimes the best day is when you produce negative amounts of code.

        • Ephera@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          One example that stuck with me is that he said some shit along the lines of 80% of Twitter’s microservices being superfluous and he’ll be shutting them off.

          Yes, the dev teams just spent 4/5 of their time building shit no one asked for. It just annoys me so much, because anyone with basic reasoning should be able to work out that this cannot possibly be the case, but it’s easy to give it the benefit of the doubt.

          Well, except that many, many Twitter outages followed.

          • Zoboomafoo@slrpnk.net
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            I’ve heard horror stories on the programming subreddits of incompetent managers that require their employees to write X new lines of code per week. Those code bases probably could have huge chunks taken off.

            Clearly that hasn’t happened here

          • MajorHavoc@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Well, except that many, many Twitter outages followed.

            Yeah. As a software dev, it was pretty awkward explaining this to colleagues who rely on Twitter/X.

            “It sounds like you think Twitter is a software company and that Elon is utterly unqualified to run a software company. That can’t possibly be true, right?”

            …Then we end up doing the “Concerned Padme” meme…

        • Squibbles@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          When he took over twitter there was a bunch of stuff he was spouting about things like Twitter’s stack needing a full rewrite and such. Going so far as to fire the engineer that challenged him on it during a live spaces thing if I recall correctly.

          • hemmes@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 year ago

            Oh. This post’s image has him talking types in January and the “obligatory” image above has someone saying he’s been talking software in December, so I thought maybe Musk has been spewing about software for a few weeks or something.

            • Squibbles@lemmy.ca
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              December from '22 not '23. The image was from a few months after he took over twitter and was still going on about that stuff and how it was doing all these useless things that needed to be removed or rewritten. I just remembered another one about how he was going on about a single request to twitter causing thousands of RPCs or something? I think that’s not really unheard of in a microservices infrastructure and it’s not like they’d be synchronous. There’s probably tons of calls that go to things like tracking, analytics, or cross DC sharing I would imagine for such a large and high volume service like twitter.

  • Lvxferre@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Musk being an assumer (note how he’s vomiting certainty on future events) doesn’t surprise me a tiny bit.

  • HairHeel@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    1 year ago

    I tend to think people shit on Musk more than they should, but holy shit does it bug me when a CEO talks about engineering problems with such bravado.

    • ShaggySnacks@lemmy.myserv.one
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      He talked about electric cars. I don’t know anything about cars, so when people said he was a genius I figured he must be a genius.

      Then he talked about rockets. I don’t know anything about rockets, so when people said he was a genius I figured he must be a genius.

      Now he talks about software. I happen to know a lot about software & Elon Musk is saying the stupidest shit I’ve ever heard anyone say, so when people say he’s a genius I figure I should stay the hell away from his cars and rockets.

      Rod Hilton about Elon Musk.

    • Phoenixz@lemmy.ca
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      The guy is an idiot who LITERALLY got fired for incompetence as CEO.in the past. He is a scammer and should be treated as such, so no, people aren’t shitting too much on him. If anything, they aren’t shitting enough, there are still way too many oblivious fan boys out there that think he is a genius. He’s not.

      Anything he says that makes sense engineering wise usually comes from someone on his team, anything else is just outrageously stupid, and clearly from his “genius mind” like this blurb/cert/tweet whatever the hell its supposed to be called.

  • 1rre@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I mean OCaml… But the issue is more the monkeys bashing out the language wanting to A. set a type for their exported function and B. know what type whatever function they’re using is supposed to take so it doesn’t randomly break as they gave it some random type that was formerly compatible