Claude, plz rewrite wordpress in rust. Yes all the plugins too. No I don't just mean the source code, I mean like, go replace everybody's wordpress install.
You don't have access, well funny thing...
Assuming no ACID guarantees (SoR is Kafka) you need an indempotency guarantee. You can do this with bounded counters (so you only pay the contention on the last units) or per-SKU keying (in Kafka you are guaranteed that for a single key you get FIFO) as an idempotency key.
Recently I interviewed a Senior Engineer.
Strong candidate.
Kafka? ✅
Redis? ✅
Microservices? ✅
Distributed systems? ✅
Then I asked:
"You're building the inventory service for a flash sale.
Only 1 item left in stock."
Two users hit “Buy Now” at the exact same millisecond.
Both requests pass the “is available?” check.
Both create an order.
Both deduct stock.
Now you’ve sold 2 items when only 1 existed.
How do you guarantee you never oversell — even with concurrent requests, client retries, and partial failures?
"Just use a database transaction."
Doesn’t fully solve it if both requests read `stock = 1` before either writes, or if the response is lost and the client retries.
"Check stock before deducting."
What happens when both checks happen at the same time?
"Use Redis DECR and reject if it goes negative."
What happens if Redis is down, or the decrement succeeds but the order is never persisted?
Your turn:
How would you design this inventory reservation API so concurrent buyers and retries never oversell the last item?
There’s a specific distributed-systems concept behind this.
And you’ll encounter it everywhere inventory, tickets, seats, coupons, and limited resources are involved.
No son propuestas, son deseos. Ni siquiera son deseos socialistas. Son deseos bastante de centro, y lo más triste es que van sin propuestas de cómo conseguirlos. Cómo va alguien a poder soñar que todo es posible si no tenéis ni el camino?
Estas son nuestras 5 propuestas para tener paz, casa y trabajo.
1️⃣Las casas son para vivir.
2️⃣Bajar el coste de la vida.
3️⃣Ni un euro para guerras.
4️⃣Subir el SMI a 1.800€ y jornada laboral de 30h.
5️⃣Proteger lo público y políticas contra el cambio climático.
🎥@_PabloFdez_
1/ We discovered something totally unexpected about the neural structure of consciousness that overturns decades of thinking on its biological basis and brings us significantly closer to the recipe for generating conscious awareness.
New preprint: https://t.co/K8BwiHXvXg (led by @HesseJanis, with @FrankLanfranchi, @_conor_mcgrory, @Yuelin_Shi, and @EngelTatiana)
@castrinho18 Buen producto para nostálgicos, y un coche con una identidad reconocible. Algo que falta muchísimo en el mercado, todos los coches mainstream son la misma carrocería y han perdido el alma
@castrinho18 Yo con llamarle al 2CV innovación no estoy de acuerdo. buen producto puede. Pero promete en 2y algo que ya te da hoy el BYD Dolphin Surf o Leap T03 por 2k menos en España. El T03 se vende por 8000€ en China (el B10 se monta en Figeruelas, pero el T03 no)
@castrinho18 Yo creo que ambas cosas pueden ser verdad. Siempre ha habido superdeportivos de todas las categorías, y el “problema que resuelven” es el de soñar con más. El 2CV es un guiño a la nostalgia muy fuerte, y un producto razonable, con más market fit.
Ben Affleck says AI is simply matrix multiplication, linear algebra and floating point calculations, and however convincingly it sounds like a person, it has nothing to do with thought, humanity or feeling
“Nor do I believe, and I think it’s important to draw the distinction between what AI does, which is simply predict the next token or the next word in a sentence, then add that word on, run it back to the machine, do a lot of computation and pick the next word."
"That is a very different thing than sentience or thought. And I think we need to be really clear about that because it can be convincingly, in an illusory way, sound like thought or like a person."
"But let’s be real clear. This is matrix multiplication. This is linear algebra. These are floating point calculations. It has nothing to do with thought, humanity, or feeling.”