News for hackers. Stuff that matters.
Re:A cross-platform Markdown editor focused on speed and usa... by bestouff on Monday November 29, 2021 @12:47PM (#29382762)
Nowadays when I hear "crossplatform" I think bloated electron app. That's sad.
Re:A cross-platform Markdown editor focused on speed and usa... by tempodox on Monday November 29, 2021 @01:22PM (#29383228)
The saddest thing is that you're right — it is a bloated Electron app, almost 300 MiB uncompressed.

Compare that to the < 6 MiB for LightPaper, the app that I use on macOS.

Not to mention the security holes from the thousands (millions?) of Node modules an app like this probably contains.

Re:A cross-platform Markdown editor focused on speed and usa... by dspillett on Monday November 29, 2021 @07:01PM (#29387052)
That isn't really comparing like for like though is it, given LightPaper is _only_ available for the Mac, is a paid app (inexpensive, yes, but not free, and the site says nothing obvious about future update policies), and not open source.

If I want to make chips, fries, wedges and jackets, the fact that a cucumber has far fewer calories and goes really well in a tuna sandwich is, while true, hardly relevant!

Re:A cross-platform Markdown editor focused on speed and usa... by sacul on Tuesday November 30, 2021 @09:05AM (#29392187)
Lightpaper looks like a fantastic markdown editor! But the landing page makes me feel like it isn't getting much love from the developers. The copyright notice at the bottom, for instance, says 2019.

Any idea whether it is still getting updates?

Re:A cross-platform Markdown editor focused on speed and usa... by NmAmDa on Monday November 29, 2021 @02:51PM (#29384368)
Thank you for referring to lightpaper. It really fit my need and this was my first time to hear about that app.
Re:A cross-platform Markdown editor focused on speed and usa... by quambene on Monday November 29, 2021 @08:59PM (#29387904)
In this case, the bloatware is macOS itself with 50GB Xcode.
Re:A cross-platform Markdown editor focused on speed and usa... by yingbo on Monday November 29, 2021 @02:06PM (#29383807)
We definitely need a better crossplatform GUI framework to replace electron. Any promising one?
Re:A cross-platform Markdown editor focused on speed and usa... by quambene on Monday November 29, 2021 @08:54PM (#29387871)
Tauri looks interesting
Re:A cross-platform Markdown editor focused on speed and usa... by pjerem on Monday November 29, 2021 @01:09PM (#29383035)
I’m in the same boat but, tbf, as a developer, what are the alternatives ?

Multiplatform GUI toolkits are abandoned or still heavily tied to C++ or Java

Re:A cross-platform Markdown editor focused on speed and usa... by tagrun on Tuesday November 30, 2021 @12:20AM (#29389218)
Gtk isn't tied to C++ or Java in any way. While Qt and wxWidgets are written in C++, they aren't heavily tied to C++ either. For all these toolkits, bindings for many languages exist.
Re:A cross-platform Markdown editor focused on speed and usa... by pjerem on Tuesday November 30, 2021 @04:12AM (#29390343)
I love Gtk and Qt but they are a pain to watch on Windows and OSX (although Qt is manageable under Windows)
Re:A cross-platform Markdown editor focused on speed and usa... by bachmeier on Monday November 29, 2021 @03:41PM (#29384980)
Is there something wrong with running a local web server and opening the app in a browser tab? Not my area of expertise, so maybe it would have its own set of issues.
Re:A cross-platform Markdown editor focused on speed and usa... by dspillett on Monday November 29, 2021 @04:35PM (#29385585)
The issue for Electron is making sure the right version of Node and Chromium are available which is why each app is so big: each apps includes the version of both that they were last dev&tested against. That is why running several eats a fair amount of RAM - they have full Chromiums running, not sharing anything between them even if they are the exact version.

> Is there something wrong with running a local web server and opening the app in a browser tab?

For the average user, probably. Though for a developer targetted app probably not IMO.

For a dev, running a new enough version of Node (but, for not well maintained apps, perhaps having one that is not _too_ new around) and making sure you have a recent enough browser, is not an issue, but for beginners or completely non-technical users that is a barrier to using the app.

As access to local resources from within the browser is getting practical, I think the best common ground will have to be two versions from (mostly) the same source: a pure JS version that someone who can follow the instructions can run using already installed node and the same browser instance they use for everything else, and a memory hungry Electron version for others to install just by downloading the huge installer. And of that first version can be run as a service, or perhaps there would be a third version with extra parts not needed for either local version for that, for those who don't want to install at all.

Maybe at some point OSes/distributions/appstores will go with “we have this LTS version of Node and this LTS version of Chromium, otherwise provide your own”. That way devs could release a full cross-platform version of their app (Electron with all the baggage), and streamlined versions (no Node, no Chromium, just the app and any extra supporting libs) for Win10, Win11, Debian11, Ubuntu20.04, ..., that have been tested against the versions included with those OS options. Appstores would always get the streamlined versions because they can make sure the right version goes to each OS version they service. Perhaps there would be a combined installer: still huge as it contains everything, but it only installs and runs the app+libs if the target's standard backend & browser are found to be compatible.

Re:A cross-platform Markdown editor focused on speed and usa... by bachmeier on Tuesday November 30, 2021 @10:35AM (#29393233)
You wouldn't need to use Node if you're running it locally. It could be in any language, and in my experience, Node is in the tail for being bad about requiring specific versions. If you write it in Go, for instance, you don't have those problems.
Re:A cross-platform Markdown editor focused on speed and usa... by tylerscott on Monday November 29, 2021 @01:55PM (#29383661)
It is still very new but Flutter desktop support looks promising. I've been toying with it in my free time and it is very easy to get up and running.
Re:A cross-platform Markdown editor focused on speed and usa... by maximus-decimus on Monday November 29, 2021 @01:47PM (#29383543)
It's not Electon's fault that all other solutions are not cross-platform.
Re:A cross-platform Markdown editor focused on speed and usa... by Nicksil on Monday November 29, 2021 @01:56PM (#29383668)
>all other solutions are not cross-platform.

What makes you think this?

Re:A cross-platform Markdown editor focused on speed and usa... by threatofrain on Monday November 29, 2021 @01:57PM (#29383688)
Has Dart + Flutter taken off yet? Or does some other competitor pop into your mind?
Re:A cross-platform Markdown editor focused on speed and usa... by Nicksil on Wednesday December 01, 2021 @10:48AM (#29404895)
>Has Dart + Flutter taken off yet? Or does some other competitor pop into your mind?

Qt

Re:A cross-platform Markdown editor focused on speed and usa... by metalliqaz on Monday November 29, 2021 @03:35PM (#29384909)
I could write it in Python, or Java, or C#, and it would run everywhere that those environments run.
Re:A cross-platform Markdown editor focused on speed and usa... by soylentgraham on Monday November 29, 2021 @07:12PM (#29387129)
If your "app" is running in java, python, you need to bundle the correct runtime version. (As well as another UI framework, and all dependencies)

You're back in bloaty electron land then, no?

Re:A cross-platform Markdown editor focused on speed and usa... by metalliqaz on Friday December 03, 2021 @01:50PM (#29433619)
No, I would argue you're not. The runtime destributables for .NET and Java are not bloated like Electron. Python is worse however it's a already a built-in part of many system's package ecosystem.
Re:A cross-platform Markdown editor focused on speed and usa... by account-5 on Monday November 29, 2021 @02:59PM (#29384459)
ghostwriter is a cross platform markdown editor I use that's written in c++.