Readit News logoReadit News
perbu commented on Put SSH keys in .git to make repos USB-portable   dansjots.github.io/posts/... · Posted by u/dansjots
mnahkies · 4 days ago
I've moved to storing my keys in my password manager, using it as an ssh agent. Means clicking authorize a bit, but also means I'm running a command I'm expecting to use a key then being prompted to authorize (and if it ever prompts unexpectedly I can stop and ask why)

Hardware keys would be better, but I think this is a decent balance or security vs convenience for my needs ATM.

perbu · 4 days ago
I have the same and I'm very happy with UX, but less happy about the key leaving the machine.
perbu commented on Pricing Changes for GitHub Actions   resources.github.com/acti... · Posted by u/kevin-david
perbu · 5 days ago
The reason this makes sense, at least for Github, is because the only valid reason to run your own action runners is compliance. And if you are doing it for compliance, price doesn't really matter. You don't really have a choice.

If you've been running your runners on your own infra for cost reasons, you're not really that interesting to the Github business.

perbu commented on The C++ standard for the F-35 Fighter Jet [video]   youtube.com/watch?v=Gv4sD... · Posted by u/AareyBaba
thenobsta · 14 days ago
I wonder how these compare to high frequency training standards. It seems like they'd have similar speed/reliability/predictability requirements in the critical paths.
perbu · 14 days ago
JFS-CPP bans exceptions because you would lose control over the execution of the problem. The HFT crowds didn't like it because you'd add 10ns to a function call.

At least before we had zero-cost exceptions. These days, I suspect the HFT crowd is back to counting microseconds or milliseconds as trades are being done smarter, not faster.

perbu commented on MinIO is now in maintenance-mode   github.com/minio/minio/co... · Posted by u/hajtom
tlarkworthy · 18 days ago
?

Its like GET <namespace>/object, PUT <namespace>/object. To me its the most obvious mapping of HTTP to immutable object key value storage you could imagine.

It is bad that the control plane responses can be malformed XML (e.g keys are not escaped right if you put XML control characters in object paths) but that can be forgiven as an oversight.

Its not perfect but I don't think its a strange API at all.

perbu · 18 days ago
Last I checked the user guide to the API was 3500 pages.

3500 pages to describe upload and download, basically. That is pretty strange in my book.

perbu commented on Norway wealth fund to vote for human rights report at Microsoft, against Nadella   cnbc.com/2025/11/30/norwa... · Posted by u/saubeidl
voidfunc · 21 days ago
As a shareholder, I dont care. The line just needs to go up.
perbu · 21 days ago
You are not a sovereign wealth fund representing a whole country, though.
perbu commented on How memory maps (mmap) deliver faster file access in Go   info.varnish-software.com... · Posted by u/ingve
kragen · 2 months ago
(I do, in fact, think phk can write, maintain, and release something on his own.)
perbu · 2 months ago
He knows a lot of things and is amongst the best software developers I've worked with, but on a project like this you need a lot more breath than any single developer can bring.
perbu commented on How memory maps (mmap) deliver faster file access in Go   info.varnish-software.com... · Posted by u/ingve
benjiro · 2 months ago
> CDB is only a transport medium. The data originates in PostgreSQL and upon request, stored in CDB and transferred. Writing/freezing to CDB is faster than encoding JSON.

Might have been interesting to actually include this in the article, do you not think so? ;-)

The way the article is written, made it seen that you used cdb on edge nodes to store metadata. With no information as to what your storing / access, how, why ... This is part of the reason we have these discussions here.

perbu · 2 months ago
The post is about mmap and my somewhat successful use of it. If I've described my whole stack it would have been a small thesis and not really interesting.
perbu commented on How memory maps (mmap) deliver faster file access in Go   info.varnish-software.com... · Posted by u/ingve
karel-3d · 2 months ago
mmap is fine when you know the file fits in memory, and you need random file reads/writes of only some parts of the file. It's not magic.

It's also quite hard to debug in go, because mmaped files are not visible in pprof; whe you run out of memory, mmap starts behaving really suboptimally. And it's hard to see which file takes how much memory (again it doesn't show in pprof).

perbu · 2 months ago
random reads are ok. writes through a mmap are a disaster.
perbu commented on How memory maps (mmap) deliver faster file access in Go   info.varnish-software.com... · Posted by u/ingve
kragen · 2 months ago
You say, "Yes. When Varnish Cache launched, in 2006, I worked in a rather small OSS consultancy, which did the Linux port of Varnish Cache and provided maintenance and funding for the project."

But eventually phk left, and you came into conflict with him over the name, which was resolved by him choosing a different name for his version of Varnish?

perbu · 2 months ago
Not really.

We've been funding phks work on Varnish and Vinyl cache for 20 years. Do you think phk can write, maintain and release something on his own? Vinyl Cache cannot be a one-man-show, be real.

perbu commented on How memory maps (mmap) deliver faster file access in Go   info.varnish-software.com... · Posted by u/ingve
benjiro · 2 months ago
People are so focused on the mmap part, and the latency, that the usage is overlooked.

> The last couple of weeks I've been working on an HTTP-backed filesystem.

It feels like this is micro optimizations, that are going to get blocked anyway by the whole HTTP cycle anyway.

There is also the benchmark issue:

The enhanced CDB format seems to be focused on a read only benefits, as writes introduced a lot of latency, and issue with mmap. In other words, there is a need to freeze for the mmap, then unfreeze, write for updates, freeze for mmap ...

This cycle introduces overhead, does it not? Has this been benchmarked? Because from what i am seeing, the benefits are mostly in the frozen state (aka read only).

If the data is changed infrequently, why not just use json? No matter how slow it is, if your just going to do http requests for the directory listing, your overhead is not the actual file format.

If this enhanced file format was used as file storage, and you want to be able to fast read files, that is a different matter. Then there are ways around it with keeping "part" files where files 1 ... 1000 are in file.01, 2 ... 2000 in file.02 (thus reducing overhead from the file system). And those are memory mapped for fast reading. And where updates are invalidated files/rewrites (as i do not see any delete/vacume ability in the file format).

So, the actual benefits just for a file directory listing db escapes me.

perbu · 2 months ago
We need to support over 10M files in each folder. JSON wouldn't fare well as the lack of indices makes random access problematic. Composing a JSON file with many objects is, at least with the current JSON implementation, not feasible.

CDB is only a transport medium. The data originates in PostgreSQL and upon request, stored in CDB and transferred. Writing/freezing to CDB is faster than encoding JSON.

CDB also makes it possible to access it directly, with ranged HTTP requests. It isn't something I've implemented, but having the option to do so is nice.

u/perbu

KarmaCake day1173May 5, 2012
About
Per Buer. I cache things.
View Original