Better HN
topnewbestaskshowjobs
Log inSign up

everforward

3,034 karma · joined Dec 10, 2021 (4y ago) · 1,606 submissions

Submissions

comment 2d ago · link · parent

Totally fair, I get that. I’m also not a hardened C dev, so maybe it would annoy me at some point. I gripe about Go’s assignment operators from time to time, but I like it on the net.

Not really Go in general, though. It’s mostly disappeared from my personal projects, in part because of their matching allergy to syntax sugar. I am incredibly tired of writing “if err != nil” blocks, and I don’t understand why there isn’t some kind of “if this function returns a non-nil error, return zero values and the error”. If only I could get something better to make a static binary. By which I mean “I like Clojure and refuse to learn SBCL because… reasons”

comment 2d ago · link · parent

I actually don't hate that part of C. You have to acknowledge it's a pointer with a different accessor. I liken it to = vs := in Go. It's an unnecessary semantic, sure, but it elevates a technical detail to be part of the syntax of the language. Go has caught me a couple of times when I forgot I had the same variable name in scope already (e.g. opening a second file descriptor and trying to name it "fd" again).

My mind equates -> to "this could be NULL" without ever looking at the function signature.

It is way more of a pain in the ass for refactors than = vs := though.

comment 2d ago · link · parent

This is semi-common in infrastructure roles. If the company self-hosts it's super normal, there's pretty much always a set of "test hardware". Some places it's separate hardware, some places it's the dev environment and everyone is used to it being a bit funky.

It happens _sometimes_ in cloud environments if you're large enough to need some kind of a test zone. E.g. at one place management wanted the dev env to be stable, so I had to test out k8s changes in a separate cluster with the apps running. I basically perpetually had access to 500 GB of RAM and 100 or so cores as long as I was willing to set the test env back up. Management probably would have loved me using it for other stuff, because what they hear is "he's going to test that our Helm charts works from scratch, and on his own time".

One of the companies would actually hand retired hardware out to their infra folks if you asked (sans hard drives, those got shredded). They had a room on the top floor with literal stacks of old decommed hardware if you wanted an old Cisco switch or an old server. I remember them switching to blade servers and being really excited for them to retire some, until I realized one of those 8 or 12 U blocks of blades required some unholy amount of power and I was going to have to do weird electrical stuff to even get them running. I don't remember exactly, but I want to say they ran on 3 phase power or some other sort of industrial power type you aren't getting at home easily.

comment 4d ago · link · parent

It's interesting (and probably correct) how much this focuses on the UI.

I also looked (/am looking) at Lisp and AI, but I went with Clojure and zero-ed in on the REPL driven development. The high level idea is that a session maps to a namespace in Clojure. When you create a new session, it makes a new namespace, injects tools that are bound to that session into it, and then swaps you into that namespace. So I can do something like:

    (new!)
    (prompt! "Write me a script that does ....")
The agent configuration, tools it has, etc, etc are all bound to the namespace so you can drop a tool or change the model just for the session.

