Claude Code Teaching macOS to Natively Print to the HP Laser 1008a

(cdn.kuber.studio)

49 points | by amrrs 49 minutes ago

10 comments

  • ryandrake 18 minutes ago
    I was able to (through heavy Claude use) successfully reverse engineer a golf cart motor controller that is programmable over USB, but only was supported by a Windows application. Claude walked me through using ILSpy on the .NET assembly, using Wireshark to capture the protocol over USB, and to completely map out all of the functionality in the Windows application. The output was a portable C library and CLI program which, so far, has worked well.

    I consider myself kind of an AI detractor but even I'll admit that the tool allowed me to do something it would have taken weeks-to-months to learn to do the hard way.

    • sinpif 13 minutes ago
      Had a similar thought today - maybe we could finally get Linux drivers for more HW...
      • ryandrake 7 minutes ago
        I don't understand the technology enough to see why, but LLMs seem unusually skilled at reverse engineering proprietary software.
    • Rebelgecko 13 minutes ago
      I've had good luck using AI to reverse-engineer Bluetooth comms for "smart" products with shitty apps.
  • embedding-shape 16 minutes ago
    Somehow, I'm not exactly sure why, I got creeped out by Claude's finishing line:

    > Thanks for being such a game debugging partner through all the test pages. Enjoy printing, you and the family.

    Maybe it's because my own LLM usage is very "Question > Answer" or "Do this > Agent does that" and I never say "Wow, that's crazy it works, thank you!" at the end or such, so I don't see that sort of things, but if I saw that regularly I'd turn me off so badly from using LLMs. I'm not exactly sure where this feeling is coming from though, it's relatively innocent but just feels so inauthentic, I'm guessing because it's simply a machine.

    • theultdev 8 minutes ago
      I'd be willing to bet somewhere in that conversation he said family printer or something.

      Seems an oddly specific thing to hone in on otherwise.

      • hmokiguess 5 minutes ago
        That's funny, 'Ctrl + F' for 'family' returns a lot of uses of that word in different contexts, so I guess it must have scored heavy eh
    • ex-aws-dude 12 minutes ago
      > Leave my family out of this!
  • feintruled 20 minutes ago
    So the critique from the other story holds true - it really is just running the Linux driver inside docker, and (perhaps) dressing it up as something more - though I note the claim on this page is walked back from the original 'writing the driver'. On the other hand, it really did get him printing from his Mac, so in this new LLM results based world we live in it did its job admirably.
  • Tiberium 21 minutes ago
    Unfortunately this is a very misleading article and headline. I don't doubt the end result - it's useful that it works, but it's not "natively" and, unlike what some people assume, Claude didn't write a driver. It basically used HP's existing proprietary driver in a Linux VM on macOS, and just bridged that to macOS.

    It also requires a root launcher that runs code from the user ~/.hp1008 dir, so security is weakened.

  • LeoPanthera 31 minutes ago
    Claude Code is extremely "honest", and uses that word 10 times in that short transcript.
    • DougN7 7 minutes ago
      I find it uses “faithful” an awful lot. But it comes in waves - not at all for a few days and then 10 times in an hour.
  • saejox 32 minutes ago
    my Brother dcp-t230 also doesn't have macos drivers and it's a usb only printer. if i ever get some tokens to burn, i would try the same.
    • trollbridge 22 minutes ago
      I did a similar project for another make of printer, but used DS Flash and GPT-5.6-Sol, so it was effectively free ($2-$3 of Flash and maybe 5% of a monthly Max sub, so $10?)
    • asveikau 16 minutes ago
      It didn't write a driver. It used a linux driver. You don't need an LLM.
    • thrownaway561 9 minutes ago
      I don't see anywhere in the post or the repo how much it cost him to do this in tokens.
    • f0cus10 24 minutes ago
      i have a label printer that's in the same boat. I wonder how many tokens this convo was
    • altmanaltman 13 minutes ago
      someone already burned those tokens for you: https://github.com/farafonoff/Brother-DCP-T230-MacOS-driver
  • IronWolve 23 minutes ago
    Claude is great at that. I have a usb keypad with no linux version of the app to program it. Since its just a vial/qmk based, claude built me a linux version in qt/python.
  • ChrisArchitect 21 minutes ago
    [dupe] Discussion, including activity from the dev https://news.ycombinator.com/item?id=49344643
  • ValentineC 32 minutes ago
  • iluvcommunism 27 minutes ago
    [dead]