‹ BackHN Continuity

Thread

Building a Linux GPU Driver for the M4 Mac Mini in One Month

422 points · 290 comments · ADevWithAnIdea

  1. MoltenMonster · · focus · HN ↗
    <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;AsahiLinux&#x2F;comments&#x2F;1whecn1&#x2F;comment&#x2F;pa1spia&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;AsahiLinux&#x2F;comments&#x2F;1whecn1&#x2F;comment...

    &gt; The author was banned from Asahi Linux for hiding his extensive use of LLMs from us in another attempted contribution, and (more importantly) for concealing that he is a former Apple engineer with direct contacts to the people involved in Apple Silicon development. Make of this what you will.

    1. cromka · · focus · HN ↗
      I find it extremely ironic that big corp openly steals IP en masse to build their models but hackers are still concerned about using same models for their reverse engineering work.

      I think at this point the hacking community needs to grow some balls.

      1. doot · · focus · HN ↗
        Excited to see what you contribute to open source against one of the richest and most litigious companies in the world.
        1. cromka · · focus · HN ↗
          Cool. Excited to see you on the pitch next time you comment on a football game.
        2. bigyabai · · focus · HN ↗
          Nothing. I hope those companies go bankrupt, I&#x27;m not underwriting their failure to support their customers with my time and effort.
      2. cogman10 · · focus · HN ↗
        It&#x27;s because it doesn&#x27;t matter how copyrighted material ends up in a project. If an LLM reproduces copyrighted material (which is very hard to verify) then the lawsuit from the copyright owner can still sink even robustly funded projects.

        The fact is, open source has much more liability than closed source software does. If copyrighted material ends up inside a private code base it&#x27;ll be nearly impossible for the owner to discover that and sue.

        1. 1dom · · focus · HN ↗
          &gt; If an LLM reproduces copyrighted material (which is very hard to verify) then the lawsuit from the copyright owner can still sink even robustly funded projects.

          Do you have many examples of this actually happening that you could share?

          I really don&#x27;t see how this issue is going to be feasible for courtrooms to deal with in a world where big tech are bragging about large percentages of all their code being produced by LLMs.

          1. Gud · · focus · HN ↗
            Why wouldn&#x27;t it be feasible for Apple, with an unlimited war chest, to go after Asahi? I am not saying they will, but it is certainly possible for them.
            1. 1dom · · focus · HN ↗
              Because if it&#x27;s feasible for any company with a war chest to start a court case about a competitor maybe having a matching line of code to theirs via an LLM, then basically every single company with a warchest would be at war with eachother, because they&#x27;re all using LLMs.

              Business and code production would grind to a halt whilst basically every big tech company shares it&#x27;s entire codebase with every other tech company for discovery. It&#x27;s basically MAD.

              And if it was feasible, given we&#x27;ve had a couple of years of all the big tech companies heavily using LLMs, there should be some notable court cases by now, surely?

              1. justinclift · · focus · HN ↗
                Heh, sounds like it&#x27;d be along the same lines as the SCO Unix kerfuffle back in the day.
              2. mschuster91 · · focus · HN ↗
                Mutually assured destruction is what keeps everyone quiet at the moment.
                1. cromka · · focus · HN ↗
                  These are very good observations indeed.
          2. VBprogrammer · · focus · HN ↗
            In the 90s aircraft manufacturers basically stopped whole segments of the market (anything smaller than a piston twin) due to litigation. I wouldn&#x27;t be horribly surprised to find we spend the next 10 years fighting about this stuff in court.
            1. 1dom · · focus · HN ↗
              I&#x27;m fully aware of lots of times powerful companies have used the courts to protect their business. My point is basically all of the powerful companies are elbow deep in LLMs to the extent of some sort of mutually assured destruction if they were to start court cases like this.

              LLMs have been firing out a lot of code for a year or 2 now at least, so I would have thought we&#x27;d start seeing some court cases by now?

              1. VBprogrammer · · focus · HN ↗
                It&#x27;s purely conjecture at this point but my gut feeling is most companies are in high spirits about the costs they can save and the benefits it can bring to their own business. I don&#x27;t think enough time has passed to see really high profile losers. What happens when Infosys starts losing money or Free CAD becomes the next SolidWorks due to LLM driven improvements?
            2. mschuster91 · · focus · HN ↗
              The lack of modern small airplane designs, especially engines, is the extensive and thus expensive certification process. Most of what is a &quot;new&quot; airplane usually is derived from a very old, grandfathered design.

              The only real innovation for small planes is in the electric flight area - when you gotta do a full certification anyway as you&#x27;re piloting an entirely new drivetrain, you can financially afford to be much more innovative on other parts of the design.

          3. simoncion · · focus · HN ↗
            &gt; Do you have many examples of this actually happening that you could share?

            If by &quot;this&quot; you mean &quot;an LLM [reproducing] copyrighted material&quot;, I have one here [0], with the challenge posed and plagiarized response at [1], found via [2].

            One wonders how often the &quot;Don&#x27;t plagiarize, make no mistakes about this!&quot; instruction fails and the LLMs include nontrivial chunks of other people&#x27;s work into what they emit.

            [0] &lt;<a href="https:&#x2F;&#x2F;infosec.exchange&#x2F;@zzt@mas.to&#x2F;117134157775929932" rel="nofollow">https:&#x2F;&#x2F;infosec.exchange&#x2F;@zzt@mas.to&#x2F;117134157775929932&gt;

            [1] &lt;<a href="https:&#x2F;&#x2F;mas.to&#x2F;@zzt&#x2F;117122289150514171" rel="nofollow">https:&#x2F;&#x2F;mas.to&#x2F;@zzt&#x2F;117122289150514171&gt;

            [2] &lt;<a href="https:&#x2F;&#x2F;infosec.exchange&#x2F;@david_chisnall&#x2F;117134446424182178" rel="nofollow">https:&#x2F;&#x2F;infosec.exchange&#x2F;@david_chisnall&#x2F;117134446424182178&gt;

            1. 1dom · · focus · HN ↗
              &gt; If by &quot;this&quot; you mean &quot;an LLM [reproducing] copyrighted material

              No. I have absolutely no doubt that happens, and I&#x27;m not defending it or encouraging it.

              My point is whilst it technically might be illegal and happening all the time, if it&#x27;s unenforceable or sets a precedence that would severely break the business world, there&#x27;s every chance nobody would dare bring it to a court room.

              I&#x27;m not aware of it happening yet (someone trying to enforce copyright on code that was put in production via an LLM) and I would have thought if it did, we would all know about the precedence now.

              1. simoncion · · focus · HN ↗
                &gt; ...someone trying to enforce copyright on code that was put in production via an LLM...

                AIUI, in the US something that&#x27;s entirely machine-generated is not eligible for copyright protection. If one could demonstrate that that machine-generated output is plagiarized human work and were rich enough to bring it to court, and able to wait five to ten years for the outcome, I have to believe that the usual copyvio rules would apply because that&#x27;s not machine-generated output, it&#x27;s straight-up unauthorized copying performed by a machine.

                &gt; My point is whilst it technically might be illegal and happening all the time...

                If it&#x27;s illegal, it&#x27;s illegal. Refusal to enforce the law doesn&#x27;t make the action any less illegal. Criminals who get away with their crimes are still criminals. [0]

                &gt; ... if it&#x27;s unenforceable or sets a precedence that would severely break the business world, there&#x27;s every chance nobody would dare bring it to a court room.

                Or the highest court of the land would find a way to misinterpret &quot;related&quot; historical decisions to make the crime retroactively legal, yeah.

                &gt; ...I would have thought if it did, we would all know about the precedence now.

                I&#x27;m not so sure. For one thing, the courts move really slowly when they&#x27;re not very motivated to address something. For another, news that paints the twin VC darlings and their &quot;industry&quot; as villainous has a tendency to get buried by any one of a billion hype pieces or minor scandals that they have waiting in the wings.

                [0] To bystanders who might wish to retort: Yes, I&#x27;m very aware that some things that are illegal should not be. I&#x27;m also aware that some things that are not illegal very much should be.

                1. 1dom · · focus · HN ↗
                  Sorry, I don&#x27;t understand your point.

                  Can you state what actual point you&#x27;re trying to make, rather than just picking each of my sentences and saying you&#x27;re not so sure or you disagree? I could do the same to you, but it&#x27;s just a waste of time if we&#x27;re not trying to actually come to a conclusion together.

                  My hypothesis is that I suspect there&#x27;s a MAD type situation where technically - by the letter of the law - all the big tech companies bragging about x% of their code being LLM generated are basically admitting to breaching copyright laws. But if one well funded tech company successfully prosecutes that and sets a precedence, then all big tech is going to have to wind back all the LLM code its put in production in the past few years to prevent litigation, which is probably unworkable, hence MAD.

                  I was looking to disprove my own hypothesis by asking for court cases prosecuting this. I&#x27;m not interested in arguing semantics with you.

                  (FWIW, I was repeatedly taught by various legal scholars at various levels of education that a criminal is someone who has been found by a court to be guilty of committing an act that violates criminal law. Up until that point, they&#x27;re usually just a suspect or similar. Not debating, just highlighting that your definition of criminal doesn&#x27;t negate or disprove any point I&#x27;m making. Same for your definition of illegal.)

                  1. simoncion · · focus · HN ↗
                    &gt; Sorry, I don&#x27;t understand your point.

                    If you&#x27;re looking for a single point, that&#x27;s going cause you trouble. Maybe go back and read what I wrote more carefully? I believe that I took care to make sure that my rebuttals to your claims both dovetailed in nicely with the part of the claim they were rebutting and -as a backup- contained the context needed to understand exactly what I was rebutting.

                    &gt; I was looking to disprove my own hypothesis by asking for court cases prosecuting this.

                    _Prosecuting_? If you know enough to ask for that, then you have the knowledge needed to discover that those court cases don&#x27;t really exist yet. The courts move slowly, especially when wealthy and&#x2F;or powerful entities are supremely disinterested in attracting their attention.

                    &gt; I&#x27;m not interested in arguing semantics with you.

                    For anything that&#x27;s not incredibly clear-cut, that&#x27;s like the entirety of the practice of law... at least in the US. At its heart, it&#x27;s an adversarial storytelling exercise that has hundreds to thousands of years of tradition to pull from. I know this in part because I strongly considered becoming a lawyer before I became a programmer.

                    &gt; ...a criminal is someone who has been found by a court to be guilty...

                    That&#x27;s very good practice to engage in when talking about ordinary people. When talking about very powerful people or entities (such as large, influential companies), it&#x27;s not so great. Very powerful entities tend to be permitted to get away with antisocial conduct that the rest of us get metaphorically nailed to the wall for. &quot;Rules for thee but not for me&quot; is trite, but very, very frequently how things end up working.

                    EDIT: There&#x27;s also the example that I had in mind yesterday of US-based marijuana growers, commercial purchasers, individual purchasers, and consumers. All of these people are knowingly illegally producing, trafficking, and&#x2F;or consuming a Schedule I substance. Folks often do this in the open, making no secret of it. The DoJ and DEA might choose not to haul these people into court, but most -if not all- of them are still very plainly criminals... just not convicted ones.

                    &gt; My hypothesis is that I suspect there&#x27;s a MAD type situation...

                    No. In regards to this whole LLM craze, there&#x27;s no MAD-type situation between well-funded tech companies. There are a handful of players who have absolutely no interest in stopping the money-making party. No one involved in the money-making party that resulted in the 2008 crash who could make a credible report to the relevant authorities had any interest in calling those authorities in to stop it... why on earth would they when there&#x27;s so much money being made? And since approximately none of the folks responsible for that huge pile of fraud saw any meaningful punishment, why wouldn&#x27;t businesses with the means to engage in activity that&#x27;s no less illegal but is very profitable for a large number of powerful people be discouraged from doing it again?

                    1. 1dom · · focus · HN ↗
                      If you can&#x27;t state your point clearly, I&#x27;m not going to spend time trying to figure it out for you, sorry.
      3. jandrese · · focus · HN ↗
        The tiniest bit of contamination can get a whole project shut down and the creators heavily fined if the lawyers are aggressive enough. It&#x27;s not worth the risk to a project like Asahi. Generally the law is going to side with whomever has the most lawyers.
        1. xp84 · · focus · HN ↗
          none of this is incorrect, however, how freaking sad is it that in order to get any OS that&#x27;s not locked down and owned by Apple on the hardware we buy and supposedly own, someone (together with whole open source organizations) has to risk utter financial ruin.

          I hate the new system of no ownership and closed everything.

      4. asveikau · · focus · HN ↗
        It may not just be about IP but also code quality. As an example, TFA calls the user mode portion &quot;slop&quot; in need of cleanup.
      5. rossy · · focus · HN ↗
        It&#x27;s not ironic, it&#x27;s the flipside of exactly the same reason. Bigcorps can steal with impunity because they have unlimited money to pay expensive lawyers. FOSS projects do not, so they cannot.
        1. otterley · · focus · HN ↗
          No judge I’ve ever met gave a damn how much a party spent on legal resources. With rare exceptions, they care a great deal about achieving justice, and often bend over backwards to help indigent parties avoid prejudicing themselves. Keep in mind that there are no indigent parties in this debate; both major IP rights holders and the frontier AI companies are well capitalized.

          (I worked in a federal district court for a while.)

          1. voakbasda · · focus · HN ↗
            The problem is that money buys lawyers, and you need those to get justice. If the other side spends more, you are likely to lose.
            1. otterley · · focus · HN ↗
              Which of these parties doesn’t have lawyers? (I’m talking about bigcorps stealing from bigcorps here.)

              In a case where both parties have lawyers, having more and more expensive lawyers is not necessarily predictive of a case’s outcome. There are diminishing returns.

              What having more resources tends to do is force the poorer party to settle quicker. But that’s not necessarily a loss. Judges still have to approve settlements in the interest of justice.

              1. voakbasda · · focus · HN ↗
                Settlements are not justice.
            2. cromka · · focus · HN ↗
              Not everywhere is the US.
          2. mitxela · · focus · HN ↗
            The judge doesn&#x27;t directly care, but paying more for lawyers gets you better legal arguments that are more likely to win.
            1. otterley · · focus · HN ↗
              I don’t know. I’ve seen high quality work product from solo practitioners. Also, even the most expensive lawyer cannot make you win when the law isn’t on your side.
              1. mitxela · · focus · HN ↗
                Can happen. Your chance is still much better if you pay more. Every plainly ridiculous precedent ever was set by the expensive lawyer side.
                1. otterley · · focus · HN ↗
                  False. A substantial percentage of ridiculous precedents resulted from the Government prevailing in a case—and DAs are not the best paid lawyers by far.
      6. littlecranky67 · · focus · HN ↗
        Agree. Especially since even a tainted GPU driver (tainted as in, used former Apple Engineer knowledge) is usefull as we just throw another LLM onto it and tell it &quot;rewrite in rust&quot; and get an untainted version of it (at least that is the current judicial state, and the bigtech argues in this direction).
        1. mitxela · · focus · HN ↗
          An AI doesn&#x27;t magically add copyright but it also doesn&#x27;t magically remove copyright except via diffusion of training data. It does not remove copyright from its input. Malus was a parody. If you machine-translate something from one language to another, copyright is retained no matter how sophisticated the translator is.
          1. xyzsparetimexyz · · focus · HN ↗
            How is that any different from a clean room?
            1. preisschild · · focus · HN ↗
              With clean room you just have access to the api specifications, not the internals.
              1. simoncion · · focus · HN ↗
                Yep. An entity in the &quot;dirty room&quot; reads the thing to be reimplemented and produces a document that thoroughly describes its behavior. That document is passed to the entity in the &quot;clean room&quot; whose only knowledge of that system is through that document. Reverse engineering is legal, plagiarism is not.

                Despite the fact that the raw output of the system is incomprehensible to humans, scanning a photograph of Mickey Mouse and running it through a lossy compression system like JPEG doesn&#x27;t suddenly make it not a picture of Mickey Mouse. Similarly, running the code for a system through the lossy compression system that is LLM &quot;training&quot; doesn&#x27;t suddenly obliterate that data and make that LLM a &quot;clean room&quot;. If one has any doubt of that, remember that they are known to reproduce their inputs, even after all these years of work to make them not do that. [0]

                [0] &lt;<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49727685">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49727685&gt;

                1. mitxela · · focus · HN ↗
                  Plagiarism is legal, actually. Copyright infringement is not.
                  1. simoncion · · focus · HN ↗
                    Fair-ish point. I was considering plagiarism in the context of computer programs, which is -at best- dreadfully difficult to do without also violating copyright and&#x2F;or software licenses.

                    I&#x27;d also rephrase your first sentence as &quot;Plagiarism isn&#x27;t illegal, actually.&quot;. Unless you&#x27;re rich and&#x2F;or very influential, plagiarism is a seriously bad thing to do.

                    1. mitxela · · focus · HN ↗
                      Getting expelled from a university is legal.
                      1. simoncion · · focus · HN ↗
                        Sometimes. Other times is is most definitely not.
              2. xyzsparetimexyz · · focus · HN ↗
                One llm writes the api spec, another writes the api from the spec. No shared context. Easy.
          2. littlecranky67 · · focus · HN ↗
            That remains to be seen (in court). So far you can take any software project written in programming lang $X and have the AI convert it to $Y. Yes, you could say derived work, but it currently impossible to determine if it was rewritten by a human or AI. And there is the point at which every human violates copyright by building on those who came before him - i.e. if I write code in $X, is the inventor of programming language $X entitled to my code - clearly I took his work and built on it. Today the courts say no, this would not be derived work - but it is hard to draw a strict line what is.
            1. mitxela · · focus · HN ↗
              It doesn&#x27;t matter if a human or AI did it, because a human translation doesn&#x27;t remove copyright either.
              1. fragmede · · focus · HN ↗
                Courts have ruled that clean room reimplantation does, however.

                Decided by the courts in for American Megatrends and Phoenix Technologies for their IBM BIOS reimplementation that lead to the PC revolution in the 1990s.

      7. mitxela · · focus · HN ↗
        Both people with balls and people without balls belong in the community. Diversity is a strength in a decentralised system.

        In emulators, there is Azahar which is an emulator without the ability to decrypt games, and there is Azahar Plus, by different people, which is downstream of Azahar and adds piracy-specific features. The Azahar developers, who do the majority of the work, do not need balls. Only the people making the piracy fork need balls.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.