Skip to content

u/oconnor663

In this archive from Dec 2012 to Dec 2025

6
posts
92
comments
1
media
622
score

The speed differences between programming languages are unlikely to matter in this sort of application. Most expensive operations are either just waiting on the network, or delegating to tools like tar/make/pacman that are written in other languages anyway. If there really are speed differences between different AUR helpers, it's more likely to be the result of different design decisions that aren't specific to the programming language used.

way easier to write and maintain

Whether Rust is easier to write than C is a bit controversial, but it's certainly true that Rust makes it easier to write "memory safe" code without any "undefined behavior", which is very important in the kernel.

20 points

I was wondering about this. If the next kernel is the LTS kernel, then isn't it just as bleeding edge as everything else? I feel like what I want (as a frequent Virtual-Machine-with-random-kernel-modules user) is a kernel version that's been in the wild for a year or so, where trivial build issues and incompatibilities have already been ironed out. LTS can't really be that thing, if the newest kernel release is also the LTS kernel. Is anything else...that thing?

3 points

I could be wrong, but I don't think the issue is memory mapping per se. (Note that --num-threads=1 doesn't disable memory mapping. There's a separate flag, --no-mmap.) I think the issue is seeking and non-sequential reads. If we implemented the parallel tree traversal bits with file handles instead of the mapped buffer, I think the result would be the same. But I admit I haven't tried it.

One thing we'd like to do in the medium term is parallelize things "from the front" rather than "from the top". So instead of saying "thread 1 gets the left half, thread two gets the right half", we'd do something like "read sequential 64 KiB chunks from the front of the file, and have threads 1 and 2 alternate hashing them." The threading overhead will be a bit higher, but I think the end result can be close to what we get today, and the sequential read order will make today's thrashing problem go away.

1 points

I want to highlight an issue we've noticed that might come up for some folks here. By default b3sum memory maps its input and uses multiple threads to hash different parts of it. That's great when the file is cached in RAM, and probably ok when it's on an SSD. But when the file's on a spinning disk and not cached (or just too big to cache), this seems to thrash the disk and tank performance. If you run into this, --num-threads=1 is a workaround. And if that does help, I'd be curious to hear about it on that linked GitHub issue if you have time to report it.

1 points

Wow, yes, that was kind of painful to read.

What's the expectation for e.g. Electron exposing these new APIs to cross-platform Electron apps? Is that going to happen?

From their wiki guidelines:

Every application should always have a primary window and this window should always be raised when the application is launched. This is important, as it ensures consistent and predictable behavior.

Dropbox doesn't have a primary window on Windows or Mac. Are they planning to invent one for Gnome? Or is the idea that the Dropbox settings panel supposed to come up every time I boot my machine? Or do they not mean "every application should always" as literally as it sounds like they do?

Incidentally, TopIcons is a great plugin, but it was also hard crashing Gnome Shell with some frequency for me in 3.24. It's not clear to me yet whether that bug is fixed in 3.26. It might be? (https://github.com/phocean/TopIcons-plus/issues/88)

7 points

It depends on how you install it. If you run makepkg to build a package and then sudo pacman -U ... to install it, then of course pacman does know about it. AUR clients like yaourt generally do this under the covers. So if you run pacman -Qs foo for your AUR package foo, you'll find that pacman does know about it. I think you were a little big vague in your question about whether you were using these methods, or whether you were doing something totally unrelated to pacman, like ./configure && make && make install.

5 points

This update bricked hosed my system. Booting stopped at "reached graphical interface" and I couldn't access any ctrl-alt-f* consoles either. I had to boot from USB and replace the proprietary nvidia drivers with nouveau, which fixed everything. Not sure about the underlying cause. Anyone else with a similar issue?

5 points

In this (interesting if not entirely practical) scenario, the attacker does two things with your laptop:

  1. installs malicious USB firmware / keyloggers
  2. copies all the encrypted data on your disk

When the attacker gets a copy of your password and boot partition in the future, they can use that to read the encrypted data they took in the past. Changing your passwords can only protect future data.

1 points

Just for the sake of a fun thought experiment, what's to stop someone from replacing your entire laptop with a clone that sends all your keystrokes and USB data to evil.com? Maybe you'll notice after you boot up and all your files are missing, but by that point the bad guy has all your secrets, and your original laptop :)

4 points

No. I think disk encryption is reasonable if you're worried about regular theft, but I don't see the point in doing fancy things with /boot. If someone's going to go through the trouble of secretly bugging my laptop, they might as well install a hardware key logger or malicious USB firmware or whatever other terrifying thing. At the end of the day you kind of have to assume your hardware is trustworthy.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.