Live data from Hacker News

Building a Slack/Discord alternative with Tauri/Rust

linen.dev

111–120 of 253 posts

Re: Building a Slack/Discord alternative with Tauri/Rust

#111
Good. I've been looking for a Slack alternative

Slack's app broke the basic functionality of the main input box where the home and end keys jump to the start and end of the entire input rather than the current line. This turns simple text edits into a chore. I pointed this out to their support staff who responded that the issue wasn't important enough for them to fix. Very disappointing

Re: Building a Slack/Discord alternative with Tauri/Rust

#114

> Mac - 4.17 MB > Windows - 4.13 MB > Linux - 73.8 MB One is not like the others.

This stood out to me too. The article doesn't seem to touch on it, but I assume they have to ship more binaries to account for the vast variety of setups on Linux.

Re: Building a Slack/Discord alternative with Tauri/Rust

#115
post #86

I build and ship a production application using tauri and linux support is the most painful experience I had in a long time. They use WebKit GTK which is really not a good fondation IMO, its hard to test for all versions, its much slower than other browser, it has weird bugs. In general the idea of not shipping a browser bundle is nice, in practice it doesn't really work for a startup. It's just too much unrelated te…

I think using Electron is excusable if you are a startup, like you said your time is limited.

It's much less acceptable if you are Slack and still ship a slow bloated Electron app 10 years in.

Re: Building a Slack/Discord alternative with Tauri/Rust

#116
post #7

I remember reading about the performance-first development of Linen here on HN a few weeks ago. In that thread I also heard about Zulip for the first time. Both look good. I am not sure which to proselytize to my groups. Most groups I'm in just use Discord because of its momentum, but I really don't like Discord that much - it feels chaotic (I've learned it does have threading and maybe even forum mode now, but nobod…

We do have private teams/communities. It is actually what we use internal for work. Mobile app is on the roadmap!

Mobile should be at the top of the roadmap, TBH. No mobile is a complete show-stopper.

I think it's commendable to build a chat alternative that is snappy. But right now, it's basically going to be a sync-ed mirror with Slack for everyone.

"It is actually kind of tricky to self host since there are quite a few services that needs set up and we could use quite a bit of work in our documentation." Uh... a second-degree showstopper for people looking for Slack alternatives. We have one-click deploys for rocket.chat and Zulip on digital ocean, vercel, render, etc.

Where do you believe your adoption will come from? I ask this sincerely. What is the burning pain that will lead people to adopt linen right now?

The whole "SEO" your community is such a red herring in my opinion. There are already many Discord, Slack, etc. bots that make public discussions readable and indexable. And LLM-integrated bots that automatically summarize discussions.

Why not prioritize what's really needed in this space: a) Super easy self hosting. Make the devops/infra team happy. b) Super snappy chat clients on desktop AND mobile. Make the users much happier than the alternatives. c) API compatability with Slack, maybe also Zulip and rocket.chat. Make the devs happy and eat the lunch of your competitors by making it super easy to port apps to linen. (And, get SEO + autosummarization features for FREE)

Re: Building a Slack/Discord alternative with Tauri/Rust

#117
post #14

> Tauri is an open-source electron alternative that is built in Rust. I'm not familiar with Electron development, but isn't the code mostly JavaScript in that case? Does Rust have a meaningful contribution to the performance and the safety of the codebase here? I feel like Rust part would be "spin up the WebView". There is no code in the repository, so I couldn't check that out myself.

> Does Rust have a meaningful contribution to the performance and the safety of the codebase here? It apparently has a tremendous benefits: https://tauri.app/v1/references/benchmarks/

Very impressive.

Re: Building a Slack/Discord alternative with Tauri/Rust

#118

> Mac - 4.17 MB > Windows - 4.13 MB > Linux - 73.8 MB One is not like the others.

Maybe this:

> CAUTION

> If your app plays audio/video ... This will increase the size of the AppImage bundle to include additional gstreamer files needed for media playback.

https://tauri.app/v1/guides/building/linux/

Re: Building a Slack/Discord alternative with Tauri/Rust

#119

Good. I've been looking for a Slack alternative Slack's app broke the basic functionality of the main input box where the home and end keys jump to the start and end of the entire input rather than the current line. This turns simple text edits into a chore. I pointed this out to their support staff who responded that the issue wasn't important enough for them to fix. Very disappointing

That is my largest source of frustration with slack. It's an almost daily occurrence that results in me drafting longer messages in vscode.

Re: Building a Slack/Discord alternative with Tauri/Rust

#120
post #14

> Tauri is an open-source electron alternative that is built in Rust. I'm not familiar with Electron development, but isn't the code mostly JavaScript in that case? Does Rust have a meaningful contribution to the performance and the safety of the codebase here? I feel like Rust part would be "spin up the WebView". There is no code in the repository, so I couldn't check that out myself.

My understanding is that Tauri allows building the presentation layer with standard web tech (HTML, CSS, JS) while using the system web view to render it. This has the major benefit over Electron that you don't have to ship all of Chrome in your binary. The downside is that now you have to support the peculiarities of the system web view (Safari, Chrome, Firefox, etc.)

There is another benefit+downside: Web view can get security updates without you updating your software. But, that means your app might break at some point even if you haven't released any updates.
Post reply on HN