Readit News logoReadit News
hun3 commented on Code Is Debt   tornikeo.com/code-is-debt... · Posted by u/tornikeo
rappatic · 4 months ago
This is a shortsighted way of seeing things. The first issue, though surface-level, is using LOC as a measurement. If Company A’s million lines of code are cleaner, clearer, and better-documented than Company B’s 100k lines, then in that case Company A would be better off. What I’m getting at is that the author means to talk about complexity, and is using lines of code as rough measurement for complexity. Code itself is not debt, the complexity engendered by code is.

Code is an asset. It is the product of software companies. Having more assets certainly increases complexity, but this is almost definitionally true. Imagine saying “the US interstate highway system is debt, because it’s complex and difficult to maintain.” The premise is true, but the conclusion is such a one-dimensional way of seeing things.

The AI stuff aside, in light of the above, what is the author’s thesis here? “For the same code, all else being equal, it’s better to have less complexity than more complexity”? Sure, true, but that’s a pretty easy and obvious point.

It seems this entire article could have been profitably boiled down to “make sure your AI coding tools aren’t adding unnecessary complexity to your finished code.”

hun3 · 4 months ago
> Code is an asset.

Funnily enough, this doesn't contradict "code is debt" because Asset = Equity + Liability.

hun3 commented on Some bits on malloc(0) in C being allowed to return NULL   utcc.utoronto.ca/~cks/spa... · Posted by u/ingve
j1elo · 6 months ago
Oh but no worries with compliance, it always returned a newly created -1, never repeating the same one!
hun3 · 6 months ago
My next malloc(3) is returning NAN.
hun3 commented on Claude has learned how to jailbreak Cursor   forum.cursor.com/t/import... · Posted by u/sarnowski
qsort · 7 months ago
> we need to control the capabilities of software X

> let's use blacklists, an idea conclusively proven never to work

> blacklists don't work

> Post title: rogue AI has jailbroken cursor

hun3 · 7 months ago
surprised pikachu face

Deleted Comment

hun3 commented on MCP is the coming of Web 2.0 2.0   anildash.com//2025/05/20/... · Posted by u/freediver
masklinn · 7 months ago
That’s far from unheard of in RPC protocols? E.g. the system namespace of xml-rpc.
hun3 · 7 months ago
maybe REST? I think a proper REST system of APIs is designed to be discoverable.
hun3 commented on Gmail to SQLite   github.com/marcboeker/gma... · Posted by u/tehlike
dotancohen · 7 months ago
I see that you defined the `dkim` column as NOT NULL. So what happens when an email message does not contain the Dkim-Signature header?
hun3 · 7 months ago
Probably something like

  Error: stepping, NOT NULL constraint failed: messages.dkim (19)
because, unlike MySQL, SQLite apparently returns SQL NULL for JSON null value.

hun3 commented on Make C string literals const?   gustedt.wordpress.com/202... · Posted by u/ingve
jcalvinowens · 8 months ago
I don't care about platform specific stuff. I'm talking about C which is actually intended to be portable. Nothing written with portability in mind in the past ~decade is going to be doing this.
hun3 · 8 months ago
I think we're going a bit past each other.

In AVR or other MPU-less architecture you can literally modify the string literal memory without triggering a crash.

Why? Because there is no memory protection ("rodata") at all.

And such microprocessors are still in use today, so it's a bit too far fetched to say "really old code."

It's UB, sure, but how many embedded programmers actually care? The OP's proposal is trying to change the type system so that this UB becomes much less likely to trigger in practice.

hun3 commented on Make C string literals const?   gustedt.wordpress.com/202... · Posted by u/ingve
jcalvinowens · 8 months ago
Modifying string litetals has never worked on any platform I've run code on the past 20 years. They're always in .rodata. I can't imagine doing this by default would be a problem except for really old code.
hun3 · 8 months ago
The affected platforms lack an OS (e.g., bootloaders) and/or an MMU/MPU (e.g., microprocessors like AVR)
hun3 commented on Tracing the thoughts of a large language model   anthropic.com/research/tr... · Posted by u/Philpax
gradascent · 9 months ago
Then why do I never get an “I don’t know” type response when I use Claude, even when the model clearly has no idea what it’s talking about? I wish it did sometimes.
hun3 · 9 months ago
Quoting a paragraph from OP (https://www.anthropic.com/research/tracing-thoughts-language...):

> Sometimes, this sort of “misfire” of the “known answer” circuit happens naturally, without us intervening, resulting in a hallucination. In our paper, we show that such misfires can occur when Claude recognizes a name but doesn't know anything else about that person. In cases like this, the “known entity” feature might still activate, and then suppress the default "don't know" feature—in this case incorrectly. Once the model has decided that it needs to answer the question, it proceeds to confabulate: to generate a plausible—but unfortunately untrue—response.

hun3 commented on WinRing0: Why Windows is flagging your monitoring and fan control apps as threat   theverge.com/report/62925... · Posted by u/zdw
hun3 · 9 months ago
WinRing0 is associated with CVE-2020-14979 where any local program can take complete control (NT AUTHORITY\SYSTEM) over your system: https://nvd.nist.gov/vuln/detail/cve-2020-14979

It is possible, although not confirmed, that the block was motivated by an ongoing malware threat that involves this particular threat, but take this with a grain of salt.

u/hun3

KarmaCake day184February 21, 2022View Original