How did you find Leptos to work with? I never got further than the tutorial so I have yet to form a real opinion on it.
New account since lemmyrs.org went down, other @Deebster
s are available.
How did you find Leptos to work with? I never got further than the tutorial so I have yet to form a real opinion on it.
It’s a subtle difference between that and path::exists()
.
path::exists()
== false
might just mean you can’t use it (if path::exists() cannot access a file due to e.g. permissions, it’ll return false)fs::exists()
== Ok(false)
means it’s definitely not there (permissions error will cause an Err to be returned)Bad wording on my part, I wasn’t disagreeing. My file server has a /files directory because it saves me a few key strokes and because I can.
Is Gobo case-insensitive by default? Typing those seems annoying.
That’s an old image, though - Windows has a C:\Users\youruser setup like /home/youruser for a while now.
I find the %APPDATA% thing way less convenient than ~/.config and I’m quite happy when programs have the “bug” that they still use ~/.config on Windows.
I like that idea of using the different fonts for e.g. Copilot suggestions - reminds me of reading Asterix comics as a kid when they’d use gothic black for the Goth’s speech, etc.
edit: e.g.
it would’ve been nice if Gentoo’s docs were better than/highly competitive against Arch’s docs.
I think it’s fair to say that the Arch wiki is larger and covers more areas, but if there’s a Gentoo page on the same topic, the Gentoo one will be as good/better.
Arch is more popular, and so has more contributors (e.g. recent edits for Gentoo vs Arch).
Ha, yeah - the Arch wiki calls it a “service manager” although OpenRC describes itself as a “dependency-based init system”. When I wrote that reply I’d started to be more pedantic about the terms but changed it to reflect my core problem that it’s not an apples-to-apples comparison to compare all of systemd to the underlying init system (you see loads of “are you using OpenRC or systemd” posts but never systemd vs sysvinit).
Both distros […] are based on the Linux kernel
Err, bad start.
The kernel section is confused or just wrong. Arch has you use pacstrap
to install a pre-built kernel (there are options from almost-vanilla to more custom), whereas Gentoo gives you the choice of using vanilla or Gentoo kernel sources (optionally with custom configuration) or just using a pre-built binary.
The Gentoo wiki used to be the gold standard, even for non-Gentoo users, but it was an unofficial wiki and a hard-drive crash (if memory serves) killed it with no backups. It was mostly restored with help after that.
Nowadays, I think more people use the Arch wiki.
Gentoo has package binaries available, although that’s a newer thing and if you use unusual USE flags you’ll need to compile your own anyway.
By default, Gentoo uses the older sysvinit system
Weird to put it this way, since Gentoo is well known for its use of OpenRC which is what you’d use instead of systemd. Both are common on Gentoo systems.
I’m stopping here - the whole article feels off, perhaps it’s AI-written? I’d recommend finding a better source.
I’m of the belief that spawning threads on demand is an anti-pattern; threads should spawn on program startup, and sleep until they have work to do.
Hmm, I need to think on this to decide whether I agree. What’s your reasoning for this opinion? Is it just based on lower latency, or is it more of an architectural/correctness thing?
Yup, I think a lot of people just use their web browser for everything, and they can definitely just switch. Outside of work, how many non-techies have set up their email to use a native program? Very few, in my experience.
I think documents are sometimes the exception, since there’s a sizable (perhaps older) group that like to use Word for everything.
Thank you and goodbye to lazy-static
, I’ll think of you every time I use a regex.
My first Gentoo install was also because it was an ageing laptop that was too slow for anything else. Luckily it wasn’t my only machine, since the install times for some things were quite long.
Thunderbird on desktop, although I don’t love it.
FairEmail on Android.
I haven’t used atuin yet, but I believe the histories from other machines is more like accessible than mixed - you don’t just hit ↑ on machine1 and see machine2 commands.
I used to have some with e-ink displays that showed how full they were, but I always wished I could use them to show a label instead.
My absolute favourite is when the examples say something like “production code should not be written like this, this is just for clarity” with no indication of what’s wrong with the code.
Is it just normal Rust stuff like there’s unwraps everywhere and it’s one big file? Does the example have security or performance problems? Is the example unidiomatic or over-verbose or is it ignoring features real-world code would use? EXPLAIN YOURSELF!
Have you tried using nix on Gentoo? I’ve heard that this is the best of both worlds: you can use Gentoo to configure your system just so, and use nix for the big binaries, the unimportant userland stuff, and nix-shell.
Token-based string distances looks like exactly what I need for my current side project - I’m using Levenshtein but I should be comparing based on words, not characters.
I just need to figure out which (if any) of these does what I need.
Edit: looks like the Python version has that information: https://github.com/life4/textdistance?tab=readme-ov-file#algorithms