• 0 Posts
  • 113 Comments
Joined 3 years ago
cake
Cake day: July 5th, 2023

help-circle
  • For #4 if the Random instance weren’t “new”, then calling the nextInt() function would definitely have side effects, since the next integer would pull one away from the random stack.

    However unlike the first three which will run within a consistent amount of time, #4 will take an unknown amount of time to run, so you can’t just collapse it and eliminate the loop.

    For example a very simple race game where a participant moves a random number of steps each turn, we may want to time how long that race takes. We can’t just say that they will reach the end immediately. In fact technically we don’t know that they will ever finish the race… But that’s the halting problem and a whole other issue.




  • MimicJar@lemmy.worldtoLinux@lemmy.mlWhy?
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    Computers were either Windows or Mac, they couldn’t be anything else, that was a fact. Then I saw someone using Linux and had so many questions. How? I was given a Knoppix live CD, went home, and booted my home PC into Knoppix and it changed my perception of computers.

    I didn’t change over immediately but eventually Ubuntu was handing out install CDs and YouTube was full of wobbly windows and desktop cubes. It wasn’t useful but it looked cool.

    I still needed Windows for gaming, but for day to day it was so much easier to use Linux.

    Eventually my gaming was exclusively on the Switch and then was I was looking to play certain PC games the Steam Deck was available, so I bought that.

    I think Windows 8 was the last one I used and I’ve never had any desire to go back. Linux is just easier.






  • Before Arch that role belonged to Gentoo.

    To add, before the change the Gentoo wiki was a top resource when it came to Linux questions. Even if you didn’t use Gentoo you could find detailed information on how various parts of Linux worked.

    One day the Gentoo wiki died. It got temporary mirrors quickly, but it took a long time to get up and working again. This left a huge opening for another wiki, the Arch wiki, to become the new top resource.

    I suspect, for a number of reasons, Arch was always going to replace Gentoo as the “True Linux Explorer”, but the wiki outage accelerated it.







  • Linux has two ways of drawing pictures, the old way (Xorg) and the new way (Wayland).

    The old way is like a giant box of crayons with the crayon sharpener built in. The box is all marked up, the sharpener is full of gunk, and a few crayons are melted together. Nobody really wants to touch the old box of crayons, although it does work for the most part, it’s a familiar box.

    The new way is like a smaller box of crayons. The clean sharpener isn’t built in but it is available nearby, although some people say it doesn’t work as good. A few crayons are missing, but are available in most cases, they’re just not in the box. Most people are working to improve the new box.

    If you’re using Linux, the new box of crayons is generally the better choice. It’s ok to stop using the old box.




  • Knoppix. I didn’t see it listed yet so I had to chime in.

    I saw it and was confused that computers could run something that wasn’t Windows and wasn’t Mac. Then I was handed a Knoppix LiveCD and suddenly MY computer was Linux. Absolutely blew my mind.

    I then explored Mandrake (now Mandrivia?) for a while but it never really stuck.

    A few years later Ubuntu was handing out LivdCDs to everyone running Warty Warthog and soon after window managers started to use Beryl (?) which let you have a fancy cube desktop. Absolutely pointless but that’s how it all started.