• BatmanAoD@programming.dev
      link
      fedilink
      arrow-up
      143
      arrow-down
      2
      ·
      edit-2
      9 days ago

      Hello, Rust developer. [My name, etc.] It works fine, and is written in C++. [Rest of challenge is the same.]

      Truly diabolical

    • pivot_root@lemmy.world
      cake
      link
      fedilink
      arrow-up
      49
      arrow-down
      1
      ·
      edit-2
      9 days ago

      Look, I’m not saying the wheel is wrong. It rotates, but what if two people try to turn the wheel at the same time, in opposite directions?

      What if—instead of risking misuse of the wheel—we have a my_wheel::Wheel, which only one person can rotate at any given time? The multiverse could enforce this safety at compile time by making it impossible for there to exist a universe where two people both think they own the right to rotate the wheel. In fact, it could even make it impossible for me to lend out the wheel to more than one person at a time.

      And, maybe… we could make the wheel even better. Cars rest on top of wheels, sure. But what if I wanted to make a car that rests on top of other cars? If we rotate the super-car’s wheels, we don’t want to make the sub-cars flap around—we want the sub-car wheels to rotate. It would be more future-proof to make a Wheel trait, then to make RubberTyre implement Wheel. Then, if we ever needed to make cars into wheels, we could have them also implement Wheel—but delegate the responsibility of rotating to their own wheels.

      In fact, we should make it into a whole library. Our other projects could need wheels. Mr. Mittens might need them eventually!

    • Chloé 🥕@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      27
      arrow-down
      1
      ·
      9 days ago

      Disclaimer: I have never actually written Rust.

      neither have most of the people advocating for (or against) rewriting stuff in Rust lol

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        13
        ·
        9 days ago

        I’ll have you know, I’ve started several projects in Rust!

        Only to realize I don’t have time to do unpaid work even if it IS fun.

    • GreenCrunch@lemmy.today
      link
      fedilink
      English
      arrow-up
      10
      ·
      9 days ago

      That name may be taken, depending on how you look at it! Game developer Tim Cain wrote an OS abstraction library called GNW (GNW’s not Windows). That allowed games like Fallout to be built for DOS, Windows, and Mac without major changes. I highly recommend his Youtube channel!

  • Auth@lemmy.world
    link
    fedilink
    English
    arrow-up
    111
    ·
    9 days ago

    Developer: Kill me if you must but i’ve turned the wheel into a modular service called systemd-wheel

      • Wolf@lemmy.today
        link
        fedilink
        arrow-up
        3
        ·
        8 days ago

        Consumer: It say’s here I can subscribe to ‘Wheel Pro’ for only $69.99/month and I will automatically receive all the latest features the second they come out!

        Noob: I just use WIMP, it’s free and does 99% of what Wheel Pro does. I don’t need all those extra features.

        Consumer: Psh, WIMP is ugly and you can’t even adjust the tire pressure by millipascals.

        Noob: They added that feature in March.

        Consumer: I NEED IT FOR WORK OK!

  • I have had plenty of suggestions to do very simple things in the games I mod to blow up the lines of code and do the exact same thing I already am doing, but in a more complicated, roundabout way that ends up working slower.

    “Why are you spawning blank soldiers and then equipping them, instead of spawning already equipped soldiers?”

    “Because I can only spawn soldiers already equipped with stuff from a pool of premade classes, and I want to customize their loadout. It also takes 5 minutes longer to load them in already equipped for some damn reason, whereas when I do it this way it only pauses the game for 10 seconds before it’s good to go.”

    “… ARMA’s engine sucks.”

    “Agreed.”

  • digger@lemmy.ca
    link
    fedilink
    arrow-up
    56
    ·
    9 days ago

    Here’s the real question… What licenses are the wheel and door using?

    • Susaga@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      31
      arrow-down
      1
      ·
      9 days ago

      I read that as ffmpreg, and I thought it was some new ao3 trope where two girls impregnate a guy or something.

        • dohpaz42@lemmy.world
          link
          fedilink
          English
          arrow-up
          17
          ·
          9 days ago

          That is horrible! How ridiculous and just horrible! What’s the url so I know what to stay away from?

          • Imadethis@lemmynsfw.com
            link
            fedilink
            arrow-up
            5
            ·
            9 days ago

            I don’t know what the url is, but I remember as a wee child exploring the internet before pictures were quick to load, and the text was all we had, finding a story about a wife discovering her husband sexting with another woman. They proceeded to surprise him, and yes, a strap-on was pulled from a bag. The only phrase from the story that I can recall was him describing it as a telephone pole being shoved up his ass.

            …I’ve never been able to find it again. If you find such a thing, don’t ever let it escape you.

        • shalafi@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          9 days ago

          I volunteer as tribute! (Anything, anything, is worth having two girls blow you. My god, it’s full of stars.)

      • palordrolap@fedia.io
        link
        fedilink
        arrow-up
        7
        ·
        9 days ago

        Close. Final Fantasy 1000. It’s a game that’s fallen through a time hole from the future and contains technology that can do absolutely anything to anyone, including that.

        Why? It’s a nineteenth-stage capitalist thing. Something about gods of wealth, insatiable hunger and first-borns.

        • CrazyLikeGollum@lemmy.world
          link
          fedilink
          English
          arrow-up
          6
          ·
          9 days ago

          I wanted to propose that WH40K make a new Chaos God of Capitalism…and then I thought about for 5 seconds and realized they did. The Emperor. The Emperor is a god of capitalism. Which is an interesting (to me) perspective on the franchise. So, thanks for that random completely unrelated Lemmy comment.

  • Gerowen@lemmy.world
    link
    fedilink
    English
    arrow-up
    50
    arrow-down
    1
    ·
    edit-2
    9 days ago

    Does the wheel fall under any cumbersome non free licenses or patents? If I want to modify this wheel to suit my needs, then share that work and information with others, am I free to do so?

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    43
    ·
    8 days ago

    How is it licensed, Jigsaw? Eh? What distro is it from? Is that a fucking Snap wheel?

      • Blackmist@feddit.uk
        link
        fedilink
        English
        arrow-up
        8
        ·
        edit-2
        8 days ago

        What I hadn’t anticipated in my 20 years away from Linux was not only had teams of unpaid volunteers been beavering away behind the scenes to make everything work better, other much more enthusiastic teams have been thinking up new and exciting ways to break it again.

  • rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    36
    ·
    9 days ago

    We’d rather re-create reality where we know everything rather than taking the time to learn how to use a system someone else wrote.

    IT and DevOPS does this too.

    I worked with a group once that re-invented XML so that non-technical people could create text-based rules instead of writing code. But it ended up with a somewhat rigid naming structure with control characters and delimiters. The non technical people hated it more the actual XML they had used prior.

      • rumba@lemmy.zip
        link
        fedilink
        English
        arrow-up
        11
        ·
        9 days ago

        LOL. not far off

        They started out with something close to YAML. As the project moved forward, they found out they needed to represent logic with interlinked sections. They needed section 3, point a to link back to section 1 point 3, sub point 2. So they toyed with some assembly-like operations. Then they needed some inheritance. They really just slowly re-implemented the common applications of xml one at a time, it just had less brackets and <> symbols when they were done.

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          8 days ago

          it just had less brackets and <> symbols when they were done.

          Hence making the parser more inefficient than XML?

          • rumba@lemmy.zip
            link
            fedilink
            English
            arrow-up
            2
            ·
            8 days ago

            It wasn’t without some advantage. The client hating it didn’t bode well though

            • floofloof@lemmy.ca
              link
              fedilink
              arrow-up
              3
              ·
              8 days ago

              The client hating it just means you’re smarter than them and should press on to help them outgrow their ignorance. It’s a good sign.

            • ulterno@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              7 days ago

              YAML definitely felt less intimidating to me than XML, when I first saw them.
              But the YAML examples also had much less information in them than the XML ones.
              But not having to type all those brackets definitely helps. In case of XML, I am always looking to just get a GUI going for it instead, because typing it out feels cumbersome (I’m from C++)

    • dejected_warp_core@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      8 days ago

      Re: the not-XML-instead-of-code thing. Eventually, this sort of thing turns into a programming language. It’s just like carcinisation. Or you wind up writing ever-more code to support the original design. The environment inevitably creates evolutionary pressure that only if/else and iteration logic can solve, forcing the design ever closer to being Turing-complete.

    • Lovable Sidekick@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      8 days ago

      I woulda tried them on JSON. As long as they use an editor that keeps track of nested brackets I think it’s much more natural than XML.

        • Lovable Sidekick@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          8 days ago

          Wow, I never even heard of TOML. Very interesting - thanks!

          edit: after looking at it a bit I think I’ll actually try using it. But I find it ironic that the website for something billed as “for humans” and “easy to read” is done in light gray text on a white background. The CSS class they chose is even called “light gray” LOL.

  • Rose@slrpnk.net
    link
    fedilink
    arrow-up
    34
    ·
    8 days ago

    I’d just like to interject for a moment. What you’re refering to as wheel, is in fact, GNU/Wheel, or as I’ve recently taken to calling it, GNU plus wheel.

  • underscores@lemmy.zip
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    1
    ·
    9 days ago

    unjerk: pretty bold to compare software to a wheel. it’s more so like some roughly rollable shape which is why some people think they can make it more rollable, and yes those people fail from time to time

    • Davin@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      9 days ago

      Yes, let’s not reinvent any wheels to save time and money. What? Why do you have to use three different screens from two different applications to get the information you need for one shipment invoice? Because we didn’t reinvent any wheels. You’re welcome.

      • UnderpantsWeevil@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 days ago

        Why do you have to use three different screens from two different applications to get the information you need for one shipment invoice? Because we didn’t reinvent any wheels everyone has a bespoke wheel design and there’s no interoperability or uniform interface.

        FTFY

        • Davin@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          9 days ago

          It’s been a long time. At some point people need to abandon this idea that all needs and wants must align exactly so that we can have only one standard. I understand the pull for it, but it’s not realistic.

          • UnderpantsWeevil@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            9 days ago

            At some point people need to abandon this idea that all needs and wants must align exactly so that we can have only one standard.

            That’s what we have extensions for.

            But I don’t think we’re anywhere near your hypothetical state. On the contrary, my time in business has been dominated by designing and updating bespoke interfaces between bespoke systems. Everything is bespoke, at the industry level. Measurement tools are bespoke. Relational databases are bespoke. Transmission protocols are bespoke. Everything’s a daisy chain of staging tables and APIs, as you get what is functionally interchangeable data from half a dozen different systems to tie out into the final accounting ledger.

            Hell, we can’t even get aligned to the metric system. Assholes are still running around talking about feet and gallons, until they cross a border and have to kick over to meters and liters.

            I understand the pull for it, but it’s not realistic.

            One of the most revolutionary ideas of the modern logistics system was the uniform shipping container. You had a pre-defined box size with well-established uniform characteristics that you could load up with whatever you pleased. Then you could load up a container in a factory, put it on a truck, take it to a train, move it onto a ship, sail it across the sea, unload it onto a train, that puts it on a truck, that takes it to a warehouse. And because everyone agreed to adhere to a single shipping container standard, the entire system of transit could be built to accommodate units of that size.

            Not only is the idea realistic, it is essential to a modern efficient interoperable system.

            • Davin@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              9 days ago

              I’ve worked with getting shipping working with a few a different companies. I find it a little silly to try to use shipping as an example of a non bespoke system. They can’t even agree whether to do HxWxD or HxDxW. They agreed on one thing, great, that doesn’t do much for the systems.

              I don’t think it’s necessary to completely unbespoke the systems, we’ve wasted decades and decades on trying that and only ended up creating more and more different standards.

              I also don’t think that everything needs needs to remain as disjointed and insanely different as it currently is. But whenever I hear a person say, “don’t reinvent the wheel.” They, so far, have always tended to lack the understanding of how things actually work in the real world.

              • UnderpantsWeevil@lemmy.world
                link
                fedilink
                English
                arrow-up
                2
                ·
                9 days ago

                I find it a little silly to try to use shipping as an example of a non bespoke system.

                That’s fine. Good luck with your bespoke-solution-to-everything. It does have the benefit of locking in clients and being very lucrative in the long run.

                • Davin@lemmy.world
                  link
                  fedilink
                  arrow-up
                  3
                  arrow-down
                  1
                  ·
                  9 days ago

                  That’s one of the problems with you absolutist weirdos. I’m not locking anyone into anything, including any one of the many standards that you lot keep creating. Maybe the next one will finally be it. Hasn’t worked for decades and decades, but maybe the next one will be it.

      • underscores@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 days ago

        The wheel doesn’t need to be reinvented, meanwhile a certain wheel is pushing for the complete removal of adblocks in its extensions.

        Probably not fair to equate that piece of software as a wheel, or better yet, let’s just reinvent it with the Adblock.

    • SwingingTheLamp@midwest.social
      link
      fedilink
      arrow-up
      2
      ·
      9 days ago

      The wheel of the metaphor-of-thing-as-wheel exists and is widely understood, but apparently needed to be reinvented as a metaphor involving a roughly rollable shape?

      Challenge failed.

  • chemical_cutthroat@lemmy.world
    link
    fedilink
    arrow-up
    30
    ·
    9 days ago

    There is a whole extra spoke in the wheel. Look, I’m not gonna reinvent it… I just… need to… adjust some values… and there! Look, its fine.

    Wait.

    Why is it wobbling like that?

    Hold on, I just need to get rid of this other spoke…