fluidcomputing retweeted
actor model is basically where there is no shared memory among the processes/threads (or actors).
different actors communicate by passing messages. each actor owns its state, processes one message at a time, and talks to others only via async messages. no locks.
so i started writing an actor framework in rust.
rust captures this elegantly using only the Send trait on the actor trait.
Send means the actor can be safely moved to another thread. no Sync is needed as the actor's reference is never shared across threads. only one thread ever accesses the actor, preventing data races at compile time.
there’s a strange pattern I keep seeing in high-leverage people:
they all have a secret project they’ve been quietly building for years.
not for money. not for clout. not for pitches.
something irrational. obsessive. technically impossible on paper.
a folder full of weird experiments.
a notebook of diagrams that don’t look like anything mainstream.
a prototype nobody has seen.
a system that shouldn’t work but somehow does.
every breakthrough you admire started as one of these “private delusions'
the kind people would mock if they ever saw them too early.
the kind you only build when nobody is watching.
public output is just the final 5%.
the real story is the years spent tinkering with something that made no sense to anyone else.
if you don’t have a secret project, start one.
Your Linux apps don't have to be ugly 😎
Here's a preview of SQL Studio running on Fedora 🔥
For more info & a waitlist visit: sql.studio
Three things converged:
1. Sequential execution is failing (Spectre, energy walls)
2. Hardware is diversifying (analog, neuromorphic, photonic)
3. FPGAs are cheap enough to prove it
The timing is perfect to rethink computing from scratch.
1
6
ARM Corxtex-A53
- 1.5 GHz
- Eight-stage pipeline
- ARMv8 instruction set
- Dynamic multiple issue, with two instructions per clock cycle
- Static in-order pipeline
Interested in modern CPU architectures? Head to wikichip!
en.wikichip.org/wiki/WikiChi…
Approaching QEMU, two of our critical processing elements:
1. CapMint PE: Creates hardware capabilities from base/bound/rights
2. Memory PE: Enforces those capabilities on every access
Together, they form the foundation of FLUID's security model.
1
5
fluidcomputing retweeted
I've built a custom CPU from scratch. And I've realized that manual Verilog can be a scalability trap.
The hardest part of hardware design is preventing the "drift" between your hardware and your software and other different components, while enabling different configurations.
For my CPU (Mrav), I don't manually stitch the SoC. I automate its generation.
Drawing from my experience with AI silicon projects I've worked on, I set up Bazel as the Single Source of Truth.
I define a peripheral once in a config file, and the build system automates the rest.
Generated Hardware: Writes the SystemVerilog to stitch the bus and decode addresses.
Generated Software: Creates assembly libraries with the matching address symbols.
Deployment: Compiles the firmware and embeds it directly into the RAM RTL.
If I change one line in the config, both the hardware and the software update instantly.
No drift. Just pure, generated consistency.
Here is the deep dive on how to architect this flow: popovicu.com/posts/rtl-gener…
Bought a bunch of Amazon return electronics kits from a liquidation store for $50. Finally sorting through it now. I will never need to buy another basic component again.
Can you imagine that the #SLogic32U3 CNC case was designed by #AI in 10 minutes?
What if....we would develop a CPU based on that idea...?!
Dataflow computing is a software paradigm based on the idea of representing computations as a directed graph, where nodes are computations and data flow along the edges. Dataflow can also be called stream processing or reactive programming. en.wikipedia.org/wiki/Datafl…
1
1
68
Dataflow computing is a software paradigm based on the idea of representing computations as a directed graph, where nodes are computations and data flow along the edges. Dataflow can also be called stream processing or reactive programming. en.wikipedia.org/wiki/Datafl…
The moment I realized we don't NEED a program counter:
Operations don't need to be told WHEN to run.
They just need their inputs to arrive.
That's it. That's dataflow.
And once you see it, you can't unsee it.
Docker Compose for Multi-Container Apps
→ Docker Compose is a tool that allows you to define and run multi-container applications using a single YAML configuration file.
→ Instead of running multiple docker run commands, Compose centralizes your app’s services, networks, and volumes in one place.
→ Ideal for web applications, microservices, databases, and development environments.
1. What Docker Compose Does
→ Defines all services required by your app in a docker-compose.yml file.
→ Creates isolated networks for containers to communicate internally.
→ Simplifies scaling, service linking, and environment variable management.
→ Allows one command to start or stop the entire application stack.
2. Basic Structure of docker-compose.yml
→ A minimal Compose file includes:
→ Services (containers)
→ Images or build contexts
→ Ports
→ Volumes
→ Networks
Example:
version: '3.9' services: web: image: nginx ports: - "8080:80" db: image: postgres environment: - POSTGRES_PASSWORD=secret
3. Multi-Container App Example
→ A common scenario: a web app + database.
Example:
version: '3.9' services: app: build: . ports: - "3000:3000" depends_on: - db db: image: postgres volumes: - pgdata:/var/lib/postgresql/data environment: POSTGRES_USER: admin POSTGRES_PASSWORD: secret volumes: pgdata:
→ The app waits for the db container using depends_on.
→ A persistent volume stores the database data.
4. Service Dependencies
→ depends_on ensures some containers start before others.
→ Commonly used for databases, cache services, and backend APIs.
5. Volumes with Compose
→ Volumes are declared once and reused across services.
→ Prevents data loss when containers restart.
→ Example:
volumes: pgdata:
6. Networks in Compose
→ Compose automatically creates a network so containers can communicate by name.
→ Example: the app service can reach the database at hostname db.
→ Custom network example:
networks: backend:
7. Starting and Managing the Stack
Start the entire app:
docker compose up
Run in background:
docker compose up -d
Stop containers:
docker compose down
View logs:
docker compose logs -f
Rebuild images:
docker compose up --build
8. Scaling Services
→ Compose can scale specific services when using multiple container replicas.
Example:
docker compose up --scale app=3 -d
→ Useful for load balancing and stress testing.
9. Environment Variables
→ Compose supports .env files for managing secrets and configurations.
Example .env:
APP_PORT=3000 DB_PASS=secret
Reference inside docker-compose.yml:
environment: - PASSWORD=${DB_PASS}
10. Best Use Cases for Docker Compose
→ Web apps using backend + frontend + database.
→ Microservices needing shared networks.
→ Local development environments.
→ Rapid prototyping and testing.
→ CI pipelines requiring consistent containers.
Quick tip
→ Docker Compose simplifies the orchestration of multi-container environments.
→ It centralizes configuration, automates networking, and allows efficient scaling.
→ Essential for building reliable modern applications and microservice-based systems.
Grab the Docker Handbook:
codewithdhanian.gumroad.com/…































