HN user

eterm

7,732 karma
Posts18
Comments1,799
View on HN
richardcocks.github.io 6mo ago

Claude and Typst – Examples for AI-Assisted Document Generation [pdf]

eterm
1pts1
richardcocks.github.io 11mo ago

Performance Pitfalls in C# / .NET – List Contains

eterm
2pts4
www.youtube.com 1y ago

Yet "Another Highly Technical Talk" – Hanselman and Toub [video]

eterm
1pts1
www.oliverrees.co.uk 1y ago

Building JetClock

eterm
3pts2
richardcocks.github.io 1y ago

My stackoverflow question was closed so here's a blog post about CoreWCF

eterm
123pts186
devblogs.microsoft.com 1y ago

Asp.net Core on .NET Framework servicing release advisory: ASP.NET Core 2.3

eterm
1pts1
jason.today 2y ago

Making a Falling Sand Simulator

eterm
2pts0
richardcocks.github.io 3y ago

Generate a Large Prime

eterm
1pts0
weblog.jamisbuck.org 6y ago

Maze Generation: Weave Mazes (2011)

eterm
1pts0
news.ycombinator.com 8y ago

Ask HN: Are bug bounties leading to bad outcomes?

eterm
8pts2
alf.nu 9y ago

Zip Quine

eterm
2pts0
www.benstopford.com 11y ago

Elements of Scale: Composing and Scaling Data Platforms

eterm
1pts0
en.wikipedia.org 12y ago

Illegal Numbers

eterm
9pts0
www.theatlantic.com 12y ago

Apparently 90% of people don't know about ctrl+f

eterm
2pts0
www.theguardian.com 12y ago

Thousands of Morrisons staff personal details leaked online

eterm
1pts0
www.theguardian.com 12y ago

UK porn filter blocks game update that contained 'sex'

eterm
3pts1
www.slideshare.net 12y ago

Web server Bottlenecks and Performance Tuning [pycon-us-2012]

eterm
2pts0
www.guardian.co.uk 13y ago

BBC Weather Twitter account "Hacked"

eterm
1pts0

So now you're introducing even more processes, even more latency and complexity, and for what benefit?

Eventual consistency on users would make it difficult to do things like "WHERE !user.is_banned" when getting the stories, so you need to keep your users database tightly synchronised. Sure, you could pro-actively delete or mark comments when deleting users, but now you're risking having the ban itself fail, and have also now added a much longer write operation, as you have to mark all those comments deleted. And long running writes is the one thing you desperately need to avoid in SQLite.

And why go to all that effort when you could avoid all that effort by running a database which allows concurrent writes on the machine local to the web application?

All the benefits of machine-local latency, and all the benefits of concurrent writers and transaction isolation.

You're right, the main decline was AI, but it was on a downward trajectory anyway.

This graph shows a distinct change pre-dating AI, starting 2014, there's explosive growth which suddenly stops around then.

A soft decline which carries on until Covid caused a temporary reversal of that.

The soft decline then continues at a pace around where it was, until November 2022, when it suddenly accelerates to its death. That's ChatGPT of course.

But the site was already in decline, against the backdrop of vastly increased software developers and software development, because of hostility.

Software developers used Stackoverflow despite the hostility, because there was no alternative.

The early growth wasn't caused by the moderation, because the early moderation was a lot softer.

With WAL, you don't need read replicas, you can have lots of readers and they don't get blocked by writers.

As an aside, on replication, eventual consistency is not a panacea:

If I make this comment, it's absolutely fine if you don't see it for a minute.

If I make this comment, it's absolutely broken if I then don't see it on my subsequent requests. I'll think the site has broken, and try to resubmit my comment.

You can relatively easily work around that one by pinning people to instances, but that's still yet another thing to consider, and those kinds of considerations add up when you're dealing with distributed systems.

However, this a single instance, it's way too early to talk about replication.

Given that just hitting their front-page is taking 6+ seconds, they've got a performance problem that needs fixing, and my hunch is that they have some kind of "last accessed" database entry, which turns every request into a write.

I wouldn't expect that problem to be solved at the database layer, that's what http caches are for, then application level in-memory caches, then finally if neither of those hit, go to the database.

For example, one of the biggest optimisations that Hacker news does is that it serves logged out users from a cached copy of the front-page.

