1,822 karma · joined Feb 3, 2019 (7y ago) · 645 submissions
comment 1y ago · link · parent
I’m not bothered by this news — it’d be pretty shortsighted to assume that any of these disposable AI assistants will continue to exist forever.
157.
Ask HN: How should a team collaborate on their AI agent tooling?
2 points · by physicles · 1y ago · 3 comments
comment 1y ago · link · parent
> The original computer terminals and microcomputers for which WordStar was developed, many running the CP/M operating system, did not have function keys or cursor control keys (arrow keys, Page Up/Page Down). WordStar used sequences of alphabetic keys combined with the "Control" key, which on keyboards of the time was conveniently next to the letter A in the position now usually occupied by the Caps Lock key. For touch typists, in addition, reaching the function and cursor keys generally requires them to take their fingers off the "home keys" with consequent loss of typing rhythm.
comment 1y ago · link · parent
~/.bashrc:
stty intr ^x
~/.inputrc (at the end):
"\C-v": "" # Unbind Ctrl-V
~/.config/terminator/config (in case anyone happens to be using terminator):
[keybindings]
copy = <Control>C
paste = <Control>Vcomment 1y ago · link · parent
If you’re writing a server, I believe the rule is that any once valid input must stay valid forever, so you just never delete fields. The main benefit of DisallowUnknownFields is that it makes it easier for clients to know when they’ve sent something wrong or useless.
comment 1y ago · link · parent
> Citizens of the People’s Republic of China enjoy freedom of speech, of the press, of assembly, of association, of procession and of demonstration.
comment 1y ago · link · parent
- Stored procedures are deployed separately from the code that calls them: one is a db migration, one is a k8s container deploy. And that binding isn’t strongly-typed, so there’s more thinking and double checking involved during deployment (and, heaven forbid, rollback).
- The SQL procedures duplicated some business logic and constants that are defined in some of our go core libraries. It felt good to remove that duplication.
- The procedures also had a few specific return codes. We needed to define some constants (like postgres itself does) that the go code could detect and translate into go errors. That’s more complexity.
- Maybe there’s a good SQL IDE out there, but I don’t have it, so I was writing these things in vscode with syntax highlighting. Plenty of errors that would get an immediate underline in go instead required 20 seconds to compile and run the test and interpret the error message.
- This lack of tooling, and the fact that I’m not great at SQL (I’m fairly good with queries, but not with stuff like variables and IF EXISTS that you only see in stored procedures), made it hard to use all the complexity-cutting techniques I’m used to applying in go and other languages. So the 100 line stored procedure stayed 100 lines, and everyone hated working on it.
Stored procedures are basically a cross-service API call, with all the complexities that entails. I won’t reach for them again unless there’s a technical problem that can’t be solved any other way. We don’t have a dedicated DBA so Conway’s Law doesn’t factor in.
comment 1y ago · link · parent
The only place I’ve encountered this pattern is in chromedp, the go wrapper for the chrome headless browser driver. Its API… isn’t good.
Most methods you use are package globals that take a context.Context as a first parameter. But you have to understand that this context is a _special_ one: you can’t pass any old context like context.Background(), you must pass a context you got from one of the factory methods.
If you want to specify a timeout, you use context.WithTimeout. Clever I guess, but that’s the only setting that works like that.
It’s essentially a void*.
comment 1y ago · link · parent
This works for me too. Let’s say I run into someone I met once a couple months ago. Maybe I recognized them, but I might not remember their name, and certainly don’t remember what we talked about. As soon as I can get details about where in the city the venue was, or where we were sitting in the room, then it all comes back.
I don’t have aphantasia, just a sometimes frustratingly inadequate memory.
comment 1y ago · link · parent
I loved science from when I was really young, read every book in my school library’s J523/Astronomy section, including Cosmos in 3rd grade. But I also went to church every week with my family, read through the entire Bible in middle school, and believed that my faith would crumble and I’d go to hell if I ever gave up the belief that the Bible was 100% true and literal.
I also chose to keep emotional distance from non-Christian friends. They might lead me astray.
I remember an exchange with my mom (who was a teacher, mostly at Lutheran schools) during a car ride when I was maybe 6 or 7. I was excitedly talking about the big bang or something, and she said “yes, but we know from the Bible that the earth is 6,000 years old, right?” “Yes,” I answered, and in that moment I believed it. I didn’t feel conflicted: the Bible must be true, so someday I’d figure out in what sense the science was true too.
As I got older, I sustained this by basically hand-waving away the less intuitive explanations for an old earth. There are plenty of books out there for helping people do just that. Maybe the speed of life was different in the past. What can we really say with certainty about evolution? That kind of thing.
The beginning of the end was the day I learned about dendrochronology: tree rings. They’re too simple to hand-wave away. Soon after, I lost my faith.
Another huge area of cognitive dissonance: we prayed all the time, we talked about “miracles”, but I never heard any really credible evidence for one. It took some serious introspection, while still a Christian, to discern whether I actually believed in them or not.
comment 1y ago · link · parent
That’s no longer true. And that democratizes these skills, which I agree could be a great thing.
But do you agree that it’s important for kids to learn to think critically and systematically? Because it’s super hard to stay motivated to learn those things when LLMs do that for you (and you’re too young to tell when they’re doing a bad job of it).
comment 1y ago · link · parent
We know AIs are fine for bouncing ideas off of, but they’re not senior-level architects yet.
comment 1y ago · link · parent
I wonder if this is something you could get Claude to think about by adding some rules about your business context, how it should always prefer the simplest solution no matter what.
comment 1y ago · link · parent
- Current time in a few different time zones (work is scattered around the world, and log files are always in UTC, so it's handy to have those there at a glance)
- Wifi network name. Our office has multiple wifi access points with the same SSID, so the script uses the AP's MAC address to figure out which one I'm actually connected to
- Current latency to google.com via VPN (I live in China so if internet isn't working, the VPN is always the first thing to troubleshoot)
Ones that I've thought about adding but haven't gotten around to it:
- Status of our cloud monitoring (i.e. a green square if things are OK, red square if not)
comment 1y ago · link · parent
I also used OneNote for the better part of a decade before switching to Linux in 2017. Joplin is ok-ish, but Obsidian is closer to OneNote with its folder-based layout.
comment 1y ago · link · parent
I have a background in physics and ~20 years as a software engineer in the tech industry. Astronomy and astrophysics are so reliant on code these days; is there anywhere I could volunteer my expertise just to be a code monkey and help teams be more productive when working on software?
comment 1y ago · link · parent
comment 1y ago · link · parent
No idea why the RSA key worked even though the server used RSA — maybe check into the recent cross-signing shenanigans that Let’s Encrypt had to pull to extend support for very old Android versions.