3,034 karma · joined Dec 10, 2021 (4y ago) · 1,606 submissions
comment 2d ago · link · parent
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
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
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
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
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 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
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
|> 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
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
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
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
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
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
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
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
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
If they admit the current pace is unsustainable, they die anyway. Might as well keep building and praying for a hail Mary.
comment 2w ago · link · parent
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’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
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 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
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
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
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 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
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.