Readit News logoReadit News
francisl commented on Claude is an Electron App because we've lost native   tonsky.me/blog/fall-of-na... · Posted by u/todsacerdoti
Joeboy · 9 days ago
I find it a bit odd how much people talk up the Rust aspect of Tauri. For most cases you'll be writing a Typescript frontend and relying on boilerplate Rust + plugins for the backend. And I'd think most of the target audience would see that as a good thing.
francisl · 9 days ago
I working on a project using tauri with htmx. I know a bit uncommon. But the backend part use axum and htmx. No Js/Ts UI. It's fast, reliable and it work well. Plus its easy to share/reuse the lib with the server/web.
francisl commented on The new desktop Outlook is a bad idea   windowscentral.com/softwa... · Posted by u/thesuperbigfrog
gochi · 3 years ago
They already have MAUI. I don't have direct professional experience with it, but the message I'm getting from those who have used it, is that it's cumbersome. With people instead just sticking with XF/Uno/Avalonia (Avalonia being closer to Flutter in how it doesn't actually tap into the platform's native frameworks).
francisl · 3 years ago
Even if its cumbersome, it's still a win-win for them to use it.

The outlook app will be native desktop and mobile (except linux for now).

Plus it will give the maui project more credibility, help grow its userbase. Make the framework better by providing a real world project for the maui team to benchmark, highlighting pain point, provide in-house feedback, feature request.

francisl commented on Why Use Nim over C#?   forum.nim-lang.org/t/9957... · Posted by u/planetis
xupybd · 3 years ago
Does Nim really have no competition in the meta programming space? I assumed Haskell would do well there?
francisl · 3 years ago
swift and kotlin are slowly getting there.
francisl commented on Wails – Electron Alternative Powered by Go   github.com/wailsapp/wails... · Posted by u/wener
londons_explore · 4 years ago
Electron has a reputation for poor performance and slurping RAM...

But most of that is down to the architecture choice (using an HTML renderer) rather than the implementation.

I assume that means Wails has the same disadvantage?

francisl · 4 years ago
You must break down the part that led to that reputation.

Electron uses its own renderer (chrome). Meaning it can't share memory with the os browser and make download size way bigger. It bundles nodejs. Again make download size bigger Nodejs needs to create multiple processes which each of them can use a lot of memory. It use a bridge between the UI and backend (to do os stuff) while JS is nowaday fast, Go/Java/C#/etc are still faster

Wails on the other hand. Uses the os browser. (Download size is reduce and can share memory) Go is compiled to native, no runtime needed. (Download size is reduce, lower on memory, run faster) Same bridge performance bottleneck, but you can perform critical stuff in Go and get an advantage.

HTML renderers are fast. Code your UI with performance in mind, use a library like svelte or solidjs combine with something like wails (or anything that will do the same thing in java/c#/swift) and you won't see a difference between any native apps in most cases. Also you gain the ability to share your UI code with the web.

francisl commented on Flutter 3   docs.flutter.dev/whats-ne... · Posted by u/tosh
Mertax · 4 years ago
I think the decision of which cross platform technology to use mostly depends on a team's preferred tech stack.

C++ -> QT

C#/.NET -> MAUI/Blazor

JS/Web -> React.Native/Electron

Dart -> Flutter

This is what I think is holding back Flutter -- that it wasn't built on an incumbent technology. Because Dart doesn't have quite the following, it has to evangelize itself a bit more than the other options.

francisl · 4 years ago
Kotlin -> Jetpack Compose

> Native Android, Native iOS (KMM) and soon Desktop+Web (Compose Multiplatform)

francisl commented on Intel Core i7-12700K Review   tomshardware.com/news/int... · Posted by u/ItsTotallyOn
postalrat · 4 years ago
It looks like the M1 is less than half. That's a bit more than slightly.
francisl · 4 years ago
Are you looking at the base M1, the pro or the max?

Because the M1 Max is not less than half

https://browser.geekbench.com/v5/cpu/compare/11136167?baseli...

francisl commented on Save the planet Program in C, avoid Python, Perl   cnx-software.com/2021/11/... · Posted by u/gdrift
francisl · 4 years ago
To be more accurate, it needs one variable. - Butt(s) per feature

That includes defects,

It's one of many reasons I like new compiled/vm languages like Go, Swift, Nim F#. You got the productivity of python, but near the performance of C. User wins, dev wins and planet wins.

francisl commented on Why don’t the French celebrate Lafayette?   newyorker.com/magazine/20... · Posted by u/seattleiteite
francisl · 5 years ago
I didn't read the NY Times articles since it's paywalled.

But your translation is inaccurate. it would be more something like:

"They were decided to occupy France like an enemy territory"

It was not the French who described the liberating force as an enemy, but that the liberating for was acting like an occupying force and didn’t see the French as allied but as enemy.

You can look at the Allied Military Government of Occupied Territories (originally abbreviated AMGOT, later AMG) for more information. https://en.wikipedia.org/wiki/Allied_Military_Government_of_...

francisl commented on Tauri: Rust-based Electron alternative releases beta   tauri.studio/?hn... · Posted by u/adamnemecek
fabiospampinato · 5 years ago
Of those apps I can only say that VS Code is well written and that Spotify is junk.

Is 600mb too much for VS Code? I guess it depends on what you are doing with it and which extensions you have installed etc., if you are running a pretty bare-bones installation and seeing 1GB+ memory usages in VS Code please open an issue in their issue tracker and tag me (same username as in HN).

> Slack is much better than it was.

And that didn't happen by switching to the website approach, I think you'll be disappointed if any of these apps end up switching to Tauri or Wails without significantly improving their code too. Which is why I'd predict no major player will jump ship.

francisl · 5 years ago
for my work, vscode take between 1.5 to 2.5gb. Nothing has change since start using it 4 years ago, and my experience is consistent with my coworkers. I keep using it because it 'feels' the best overall. No magical issue will fix that, node is memory hungry as is java.

Calling an app junk to justify is argument is unconvincing. Its still a widely used app that works as good as the competition. In the case of slack, their optimisation endeavour seems to cost them quite a lot. But sure I don't have the number. If they would have start the project in Tauri or Wails at the beginning, would that saved them the refactoring? I don't now. But we will need more team using that kind of alternative to gain the knowledge and real benefit.

At this point I rewriting a toy project from electron to wails and its great. But well, it's only a toy project.

francisl commented on Tauri: Rust-based Electron alternative releases beta   tauri.studio/?hn... · Posted by u/adamnemecek
fabiospampinato · 5 years ago
> Also electron require multiple node backend services which each eat memory like crazy (based on electron app I use).

AFAIK Electron requires 1 Node instance (you can disable it for renderer processes and you can have 0 WebWorkers or only WebWorkers with Node.js disabled) which consumes like ~50MB or something like that, which probably accounts for stuff other than Node.js too, if the app you are using require multiple Node processes that use huge amounts of memory they are just badly written.

> Have one, real Multithreaded +, more efficient backend, will reduce memory and offer better performance.

You can't just share Node.js across multiple apps, Tauri just doesn't bundle it at all, which is a whole different story with mostly downsides from my point of view.

francisl · 5 years ago
> just badly written.

Ins't the easy answer. Each time a dev want to ignore valid comments.

I have the following electron app running: Spotify, Figma, VS Code, Discord, Slack. They all use more than 1 helper. Consuming between 600mb to 3.5gb.

Slack is much better than it was. But I wish they switch to something like Tauri or Wails in the future.

u/francisl

KarmaCake day43April 28, 2014View Original