• Matt@lemmy.ml
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    7 hours ago

    Nah, NixOS is better since you can configure a system from one repo.

  • alecsargent@lemmy.zip
    link
    fedilink
    arrow-up
    33
    ·
    11 hours ago

    DHH on artificial inteligence:

    Not only they got good, they got amazing. Agents are better than me at almost all forms of programming. […] In terms of comparative intelligence here, I’m accepting that I’m becoming a little of a pointy head boss here.

    • juipeltje@lemmy.world
      link
      fedilink
      arrow-up
      16
      ·
      edit-2
      6 hours ago

      I’m not a programmer so maybe i can’t be too harsh of a judge on this, but i’ve heard multiple programmers claim that AI writes better code than them, and i just find that alarming, cause based on what i’ve seen genAI do in every other field surely it can’t be that good right? Makes me wonder how good they really are at their craft to begin with.

      • BartyDeCanter@piefed.social
        link
        fedilink
        English
        arrow-up
        6
        ·
        2 hours ago

        I am a programmer with 25 years of professional experience, mostly embedded C/C++, with a decent amount of Python and the last year has been mostly Rust.

        Current LLMs write both worse and better code than me, often at the same time. Let me explain.

        LLMs are very good at syntax, with an encyclopedic knowledge of libraries, languages, and algorithms that is a few years out of date. I particularly notice this in Rust, which has a lot of syntax and features, like the 482ish ways to chain Options and Results that I still haven’t memorized all of.

        So for a relatively simple function in a language that I’m not very famialiar with they will often produce a bit tighter code that makes better use of the language features. They will also sometimes come up with an obscure algorithm that I haven’t though about in decades or even heard of that can solve the problem better than my first attempt.

        On the other hand, they are terrible at larger scale work, generally building fragile code while protecting against things that can’t actually happen, using overly complex architecture, organizing code in dumb ways, missing obvious opportunities for simplicity, and relying too much on existing bad patterns instead of fixing them along the way, etc. They also tend to be a terrible judge of when to use a library vs roll their own, leaning heavily towards rolling their own instead of just adding a single include, which means more new untested code.

        On the third hand, I do find that they can be pretty good at reviewing code, and it is nice to have them write tests, since we all hate writing tests and tend to write as little as we can get away with.

      • alecsargent@lemmy.zip
        link
        fedilink
        arrow-up
        3
        ·
        3 hours ago

        Makes me wonder how good they really are at their craft to begin with.

        That is exactly the point.

        LLM’s are great at what they already do, they simply statistically predict the output text from an input text. This means that if an expert needs LLM’s in their line of work they were never an expert. Unless of course they are trying to brute-force solutions to extremely complex theorems were humans would take a lifetime (literally) to answer.

      • __hetz@sh.itjust.works
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        4 hours ago

        Not a programmer either but I’ll throw in my anecdotes:

        • I was writing a “cog” for pycord (Python Discord bot framework). I wanted a slash command to hit an API for some reason or another. Whatever AI I was using hallucinated a non-existent endpoint to achieve that so, of course, it didn’t work. I wasted a half hour reading past and upcoming specs of the API to find that endpoint never existed and wasn’t going to exist in the next release. The code was structurally sound, pretty much identical to other functions I’d written by hand, but it reached out to something that does not exist. It did this with a popular, well-documented piece of software.
        • Speaking of structurally sound, there’s no real time save if I have to double back to make sure it filled in all the blanks correctly. If the AI can fuck up with an API that it should “know,” it’s a guarantee that will be necessary to correct everything when an AI has no knowledge of it whatsoever. So now time is spent making sure it isn’t referencing variables it failed to define, pointing to API endpoints that aren’t there, etc. I can define boilerplates and snippets in any decent text editor. An autocomplete plugin will fill out the entire structure of a function being defined the second I type def and leave me to fill in the blanks - all without deferring to a water and energy sucking, data mining, douchebag of a company. What’s being gained that isn’t costing me privacy, depriving myself the use of my own cognitive abilities, and ultimately making the world a little worse off?
        • Last one, I wrote a bash script years ago using exiv2 to pull the EXIF data and sort unsorted photos into ../YYYY/MM/DD/. directories. When the AI hype started gaining traction I tasked one with doing the same to see what it would do differently. Aside from some capitalization and variable names, it was identical. Now it’s not exactly a complicated task but my takeaway was either I’m a better programmer/scripter than I thought (not likely) or AI is just as bad (or worse) of a programmer as me. I’m leaning towards worse, considering I manage to actually know if an endpoint or variable exists before referencing it.

        Anyway, the only conclusion I can draw is those “programmers” are developing unmaintainable blackboxes out of twigs and playing cards. If some big bad wolf by the name of “Intellectual Debt” doesn’t inevitably come along to huff and puff, they’ll just end up collapsing under their own weight.

        • randomdude@thelemmy.club
          link
          fedilink
          arrow-up
          1
          ·
          1 hour ago

          just to let u know i was also doing mkdir $(date +%B-%d-%Y) recently and i thought the universe just lead me here and i believe it

      • esc@piefed.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 hours ago

        It’s shades of gray honestly. Sometimes they are very good (especially if you need some small tool that scratches a particular itch or want something that is 50% there right now), other times they’re extremely dumb and write horrible code. Especially of you want them to use some modern feature of your language that they don’t know anything about, or when the language in question isn’t very popular, or when the library you are using at the same time isn’t very popular, changed a lot recently and is big. They can go in circles for hours with 'wait actually …, actually …, but wait …, but actually …, ad nauseam. But when you limit them in scope, give realistic goals and constraints they more often than not work good.

  • ProfoundBygbird@lemmy.ml
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    11 hours ago

    I’m trying to understand the hype. Is it cause this stuff is normally a pain to configure? I thought the point of Arch was to define your own system. Why would I use Omarchy? Also every tech influencer is pushing this distro like it’s the best thing since Linux was released but the use case seems very narrow to me. Tiling wm aren’t for everyone so why are they all so excited for this? It does look sleek depending on the theme but I just don’t get it.

    • eleijeep@piefed.social
      link
      fedilink
      English
      arrow-up
      14
      ·
      8 hours ago

      It appeals to the people who think a tiling WM looks cool but can’t be bothered to do the most basic documentation reading to install and configure it.

      every tech influencer is pushing this distro

      Not any of the ones that I follow. Perhaps that’s a signal to curate who you listen to.

      • hardcoreufo@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        4 hours ago

        You can just get a tiling extension for GNOME and it just works, or use sway or i3 there’s no reason for hyprland to exist.

        • varjen@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          3 hours ago

          I’ve been using tiling window managers for 15+ years (Mostly awesomewm but also ion/i3). I tried using the tiling extension for GNOME and it was pretty awful. Maybe it has improved since then but last time I checked GNOME still couldn’t handle multiple workspaces on multiple monitors the way I want so that’s a nonstarter for me. I’m currently using Hyprland on Fedora because i3 and sway couldn’t easily replicate some functionality I had in AwesomeWM when I migrated to wayland.

    • danielton1@lemmy.world
      link
      fedilink
      arrow-up
      28
      ·
      edit-2
      11 hours ago

      Tiling wm aren’t for everyone so why are they all so excited for this?

      There seems to be an expectation in the Linux community that everybody who sticks with Linux long-term will eventually “graduate” to a tiling wm someday. Even though I’ve used Linux for 20 years and still prefer KDE.

      • BartyDeCanter@piefed.social
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        10 hours ago

        In theory I really like tiling window managers. I generally want to have 1-4 windows open in full screen per workspace/monitor and prefer to use just my keyboard as much as possible.

        In practice, I haven’t found one that works well with dialog, fixed sized, or modal windows well enough to not get annoying, while most traditional window managers/desktop environments have good enough keyboard shortcuts and window snapping.

        • mamg22@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          … I haven’t found one that works well with dialog, fixed sized, or modal windows well enough to not get annoying,

          This so, so much. I:ve been on Sway (and i3 before) for a long time and this is such a pain in the ass.

          Most gui programs that do more than a simple window just don’t work well with them, dialogs filling up half your screen because of tiling, programs with detachable panels that turn into windows cannot be attached again because the main window doesn’t detect it (puddletag is an example I’ve came across recently).

          I know I can setup some rules to make the windows float or have the correct behavior, but it’s just too much to fix every single broken dialog I encounter.

          • rumschlumpel@feddit.org
            link
            fedilink
            arrow-up
            1
            ·
            43 minutes ago

            Tabbed mode is supposed to replace alt+tab … you could even rebind Mod+Arrow to Alt+Tab if you really wanted (if you didn’t set your Mod key to Alt).

    • rumschlumpel@feddit.org
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      8 hours ago

      I’d definitely be down for a well-maintained, Debian-based (not Ubuntu-based) distro that comes with i3 or sway out of the box and isn’t run by a chud. Configuring your distro of choice with a tiling WM by hand everytime you install on a new device or virtual machine is a chore. There’s certainly a prominent niche of Linux users who like tiling WMs, and those have a lot of overlap with the kind of user who would be interested in a niche distro.

      Also, many smaller distros are explicitly anti-chud (indeed even many of the bigger ones talk positively about “diversity” and “inclusiveness”), so chud users would naturally be drawn to the few distros that are run by outspoken chuds.

      • harsh3466@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        5 hours ago

        Don’t know how you feel about fedora, but their atomic sway spin has been great. Rock solid with a sane, functional sway config.

        • rumschlumpel@feddit.org
          link
          fedilink
          arrow-up
          3
          ·
          5 hours ago

          Yeah, I’m not desperate enough for a preconfigured i3/sway distro to learn a different package manager. There’s also Ubuntu Sway Remix, it’s even configured without Snaps out of the box.

    • ImgurRefugee114@reddthat.com
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      edit-2
      11 hours ago

      Hate the asshole but I’ll be generous. I think it speaks to a badly underserved market; a desire for a highly curated, opinionated, ‘turn-key’ solution. SteamOS is getting hype for similar reasons; Omarchy is just the techie version of the idea; someone else did the configuration for you.

      Part of why I like nixos so much: makes it easy to leverage the work others have done.