News for hackers. Stuff that matters.
Re:Electron Fiddle: The easiest way to get started with Elec... by synergy20 on Saturday February 25, 2023 @10:56PM (#34942892)
I struggled between Flutter and Electronjs, checked at Tauri too.

Electronjs does the 3 Desktops (linux,windows,macos).

Tuari is new, serves the same user base, smaller, but you need learn Rust.

Flutter does 3 Desktops and 2 Mobile platforms(android,ios), but you need learn Dart.

While doing my own research, I eventually chose Flutter, reasons are:

    * it does 5 platforms fairly well
    * its user base keeps rising rapidly over recent years
    * dart is very much java|c++|javascript syntax alike, just simpler, picking up dart at least is much easier for me comparing to Rust.
Re:Electron Fiddle: The easiest way to get started with Elec... by rvz on Sunday February 26, 2023 @12:19AM (#34943265)
I don't see the problem with using Flutter. It has proper support from Google for all the major OSes for both Desktop and Mobile. A worthy and serious alternative to both Electron and React Native. It sits in the middle of being faster and smaller than Electron, and being more easier to pick up than Rust with Tauri.

I would rather build a desktop and mobile app using Dart with Flutter than with Rust using Tauri, especially with in a defined deadline or a rewrite.

Re:Electron Fiddle: The easiest way to get started with Elec... by Ygg2 on Sunday February 26, 2023 @03:25AM (#34943989)
I see one huge problem with Flutter. It's supported by Google. And uses Dart, which is also supported by Google. And sees very little use outside it.
Re:Electron Fiddle: The easiest way to get started with Elec... by chrisweekly on Sunday February 26, 2023 @03:50AM (#34944080)
Agreed; Dart seems like a dead end, let alone compared to Rust or Go.
Re:Electron Fiddle: The easiest way to get started with Elec... by synergy20 on Sunday February 26, 2023 @08:17AM (#34945281)
golang is also by google the same as dart though
Re:Electron Fiddle: The easiest way to get started with Elec... by chrisweekly on Sunday February 26, 2023 @04:40PM (#34949792)
Yes, but unlike Dart, Go has at least modest mainstream adoption.
Re:Electron Fiddle: The easiest way to get started with Elec... by synergy20 on Sunday February 26, 2023 @05:41PM (#34950422)
I had the same thought until one day I tried to use it to do some quick Dart coding, turns out it is very easy comparing to other languages, and it has sound null safety too, all syntax are pretty much the same as C, I like it and I hope its popularity will increase.
Re:Electron Fiddle: The easiest way to get started with Elec... by Ygg2 on Tuesday February 28, 2023 @12:15PM (#34971885)
Being a nice language, is secondary to working.
Re:Electron Fiddle: The easiest way to get started with Elec... by andybak on Wednesday March 01, 2023 @05:41AM (#34980842)
I thought Dart was close enough to Typescript to be fairly familiar (and thus less risky than a more novel language)?
Re:Electron Fiddle: The easiest way to get started with Elec... by phist_mcgee on Sunday February 26, 2023 @05:57AM (#34944619)
The lack of native scrolling really kills it for me.

Something just feels "off" when using a flutter app.

Re:Electron Fiddle: The easiest way to get started with Elec... by jatins on Sunday February 26, 2023 @07:26AM (#34945004)
Are there any popular Flutter apps in the wild?

The most popular one I have seen is Indian Google Pay (which is different from global Google pay afaik) and that app has terrible performance even on a high end device like Pixel.

Coin by Zerodha (India's biggest stock broker) is also on Flutter but again, has sluggish scrolling.

Curious if this is true for other Flutter apps in the wild or just my experience.

Re:Electron Fiddle: The easiest way to get started with Elec... by synergy20 on Sunday February 26, 2023 @08:42AM (#34945460)
https://flutter.dev/ does have an impressive list of apps, though I'm unaware any existing long-standing popular apps are rewritten in Flutter, it's more about 'if you want to write a cross platform apps today, which framework you will pick'
Re:Electron Fiddle: The easiest way to get started with Elec... by gl-prod on Sunday February 26, 2023 @12:22AM (#34943281)
May I add https://flet.dev Uses python & flutter. And https://wails.io Uses Go.
Re:Electron Fiddle: The easiest way to get started with Elec... by stoicjumbotron on Sunday February 26, 2023 @12:44AM (#34943384)
Is there any good comparison wrt to Wails and Tauri? Or is the only difference between the two is that the backend is different?
Re:Electron Fiddle: The easiest way to get started with Elec... by gl-prod on Sunday February 26, 2023 @12:51AM (#34943417)
They both use the OS' WebView to render the frontend. I only used Wails (I already knew Go) and used it to build simple desktop apps.
Re:Electron Fiddle: The easiest way to get started with Elec... by synergy20 on Sunday February 26, 2023 @08:43AM (#34945471)
wails2 has room to improve and I think it will be done in wails3, also it does not have mobile support yet, both Tauri and Wails might add mobile support in the future, using webview underneath.
Re:Electron Fiddle: The easiest way to get started with Elec... by synergy20 on Sunday February 26, 2023 @09:09AM (#34945645)
just played with flet, don't know why it mentions flutter in its home page as I saw nowhere flutter|dart is involved.

a helloworld python single binary is 28MB with pyinstaller, c libraries are shared and it is not a static executable.

it uses gstreamer underneath? not sure what that means, do I need gstreamer preinstalled on the platforms?

this seems like yet another Python based GUI framework to me(e.g. a new Tkinter), or I'm missing something fundamental.

Re:Electron Fiddle: The easiest way to get started with Elec... by gl-prod on Sunday February 26, 2023 @08:51PM (#34952019)
The UI is built with Flutter but you don't write any Dart. They ship flutter wheel in python and they plan to support other languages like "Go, C# and others are coming next"[0]

[0] https://flet.dev/roadmap

Re:Electron Fiddle: The easiest way to get started with Elec... by synergy20 on Sunday February 26, 2023 @11:18PM (#34952897)
so this is basically a flutter that does not use Dart? this is something major then.
Re:Electron Fiddle: The easiest way to get started with Elec... by heapwolf on Sunday February 26, 2023 @02:33AM (#34943794)
There is also a brand new one called Socket which is similar to Tauri but doesn’t require knowing any Rust. It does all 5 platforms and it’s just pure HTML, CSS, and JS. It’s announcing a stable release on the 15th.

https://github.com/socketsupply/socket

Re:Electron Fiddle: The easiest way to get started with Elec... by mkl on Sunday February 26, 2023 @06:35AM (#34944763)
You should probably disclose that you're the primary developer.

The name seems like a terrible idea, as it's so generic and unsearchable. It will be hard to find help with things, even if it becomes more widely used. The peer-to-peer stuff seems interesting, but the documentation is incomplete. Elsewhere the documentation says "It’s built from scratch, 1000 lines of code", but it's way more than 1000 lines (and it would have to be).

Re:Electron Fiddle: The easiest way to get started with Elec... by heapwolf on Sunday February 26, 2023 @11:14AM (#34946630)
Node or Bun are also pretty generic and unsearchable. As to the rest of your comment, as I said, it hasn't had an official release yet (due on the 15th).
Re:Electron Fiddle: The easiest way to get started with Elec... by mkl on Sunday February 26, 2023 @03:28PM (#34949034)
But socket already has a well-established meaning in software. I think even if you succeed with that name, it will be at the unnecessary cost of making network programming more difficult for everyone. It's easy to choose a unique name (even "SocketEngine" might do), and now is the time to do it.

Oh, that component is <1000 lines, got it.

Whether or not it's officially released, you are already promoting it as an alternative to much more established options, so you should expect people to compare on the same terms.

Re:Electron Fiddle: The easiest way to get started with Elec... by synergy20 on Sunday February 26, 2023 @05:38PM (#34950390)
make sense to me, node/bun/electron are common words but not so common in software, socket is a well known software term.

I still have no idea how the "socket" magic works, need to be convinced, till then I will stay with flutter for now.

Re:Electron Fiddle: The easiest way to get started with Elec... by heapwolf on Monday February 27, 2023 @03:42AM (#34954316)
We've set expectations very clearly in that it's pre-release status with the intent to compete with Electron and similar projects. Node is an extremely common word in software for example, but it's not a problem because people generally apply context to their searches.
Re:Electron Fiddle: The easiest way to get started with Elec... by garyclarke27 on Sunday February 26, 2023 @05:36AM (#34944524)
Let’s hope the regulators recent attention to Browser engine restrictions will allow Node.js and Electron to run on IOS and Android.

Would be fantastic especially for smaller software development companies that cannot afford to fund 3 dev teams.

Re:Electron Fiddle: The easiest way to get started with Elec... by adrianmonk on Sunday February 26, 2023 @09:38AM (#34945865)
I'm not aware of any browser engine restrictions on Android / Google Play. If Electron isn't running on Android, it's probably because the Electron project has chosen not to do it.

But since there are restrictions on iOS, maybe it's less appealing to bother with Android? (You'd want to be able to say you support both mobile platforms, but you wouldn't be able to. And there wouldn't be a path toward doing that that's within your control.)

Re:Electron Fiddle: The easiest way to get started with Elec... by fauigerzigerk on Sunday February 26, 2023 @07:23AM (#34944985)
Flutter is unsuitable for anything that runs on battery and needs text input.

https://github.com/flutter/flutter/issues/59327

Re:Electron Fiddle: The easiest way to get started with Elec... by michelb on Sunday February 26, 2023 @08:53AM (#34945544)
It's insane that this bug is still unfixed.