Better HN
topnewbestaskshowjobs
Log inSign up

hakunin

2,515 karma · joined Mar 4, 2010 (16y ago) · 549 submissions

https://max.engineer, mastodon:ruby.social/@maxim, x.com/hakunin, bsky.app/profile/max.engineer

meet.hn/city/43.1009031,-75.2326641/City-of-Utica

---

Submissions

comment 7mo ago · link · parent

None of my `op` scripts seem to work. Looks like I can't login to the website either.

122.

1Password Is Down (Resolved)(status.1password.com ↗)

5 points · by hakunin · 7mo ago · 4 comments

comment 8mo ago · link · parent

I’ve been looking at emulation for the first time in a long time, and it also blows my mind that entire big detailed games that we played for many hours take 100-400kb total (NES) or 2-4mb (Genesis).

comment 8mo ago · link · parent

Does Github count it as copilot chat usage when you use AI search form on their website, I wonder?

comment 8mo ago · link · parent

> That's extremely rich coming from Anthropic

And funny.

comment 8mo ago · link · parent

I don’t mind blaming Anthropic, but you linked to them settling.

comment 8mo ago · link · parent

> You also didn't read

I did.

> Sounds pretty racist man.

It was.

comment 8mo ago · link · parent

> Why is it China increasing cases is evidence of struggling to you? Do you think the US is also struggling? What exactly are you talking about?

I didn't say anything about increasing cases. "a major obstacle in prosecution is corruption in courts; local protectionism and political influence prohibits effective enforcement of intellectual property laws"

> we're talking about the majority of the US history, having law that it was okay to ignore copyrights of the rest of the world.

For the majority of world history slavery was the norm. _Majority_ of history doesn't matter. What matters is the order established in recent history.

> there was no justification for invading American territories

Colonization was normalized and institutionalized at that time way more than land invasion and annexation today. It's not even close.

comment 8mo ago · link · parent

Human nature may be the same, but it differs based on context. Humans act differently in a threatening high risk, low order world than they do in a more stable, lawful world. There is normalization, because in a pre-nuclear, pre-military alliance, pre-diplomacy, pre-world-police world you had to be much more ruthless and cunning as a state. The norms for people were completely different.

comment 8mo ago · link · parent

> So you think it is "fair" […]

Maybe fair in a tit-for-tat sort of way, but not okay. That's why I called the whole situation funny. The rest of your post is answered in the sibling comment.

comment 8mo ago · link · parent

The linked wikipedia article specifically talks about China struggling to enforce Chinese law. Here's a quote:

> Despite making efforts in intellectual property protection in China, a major obstacle in prosecution is corruption in courts; local protectionism and political influence prohibits effective enforcement of intellectual property laws. To help overcome local corruption, China established specialized IP courts and sharply increased financial penalties.

> all nations in the history of mankind have been "stealing" "intellectual property" since forever

You can't use 100-400 years ago as the counterexample to what happens today. It's like justifying Russian invasion of Ukraine with colonists invading Native American territories. We're in a different world order, things that were normalized that far back shouldn't be normalized today.

comment 8mo ago · link · parent

> I think they probably acquire it in accordance with Chinese law.

You can easily look up[1] how China struggles with effective enforcement of IP laws.

And specifically for LLMs, Anthropic recently claimed that Chinese models trained on it without permission.[2]

> Who are you quoting with those marks?

Double quote marks have other uses besides direct quotes, such as signaling unusual usage.[3] In this case, talking about countries like they're squabbling kids.

> Started what?

Fishy use of others' IP, packaging others' work without attribution.

> To be fair to whom?

To US companies using Chinese LLMs without attribution.

---

[1]: https://en.wikipedia.org/wiki/Allegations_of_intellectual_pr...

[2]: https://www.reuters.com/world/china/chinese-companies-used-c...

[3]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Sig...

comment 8mo ago · link · parent

Do you think Chinese LLMs acquired training data legitimately? I think the whole situation is a bit funny, but I don't think the US "started it" to be fair.

comment 8mo ago · link · parent

> If you'd invested in Bitcoin in 2016, you'd have made a 200x return

Except you would've probably sold it at any of 1.5x, 2x, 4x, or 10x points. That's what people keep missing about this whole "early bitcoin". You couldn't tell it will 2x at 1.5x, you couldn't tell it will 4x at 2x, and so on.

comment 8mo ago · link · parent

Simple: ask "why" in a PR review, put the answer in a code comment. If there is a bigger / higher level "why", add it to git commit description. This way it's auto-maintained with code, or stays frozen at a point in time in a git commit.

More: https://max.engineer/reasons-to-leave-comment

Much more: https://max.engineer/maintainable-code

comment 9mo ago · link · parent

> they absolutely can be deterministic.

They _can_ be deterministic, but they usually _aren't_.

