Is XUL just outdated?

General project discussion.
Use this as a last resort if your topic does not fit in any of the other boards but it still on-topic.
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.

Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
User avatar
nguyen9173
Banned user
Banned user
Posts: 95
Joined: 2022-06-02, 13:38

Is XUL just outdated?

Unread post by nguyen9173 » 2022-06-19, 01:43

Or you need to update it? After digging up old posts on this forum praising the good old technology and compared the UXP with Electron (our Chromium based counterpart), I decided to actually learn more about it. I read the documents on RealityRipple's site. What I find out? XUL is not anyway comparable to HTML5! XUL has very few widgets available compared to HTML5. Even on the document acknowledge this and said we could mix HTML inside XUL for more widgets but not without caveats. Maybe the decision of the Thunderbird guys to change all .xul to .xhtml is a right decision. Either update XUL to add more widgets and abilities, or just leave to move to HTML5. I don't think there will be any problems with a HTML5 based XUL. After all XUL is just a markup language!

p/s: I'm telling XUL as a markup language not the technology. Please make it clear.

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1498
Joined: 2018-10-28, 19:56
Location: Georgia

Re: Is XUL just outdated?

Unread post by athenian200 » 2022-06-19, 03:47

Well, the problem with HTML5 is that it's mostly designed around mobile and the stuff generated in it usually looks terrible on desktop. It isn't particularly good at generating native desktop styling. Extending XUL to do more things is on the roadmap, but we have to spend a lot of time working on the browser engine, plus we are very concerned with trying not to break the existing extensions that people rely on.

Your reasoning isn't necessarily unsound, but this project mostly exists to preserve XUL. If you want something that uses HTML5 and has a more modern design, that already exists. I'm not sure why you want to push this project in the same direction already taken by everything else. I don't think most of the people working on this are very interested in that idea.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind

User avatar
nguyen9173
Banned user
Banned user
Posts: 95
Joined: 2022-06-02, 13:38

Re: Is XUL just outdated?

Unread post by nguyen9173 » 2022-06-19, 08:03

athenian200 wrote:
2022-06-19, 03:47
Well, the problem with HTML5 is that it's mostly designed around mobile and the stuff generated in it usually looks terrible on desktop. It isn't particularly good at generating native desktop styling. Extending XUL to do more things is on the roadmap, but we have to spend a lot of time working on the browser engine, plus we are very concerned with trying not to break the existing extensions that people rely on.

Your reasoning isn't necessarily unsound, but this project mostly exists to preserve XUL. If you want something that uses HTML5 and has a more modern design, that already exists. I'm not sure why you want to push this project in the same direction already taken by everything else. I don't think most of the people working on this are very interested in that idea.
Updating XUL markup language to be more competence is not conflicting with preserve old XUL and improving the engine. What I propose is importing widgets from HTML5 so when writing XUL you no longer have to embed HTML elements into it. The engine is in bad shape but good enough to power the rendering of XUL. Updating to allow the users able to make beautiful appearance GUI is another way to impress more people to contribute. What you said about HTML5 being mobile first is wrong and the reality is different. HTML5 based app looks good. XUL based app lacking of widgets and looks primitive. From what you said I know you have not revisited any Electron based app recently. Your knowledge is of the distant past and well outdated. The fact is HTML5 looks good on any platforms.

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1498
Joined: 2018-10-28, 19:56
Location: Georgia

Re: Is XUL just outdated?

Unread post by athenian200 » 2022-06-19, 08:10

nguyen9173 wrote:
2022-06-19, 08:03
HTML5 based app looks good. XUL based app lacking of widgets and looks primitive. From what you said I know you have not revisited any Electron based app recently. Your knowledge is of the distant past and well outdated. The fact is HTML5 looks good on any platforms.
I use plenty of Electron-based apps, grudgingly of course. I think they look terrible and seem badly designed. They always look much worse than the old Win32 counterparts and have this ugly mobile-first design. This opinion isn't based on the past, I still see these apps and curse at their interfaces on a regular basis. If you think it looks good, then good for you, you'll be happy with what's popular.

I'm not ruling out adding widgets to XUL at some point, but talking as if HTML5 is just universally better for everything is silly. It seems like you don't really get what this project is about...
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind

User avatar
nguyen9173
Banned user
Banned user
Posts: 95
Joined: 2022-06-02, 13:38

Re: Is XUL just outdated?

Unread post by nguyen9173 » 2022-06-19, 08:49

