Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
josephg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
511.
▲
by
josephg
7mo ago
> I wish someone would collect stuff like this and write it down in some sort of "oral history of collab editing. I'd be very happy to contribute to this if someone wanted to do some storytelling. I also interviewed Kevin Jahns
512.
▲
by
josephg
7mo ago
We made a spreadsheet on top of OT several years ago. Most OT related documentation doesn't talk about how to do this. But it worked pretty well for us.
513.
▲
by
josephg
7mo ago
Yes, I think it would be a good paper. I made a tiny self contained implementation of this algorithm here if anyone is curious: https://github.com/josephg/crdt-from-scratch/blob/master/crd... FugueMax (o
514.
▲
by
josephg
7mo ago
Yes, exactly. I went on holiday to Cairo a few years ago. Small bribes (bashish) is 100% normal there. My tour guide was this bright 22 year old who dreamed of going to the UK to be an uber driver, so he could make enough money to get marri
515.
▲
by
josephg
8mo ago
You don't need to program in ASM or C to write a memory efficient program. Swift, Go, Rust, C++ and C# are all reasonably memory efficient at the scales we're talking about. Usually you just have to actually look at memory usage
516.
▲
by
josephg
8mo ago
> vs Signal using 193MB That’s still an order of magnitude worse than it should be. You don’t need 200mb of ram for a chat app.
517.
▲
by
josephg
8mo ago
Yep. Even the framework seems to be moving to soldered on ram.
518.
▲
by
josephg
8mo ago
Good. So many software developers have gotten so lazy with RAM usage in the past few decades. I hope the Neo is a kick in the pants to get everyone in the Apple ecosystem to take memory usage seriously. More efficient software benefits ever
519.
▲
by
josephg
8mo ago
Yeah. Also the bandwidth of modern soldered-on Mac SSDs is insane compared to where it was in the Intel era. The performance impact of moving applications in and out of swap should be much lower than it was a few years ago.
520.
▲
by
josephg
8mo ago
Sometimes I wonder if package names, bucket names, github account names and so on should use a naming scheme like discord. Eg, @sometag-xxxx where xxxx is a random 4 digit code. Its sort of a middleground between UUID account names and comp
521.
▲
by
josephg
8mo ago
> > programmers care way too much about consistency. > Indeed, it doesn’t matter too much, as long as it is consistent. Um, I think you may have missed my point. Why does it always need to be consistent? The problems you're ta
522.
▲
by
josephg
8mo ago
Personally I think a lot of programmers care way too much about consistency. It just doesn't matter that much if two files use indentation / braces slightly differently. In many cases, it just doesn't matter that much.
523.
▲
by
josephg
8mo ago
Yep this has been my experience too. I tried GPT3.5 for translating code from typescript to rust. It made many mistakes in rust. It couldn't fix borrow checker issues. The context was so small that I could only feed it small amounts of
524.
▲
by
josephg
8mo ago
I mean, yeah, I thought that was obvious. If you want to be a pedant: > Tests only pass if both implementations of your software behave the same way in the exact area being tested . As I said in my comment above. Tests are a crappy seco
525.
▲
by
josephg
8mo ago
What is untrue about this statement you quoted?
526.
▲
by
josephg
8mo ago
Yes; I think this remains true with coding agents. If you need to do some exploration of the solution space, it makes sense to do that before writing tests. Once you have a clear, workable design, you can get the agent to make a battery of
527.
▲
by
josephg
8mo ago
Testing works because tests are (essentially) a second, crappy implementation of your software. Tests only pass if both implementations of your software behave the same way. Usually that will only happen if the test and the code are both co
528.
▲
by
josephg
8mo ago
Open models do exist. They’re nowhere near aa good as frontier models, but they’re getting better all the time. It’s probably only a matter of time before open models are as good as Claude code is today.
529.
▲
by
josephg
8mo ago
How would a compiler toolchain ship a debugger for webassembly? It’s kind of impossible. The only place for a debugger is inside the browser. Just like we do now with dev tools, JavaScript, typescript and webassembly languages. > The bro
530.
▲
by
josephg
8mo ago
1. It’s not just one use case. I’m working on a product which makes heavy use of indexeddb from JavaScript for offline access. We’d love to rewrite this code into rust & webassembly, but performance might get worse if we did so because
531.
▲
by
josephg
8mo ago
> If you're going to do that at least mention it's LLM output Yes, this! Please label AI generated content. Pull request written by an AI? Label it as ai generated. Blog post? Article generated with AI? Say so! It’s ok to use A
532.
▲
by
josephg
8mo ago
That would be lovely, but I don’t think the ability to send email should be locked behind a paywall.
533.
▲
by
josephg
8mo ago
I completely agree. Right now you can point claude at any program and ask it to analyse it, write an architecture document describing all the functionality. Then clear memory and get it to code against that architecture document. You can&#x
534.
▲
by
josephg
8mo ago
Yes. I've watched some videos on wow by Kevin Jordan, who was on the original team. He said the original game was built on 3 pillars: 1. Advancement over time. 2. Player interaction. Hard content should be hard in order to push players
535.
▲
by
josephg
8mo ago
If you write program A that does something, and I look at what your program does and write program B that does the same thing, have I copied your program? So long as I didn’t copy any of the lines of code in program A directly, no. At least
536.
▲
by
josephg
8mo ago
Except nobody writes code like that. It would be horrible. Sync functions perform better than async functions, and they give more guarantees to the caller. They're strictly better, when you can use them. If you find yourself making eve
537.
▲
by
josephg
8mo ago
> It is also not fair to claim that an AI-copy is fundamentally different from photocopying. If you clean-room copy it, I think it is different. Eg, first get one agent to make a complete spec of what the program does. And a list of all
538.
▲
by
josephg
8mo ago
> You can't copyright those anymore (when written using AI), but you __can__ copyright the way they are put together. Sort of, but not really. Copyright usually applies to a specific work . You can copyright Harry Potter. But you c
539.
▲
by
josephg
8mo ago
This works a lot better in JavaScript, which is exactly this model - a single threaded executor with async await. The problem you talk about is solved with function colouring. Async functions are marked as such. In general, sync functions c
540.
▲
by
josephg
8mo ago
Those are lovely data structures and I know about them. But how are you planning on using those data structures? What CRDT are you building? You might also be interested in Alex Good's Beelay algorithm: https://www.youtube.c
More ›