News for hackers. Stuff that matters.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by thinkingemote on Tuesday February 06, 2024 @04:58AM (#39272641)
I would like to see Positron rebooted. Positron is to Firefox what electron is to chromium.

https://mykzilla.org/2017/03/08/positron-discontinued/

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by bouk on Tuesday February 06, 2024 @07:05AM (#39273352)
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by DarkUranium on Tuesday February 06, 2024 @07:30AM (#39273502)
Honestly, what I would like to see more than "Electron, but Gecko" would be "Chromium Embedded Framework, but Gecko".

It exists for Android, but not desktop (judging by a number of dead links, it looks like it used to exist for desktop).

(or s/Gecko/Servo/ if desired)

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by zerr on Tuesday February 06, 2024 @06:53AM (#39273288)
Thunderbird is developed on top of Firefox.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jraph on Tuesday February 06, 2024 @07:42AM (#39273586)
Yep, but it seems to be a PITA. They endure whatever changes happen on Firefox UI, which are well tested on Firefox, but not on Thunderbird and Thunderbird has much more UI to manage than Firefox. See this interesting Thunderbird talk at FOSDEM on visual change that mentions this issue [1].

You also kinda have to fork Firefox to do this. It would be good to be able to #include <gecko-embedded-framework.h> and build the UI from there. XULRunner seemed nice too.

Using Gecko when you are not Firefox is such a pain that

- all alternative browsers that are not forks of Firefox that were based on Gecko have abandoned: they stopped being maintained, or switched to WebKit or Blink, which is a shame.

- all apps based on XUL / Gecko, like Songbird, have mostly disappeared.

It needs to be easier.

Gecko seems like a drag for Thunderbird. It shouldn't. For this, it needs to be a proper toolkit, with stability guarantees, and proper support to third party apps, and easily reusable. That's not the focus for Firefox devs though.

[1] https://fosdem.org/2024/schedule/event/fosdem-2024-2728-thun...

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by niutech on Wednesday February 07, 2024 @09:14PM (#39297011)
> all alternative browsers that are not forks of Firefox that were based on Gecko have abandoned: they stopped being maintained, or switched to WebKit or Blink, which is a shame.

Which browsers? Pale Moon, Basilisk, K-Meleon are still being developed.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jraph on Friday February 09, 2024 @10:01AM (#39315441)
They are all kind of pre-multiprocess/Rust Firefox forks. It seems Pale Moon has forked Gecko into Goanna and made it embeddable (which is neat!) and that's what K-Meleon uses too. Which I didn't know.

Is Goanna on part with web standards? Maintaining what seems basically a folk of an old Gecko must be hard.

It also kinda validates my point: using Gecko elsewhere is a PITA. You have to work hard to make it embeddable.

To answer your question, Gnome Web / Epiphany was once based to Gecko. It switched to WebKit because using Gecko was harder and harder. Konqueror optionally allowed you to use Gecko, but that stopped being possible a long time ago for the same reason. Galeon and Camino both died a long time ago.

Brave, Vivaldi & Co picked Chromium instead of Gecko. With Eich coming from Mozilla, I think Brave considered Gecko but that was deemed too hard.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by coffeeling on Wednesday February 14, 2024 @07:02AM (#39368891)
Brave was originally based on a Gecko-based Electron-alike. I think it was called Muon?
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by niutech on Friday February 16, 2024 @04:15AM (#39394859)
No, it was based on Blink: https://github.com/brave/muon
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by BrendanEich on Wednesday February 21, 2024 @11:34AM (#39455963)
Muon was our Electron fork (μ− is heavy e-), but Brave started on Gecko:

https://brianbondy.com/blog/174/the-road-to-brave-10

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by kwhitefoot on Tuesday February 06, 2024 @07:12AM (#39273400)
Is it based on the current version? I though it was based on the old XUL based Firefox.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by zerr on Tuesday February 06, 2024 @07:20AM (#39273448)
They've moved (or still moving?) from XUL to a regular HTML/CSS/JS stack.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jraph on Tuesday February 06, 2024 @07:35AM (#39273531)
They are tracking recent versions of Firefox.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by stefanos82 on Tuesday February 06, 2024 @05:28AM (#39272812)
How about quickjs or tauri?
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jojobas on Tuesday February 06, 2024 @06:49AM (#39273265)
Yeah, it's an awesome idea to waste few hundred megabytes of RAM to run your app.

This browser-in-a-box cancer needs to die a painful death.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by pquki4 on Tuesday February 06, 2024 @08:07AM (#39273789)
And you won't get Skype, Slack, Teams and many other applications people use on a daily basis on Linux, at all. Features on Mac will be limited compared to Windows version, because the team prioritizes work on the platform with the largest userbase. There will be more inconsistencies in feature and UI for "desktop" version vs web version, if companies still bother to maintain two versions.

That's the future you want to see, huh?

Have you developed a cross-platform desktop application in the last few years and make sure everything works on every platform? Probably not. If there is a way to make it easy, cheap, reliable to support multiple platforms and the solution takes little system resources, I'm sure everyone will want to do that. Before that happens, stop your wasting complaining about the Electorn mode of making apps. This will not change. It is the only thing that makes business sense and make developers' life easy at this time.

Or to put it simply, are you going to pay for the extra cost used for developing "native" applications for each platform? Put your money where your mouth is.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by chriswarbo on Tuesday February 06, 2024 @08:50AM (#39274133)
Seems a bit weird to use Skype as your example, since (a) it already had a native application for Linux, (b) AFAIK it was the same (Qt) codebase as Windows and Mac, so no feature discrepancy, and (c) Skype also developed clients for other operating systems like Symbian, Android, Blackberry, etc. as well as a Java-based client for other mobiles.

If anything, it's easier to develop cross-platform native applications these days, since the mobile space has mostly collapsed to just Android + iOS.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by steve_rambo on Tuesday February 06, 2024 @09:09AM (#39274297)
Telegram manages just fine, and looks the same on all platforms. I even ran it on FreeBSD for a few weeks with no issues. Their desktop client is developed pretty much by one person in C++ with Qt. It's really feature rich these days and actually works, unlike some of the things you've listed.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by pxc on Tuesday February 06, 2024 @09:43AM (#39274702)
Doesn't Telegram use a web view via QtWebkit?
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by niutech on Wednesday February 07, 2024 @09:50PM (#39297347)
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by niutech on Wednesday February 07, 2024 @09:45PM (#39297302)
Have a look at many cross-platform native apps like Jami, Pidgin, VNC, XnView - all made with Qt/GTK+.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by phantomathkg on Tuesday February 06, 2024 @07:04AM (#39273348)
You can write performant app if you want. But why stopping other on what they want to do?
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jojobas on Tuesday February 06, 2024 @07:05AM (#39273355)
Because your average Joe doesn't know the difference and the race to the bottom affects everyone.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by KronisLV on Tuesday February 06, 2024 @09:11AM (#39274318)
> Because your average Joe doesn't know the difference and the race to the bottom affects everyone.

Would it be possible that the average Joe is more familiar with a web stack vs a native or cross platform desktop stack?

Is it not possible that the difference therefore might be between:

  - having a questionably performing app built on web technologies
  - vs a buggy one that's built on a native/cross-platform stack, or even not having one altogether because they can't build with that tech
as opposed to:

  - having a questionably performing app built on web technologies
  - having an awesome native/cross-platform app that runs better and respects the OS design
Or, who knows, maybe it's just cheaper to use web tech and those other options have failed to make themselves as easy to get started with and work on, especially when you're looking for good cross platform options that would run nearly everywhere and be popular enough to have tooling and tutorials.

It's the same how something like Rust might be a good fit for writing correct web applications, but very few people actually use it for that and might instead reach for something like Python because that lets them iterate faster, even if neither the type system, nor the performance is great.

Actually, who knows, maybe the problem is not that there's not enough "good software" out there, but rather that different people have wildly different views on what matters, in addition to there just being too much software in general.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jojobas on Tuesday February 06, 2024 @06:38PM (#39282472)
Your notion that browser-based apps are somehow bug-free is absurd.

Skype on Linux, for one, keeps the microphone open after a call, forever.

The issue has been known for more than 2 years.

I'd say Electron adds no value with respect to fighting bugs other than containing the consequences in the browser sandbox.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by KronisLV on Wednesday February 07, 2024 @08:35AM (#39288348)
> Your notion that browser-based apps are somehow bug-free is absurd.

My notion is that more people are familiar with using the web stack, than any other alternative.

Out of curiosity, I perused some local job boards: out of about 50 technical role ads that I looked through, 4 were embedded or desktop development, there were some DevOps and ML related roles in the middle, but the majority were web development.

If that's the set of technologies and the languages that people are familiar with (high abstraction level, no manual memory management), then attempting to use these "performant" options obviously wouldn't turn out well, due to a lack of skill, familiarity and/or user experience of that tooling.

I mean, in an ideal world, GUI software would be even easier to create than using Lazarus was back in the day (the RAD approach), but sadly the greatness that was lcl is mostly lost to time because nobody cares: https://en.wikipedia.org/wiki/Lazarus_Component_Library

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jojobas on Wednesday February 07, 2024 @08:35PM (#39296765)
This is an equivalent of "our town job board has mostly carpenter jobs and few metalworking one, so then we started building cars out of wood".

Yes it might be cheaper and easier to make a car out of wood but it will drive like crap.

Using tools not made for the job yields crappy results, who would have known.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by KronisLV on Friday February 09, 2024 @05:59AM (#39313591)
> Using tools not made for the job yields crappy results, who would have known.

Depends on what the goals are. If they are to take people from the job market that currently exists (lots of webdevs) and build software that is good enough and ship it to earn $$$, then clearly they've succeeded, no matter how much people complain about the inefficiencies or how suboptimal the tools might be considered.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by mcronce on Tuesday February 06, 2024 @10:21AM (#39275145)
Because I also want to run performant apps.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by wodenokoto on Tuesday February 06, 2024 @07:20AM (#39273445)
According to Chrome, this tab alone uses over 200mb.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by incrudible on Tuesday February 06, 2024 @08:26AM (#39273939)
Eight Megabytes and Constantly Swapping.

This too, shall pass. The minimum amount of memory for a double buffered fullscreen surface at 8bpc on a 4k monitor is 48MB. RAM is meant to be used, and if it was not for memory hogs, the DRAM industry would be a decade behind where it is today.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by hulitu on Tuesday February 06, 2024 @01:09PM (#39278022)
> RAM is meant to be used,

Some of us have to run other programs besides Teams. /s

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by wolpoli on Tuesday February 06, 2024 @10:29PM (#39284117)
Yes, I also happened to run a browser which shares the same philosophy on RAM.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by JohnFen on Tuesday February 06, 2024 @01:34PM (#39278434)
> RAM is meant to be used

Sure, and when applications hog it, it prevents me from putting it to better use.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by ac29 on Tuesday February 06, 2024 @12:12PM (#39277102)
According to Firefox, it uses 25MB. I suspect neither measurement is entirely accurate.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by diath on Tuesday February 06, 2024 @07:11AM (#39273395)
Until there's a viable solution for desktop native GUI, this trend will continue.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by coldacid on Tuesday February 06, 2024 @07:14AM (#39273414)
Qt?
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by EasyMark on Tuesday February 06, 2024 @09:08AM (#39274296)
too many gotchas with LGPL to become a universal solutions. I wish that gtk was more stable across all platforms. I have a few on macos and some are less than ... stable... compared to on linux.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by skeletal88 on Tuesday February 06, 2024 @11:46AM (#39276652)
What gotchas are there? The stuff required for doing guis is lgpl, without any kind of other licenses
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by rubymamis on Tuesday February 06, 2024 @09:28AM (#39274522)
I don’t think it’s as bad as you make it to be. Qt is a great option imo.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by scotty79 on Tuesday February 06, 2024 @11:30AM (#39276368)
Has anyone been sentenced for falling into those lgpl gotchas?
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by figomore on Tuesday February 06, 2024 @11:05AM (#39275908)
I like WX.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by Liquid_Fire on Wednesday February 07, 2024 @05:56AM (#39287020)
Isn't GTK also LGPL anyway?
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jenadine on Thursday February 08, 2024 @12:15AM (#39298508)
Electron's web engine is also LGPL. (And GTK too)
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jojobas on Tuesday February 06, 2024 @07:23AM (#39273469)
Native UI has been there for decades before. Yes, cross-platform requires extra effort.

Hell even Wine is more efficient an approach for cross-platform distribution.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by LunaSea on Tuesday February 06, 2024 @08:46AM (#39274098)
> Yes, cross-platform requires extra effort.

Aaand you lost most companies.

> Hell even Wine is more efficient an approach for cross-platform distribution.

I'm sure that customers will be willing to install and run Wine.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by steve_rambo on Tuesday February 06, 2024 @09:06AM (#39274281)
Wine requires no more installation than Electron. There are lots of "pirated" releases for macOS/Linux with a bundled copy of Wine (sometimes with third party patches or some libraries swapped out).
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by postalrat on Tuesday February 06, 2024 @10:53PM (#39284298)
extra effort = no less than 50x the effort
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jojobas on Tuesday February 06, 2024 @11:25PM (#39284481)
Bullshit. If that's what it takes you please seek another line of work.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by postalrat on Tuesday February 06, 2024 @11:42PM (#39284572)
I can built a basic app with html, javascript, etc that supports many platforms in an evening. How long do you think it would take to support windows, macos, ios, android, xbox, linux, etc, etc? Much more than 50x the time even if you already are familiar with development on all the plaforms.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jojobas on Tuesday February 06, 2024 @11:59PM (#39284678)
Qt covers 5 of the 6 platforms you named, and many more "etc".

Yes it takes a bit more than a boot camp graduate to code that, and might take a bit more time still.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by lukan on Wednesday February 07, 2024 @03:36AM (#39286021)
See?

Your solution requires more dev time and skill - which makes it way more expensive. Basic economics.

The main requirement most devs and users have for an app - that it runs and works reliable. Not that it is the most efficient solution.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by jojobas on Wednesday February 07, 2024 @05:25AM (#39286790)
It's the same in any other industry where cheap plastic overtakes all, except and average user can't tell the difference, other than on "my PC is slow" level.

It is everyone's responsibility to not make shit software.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by postalrat on Wednesday February 07, 2024 @09:58AM (#39289328)
5 of the 6 isn't a fair comparison
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by niutech on Wednesday February 07, 2024 @09:28PM (#39297132)
Flutter or React Native are also easy to develop with and cross-platform, no need to learn C/C++.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by niutech on Wednesday February 07, 2024 @09:21PM (#39297069)
There are many: QML, NodeGui, Flutter, React Native and plenty more lightweight Electron alternatives: https://news.ycombinator.com/item?id=38687662

Or to mention native libs: GTK, wxWidgets, Xamarin.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by asoneth on Tuesday February 06, 2024 @08:48AM (#39274112)
I agree it's disappointing to think I've found a native app only to realize it's just an Electron app. But I don't need the idea to die, I just want better transparency in app stores so I can know ahead of time whether an application is native or just a wrapped webapp.

> This browser-in-a-box cancer needs to die a painful death.

That depends on what you think the result would be.

What do you think companies who use Electron, CEF, embedded web views, etc today would do if those technologies all died tomorrow? For example, do you think GitHub, WordPress, Figma, Discord, Whats App, Slack, Trello, Skype, or Spotify would hire native Windows desktop development teams? (Or even Mac/Linux desktop development teams?)

Personally I doubt that there would be any increase in native app development. Any developer who cares about this is already making native applications, Electron just makes web apps slightly more convenient.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by hulitu on Tuesday February 06, 2024 @01:06PM (#39277980)
> Electron just makes web apps slightly more convenient.

Yes. Until the next Cornflicker, Sircam, Code red, Blaster.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by rubymamis on Tuesday February 06, 2024 @09:23AM (#39274459)
> But I don't need the idea to die, I just want better transparency in app stores so I can know ahead of time whether an application is native or just a wrapped webapp.

That’s a great idea. Or a simple “Native App” badge for native apps.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by niutech on Wednesday February 07, 2024 @09:18PM (#39297037)
They would use Qt/QML, NodeGui, Sciter, Flutter, React Native or another lightweight Electron alternative: https://news.ycombinator.com/item?id=38687662.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by moritzwarhier on Tuesday February 06, 2024 @08:52AM (#39274155)
Isn't Tauri already capable to run several apps in their own sandboxes with a single host process, just like browser tabs?

I can see complaining about being forced to run multiple browsers at once, the hate Web as a UI stack in general, I don't really understand.

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by postalrat on Tuesday February 06, 2024 @10:52PM (#39284289)
Make a better alternative and people will flock to it.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by niutech on Wednesday February 07, 2024 @09:34PM (#39297188)
There are better alternatives to Electron, like: Qt/QML, Tauri, Flutter, Sciter, React Native, NodeGui, DeskGap, etc. but people don't flock to it.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by pier25 on Tuesday February 06, 2024 @09:25AM (#39274481)
And in that vein, a reduced version of Servo for rendering desktop/games GUIs.

There's a lot of stuff in CSS and HTML nobody uses anymore like floats, blink, marquee, etc.

Ultralight has a product based on that idea but I think they use WebKit.

https://ultralig.ht/

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by ksec on Saturday February 10, 2024 @07:57AM (#39325860)
Something isn't that right. It is using 1/5 to 1/10 of memory compared to Chrome while still supporting 95% of what WebKit supports.
Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by coolelectronics on Tuesday February 06, 2024 @11:48AM (#39276678)
why? firefox performance will always be worse than blink, if only because of spidermonkey

the last thing people want from electron is a worse version of it hogging more resources

Re:Mozilla's Abandoned Web Engine 'Servo' Project Is Getting... by tadfisher on Tuesday February 06, 2024 @10:49PM (#39284271)
I don't think SpiderMonkey is the boat anchor you claim it to be: https://arewefastyet.com/linux64/benchmarks/overview