athenian200 wrote:
2022-06-19, 08:10
nguyen9173 wrote:
2022-06-19, 08:03
HTML5 based app looks good. XUL based app lacking of widgets and looks primitive. From what you said I know you have not revisited any Electron based app recently. Your knowledge is of the distant past and well outdated. The fact is HTML5 looks good on any platforms.
I use plenty of Electron-based apps, grudgingly of course. I think they look terrible and seem badly designed. They always look much worse than the old Win32 counterparts and have this ugly mobile-first design. This opinion isn't based on the past, I still see these apps and curse at their interfaces on a regular basis. If you think it looks good, then good for you, you'll be happy with what's popular.

I'm not ruling out adding widgets to XUL at some point, but talking as if HTML5 is just universally better for everything is silly. It seems like you don't really get what this project is about...
I want more widgets. That's it. You could use HTML5 as the reference to add the missing widgets. That's my whole point. Don't want argue with you any further.

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 197
Joined: 2020-03-02, 16:04

Re: Is XUL just outdated?

Unread post by Nuck-TH » 2022-06-19, 09:21

Well, you can use XBL to make your own widgets.
I think making only essential widgets was idea akin to xul based applications themselves - provide some base level, and if anyone needs more complicated/different/custom stuff - they can extend it as they please/need.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 782
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Is XUL just outdated?

Unread post by jobbautista9 » 2022-06-19, 09:22

If you see a missing widget that would be very useful for desktop applications to use and would be beneficial for the platform as a whole, feel free to open a new issue and file a pull request for it.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2183
Joined: 2018-05-05, 13:29

Re: Is XUL just outdated?

Unread post by vannilla » 2022-06-19, 10:33

The difference between XUL and HTML is that the latter is designed to lay out content, while the former is designed around user interfaces.
For example, a video element is content and not an interface: that would be the play/pause button in the video player for example. In this case having to use HTML to show a video is the right design choice.

User avatar
nguyen9173
Banned user
Banned user
Posts: 95
Joined: 2022-06-02, 13:38

Re: Is XUL just outdated?

Unread post by nguyen9173 » 2022-06-19, 14:14

vannilla wrote:
2022-06-19, 10:33
The difference between XUL and HTML is that the latter is designed to lay out content, while the former is designed around user interfaces.
For example, a video element is content and not an interface: that would be the play/pause button in the video player for example. In this case having to use HTML to show a video is the right design choice.
What if I need right in the ui the widgets only HTML5 has? XUL really has not much widgets to choose from. Your XUL graphical interface will look pretty much primitive compared to it Electron counterpart.

User avatar
nguyen9173
Banned user
Banned user
Posts: 95
Joined: 2022-06-02, 13:38

Re: Is XUL just outdated?

Unread post by nguyen9173 » 2022-06-19, 14:16

Nuck-TH wrote:
2022-06-19, 09:21
Well, you can use XBL to make your own widgets.
I think making only essential widgets was idea akin to xul based applications themselves - provide some base level, and if anyone needs more complicated/different/custom stuff - they can extend it as they please/need.
To be a framework for other to build their app with effortlessly like UXP aims to be, it should offer complete widgets set for the users to choose from.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 782
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Is XUL just outdated?

Unread post by jobbautista9 » 2022-06-19, 14:35

nguyen9173 wrote:
2022-06-19, 14:14
What if I need right in the ui the widgets only HTML5 has? XUL really has not much widgets to choose from. Your XUL graphical interface will look pretty much primitive compared to it Electron counterpart.
If having an interface that is sane, makes sense, and is suitable for desktop "primitive" for you, then yeah, I guess so. I'd rather take that than the bloated mess that is Electron.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35473
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Is XUL just outdated?

Unread post by Moonchild » 2022-06-19, 15:00

If you really, really need an html widget in your interface it can simply be referenced by including the appropriate namespace. XML languages are flexible like that. Of course referencing the html namespace will also make your xul a lot heavier to render because it will pull the n a lot of stuff it won't need, so the best way to do it is via XBL bindings and ceating a tailored widget yourself
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2183
Joined: 2018-05-05, 13:29

Re: Is XUL just outdated?

Unread post by vannilla » 2022-06-19, 17:40

nguyen9173 wrote:
2022-06-19, 14:14
What if I need right in the ui the widgets only HTML5 has? XUL really has not much widgets to choose from. Your XUL graphical interface will look pretty much primitive compared to it Electron counterpart.
I can't think of any HTML element that an interface would need that XUL doesn't cover already.
The translation between the two is not always 1:1, but all you need to make an interface is in XUL.

Is it <div>? There are <vbox> and <hbox>. For text you have <label>, so <p> and the like are not really needed - doubly so since you never write more than two or three lines of text on a user interface, so whole paragraph elements are not needed. XUL has built-in menus, which HTML does not provide in favour of in-site thingies made of <li> and javascript.
And so on so forth.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Is XUL just outdated?

Unread post by moonbat » 2022-06-20, 07:00

What widgets are you looking for that are absent in XUL?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Locked