• 1 Post
  • 37 Comments
Joined 4 months ago
cake
Cake day: July 3rd, 2025

help-circle

  • I think it might be nice if such posts included some background

    Build for web, desktop, and mobile, and more with a single codebase. Zero-config setup, integrated hot-reloading, and signals-based state management. Add backend functionality with Server Functions and bundle with our CLI.

    I don’t think everyone is up to date on every Rust library that exists


  • I guess you are being downvoted because that is not directly connected to Rust. It would be a problem with any language

    Yeah, compiling from source on Windows is a mess. In that regard it is not a functional OS, one has to install a lot of tools in order to compile the tiniest thing

    I would put both ways into the descriptions, just for that one lost person that for some reason has to compile from source on Windows, just to give them a hint where to start. I think, it’s also very probable that if they have to compile from source, they might have a lot of issues with getting VS to work.
    It will be a pain anyway, most will probably just download your binary and hope you prefer mining bitcoin instead of ransoming their whole drive


  • INeedMana@piefed.ziptoRust@programming.devThe Handle trait
    link
    fedilink
    English
    arrow-up
    2
    ·
    25 days ago

    I don’t know but it could be anything else than an Arc. Obviously you should still be able to take a usual reference to such a thing.

    Maybe. My point is that unless you want to, for example, have a reference that you switch between which object it references, I think you would be fine with using the ref-counted reference. With eventual optimization done via compiler when it’s sure the code won’t be trying to access the object after it got deleted. But even if I’m wrong, there could be another way to get a pure reference

    This proposal as I understand it is an attempt at making reference-counting more ergonomic.

    Yes, and IMO by using Handle for that it breaks a pattern. Rust keeps * and & for speaking about values and memory management (I want data vs I want reference). Using a trait for ref-counted referencing adds another layer. So suddenly we have *, & and ::Handle(). You see what I’m getting at?











  • INeedMana@piefed.ziptoRust@programming.devWhich GUI crate?
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 month ago

    Personally I would start with plain SDL2 and then add GTK. Both of them are language-agnostic, so you are learning something that you can use in other projects too. And are widely used, so while the Rust binds might add some spiciness to the mix, it should be easier to search for clues




  • We’ve succeeded beyond my dreams. The drivers are fully upstream in Mesa. Performance isn’t too bad… Satisfied, I am now stepping away from the Apple ecosystem.

    “Excellent!” the Prince exclaimed. “Your technique is faultless!”

    “Technique?” said the programmer, turning from his terminal, “What I follow is Tao – beyond all techniques! When I first began to program, I would see before me the whole problem in one mass. After three years, I no longer saw this mass. Instead, I used subroutines. But now I see nothing. My whole being exists in a formless void. My senses are idle. My spirit, free to work without a plan, follows its own instinct. In short, my program writes itself. True, sometimes there are difficult problems. I see them coming, I slow down, I watch silently. Then I change a single line of code and the difficulties vanish like puffs of idle smoke. I then compile the program. I sit still and let the joy of the work fill my being. I close my eyes for a moment and then log off.”


    1. it partitions same things into separate locations One library is here, another one is here, some older version there, which one should this binary load? Where should I point the -L to? Of course, compiling things completely from scratch is unmaintainable anyway (that’s why PKGBUILD was another big point - it’s easy to create your own AUR packages that will get pacman-level maintainability), but sometimes you want to check if that new patch solves your issue
    2. if distro does not care, the packages will have different prefixes I can see some use of /opt. But it should be my decision if I want something installed in /opt/bin or /usr/local/bin. In distros that did not enforce where things are put in, it was all over the place. But to be fair, to me, even bin/sbin separation is bs

  • Unlike Linux, these BSDs have a clear separation of OS from these packages. OS files and data are stored in places like /bin and /etc, while user installed packages get installed to /usr/local/bin and /usr/local/etc.

    What do you consider the OS? Is firefox a part of OS? Is office part of OS?

    On FreeBSD, the freebsd-update command is used for upgrading the OS and the pkg command is used for managing user packages. On OpenBSD, the syspatch command is used for upgrading the OS and the pkg_* commands are used for managing user packages.

    Personally, the ditching of /usr/local mess was one of the selling points of Arch for me, but in a way you could achieve this in Arch. Create a secondary pacman config with RootDir set to /usr/local and alias pacman --config /etc/pacman_local.conf as pkg_pacman