News for hackers. Stuff that matters.
Re:Hyperspace by pmarreck on Tuesday February 25, 2025 @01:52PM (#43175789)
Claude 3.7 just rewrote the whole thing (just based on reading the webpage description) as a commandline app for me, so there's that.

And because it has no Internet access yet (and because I prompted it to use a workaround like this in that circumstance), the first thing it asked me to do (after hallucinating the functionality first, and then catching itself) was run `curl https://hypercritical.co/hyperspace/ | sed 's/<[^>]*>//g' | grep -v "^$" | clip`

("clip" is a bash function I wrote to pipe things onto the clipboard or spit them back out in a cross-platform linux/mac way)

    clip() {
      if command -v pbcopy > /dev/null; then
        [ -t 0 ] && pbpaste || pbcopy;
      else
        if command -v xclip > /dev/null; then
          [ -t 0 ] && xclip -o -selection clipboard || xclip -selection clipboard;
        else
          echo "clip function error: Neither pbcopy/pbpaste nor xclip are available." >&2;
          return 1;
        fi;
      fi
    }
Re:Hyperspace by saagarjha on Tuesday February 25, 2025 @07:49PM (#43179385)
Would you trust Claude with your hard drive?
Re:Hyperspace by SparkyMcUnicorn on Tuesday February 25, 2025 @09:46PM (#43180050)
Trust, but verify. We should always read and understand what gets spit out anyways.

When doing something with any risk potential I first ask the model for potential risks with the output, and then I manually read the code.

I also "recreated" this tool with Sonnet 3.7. The initial bash script worked (but was slow), and after a few iterations we landed on an fclones one-liner. I hadn't heard of fclones before, but works great! Saved a bunch of disk space today.

Re:Hyperspace by pmarreck on Sunday March 02, 2025 @02:09AM (#43228104)
wow, just learned about fclones, does this also work with OS X’s CoW cloning?
Re:Hyperspace by SparkyMcUnicorn on Wednesday March 05, 2025 @02:23AM (#43263839)
Yes.
Re:Hyperspace by wizzwizz4 on Tuesday February 25, 2025 @08:08PM (#43179519)
Ooh, could you share the source code? That seems like a perfect example for my "relying on AI code generation will subtly destroy your data" presentation.
Re:Hyperspace by pmarreck on Wednesday February 26, 2025 @08:16AM (#43183349)
Hah, I have not actually had a chance to run it as a test yet
Re:Hyperspace by wizzwizz4 on Wednesday February 26, 2025 @08:24AM (#43183400)
Best upload the source code somewhere, before you do. Otherwise, we'll never know why you lost all your files.
Re:Hyperspace by pmarreck on Sunday March 02, 2025 @02:00AM (#43228071)
I had to do additional work on it, and it’s slower than the posted app, but it works