Is this using ”dotfiles” as a general term for ”text based configuration files”? Is this a thing? I only have two actual dotfiles on my system (git and one more)
A cross-platform multi-target dotfiles manager written in Rust
31–40 of 87 posts
Re: A cross-platform multi-target dotfiles manager written in Rust
#32Earlier quoted context omitted.
I find Rust super ergonomic for any kind of app. The memory management aspect is trivial and second nature to anyone used to unmanaged languages, and the type system equally is not difficult to understand. It's a general purpose language, but it does give you full control. Plus, of course, you can encode a large amount of program states in the type system and borrowing checks enforce rules that programmers usually ha…
As someone used to unamaged languages since 1986, and with a major focused on systems programing, it isn't that clear cut. Rust executables are only 100% static on OSes that expose system libraries as static libraries, and there are not many of those around, outside embedded systems.
Re: A cross-platform multi-target dotfiles manager written in Rust
#33Earlier quoted context omitted.
As someone used to unamaged languages since 1986, and with a major focused on systems programing, it isn't that clear cut. Rust executables are only 100% static on OSes that expose system libraries as static libraries, and there are not many of those around, outside embedded systems.
After years navigating this issue, I think the common understanding of "static" binary is just "something that won't give me a dll / dylib error on startup when I copy it to my friend's computer"
Even shipping the whole computer on a container, might not do it, because most containers are leaky abstractions the way their Dockerfiles are written.
Re: A cross-platform multi-target dotfiles manager written in Rust
#34Re: A cross-platform multi-target dotfiles manager written in Rust
#35Is this using ”dotfiles” as a general term for ”text based configuration files”? Is this a thing? I only have two actual dotfiles on my system (git and one more)
Are you using windows? I feel like dotfiles are much more common on unix-like systems. For me I've got dotfiles for zhs, ssh, git, two for my window manager, vim, and much more. I've even got one for nethack. I quite like it, I get new laptops up and running and feeling like home in a matter of minutes.
Re: A cross-platform multi-target dotfiles manager written in Rust
#36Serious question: why Rust? Sounds like this is not exactly systems level programming or any user would suffer from or even notice garbage collection latency. Is Rust building up a decent ecosystem now for application programming? When I tried developing in Rust I came to the conclusion that you pay a heavy price for not having a garbage collector. Was I doing it wrong?
Re: A cross-platform multi-target dotfiles manager written in Rust
#37Serious question: why Rust? Sounds like this is not exactly systems level programming or any user would suffer from or even notice garbage collection latency. Is Rust building up a decent ecosystem now for application programming? When I tried developing in Rust I came to the conclusion that you pay a heavy price for not having a garbage collector. Was I doing it wrong?
Two things: 1. Historically a CLI like this would often be written in C, so Rust isn't that strange of a choice. 2. Rust is know for the borrow checker and being a great low level language. However, it's also an excellent modern general purpose language with a great ecosystem. People end up using it for all kinds of things because it's a joy to use. "When I tried developing in Rust I came to the conclusion that you p…
*Perl
Re: A cross-platform multi-target dotfiles manager written in Rust
#38Is this using ”dotfiles” as a general term for ”text based configuration files”? Is this a thing? I only have two actual dotfiles on my system (git and one more)
Re: A cross-platform multi-target dotfiles manager written in Rust
#39I just use a “dotfiles” folder that is a git repo and then hard-link the files in there into the home directory. One for unprivileged user and one for root on each platform. Simple enough and doesn't require an extra tool.
The environments are basically the same in each but there’s some functionality I can do I one that I cannot do in another
Re: A cross-platform multi-target dotfiles manager written in Rust
#40Pretty cool, I personally just use Stow. 1. git clone my dotfiles repo 2. run `stow .` 3. profit This pretty much guarantees that if my Mac dies today, I can just get up and running in no time on a new machine.
This looks like it can work with windows as well and you can easily switch between profiles if you have multiple which is great too