26 pointsby milkikomasiko2 hours ago7 comments
  • 1a527dd5an hour ago
    • simondotauan hour ago
      Yep, it’s also AI slop. @dang ?
  • tpaksoy2 hours ago
    We had issues running our Node app on alpine. Specifically the dns lookup for our API calls were taking several hundred milliseconds *every* time.

    Switching to debian reduced it to microseconds.

    Does anyone here know what I was doing wrong with alpine?

    • ashishban hour ago
      Alpine is a bad idea for a non-trivial application written in Python, Node.js, or any other interpreted language.

      Too many weird edge cases to deal with, especially related to Alpine using musl libc instead of glibc.

      At best, your builds are slower.

      At worst, certain code paths are broken.

      • stavrosan hour ago
        I had this experience as well, nowadays I use Debian slim. Too much random breakage in Alpine.
    • Tiberium2 hours ago
      Musl is much less optimized than glibc, random example: https://andygrove.io/2020/05/why-musl-extremely-slow/
  • 2 hours ago
    undefined
  • Eighthan hour ago
    Good post. Using slim is the easiest and biggest impact change.
  • coolThingsFirstan hour ago
    Ditch docker and use Golang to bring it to 4MB.
    • stavrosan hour ago
      Ditch Golang and use a textfile containing the text "Hello world!" to bring it to 12 bytes.
      • coolThingsFirst23 minutes ago
        That's not going to work, that's a static file.

        Golang gives you a web server as a staticly linked binary.

        • stavrosa few seconds ago
          If we're disregarding requirements, I figured I'd disregard some too.

          If the question is "I need to containerize my Node app, how do I make it small?" the answer can't be "don't containerize it and don't use Node".

  • wxwan hour ago
    This website seems entirely filled with AI slop articles targeted towards software eng.
  • hottrends2 hours ago
    [flagged]