For reference, an RSS reader I threw together using standard Cocoa widgets will hit 50-60MB with no issues, and that's with my being annoyingly judicious with how it's built.
Why do you need an HTML renderer? Slack uses Markdown.
emacs-slack is pretty lightweight …
Because it's objectively easier to do cross-platform GUI development using a single, well-defined and portable API that someone else maintains.
That that API is nowadays de-facto WebKit supporting a HTML/CSS/JS stack is a natural, but unfortunate choice, and it's got a much lower barrier of entry and much less maintenance overhead than, say, Gtk+ or Qt.
The job of programming isn't to reinvent the wheel everywhere, it's just to deliver a product that doesn't suck - with native code, you're implementing a native solution for each feature Slack has or adds. Slack's content is web content.
You're really arguing that an insane amount of extra engineering time should be spent to conserve, at best, an extra 40-50MB of RAM... and this is disregarding how modern RAM works anyway.
That's the underlying issue. If the "protocol" uses HTML, all clients will need to embed a web view.
* - Unless you're using the (older, I believe) Telegram Desktop client, which is different from... Telegram.
Which clearly links source as: https://github.com/overtake/TelegramSwift
Nobody I know on OS X would use the Qt one as it feels really out of place... I guess if you cared about ricing out your desktop or something.
edit: 200MB installer compared to 30MB for the "Telegram Desktop".
At work, one of my projects is a cross-platform scientific C++/Qt application. It is currently open, and with 5 charts (hundreds of data points each) and a full-blown interactive 3D representation of a model, it sits at 160 MB.
Seriously, I understand the trade-offs of writing HTML+JS vs. C++, but at some point we must start taking into account the amount of waste (energy, resources) that hybrid apps create.
Also, a chat app is generally not the "main" application and should strive not to deprive the system of its working memory.
But, hey, that's just my opinion. Luckily your users agree with you (looks like many of Slack's don't!).