This forum has been archived. All content is frozen. Please use KDE Discuss instead.

The JavaScript story?

Tags: None
(comma "," separated)
dummytester
Registered Member
Posts
40
Karma
0
OS

The JavaScript story?

Mon Feb 12, 2018 8:42 am
UPDATE: I should have posted this in the KDE Development and Frameworks subforum I think...

So, like many developers in the modern world, I code in JavaScript (TypeScript lately) using ReactJS on the frontend, and a mix of languages on the backend (Python, PHP, Go) but pretty much never C++. I've been using Linux and KDE off and on (switched to mac for a bit, now back) for around 10 years. I was thinking about getting more into contributing code, especially after reading threads such as "The Good, Bad, and Ugly, feedback" (viewtopic.php?f=309&t=142972).

So I've been intrigued by the idea of QtQuick, QML, and JavaScript. But as I read more, I became disappointed. Apparently the limited JavaScript is not recommended:
""Starting with the KDE Platform 4.7 release, the Plasma team recommends writing your Plasmoids with QtQuick technologies with the Plasma QML integration API." - https://techbase.kde.org/Development/Tu ... Script/API

The JavaScript engine QtScript seems to be based upon a fairly old version of the Webkit JS engine - i.e., neither Spidermonkey (Mozilla) or V8 (Chromium). "project = QTBUG AND resolution = Unresolved AND component = "QML: Declarative and Javascript Engine" at https://bugreports.qt.io/browse/ pulls up nearly 1000 bugs. QtQuick like it might be different enough that my typical tooling won't work well with it, and I might not even be able to target it with TypeScript. Looks like there hasn't been much change over at https://codereview.qt-project.org/gitwe ... heads/5.10

I don't know much about QtQuick - glanced at https://doc.qt.io/qt-5.10/qtquick-index.html and eventually https://doc.qt.io/qt-5.10/qtqml-javascr ... sions.html.

Is there any effort to get more convergence on mainstream JavaScript? I noticed https://github.com/BrigJS/brig but I couldn't really make sense of the possibilities of it.

Meanwhile, over in the GNOME world, GJS bumped to Spidermonkey 52 (https://gitlab.gnome.org/GNOME/gjs/blob/master/NEWS) which is relatively recent, and there's stories of people using ReactJS and such - which makes it seem rather attractive. I've always felt that KDE was superior in its configurability and also rather professional and responsive to its users, but I want to be able to effectively contribute to the systems that I'm using. Also, one thing I've been trying to focus on is working smarter, not harder, and fighting weird integration bugs on an isolated stack just doesn't feel smart to me.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell