Login
You're viewing the ruby.social public feed.
  • Dec 22, 2022, 7:31 PM

    I might be a bit behind the trend, but tried chatgpt today.

    me: I have questions about #guile programming. Is there an equivalent to OCaml's `for_all` function?

    AI: In Guile, you can use the `every` procedure to achieve the same behavior as OCaml's `for_all` function.

    I asked something similar (but less clear, I'll admit) on IRC two days ago, and I was first suggested how to reimplement it before someone talked about "every" (:

    💬 2🔄 0⭐ 0

Replies

  • Dec 22, 2022, 7:55 PM

    and playing way too much with it, I managed to make it write a #guix uninstall script without writing a single line of code myself.

    Here's its first attempt, and after ~30 minutes of trying to carefully instruct it

    from a scale from 1 to 10, would you run that script if you wanted to uninstall guix on a foreign distro? :)

    a screenshot of me asking "Can you write a bash script to uninstall guix on a foreign distribution?". The AI answers with a script that removes the guix-daemon service, deletes some directories, but some of them don't make sense.
    A screenshot of a similar script but after instructions were given. Less verbose comments, handles systemd/sysvinit and removes more sensible directories. It can also remove per-user guix directories and files, but only the first few lines of that part are shown in the picture.
    💬 1🔄 1⭐ 0
  • Dec 22, 2022, 11:03 PM

    @roptat The script looks surprisingly good, it would have taken me time to figure out all these details. It must have ingested something very close to what it’s showing.

    💬 0🔄 0⭐ 0
  • Dec 22, 2022, 11:34 PM

    @roptat
    Tried it with common lisp to write a simple redis client. It kept throwing thin wrappers around libs that didn't exist, even though I asked it to use quicklisp.

    💬 0🔄 0⭐ 0
  • Dec 22, 2022, 11:36 PM

    @roptat
    For me the experience was of hiring a junior dev who does nothing more than copy-paste random stackoverflow chunks.

    Wonder if it's the same for other domains of knowjedge where some level of expertise is required.

    💬 0🔄 0⭐ 0
  • Dec 23, 2022, 6:07 AM

    @seeg
    I also felt like crying to explain things to a drunk programmer. It's fun, but I wouldn't use it for real work.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0