Logged out users don't care/notice about comment counts, they don't notice that it doesn't update as often, they can't be hiding articles so you can serve the same front-page to the millions of anonymous users and bots, and update that cached copy once and on a slower cadence than every request.

SQLite definitely seems like a poor choice for dealing with many concurrent requests.

Maybe it's improved since I last used it, but to my knowledge SQLite essentially forces all writes to be serialised, at risk of data corruption otherwise.

There are tricks for improving the performance such as WALs, but that is merely a performance boost rather than genuine concurrency with things like row-level locks that you might find in other databases.

I guess if the whole thing is architected with a write-through cache that handles concurrent writes and deals with serialising all the writes, then it can be a single writer streaming changes through to the database, but then you still have a point of serialisation, it just will manifest itself slightly differently.

And SQLite is something that will give you constraints you will always have to consider.

Whereas running mariadb or postgres on the same machine would deliver similar benefits without a risky migration.

If your DB is small enough to run as a SQLite database, then it probably ought to have never been on a different machine in the first place.

There is a very happy medium between SQLite and a database on a different machine, one I am continually surprised to see people ignore.

They did. It was the Soviets winning the space race that caused the USA to sink everything into the Apollo mission, to prove they could go bigger.

Russia were first to almost every other milestone, first orbit, first man in orbit, first woman in orbit, first EVA, first moon orbit, first (unmanned) moon landing, and many others.

Edited "Russians" to Soviets because lot was done by non-Russian parts of the union, my original reply just mirrored the OP use of Russians.

In really grinds my gears that the buying companies take out the debt to take over against the companies themselves.

So many well-known UK companies have been sunk by debt interest on loans taken out to acquire said companies.

By all means use the companies to secure loans, but the liability should be on the books of the parent companies not the companies being acquired!

There have even been cases where the companies have been effectively asset-stripped by "sell and lease back" of property, leaving the companies a shell of their former selves with no meaningful assets, so as soon as there are any unexpected headwinds they collapse.

AI has got better.

It read to me to be entirely generated. The lack of details that people would normally mention tripped my spidey-sense. ( Who wouldn't name-check the restaurant in the opening paragraph? )

A double check, the author appearing to take up blogging in 2023, mostly about data science, with all the tell-tale signs of generated posts.

[dead] 1 month ago

You're being too polite, it's quite clear that no human was involved.

60k is tiny, if it's making recall mistakes that early then you might have some false memories or incorrect instructions in your CLAUDE.md.

60k isn't much bigger than the system prompt.

It's funny, mine did the same, but it quickly found edge with a --screenshot parameter.

Weird to come back to a terminal running edge unprompted and the auto classifier waving it though as 'safe".

My reaction was also, "I need dev containers ".

And that includes London, it lists "excluding London" as £65k.

People overestimate how much senior devs in the UK earn, even after knowing they're not well paid, my usual response to hearing we should be earning £90k+ is, "well give us a job then"!

I'm saving this comment, thank you for a great explanation of what it is like.

I was in my late 20s when I realised I was "face-blind", but I should have realised a lot earlier, I remember reading in a book as a child about how "people can recognise a person by their face from a long distance, but find it difficult to recognise a voice", and I could not relate whatsoever to that passage.

I thought I regularly struggle to recognise someone until they start speaking, but it wasn't until a decade or two later that I read about prosopagnosia and then suddenly a lot of things made sense.

Your explanation is so much better than the rubbish illustrations of blanked or blurred faces, because it isn't like that at all, indeed sometimes I might rely on a detail about their face to recognise someone.

It's why face-blind isn't a great term either, because it's not a kind of blindness, I can see just as well as anyone, it just doesn't trip the automatic and instinctual recognition that I understand most people have.

Or you can run postgres on the same machine as the application, which lets you much more easily migrate if the time comes when you need to scale to multiple application servers.

There's a world between "local file" and "network DB server", running a DB server locally has lots of benefits from being able to easily query from outside if needed to forcing you to consider concurrency without the latency overhead of a network hop.

I can relate to being distracted for a time before a meeting and unable to focus on something else in preparation for it, but these lines stuck out in a way I can't relate:

unpleasant if I end up not liking the person Their tone, manner of speaking, their emotions. That can ruin my whole day.

Why should this person demand that they like or are liked by everyone, and why should it ruin their day to keep things professional? That sounds extremely highly-strung.