The agent also has a tool (that I've tried to encourage it to use almost exclusively) to execute code in the session's namespace (via nREPL, so same JVM as yours is connected to), so you have full access to any variables it declares, functions it makes, etc.

The idea was to be able to work collaboratively with the agent. I can e.g. load API data into a variable, point the agent at the variable, and it does stuff. It's also capable of modifying its own code. I semi-routinely poke it by asking it to add features to the harness and then use them ("add support for subagents in this workspace, and then invoke a separate agent to handle each of these tasks"). I've also had it add support for a new inference provider, swap the session to that provider and then start doing some other task.

It's very neat, and it's wildly insecure. E.g. prompt injection could theoretically make the LLM change itself to hide messages from you, there's nothing to prevent that. I'm actually not sure how you'd even go about trying to secure that, which is why it's probably a terrible idea. Fun, though.

comment 5d ago · link · parent

Not really. Google IPOd at a market cap of ~$41B after adjusting for inflation.

In different terms, Google IPOd at a market cap ~ 10% smaller than Ford’s at the time.

Anthropic is at 50x Fords market cap. It’s over half of Googles market cap, and Google is a competitor in the same market with a dozen already successful lines of business.

They are incredibly highly valued in a way where I don’t even understand mechanically how they could grow like that without the entire financial system crumbling.

Google is up ~ 6,600% since IPO. Apply that to Anthropic and they’ll be worth something like $132T in 2048. As a point of reference, the Congressional Budget Office is predicting the US national debt to be around $102T in 2050 (paper was from 2020, might be outdated).

Anthropic, the singular company, will have to grow to be worth 130% of the entirety of the US’ debt. Napkin math says their revenue would probably have to exceed the US governments tax income. Like genuinely, Anthropic would have to become a world superpower all on its own.

They would be so big that they’re an existential threat to whatever country they call home. They would be such a large portion of the economy that central banks would lose any kind of control (presuming Anthropic doesn’t issue their own currency, they’d be a larger economy than most countries).

I can’t see how that could happen mechanically. The world would burn to the ground even trying to make it happen. If you thought Standard Oil was bad, this would be that but for every product and service in existence and all run by the same company.

comment 5d ago · link · parent

I don’t believe there’s a central coordinator (it wouldn’t be distributed then).

I think you’re missing that rooms are attached to servers, and you can join rooms that aren’t on your server.

If I go join a room with 50k people on another server, those 50k people need to pull an online status from my server and my server needs to pull all of theirs.

Multiply that by all the rooms 50k people have joined and you get a _lot_ of messages bouncing around.

It’s sort of hard to optimize without either a central and implicitly trusted cache, or giving up on trust entirely. Central cache is sort of obvious. You could go peer to peer but then you have to deal with “what if somebody modified their server to issue forged updates”. You could maybe sign them but I’m not sure how anyone would validate that without getting a pubkey from your server and now we’re back to scaling problems and have a new “storing a million pubkeys” storage issue.

comment 6d ago · link · parent

It’s wild because the ability to identify your citizens is one of the only core competencies that spans basically every form and manner of governance, from a huge country’s government to city council.

Like virtually every other function of government first requires establishing who someone is and whether they’re a citizen.

It’s shocking to give that up. If ID.me decides tomorrow they don’t actually like the US government (crazy, but crazy happens sometimes), think about how many US systems just stop working because they can’t tell if you are you or even a citizen.

comment 6d ago · link · parent

It can, but the typical usage I’m used to is far less structured and need not involve the value having the same type at every point. Eg something like

|> docker.listContainers() filter(x => x.name == “something”) first getNetwork getIpAddress toString ping

(ignore that some of these should be chained and some should be arguments, I haven’t read the proposal fully)

They’re doubly nice in Clojure because of the lazy evaluation. You can map a pipeline over a list and it will evaluate one at a time rather than pre-evaluating and allocating memory for the whole thing.

comment 1w ago · link · parent

I reckon we’ll see the opposite.

This is the first time “open source” has meant anything other than “probably free” to the average person.

I constantly hear people complain about UIs. You know who probably makes a great UI for non-technical retirees? A non-technical retiree. They’ll probably start from forking an OSS project, though.

I think the really clever folks will move up to building vim/emacs/Firefox esque apps that are heavily scriptable, and your weekend OSS projects will be done by non-technical folks who just want something really specific.

comment 1w ago · link · parent

Sensible people largely invest in index funds or retirement accounts, which this wouldn’t prevent.

Practically every single one of these proposals only restricts your ability to buy and trade a particular stock. You can still trade stocks, you can still have an account manager, you can still tell them you want more exposure to solar, you just can’t tell them you want to buy RandomSolarCo by 4pm Thursday.

comment 1w ago · link · parent

My understanding (which may be wrong) is that English is best but most of the Romance languages do okay because English has borrowed from them so much.

I think you only start getting seriously bad impacts in non-Romance languages where they have their own alphabet, or use the English alphabet phonetically causing letters to appear next to each other that never would in English. E.g. in English "qu" is a pretty obvious token, you rarely see a Q without a U after it. Happens all the time in anglicized Middle Eastern words, though. Quran is like a whole other thing, you'd almost always expect another vowel after qu, not a consonant.

comment 1w ago · link · parent

I’m actually genuinely curious about this as well. I’m saturated at low single digits where I run out of things I actually want.

Like I could definitely find ways to do it if someone is paying me to burn tokens (have 5 of the agents come up with busywork for the rest).

I had my agent add OpenRouter support and provider toggling and it took 15 minutes-ish on a single agent.

Some of me wonders if these are just deeply unoptimized projects and agent harnesses burning tokens because it sounds fancy. I can’t imagine why you would ever need 200 agents for a normal codebase unless 200 agents was the goal or the codebase is an absolute nightmare.

comment 1w ago · link · parent

Fair enough, I’m not here to tell anyone how to spend their time and money. I have 2 of their voice satellites because I was too lazy to solder that much haha.

comment 1w ago · link · parent

It will, but it does so by burning tokens. I'm sure you've also seen the output of an overly eager grep by an LLM.

I think we're verging on the point where people will care more about the most token-efficient ways to do a task than the lowest human effort version. Humans are expensive, humans using half as many tokens are cheaper.

comment 1w ago · link · parent

I can't read the article because of the paywall, but from what I can grasp it's sort of a "generic GPIO controller".

Offhand, I'd be a little worried that it could be replicated for way cheaper with any run-of-the-mill LLM agent and an esp32. I've done some esp32 dev with LLMs and they don't really struggle with it, and I'm suspicious this is going to be way more expensive than "esp32 + random GPIO peripheral from 30 years ago".

The examples in the article feel like something any semi-modern LLM could one-shot, but I can't read it so maybe I'm underestimating the complexity.

comment 1w ago · link · parent

It 100% should be covered in the event the user is okay with the equivalent of a factory reset (they lose all their data). I agree Apple isn't on the hook for restoring the data you saved with a sketchy mod, but restoring the phone to factory functionality is 100% their problem.

I struggle to think of a reason why a phone can't be factory reset to fix those issues that doesn't involve "the manufacturer fucked around trying to prevent 3rd party changes". It's their problem and fault if their attempts to prevent 3rd party software ended up bricking the phone. I can't be bothered to give a shit that they've done weird things to the bootloader and now it won't boot because the bootloader doesn't have the right magic keys. Fix it or issue a refund, it's their software breaking the damn thing.

That does exclude "your software physically burnt out hardware" but that's such a rare occurrence it's practically not worth mentioning. I can't remember the last time I heard of a ROM that physically killed a part.

comment 1w ago · link · parent

Are you serious? There's a very high chance of a divorce in his near future, and it doesn't take a rocket surgeon to predict the impact it will have on his work performance.

Morality aside, he's about to enter a _rough_ era of his personal life. Unless you think his wife is going to accept a _second_ public affair, and not even with some sort of governmental honeypot.

If you believe CEOs significantly impact stock price, this is a clear indicator that quality is about to nosedive. I don't particularly ascribe to that belief, but a lot of the market does, and this is sort of a "duh" moment for them.

comment 1w ago · link · parent

I think the more spelled out version of this is "our existing debt is tied to our equity in some way so we have to maintain our unicorn valuation, and the unicorns are building AI infrastructure".

If they admit the current pace is unsustainable, they die anyway. Might as well keep building and praying for a hail Mary.

comment 1w ago · link · parent

I’ve toyed with the idea of splitting a deeply nested tree of code into separate libraries for this.

First impression is that it’s a net negative. It gets a lot better at working within that library, and much worse at making it work within the project as a whole.

comment 2w ago · link · parent

I’ve been going sort of hybrid and using more targeted prompts. I skeleton the API most of the way and have the LLM fill it in and implement. This is at the code level, not the HTTP API.

Most of the time, anyways.

It keeps me in the code enough to feel the friction of bad APIs but high enough that I’m not reviewing every line of code.

I also try to scope my reviews to only the intersections between systems (SQL schema, library APIs, CLI flags, etc).

I’ve got nothing on the tests. Mine writes a million of them. Some are brilliant, some are stupid.

Like it once did TDD by storing transformations to the same base object in a list rather than specifying the whole object. Clever.

The very next test was an arity test to make sure it threw errors if you gave the function the wrong number of arguments. In a webapp, not a compiler or something. Stupid. Do not unit test the language’s runtime lol

comment 2w ago · link · parent

I think one-shorting avoids some of it because most of the project should still be in context.

I’ve noticed because I’ve been doing Clojure and turns are taking notably longer due to unit tests because it doesn’t really grok its own system anymore. It is like 20k LoC at this point with unit tests lol

comment 2w ago · link · parent

My experience has been that cruft accumulates and creates back pressure via growing token usage.

The APIs aren’t clean, which creates indirections to other parts of the codebase to check on leaking abstractions. It doesn’t learn, though, so you pay for those indirections every time (right now, anyways).

I’ve not been impressed with its ability to clean that up with a generic “make it gud” kind of prompt. I have to point it at something crufty, but it will fix it then

comment 2w ago · link · parent

The notes and code are usually tied together, and putting them in separate repos just forces you to sync them.

The notes for v1 probably don’t apply to v2.

Maybe different if you’re doing a global memory instead of a per-project memory.

comment 2w ago · link · parent

The simplest I’ve found is to add instructions to the AGENTS.md telling it to keep a knowledge base in a directory and refer to it. You could add a hook or something to use the AWS CLI to sync the dir to S3.

The agent actually did pretty well managing and searching it with grep.

A lot of these memory systems are reaching for the stars and I sort of suspect we’re way past the Pareto point for coding there.

comment 2w ago · link · parent

Legalizing weed was an inside job to sell WeGovy! Kidding, but the timing is a touch funny.

comment 2w ago · link · parent

From the infra side, it’s something I don’t think makes a lot of sense to self-host. Metrics are the other notable one here.

They have non-linear scaling complexity, so they work fine with bumping up resources until they don’t and now you’re looking at queueing metrics on Kafka or something equally complicated. They’re horrible to change out because a lot of the APIs aren’t compatible and literally everything uses them.

They’re also awful to maintain. Everything uses them so there’s never a window when it’s convenient to shut down the feature flag system for upgrades or to test backup restores. People are much more accepting of “the vendor will be down for 2 hours on Saturday” than “I’m taking the system down for 2 hours on Saturday”.

comment 2w ago · link · parent

No, it's probably scary even for those folks.

Most obviously, the economy tanking usually means a recession and unemployment doesn't care what you're invested in.

The long-tail risk is that the US and China are heavily exposed to this risk, and the US gov't is already having to pay out more for bonds. A big hit to the economy could raise that even further, and we're not in the best state as a nation to tackle the intricacies of "we spend more than we can afford to, but we can't afford to borrow more money". That seems likely to end up where France currently is, and they appear to be trending towards a crisis.

comment 2w ago · link · parent

No, the banking system just runs so perennially behind the times that they suffer from baroque issues that no one else has had in 20 years.

Eg the above example; how is it possible to send money without knowing who the other side is? I can trivially look up a domain name and see registration info, I can look up the IP to see who it’s registered to, I can check certs to see if they’re valid and legit.

It’s bizarre how normal we think it is to send large sums to random strings of digits that we think are Amazon or the IRS with basically 0 way to validate them.

I bought a house in cash and putting the money in escrow was unbelievably stressful. They send me numbers, on a printout that’s a scan of a scan of a scan with text that says “call to make sure this is still the right account number”, and a bajillion warnings to make sure the number is right or vague and terrible things might happen.

Insanity that I can get insanely complicated gadgets shipped to my house in 4 hours but we don’t have a better way to move 6 figure sums than “double check your numbers”.

comment 2w ago · link · parent

I've actually been doing this in Clojure and that avoids the major pitfall I've seen: the interfaces it makes are clunky. Re-using an existing library starts with a sane interface.

I've seen the same thing in Go, for what it's worth.

The code totally works, I'm not a denier there, but the interfaces are heinous if you don't keep an eye out. Mine wrote a Go function that passed a name variable as a string, but also embedded in 2 separate structs that were arguments. I've also seen it do re-validation of data multiple times in internal functions so everything has to return an error.

It's also stuff that sort of doesn't matter if an LLM is the only user. It probably costs some extra quantity of tokens, but not enough to be worth hand-grooming the code.

comment 2w ago · link · parent

I hear you, but humans are incredibly bad at context switching like that.

Near the point where things become minorly safety critical, people will blur the line. The point where safety kicks in moves a little further out, and we start blurring the lines again.

There’s a reason the FAA is anal-retentive about things with only very minor safety implications, like the in-flight entertainment system or turning on airplane mode. It helps prevent complacency where it actually really does matter.

You either do it the right way 100% of the time, or I’m not taking bets that you’ll do it right on a particular occasion.

> eventually I realized that if I didn't get things out of the door, my company would start losing money and I'd lose my job.

This is like 90% because most tech is different enough that civil torts don’t exist for them yet, so they don’t have to care.

Eg if Google deletes all your photos they kind of just shrug and you’re out of luck. If I deposited photos at a bank who burned them without notice or approval, they’re on the hook for that.

The law will eventually catch up and acknowledge that bits can have value. Then everyone will have to care again.

12345
54