
learning, building and exploring mostly tech and music
Atlantis
Joined July 2022
- Tweets871
- Following295
- Followers53
- Likes1.4K
The learning curve is at its peak right now, where people know the least but are trying to shoot for the stars
I have a stupid question @grok.
Rust is memory safe.
Rust is as fast as C.
Rust is already inside the Linux kernel.
So why are companies still starting new projects in C++?
Is Rust overhyped, or are we just slow to change?
2
110
I'm @buildwithkishu from Steel City of India
Full-stack developer, learning and building things along the way. Interested in backend and open source.
Sharing what I build, what I learn, and the journey along the way.
Let's connect 👋
What are you building?
i'm soham, 21, from kolkata 🇮🇳.
iit bombay grad. full-stack dev turned indie builder.
lost my job when the startup shut down, now building my own products full time.
sharing every launch, every dollar, every flop.
let's connect 👋
what are you building?
6
5
196
I'm done feeling guilty about it
And doing things which will carry most of us rather than thinking and worrying
How I learned C, in 8 steps:
1. Read the book - The C Programming Language by Brian Kernighan and Dennis Ritchie.
2. Consider giving up, it was so alien after years of writing Basic!
3. Tried building a project with it.
4. Consider giving up, pointers! WTF!
5. Tried building a project with it with help from an experienced software engineer.
6. Consider giving up, damn he’s so fluent, I’ll never be that good.
7. Tried building more projects in it.
8. Consider giving up, but decide to embrace the suck.
We all struggle to start with.
We all face imposter syndrome.
The secret is to start, then not quit.
4
178
Who actually follows these posts and implements what they learn? Because I do
But sometimes I feel disappointed when someone else posts the same thing with a few extra topics added, and I end up feeling lost
i really need to work on this
2
31
First task was to get a job, and that’s done.
Now the next task is to get better opportunities, which is still pending.
11
Today I learned about different ways to generate unique IDs in distributed systems
The main challenge is generating unique IDs across multiple servers without running into concurrency issues or bottlenecks
1
1
32
By mistake i tagged wrong one @airtelindia
I am getting network speeds of barely 100 kbps even though I am in an area with good network coverage please fix this @airtel
2
28
I am getting network speeds of barely 100 kbps even though I am in an area with good network coverage please fix this @airtel
The numbers are so insane that the number of servers running is reaching its limits
A Linux socket costs about 3,300 bytes of kernel memory, even when idle. A userland network stack in Rust, together with a custom runtime, reached 16 million servers on one 10 GB VM. 🦀
The article "15 million web servers on one VM" by @kaptekoguid (kapteko) is a humorous but technically clear experiment: run one web server for every person on the planet, starting with 15 million on a single VM with 10 GB of RAM and one CPU core.
The path, step by step:
→ A plain C server hits the port limit first. AnyIP, which lets a machine listen on a whole subnet, solves the addressing
→ Each process then costs about 1.5 MB, so 15 million would need around 20 TB of RAM. The answer is a custom runtime that runs the servers as sandboxed guests in one process, using LFI for isolation, with about 16 bytes of scheduling state per guest. That runtime comes from earlier articles by the same author
→ The kernel finding: a socket call allocates about 3,300 bytes whether the socket is active, listening or doing nothing. The post breaks down 3,384 bytes: tcp_sock 2,240, socket_alloc 768, file 184 and dentry 192. The author's first assumption that idle listeners would cost zero memory was wrong, and the post says so
The fix is to go lower in the network stack. smoltcp, a Rust TCP/IP stack that needs no heap allocation, handles the protocol in userland. Packet I/O comes through TUN or TAP, DPDK, or AF_XDP:
→ DPDK takes the network device from the OS and uses a busy-looping core
→ AF_XDP leaves the device with the kernel and uses an eBPF filter to route packets to userspace, so SSH keeps working
The results, from the author's benchmark:
→ With the kernel network stack, memory runs out at around 2.5 million servers, and requests per second drop as the count grows
→ With smoltcp, an idle server costs about 620 bytes and an active one about 1 KB, and the run reached 16 million servers
→ DPDK is fastest, with AF_XDP just behind
🔗 kapteko.com/15-million-webse…
#RustLang #Networking #DPDK #Systems #Rust
4
122






































