←back to thread

265 points colejohnson66 | 6 comments | | HN request time: 2.075s | source | bottom
Show context
deater ◴[] No.44424644[source]
I have to say as a 6502 assembly programmer I have wasted many hours of my life tracking down the same issue in my code (forgetting to put an # in front of an immediate value and thus accidentally doing a memory access instead). Often it's like this case too where things might accidentally work some of the time.

Worse than the floating-bus in this example is when it depends on uninitialized RAM which is often consistent based on DRAM so the code will always work on your machine/emulator but won't on someone else's machine with different DRAM chips (invariably you catch this at a demoparty when it won't run on the party machine and you only have 15 minutes to fix it before your demo is about to be presented)

replies(3): >>44425118 #>>44426179 #>>44426208 #
bartread ◴[] No.44426208[source]
This is the kind of situation where feeding your code through an LLM can actually be helpful: they're really good at spotting the kind of errors/typos like this that have a profound impact but which our eyes tend to all to easily scan over/past.
replies(2): >>44426310 #>>44429212 #
1. nancyminusone ◴[] No.44426310[source]
The last time I tried an LLM on assembly, it made up instructions that didn't exist.
replies(1): >>44426883 #
2. cdelsolar ◴[] No.44426883[source]
cool; nowadays LLMs are better
replies(2): >>44427383 #>>44428266 #
3. iforgotpassword ◴[] No.44427383[source]
Today I used chatgpt for winapi stuff - it made up structs and enums regarding display config. So not too convinced it'll be any good with 6502 asm.
replies(1): >>44431877 #
4. recursive ◴[] No.44428266[source]
cool; but not better enough
5. nextaccountic ◴[] No.44431877{3}[source]
It's funny because some time ago (months? years?) people would say that you just didn't prompt the LLM well enough. But now LLMs are better and prompting isn't as arcane as before, so the next frontier is giving them the proper context. See this HN thread currently in the front page

https://news.ycombinator.com/item?id=44427757

replies(1): >>44432099 #
6. voidUpdate ◴[] No.44432099{4}[source]
You also have to be using the exact right model to get reasonable results, which is always the one you have to pay for, not the free one, and also not the one you were using