aspiring Rustacean, JavaScript jockey, 3D printing addict, use Bluefin Linux, (Apple|Google)-captive, Meta-escapee, parent, husband with a husband, cisgender, he/him

  • 2 Posts
  • 13 Comments
Joined 5 years ago
cake
Cake day: April 6th, 2021

help-circle
  • jokeyrhyme@lemmy.mltoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    0
    ·
    27 days ago

    I switch back and forth between bazzite and bluefin quite often

    on these and other immutable distributions, /usr is read-only, and the recommended is to use installation methods that write to your HOME (or to /var which is where docker and flatpak --system save files)

    i really should muck about with container-based development flows

    my current preference is flatpak, then whatever per-language package tooling (e.g. cargo for tools written in Rust, npm with a custom HOME prefix for tools written in Node.js, uv for Python projects, etc) when there’s no flatpak, then homebrew, then rpm-ostree as a last resort

    for editing files in /etc my recommendation would be to set the EDITOR environment variable to point at whatever you like, installed however you like, and edit with sudoedit /etc/fstab, because then your editor is not running with root permissions

    you could also point EDITOR at a custom script that mounts the target file into a container running your desired editor




  • Why do you need gcc to compile a Python program?

    this is pretty common in interpreted languages/runtimes like Python, Node.js, Ruby, etc where a dependency is written in C or C++ or Rust or something else when the performance benefit is worth the cost of abandoning the primary language

    the amusing/horrifying part is that Node.js actually depends on a Python script for this, so any Node.js application with a C/C++/Rust dependency actually needs Python installed somewhere

    e.g. https://github.com/pyca/cryptography is a Python dependency that requires the Rust compiler/toolchain if pip / pipx / uv can’t find a pre-compiled version for your system

    To me sounds like either a neglected project or designed to run in a docker image maybe? When was it updated last?

    as far as i can tell, the project is alive and well, frequent and recent commits, and all the dependencies involved here are on their latest versions

    In such cases its probably the best to run the application in a virtual machine.

    and yeah, i know i can fix this with a VM or a Dockerfile and i’ll probably have to

    but my point is that Python is kinda’ hot garbage for sharing code that depends on other shared code

    it’s a terrific language by itself and sharing code that only depends on the standard library is perfectly fine, but as soon as we share code that depends on other third-party code we introduce inevitable suffering





  • open source licence obligations are almost always triggered upon distribution

    and cloud software-as-a-service doesn’t count as distribution (except under AGL and a few rarer less-used licences), because the software never leaves machines owned/operated by the “author”

    so, cloud SaaS has been able to consume open source code without contributing anything back for decades already

    AI-generated bespoke software might be killing SaaS, but it’ll like never trigger open source obligations either, because it’ll never leave machines owned/operated by the “author”

    so these AI-reimplementations of existing open source software are kinda’ pointless




  • it would be very interesting to see that attempt

    but Poettering has already said that functionality doesn’t belong in systemd so I’m not sure where anyone would raise such a PR

    seems like an Ubuntu/RedHat level distribution design to pull in a brand new age-verification / mass-surveillance component, or maybe modify an existing telemetry component

    the birth date field only made it into systemd because it’s user metadata that is consistent with what is already stored there, whereas surveillance does not

    for now, at least

    again, I’d be very interested to see what happens with follow-up PRs