News for hackers. Stuff that matters.
Re:XUL Layout has been removed from Firefox by userbinator on Sunday April 02, 2023 @03:09AM (#35407968)
There's different degrees of "native" but I'm pretty sure writing the UI in HTML/CSS/JS is definitely not "native".
Re:XUL Layout has been removed from Firefox by narag on Sunday April 02, 2023 @06:56AM (#35409234)
There's different degrees of "native"...

There are different kinds of native: native code and native widgets play at different levels.

XUL implementations, when I last checked long ago, were native code written in C++ mostly. XUL applications were written in JavaScript on top of this implementation. If that has changed, corrections are welcome.

That was exactly the same scheme used by Firefox itself: core components in native code, GUI in XUL. As long as most of the functionality is provided by the native code, the difference shouldn't be noticeable. If you put a lot in your JS, it could slow down the GUI, but after all the improvements in JS engines, I doubt it's still a big concern.

Native widgets is a concept that makes sense where the OS provides an official widget set, as in Windows or Mac. In Linux you might say GTK is native for GNOME and Qt for KDE. Here the issue is not so much performance as consistency, because "alien" widget sets sometimes try to emulate "native" ones and pixel perfection is nigh impossible to achieve.

The real catch of XUL (please, read this with a pinch of salt) is that it's useless: you can put the backend code in a local server.

Re:XUL Layout has been removed from Firefox by c-smile on Sunday April 02, 2023 @11:59AM (#35411926)
Are MS Office or LibreOffice native?

They use DOM (not W3C DOM but their own) and good portion of scripting to glue components together.

Is my Sciter.Notes application (https://notes.sciter.com) native? It uses native implementations of DOM, CSS, database with components glued by JS...

Is any game a native app? They all use their own DOMs and almost all games use various scripting engines.