This first bill allows the state of California to regulate and oversee all 3D prints in the name of public safety.

  • jballs@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    Under the proposal, printers would have to evaluate STL files, CAD files, or other geometric code using a firearm blueprint detection algorithm and block files flagged as capable of producing a firearm or illegal firearm parts, including conversion devices.

    California’s Department of Justice, or another relevant state agency, would have until January 1, 2028, to publish performance standards for detection algorithms and software control processes.

    This is the problem when lawmakers write technical bills without speaking to technical people. They’re going to publish standards for evaluating if your gcode is a firearm or firearm part? THAT’S FUCKING IMPOSSIBLE

      • theoretiker@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months ago

        Yes that’s probably how you would do this. Get a bunch of data of gcode of 3d printed gun parts and not-gun parts, for different slicers and printers. Then train some transformer as a classifier. Based on how good object recognition is, i would say its possible that you would get reasonably good accuracy and precision. And because you are scanning for code the architecture will likely be similar to an llm.

        • isleepinahammock@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 months ago

          Then five minutes later, someone figures out how to make a 3d printable gun that bypasses the gun detector on the 3d printer. It’s not like you’re printing a whole gun; you’re printing parts, most of which look nothing like a gun. How hard would it be to design an algorithm that takes a gun part cad file and then adds a bunch of extraneous pieces to it that can be easily removed? Just keep adding extra crap until the system no longer detects it as a gun part.

          • theoretiker@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            0
            ·
            6 months ago

            Yes that would probably work. There could be some essential features of weapon parts that an algorithm might still be able to learn, and a printer could also keep track of previously printed parts for the classification. I think its unlikely that there are essential features of gun parts that are specific to gun parts so there would probably be a lot of false positives.

            • isleepinahammock@lemmy.blahaj.zone
              link
              fedilink
              English
              arrow-up
              1
              ·
              6 months ago

              Yeah I’m thinking of an automated version of greebling. Except you design the extraneous bits so that they’re only attached to the intended print like print supports - something in a non-critical location, easily torn away.

              • theoretiker@discuss.tchncs.de
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 months ago

                I think a problem might be that the “easily broken away” might be a feature that an algorithm might be able to learn.

          • KelvarCherry [They/Them]@piefed.blahaj.zone
            link
            fedilink
            English
            arrow-up
            0
            ·
            6 months ago

            just rotate the piece at different angles on the plate, which would change the positions of vertexes and generate an unrecognizable set of printer head instructions. No extra pieces necessary; and even if there were, there’s no need for them to be printed attached to the main part.

            • theoretiker@discuss.tchncs.de
              link
              fedilink
              English
              arrow-up
              0
              ·
              6 months ago

              Isleepinahammocks idea would probably work. But rotation and translation would not. Thats something you can easily take care of in your training data, by reusing the same training data in multiple random positions and random angles.

                • theoretiker@discuss.tchncs.de
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  6 months ago

                  Yes i know. But this is trivially easy to get into the training data. You just slice models in random orientations and build your training dataset that way so the algortihm will recognize gun parts in every direction.

      • jballs@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months ago

        Your faith in this mystery algorithm is stronger than mine. Here’s a diagram of the parts in an AR-15:

        So we need an algorithm that renders the gcode I’m printing, then compares it to… something?

        • benjirenji@slrpnk.net
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 months ago

          The algos don’t need to deny any or every part of a gun, but the most critical part must not be printable and it’ll already be effective.

          I’m neither very experienced with firearms nor printing, maybe such a thing doesn’t exist for a gun, but I suspect there’s a few very important pieces that need to be printed a certain way or the firearm falls apart or is at least a lot less useful.

          All that said, I’m generally against such limiting mechanism in any printer or compiler. Try close sourcing all compilers so they can’t create malware? Forget it.

          • jballs@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            0
            ·
            6 months ago

            I’m neither very experienced with firearms nor printing

            Unfortunately that’s the crux of the issue. The people who have written and signed this bill aren’t either - and they weren’t as big of a person as you to recognize that.

            At the end of the day, 3D printing gcode is telling your printer to spit out a shape. And you simply cannot ban shapes. Am I printing a firing pin or a part for my shoe rack? There’s no way to tell. Any politician that’s telling you there is is either ignorant or lying to you.

            • Crozekiel@lemmy.zip
              link
              fedilink
              English
              arrow-up
              0
              ·
              6 months ago

              Worse still, gcode is literally just telling a machine which motors to move and how much. You need something that can interpret those instructions (thousands of lines of code even for pretty simple prints) correctly and “draw” the shapes it is making. There are a lot of printers out there that do not have the hardware on board to do this.

              And that is all ignoring the absurdity of recognizing shapes as “gun parts”… The hardware hurdles pale in comparison to the software ones.

              • Semperverus@lemmy.world
                link
                fedilink
                English
                arrow-up
                0
                ·
                edit-2
                6 months ago

                You’re gonna hate this, but… AI can literally do it, and for the large models it’s terrifying how accurate they are. You will argue that your little ESP32 powered reprap or klipper or whatever printer can’t handle it, to which regulators will go ok then, either the printer has to call out to a service with an http request to upload the gcode every time it wants to print anything, or your slicer has to do it (and we dont care that it’s open source, it’s illegal to operate if it doesnt make the call and you’re getting fines or jail time if you get caught).

                This is what AI was built for 😟

                EDIT:

                In case it isn’t abundantly clear, I am not in favor of what I just described. I know that it is possible though and know how to architect exactly these mechanisms. If I can build them, so can they. (I won’t, of course, that goes against everything I stand for).

                • MrQuallzin@pie.eyeofthestorm.place
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  6 months ago

                  Even AI can’t do this. It is an impossibility. AI might be able to make the shape, but it will NEVER be able to interpret the intent of that shape. It will never know if a cylinder is meant for a gun or for a rolling pin. It will never know if I’m making a trigger for a gun or a replacement trigger for my hot glue gun.

                  • starman2112@sh.itjust.works
                    link
                    fedilink
                    English
                    arrow-up
                    0
                    arrow-down
                    1
                    ·
                    6 months ago

                    But it CAN force your printer not to print that replacement hot glue gun trigger. After all, there’s nothing in the law that says that this software has to allow non-gun related 3D printing. The simplest way to be in compliance with this law is to simply prevent all print jobs

                • starman2112@sh.itjust.works
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  arrow-down
                  1
                  ·
                  edit-2
                  6 months ago

                  AI cannot be made to recognize whether a piece of gcode is intended to produce a piece of plastic that is intended to be used as part of a gun. It would need to simulate the machine that that gcode is made to run on, and then simulate the gcode running on that machine, and then analyze the simulated output of that simulated 3D print.

                  At best, it can arbitrarily decide to decline print jobs. Which is of course the whole point, because anyone with a printer would need to bypass this filter, and bypassing this filter would be against the law.

          • mic_check_one_two@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            0
            ·
            6 months ago

            3D printed gun designs these days don’t even use plastic for most of the critical parts. The goal is to print a frame, which you can then assemble into a full gun using durable off-the-shelf parts that are available from any hardware store. No need to 3D print a bolt (and deal with all of the manufacturing issues that entails) when you can just buy a bolt for 5¢ at any hardware store. Especially when that bolt will be more precise and durable than the plastic bolt you would have printed.

            It’s the old carpentry idea that if you can’t get precision by hand, you can borrow it from something else. Need to cut a bunch of identical boards, with precision in 64ths of an inch? A #8-32 bolt will have 32 threads per inch. So a half turn on the bolt will advance or retract the bolt 1/64 inches, accurate down to whatever the bolt manufacturer’s clearance is. Probably a few thousands of an inch. Build a jig to hold your boards at the saw, and thread a bolt into the jig to act as the board stop. Now you can turn the bolt to adjust your clearance as needed, and you’ll be accurate down to 1/64 by only making half turns each time.

            And 3D printed guns use the same concept. You don’t print a plastic barrel that will explode after two or three shots, you just leave a void for a store-bought pipe to fit into the frame. The pipe will be more durable and more precise than anything you could feasibly print. You don’t need to 3D print a firing pin that will blunt/shatter/jam after a few uses, when you can just use a steel nail that will have better durability and avoid jamming. And all of the parts you need can be bought at a hardware store without raising any suspicions. That’s part of what makes this so dumb. They’re not just requiring printers to scan for potential gun parts. They would require printers to scan for anything that could potentially hold or manipulate gun parts. And that is a much broader spectrum than simply scanning for the shapes of the parts directly.

            • starman2112@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              0
              arrow-down
              1
              ·
              6 months ago

              They would require printers to scan for anything that could potentially hold or manipulate gun parts.

              It’s worth explicitly noting that this effectively bans 3D printing entirely. The whole point of this law is to be able to charge owners of 3D printers with a crime. Real useful if they find out some anti-zionist protestor has a 3d printer in their garage. Can’t get ya on the free speech thing, but they can get you on the owning a non-compliant 3d printer thing.

              For the rightoids out there, replace anti-zionist protest with anti-abortion protest. Or any other speech the government doesn’t like. This exists for the sole purpose of punishing innocent people.