That said, I just tried "make me a haiku" via Gemini 3 Flash with T=0 twice in different sessions, and both times it output the same haiku. It's possible that T=0 enables deterministic mode indeed, and in that case perhaps we can treat it like a compiler.

137.

AI Orchestrators Decision Table(gist.github.com ↗)

2 points · by hakunin · 9mo ago · 1 comment

comment 10mo ago · link · parent

I don't think I'm being pedantic or narrow. Cosmic rays, power spikes, and falling cows can change the course of deterministic software. I'm saying that your "compiler" either has intentionally designed randomness (or "creativity") in it, or it doesn't. Not sure why we're acting like these are more or less deterministic. They are either deterministic or not inside normal operation of a computer.

comment 10mo ago · link · parent

I'm not using a narrow sense. There is no elasticity here. See https://en.wikipedia.org/wiki/Deterministic_system

> significant extra effort is required to make them reproducible.

Zero extra effort is required. It is reproducible. The same input produces the same output. The "my machine" in "Works on my machine" is an example of input.

> Engineering in the broader sense often deals with managing the outputs of variable systems to get known good outcomes to acceptable tolerances.

You can have unreliable AIs building a thing, with some guidance and self-course-correction. What you can't have is outcomes also verified by unreliable AIs who may be prompt-injected to say "looks good". You can't do unreliable _everything_: planning, execution, verification.

If an AI decided to code an AI-bound implementation, then even tolerance verification could be completely out of whack. Your system could pass today and fail tomorrow. It's layers and layers of moving ground. You have to put the stake down somewhere. For software, I say it has to be code. Otherwise, AI shouldn't build software, it should replace it.

That said, you can build seemingly working things on moving ground, that bring value. It's a brave new world. We're yet to see if we're heading for net gain or net loss.

comment 10mo ago · link · parent

Are you sure that it’s T=0. My comment’s first draft said “it can’t just be setting temp to zero can it?” But I felt like T is not enough. Try running the same prompt in new sessions with T=0, like “write a poem”. Will it produce the same poem each time? (I’m not where I can try it currently).

comment 10mo ago · link · parent

It helps, but it doesn't make it deterministic. LLMs could all be misled together. A different story would be if we had deterministic models, where the exact same input always results in the exact same output. I'm not sure why we don't try this tbh.

comment 10mo ago · link · parent

It’s not _more_ deterministic. It’s deterministic, period. The LLMs we use today are simply not.

comment 10mo ago · link · parent

You just described deterministic behavior. Bugs are also deterministic. You don’t get different bugs every time you compile the same code the same way. With LLMs you do.

Re: “other side” - I’m quoting the grandparent’s framing.

comment 10mo ago · link · parent

Of all the points the "other side" makes, this one seems the most incoherent. Code is deterministic, AI isn’t. We don’t have to look at assembly, because a compiler produces the same result every time.

If you only understand the code by talking to AI, you would’ve been able to ask AI “how do we do a business feature” and ai would spit out a detailed answer, for a codebase that just says “pretend there is a codebase here”. This is of course an extreme example, and you would probably notice that, but this applies at all levels.

Any detail, anywhere cannot be fully trusted. I believe everyone’s goal should be to prompt ai such that code is the source of truth, and keep the code super readable.

If ai is so capable, it’s also capable of producing clean readable code. And we should be reading all of it.

comment 10mo ago · link · parent

This is a good point, but with ai it’s a little different, because both your process and ai are getting better. You build processes that can aspirationally support inferior AIs, while at the same time AIs themselves improve and meet you half way. This thought does not help my mental well being unfortunately.

comment 10mo ago · link · parent

max.engineer - hosted on blot.im

comment 10mo ago · link · parent

Somehow, "deep state" is always there as the god of Trump's failures. The concept of "deep state" should be excised from conversation now that we can clearly see the unilateral rule of this administration. At this point, I wish there was a deep state, but unfortunately there's just Trump. His personal idiosyncrasies explain things much better than any conspiracy theory ever could.

comment 11mo ago · link · parent

Every once in a while I get an opportunity to share my 4 reasons to leave a code comment:

1. An odd business requirement (share the origin story)

2. It took research (summarize with links)

3. Multiple options were considered (justify decision)

4. Question in a code review (answer in a comment)

Important caveat for number 4: if your code can be restructured in a way that answers the question without a comment, do that instead.

This originally comes from an article[1] I wrote in 2021 titled "Writing Maintainable Code is a Communication Skill".

[1]: https://max.engineer/maintainable-code

149.

Don't Build a General Purpose API to Power Your Own Front End (4 Years Later)(max.engineer ↗)

1 points · by hakunin · 11mo ago · discuss

comment 11mo ago · link · parent

For those who build in Ruby on Rails, does htmx have an advantage over Turbo/Stimulus? For me, the sense that it doesn't is why I've been avoiding it. Prefer to stick with vanilla stack unless there's a very compelling reason not to.
1
456
19