Live data from Hacker News

Building a Slack/Discord alternative with Tauri/Rust

linen.dev

91–100 of 253 posts

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

#91
post #90
post #54

Earlier quoted context omitted.

Looks like Java is working pretty well for them then.

Ok the other hand jetbrains is developing new IDE - Fleet, that’s supposed to compete with VSCode - not sure if it’s written using JVM stack for that

https://blog.jetbrains.com/fleet/2022/01/fleet-below-deck-pa...

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

#93

Earlier quoted context omitted.

It's been years since I've messed with Java. OpenJDK can do all that? How big are the binaries?

OpenJDK doesn't do the AOT compilation part, you have to use GraalVM native-image for that and it's somewhat experimental for desktop apps. But otherwise it's pretty easy to bundle stuff up. 1. Go grab https://conveyor.hydraulic.dev/ (disclosure: my company makes that) 2. Run `conveyor generate {javafx,compose} my-test-project` (pick your preferred UI toolkit). You now have a JVM desktop project. 3. `./gradlew jar; c…

I’ll have to check this out.

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

#94
post #56

Earlier quoted context omitted.

It's been years since I've messed with Java. OpenJDK can do all that? How big are the binaries?

They're pretty big. I've got a fairly basic JavaFX app that's compiled with Graal, and it weighs in at 98MB, or 32MB when zipped.

Nobody is going to blink at a 98MB program being installed...

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

#95

Earlier quoted context omitted.

Figma was started in 2012, while definitely successful, it wasn't exactly built quickly . C++ on WASM is performant, but probably not super easy to bootstrap a new project on.

True but doesn't Rust support WASM? Author is using Rust.

The challenge is more in the stack. Building GUIs is tricky, and the web stack offers a lot of useful tools which make it a very good default choice from a “get shipped” perspective. Qt is nice but it sure feels like a big step back in velocity for me

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

#96
post #90
post #54

Earlier quoted context omitted.

Looks like Java is working pretty well for them then.

Ok the other hand jetbrains is developing new IDE - Fleet, that’s supposed to compete with VSCode - not sure if it’s written using JVM stack for that

While Fleet is still a JVM app at it's core, it's true that it apparently no longer uses Swing for the UI components. Instead they seem to have reinvented that wheel with their own UI component library called Noria (also JVM) and render it to the screen with Skia (a native 2D graphics library - non JVM).

Pretty fun stuff.

https://blog.jetbrains.com/fleet/2023/02/fleet-below-deck-pa...

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

#99
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.

I'm building an app using tauri. More than 70% of the code is rust. The tauri codebase itself consists of a lot of Rust code, and it's based on two substantial rust libraries for cross platform window management and cross platform webview management

That’s great to hear, thanks!

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

#100
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…

Thanks for sharing the experience.

From time to time, I go to https://www.areweguiyet.com/ to check out how rust GUI is doing.

I've heard good things about Iced framework (the one that System76 is building their DE on).

Post reply on HN