Skip Navigation
Zed Decoded: Linux when? - Zed Blog
  • While I generally agree with your skeptical attitude toward this, I think the fact that they were targeting Apple's Metal graphics API to built the most performant possible IDE makes sense. You can't just snap your fingers and have a Linux graphical stack start working with your software.

    I think the reason they targeted macOS first is probably because many of the dev team uses Macs.

    As a Linux user, I'll happily wait for software like this to get ported to native Linux APIs so we get performant text editors instead of more Electron crap.

  • How the Media Treat Linux
  • Part of the problem also has to do with corporate-backed distros. Fully community-driven distros don't suffer from that nearly as much, if at all.

    I like Fedora, but stuff like that makes me worry about how it's going to be as time goes on.

  • Upscayl: Free and Open Source AI Image Upscaler
  • Fair. I used it when the project was still very new and was basing that statement off of my admittedly flawed perception of time.

    Thankfully, due to quirks of language, we have to say "1.5 years", so it's not technically incorrect :p

  • Farmed Bluefin Tuna Brands Claim to Be Sustainable. Here’s What Really Happens.
  • It's not about being eaten to extinction, obviously, but nice.

    If you consider cultivating new zoonotic diseases and pandemics into existence and wasting energy and resources on feeding animals the nutrients that humans can more efficiently benefit from directly to be "sustainable", then I think it's you that is using a definition of sustainable that is different from what is commonly understood.

  • Create an app including binary/library dependencies
  • Here's what I do in my docker images:

    mkdir -p /lib-your-executable
    ldd ./your-executable | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % cp % /lib-your-executable
    

    Essentially, it's the same thing that you're doing, just automating getting the dependencies, and then copying everything in the lib-your-executable dir to your LD_LIBRARY_PATH. I don't know of a better way, other than statically-linking the binaries.

    EDIT: fix typo in commands.

  • Does a docker image minimizer like this exist?

    I am looking for something that can take a Dockerfile, like the following as an input:

    --- ```Dockerfile FROM --platform=linux/amd64 debian:latest ENV DEBIAN_FRONTEND=noninteractive

    RUN apt update && apt install -y curl unzip libsecret-1-0 jq COPY entrypoint.sh . ENTRYPOINT [ "/entrypoint.sh" ] ``` ---

    And produce a a multi-stage Dockerfile where the last stage is built from scratch, with the dependencies for the script in the ENTRYPOINT (or CMD) copied over, like this:

    --- ```Dockerfile FROM --platform=linux/amd64 debian:latest as builder ENV DEBIAN_FRONTEND=noninteractive

    RUN apt update && apt install -y curl unzip libsecret-1-0 jq

    FROM --platform=linux/amd64 scratch as app SHELL ["/bin/bash"]

    the binaries executed in entrypoint.sh

    COPY --from=builder /bin/bash /bin/bash COPY --from=builder /usr/bin/curl /usr/bin/curl COPY --from=builder /usr/bin/jq /usr/bin/jq COPY --from=builder /usr/bin/sleep /usr/bin/sleep

    shared libraries of the binaries

    COPY --from=builder /lib/x86_64-linux-gnu/libjq.so.1 /lib/x86_64-linux-gnu/libjq.so.1 COPY --from=builder /lib/x86_64-linux-gnu/libcurl.so.4 /lib/x86_64-linux-gnu/libcurl.so.4 COPY --from=builder /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libz.so.1

    ...a bunch of other shared libs...

    entrypoint

    COPY entrypoint.sh /entrypoint.sh

    ENTRYPOINT [ "/entrypoint.sh" ] ``` ---

    I've had pretty decent success creating images like this manually (using ldd to find the dependencies) based on this blog. To my knowledge, there's nothing out there that automates producing an image built from scratch, specifically. If something like this doesn't exist, I'm willing to build it myself.

    6
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TR
    trevor @lemmy.blahaj.zone
    Posts 1
    Comments 115