from Hacker News

Smallchat – A minimal programming example for a chat server

by kepler471 on 11/2/23, 10:40 PM with 1 comments

  • by AlbertoGP on 11/3/23, 6:48 AM

    Coincidentally, a programming video livestreamer I follow has been doing the same during the last days, but first in Go and then did the Rewrite It In Rust™ part.

    First video, for Go: “My Viewers DDoSed my Go App” https://www.youtube.com/watch?v=qmmQAAJzM54

    The RIIR series does not have yet the cleaned-up version he uploads later to YouTube but the raw Twitch streams are still available:

    > “When I uploaded the VOD the other day somebody in the comment section reminded me that, aren’t I supposed to not start any new Go projects because of all the telemetry stuff? And I realized that I completely forgot about it. And I suppose that was the plan of Google, to basically make it opt-in, make peole get comfortable, make them forget about it, and one day, one night, turn the telemetry on for everyone. That’s why we’re rewriting the whole thing in Rust. To be fair, I don’t really care that much, so if it wasn’t super-easy to do that, I wouldn’t even probably try to do that.”

    “Rewriting My Go App in Rust” https://www.twitch.tv/videos/1965033761

    “Chat is DDoS-ing me as I program in Rust” https://www.twitch.tv/videos/1965874043

    Yesterday it was about building a console/TUI (Text User Interface) client instead of using telnet: “Checking Crossterm Rust Library” https://www.twitch.tv/videos/1966704101

    Here is the code: https://github.com/tsoding/4at