Better HN
topnewbestaskshowjobs
Log inSign up

SAI_Peregrinus

7,412 karma · joined Apr 23, 2014 (12y ago) · 3,692 submissions

email: ycombinator at eufalconimorph.com
Submissions

comment 2d ago · link · parent

Hybrid transmissions are simpler than ICE transmissions. More complex overall drivetrains than EVs, they're intermediate complexity.

comment 2d ago · link · parent

I'd label it as Arbitrary Code Execution, since it requires the target to initiate the interaction. RCEs are ACE vulns where the target responds to an attacker-initiated interaction.

comment 4d ago · link · parent

To me it's not the copying that is the problem , it's the closed-source output. Copying is fine, proprietary software isn't.

comment 4d ago · link · parent

It's a version control system that is git-compatible. It's got a simpler data model than git, and (IMO) nicer UI.

WRT the model: JJ has a DAG of mutable changes. Git has a DAG of immutable commits, a mutable staging area, and a mutable stash.

comment 4d ago · link · parent

> you are introducing sqaush/new just you get what the stage does cleanly

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 4d ago · link · parent

Another way to say it is that JJ keeps the context small, for both the user and a clanker. The mental model is simpler, it's just a DAG of changes. Unlike git there's nothing else tacked on, no extra staging area or stash to keep track of.

comment 4d ago · link · parent

Yes, it does. I've never had to re-resolve the same conflict twice.

comment 4d ago · link · parent

Yep. `jj split` says "take this change and put parts of it into a new change". `jj squash` says "take this change and put parts (or all) of it into an existing change".

comment 4d ago · link · parent

For me, with JJ:

1. I write some code.

2. I realise it makes sense to commit as two commits.

3. I run `jj split` to split it into two changes.

4. I describe (add messages) to both commits, and push them.

comment 1w ago · link · parent

When a task passes all tests, it's done. More tokens should be spent on failing runs, because most runs where tokens are used should fail. For the same reason that your lost keys are always in the last place you look for them.

comment 1w ago · link · parent

SAI's razor: Never attribute to stupidity that which is adequately explained by greed.

comment 1w ago · link · parent

A big part of that discomfort is due to the inherent differences between our economic systems' values and our social and ethical values. The former is not aligned with the latter.

comment 1w ago · link · parent

Some of my solo projects can't be done with AI. I just built a rack to hold some kayaks, I need to paint it. AI can't (currently) paint anything.

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

To briefly describe why:

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

I've long argued that usability is an aspect of security. A security mechanism that makes a system unusable is indistinguishable from a denial of service attack on that system. Usability is required for availability.

comment 1w ago · link · parent

Ticks and wasps are much, much more common than bears.

comment 1w ago · link · parent

Editions don't version the std lib, so breaking changes to library types aren't generally allowed.

comment 1w ago · link · parent

Rust can compile to dynamic libraries. If you don't use the C abi you have to compile anything that loads them with the same Rust compiler version and target triple. So you need to have some way to guarantee the correct compiler is being used, e.g. Nix or Bazel.

comment 1w ago · link · parent

Recursive Self-Improvement.

Or Repetitive Strain Injury. If LLMs acheive RSI then programmers won't have to type as much, so the risks of RSI will decrease.

comment 1w ago · link · parent

Full disclosure has always been an option.

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

musl libc violates the POSIX documented behavior of `crypt()`¹

> 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.

¹https://pubs.opengroup.org/onlinepubs/9799919799/

comment 3w ago · link · parent

Yes, chicken eggs are the bird equivalent of menstruation.

Also your alcohol is fungal secretions.

comment 3w ago · link · parent

Just noting that your honey is made of bug secretions.

Just noting that your milk is made of cow secretions.

Etc.

comment 3w ago · link · parent

I've taken to using the three-em dash⸻it's very whimsical.

comment 3w ago · link · parent

If the yacht seller would take payment in cocaine, surely the government wouldn't prohibit the transaction…

comment 3w ago · link · parent

> Otherwise employees spend a huge chunk of their working day just logging into different services.

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

Rich people take out loans against the value of their stocks. Those loans are liabilities. Then when they sell stocks (presumably after the value has increased) to repay the loans they only pay tax on the capital gains, not the total income. As long as capital gains tax + interest on loans is less than the equivalent income tax, they pay less tax.

comment 3w ago · link · parent

Flames are somewhat transparent. That's why you can see the wick of a candle through the flame that surrounds it. The same is happening here, the flame is all around the match head, not just in front.

comment 3w ago · link · parent

How are stocks not assets? They're shares of ownership in a company, without personal obligations to that company. They're certainly not liabilities. So what do you think they are?

comment 4w ago · link · parent

Χitter. Not Xitter. Use a Greek capital chi for proper pronunciation.
12345
124