• 0 Posts
  • 122 Comments
Joined 1 year ago
cake
Cake day: August 9th, 2023

help-circle




  • Fast forward in emulators. Also, the menu toggle in Retro Arch.

    In Dungeons of Dredmor, an old mouse and KB roguelike, the community made a good layout where every button is mapped to a keyboard key to open the various inventory and crafting windows, etc. With the track pad right there to act as a mouse, it’s honestly just as good as a mouse and KB. Maybe even better.








  • their own preferences for tab width… ending up in an identation abomination

    Can you give an example where a person’s personal tab width breaks things? One tab per logical indent, and then spaces for alignment. How does this break anything? I know for a fact it doesn’t or else people like me wouldn’t advocate for it. What breaks indenting is mixing tabs and spaces for indents, and obviously that’s foolish. You can’t blame that mistake for causing an “abomination” when it’s something that would violate any code style specification, whether using spaces or tabs. You yourself could set your IDE to emit only 2 spaces when you hit Tab, and that would also violate your code style spec if you mix those indents into a file with 4-space indents, and that has nothing to do with tabs at all.

    Doing stupid things in the code that violates the code style are stupid things that violate the code style. No matter what whitespace you use. But having a personal setting to see 8 spaces per tab isn’t one of them if you only use tabs for logical indenting and not for alignment.

    All tabs or all spaces for indents result in the exact same thing: good looking code. But tabs then have further advantages. Easier outdenting, better accessibility, etc. The only benefit to forcing spaces is that some random program you use for code comparison or whatever might default to something other than 4 columns for a Tab and your code looks a little wide until you change your settings. That’s nothing compared to the advantages of tabs. Turns out that “benefit” of spaces is actually a drawback because no one is allowed to view the indents as anything but whatever column width you personally think it should be.








  • CrayonRosary@lemmy.worldtoTechnology@lemmy.worldAre there any genuine benefits to AI?
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    3
    ·
    edit-2
    7 months ago

    Don’t limit your thoughts to just generative AI, which is what you are talking about. Chat bot and media generation aren’t the only uses for AI (by which I mean any trained neural network program that can do some sort of task.

    Motor skills

    AI can solve learn to solve the marble maze “Labyrinth” much, much faster than a human, and then speedrun it faster than any human ever has. Six hours. That’s how long it took a brand new baby AI to beat the human world record. A human that has been learning hand-eye coordination and fine motor control all of it’s life, with a brain which evolved over millions of years to do exactly that.

    No special code needed. The AI didn’t need to be told how balls roll or knobs turn, or how walls block the ball. It earned all of that on the fly. The only special code it had was optical and mechanical. It knew it had “hands” in the form of two motors, and it knew how to use them. It also had eyes (a camera), and access to a neural network computer vision system. When the AI started taking illegal shortcuts, and they had to instruct it to follow the prescribed path, which is printed on the maze.

    Robots could in work factories, mines, and other dangerous, dehumanizing jobs. Why do we want workers to behave like robots at a factory job? Replace them with actual robots and let them perform a human job like customer service.

    Think of a robot that has actual hands and arms, feet and legs, and various “muscles”. We have it learn it’s motor control using a very accurate physics system on a computer that simulates its body. This allows the AI to learn at much faster speeds than by controlling a real robot. We can simulate thousands of robots in parallel and run the simulations much faster than real time. Train it to learn how to use it’s limbs and eyes to climb over obstacles, open doors and detain or kill people. We could replace police with them. Super agile robot cops with no racial bias or other prejudices. Arresting people and recording their crimes. Genuine benefit.

    Computer Vision

    AI can be trained to recognize objects, abstract shapes, people’s individual faces, emotions, people’s individual body shape, mannerisms, and gait. There are many genuine benefits to such systems. We can monitor every public location with cameras and an AI employing these tools. This would help you find lost loved ones, keep track of your kids as they navigate the city, and track criminal activity.

    By recording all of this data, tagged with individual names, we can spontaneously view the public history of any person in the world for law enforcement purposes. Imagine we identify a person as a threat to public safety 10 years from now. We’d have 10 years of data showing everyone they’ve ever associated with and where they went. Then we could weed out entire networks of crime at once by finding patterns among the people they’ve associated with.

    AI can even predict near future crime from an individual’s recent location history, employment history, etc. Imagine a person is fired from his job then visits a gun store then his previous place of employment. Pretty obvious what’s going on, right? But what if it happens over the period of two weeks? Difficult for a human to detect a pattern like this in all the noise of millions of people doing their everyday tasks, but easy for an AI. Genuine benefit.

    Managing Production

    With enough data and processing power, we can manage the entire economy without the need for capitalism. People’s needs could be calculated by an AI and production can be planned years ahead of time to optimize inputs and outputs. The economy–as it stands today–is a distributed network of human brains and various computers. AI can eliminate the need for the humans, which is good because humans are greedy and neurotic. AI can do the same job without either. Again, human’s are freed to pursue human endeavors instead of worrying about making sure each farm and factory has the resources it needs to feed and clothe everyone. Genuine benefit.

    Togetherness

    We will all be part of the same machine working in harmony instead of fighting over how to allocate resources. Genuine benefit!


  • I could imagine a tool that makes cloud storage act like a remote hard drive, with sectors and everything. Where these “sectors” are just small binary files.

    You have software locally that is setup to track local files and calculate how they are mapped to the remote sectors. When a file gets updated, or new ones are added, it shuffles things around in an efficient manner to keep the number of remote updates to a minimum, and then it only updates or adds the required sector files. This way a tiny edit to a 4 GB local file would only require a tiny upload to the server instead of resending a new encrypted copy of the entire 4 GB file.

    Not only are the little sector files all encrypted with a private key known only to you, the file structure in this system doesn’t even make any sense to anyone but you.

    However, if you lose you home PC and the file structure DB, the cloud copy becomes absolutely useless. Even if you had a backup of the private key.

    Something like this surely already exists. Maybe there are even cloud storage providers who offer hard-drive like access to a block of data instead of being file-based.

    EDIT: Turns out that’s what Proton Drive does. Kind of.

    End-to-end encryption for large files

    Proton Drive’s unique technology enables high-performance, client-side end-to-end encryption with large files by splitting large files into 4 MB chunks. Each chunk is signed with a hash to prevent removal or reordering. When you open or download a file, our file transfer and decryption algorithms ensure your data is rebuilt quickly in the correct order.

    They say it’s client side, but the hashes that control the ordering must be stored on the server or else you couldn’t easily download the file on a other device. And I wonder if it’s still efficient if you make an exit in the middle of the file. Does it need to send the full 4GB all over again? Even having to send 2 GB all over again would be a lot.