7,412 karma · joined Apr 23, 2014 (12y ago) · 3,692 submissions
comment 4d ago · link · parent
I think that's where I disagree with you. Git introduces the staging area (and stash) as separate concepts divorced from the DAG of changes. JJ just has the DAG, and nothing else. I'd say JJ is the cleaner model.
comment 1w ago · link · parent
Most of the rest of my solo projects are things where I want to learn something. Having an AI build the thing won't teach me what building the thing myself would. So AI is not particularly useful here either. Sometimes it can be good as a search tool or to provide hints, but it's mostly counterproductive.
The remaining two projects from my backlog where I just needed a tool specific to my own needs, I did with AI. They're OK, not perfect, definitely buggy, but they worked for what I wanted when I made them and none of the imperfections interfere with my use.
For my employer's projects, the backlogs are much bigger and the projects are bigger and still a lot of it can't be done solely by AI. And of course approvals become a bottleneck, but they also catch bugs. My job has legal compliance products, so we have an extensive QA & testing process which a "YOLO ship slop" approach won't work for.
comment 1w ago · link · parent
Current flowing through a conductor produces heat. This scales quadrtatically with the current, and linearly with the resistance. The resistance depends on the cross-sectional area of the conductor and its length. Long wires have more resistance for the same size of wire.
Transformers can raise the voltage & lower the current, or the opposite, in direct proportion.
So you want long-distance transmission to use the highest voltage and lowest current possible, so that the least amount of power is wasted heating up the wires, and so that you don't have to have ridiculously thick wires.
Transformer efficiency rises with frequency. Standard AC grid frequency is quite low, <100Hz everywhere in the world. For small scale utility transformers that's not a big problem, but for transmitting a lot of power the transformer efficiency matters much more. When a transformer heats up that heating happens all throughout it, but heat only dissipates on the surface, so bigger transformers get harder & harder to cool.
Recent (last decade or two) advances in semiconductor design has enabled some really big transistors which can switch a heck of a lot of power very quickly. Switching DC power on & off to create a square wave creates enough changing current that transformers can use it. Transformers don't strictly need AC, they just need changing current through them.
So it ends up being more efficient to convert AC from generators to DC, switch it on & off really fast to create a really high frequency square wave, run that through a step-up transformer designed for that high frequency, and smooth the result out with some big capacitors to clean up the DC. Then that high-voltage DC can be transmitted with relatively low losses on relatively small cables, and go through a similar process to convert down to low(er)-voltage AC at the receiving end.
That wasn't possible until recently, the transistors to switch that much power fast enough didn't exist. Thus the existing grid mostly being AC, with HVDC preferred for new lines.
comment 1w ago · link · parent
1. Don't disclose, ignore vuln. 2. Disclose to highest bidder, even criminals or state agencies. 3. Disclose to vendor, no follow up. 4. Disclose to vendor, release to public after a set delay. 5. Disclose to public.
4 & 5 are "responsible disclosure". 4 is also "coordinated disclosure". The other options ignore the ethical duty engineers have to the public.
comment 2w ago · link · parent
> Upon successful completion, crypt() shall return a pointer to the hashed password; the first two bytes of the returned value shall be those of the salt argument. Otherwise, it shall return a null pointer and set errno to indicate the error.
Musl returns '!' or '*', not null.
comment 3w ago · link · parent
Instead they spend a huge chunk of their day logging into different services through a redirect via an SSO site. They don't have to have their password manager fill in new passwords each time. IME it doesn't actually save any time.
The advantage of SSO is the organization can ensure everyone is using the same security config. They can enforce a minimum password length for SSO. They can enforce 2FA for the SSO provider. Etc.
comment 3w ago · link · parent