back

by dmitrygr·10y ago·view on hn ↗
WARNING: yes, i am going to be THAT guy...

.

.

.

It amazes me that "thousands" of users sending simple messages is considered impressive nowadays on a machine with a xxxxMHz CPU and at least xxxMB ram.

This was being done decades ago on xxMB ram and xxxMHz.

sister comment says 100MB/1K connections, 150MB for 2K, so 50KB/connection and 50MB fixed cost?!!?

-

Dump Javascript/Go/$RANDOM_LATEST_BUZZWORD_7 and learn how to program [in C] if you actually want an impressive number of users per MHz/per MB

This is doable on a Cortex-M4 and an ethernet MAC...

2 comments
Just quoted the benchmark numbers, that were observed there is no fixed cost ofcourse! Here is the deal, it's not something to impress people (specially THAT guy), but proof of concept that if you know how to implement something a RPi is enough. I also know IRC and XMPP has already done this, and these are the system that inspire modern systems like Slack (for which you will be happy to pay). This project started of for me to put my RPi to use, and you know what it's quite useful so far. So ya nobody needs to be impressed, I am just an engineer building toys to increase my experience.
The chat portion was written in Golang, so it's compiled and running on bare metal (edit: okay, PL0 or ring-3, like most software today)
not even close to bare metal...

Go runtime, GC, random userspace bits this is on top of

50MB!