Page 1 of 1

Could it's possible to use XPCOM outside of UXP?

Posted: 2021-04-18, 04:22
by djgpp
Imagine my application is console interface so it doesn't need the full UXP platform. I will only need at most the JavaScript engine and XPCOM. Is it possible and how to do this?

Re: Could it's possible to use XPCOM outside of UXP?

Posted: 2021-04-18, 07:09
by New Tobin Paradigm
No. The codebase is too integrated to pull that trick. You can have spidermonkey or nspr or nss on its own but that's it..

I suppose if you did want to widdle it down to absolute basics then you'd need xpcom, nspr, nss, netwerk, mozglue, memory, mfbt, what is left of xpfe and most of xre plus xpconnect to spidermonkey. Layout, dom, media, gfx and most of widget would be expendable if you didn't want a rendering engine.

It would take years.

Dude, I don't want to be rude here but these questions are a time sink and you are going to have to accept that aside from a few optional components the platform codebase or those traditionally sub-projects them selves is all or nothing.

Not to mention you are about 12 years too late to the party to even entertain THESE types of theoreticals.

Re: Could it's possible to use XPCOM outside of UXP?

Posted: 2021-04-18, 12:01
by djgpp
New Tobin Paradigm wrote:
2021-04-18, 07:09
No. The codebase is too integrated to pull that trick. You can have spidermonkey or nspr or nss on its own but that's it..

I suppose if you did want to widdle it down to absolute basics then you'd need xpcom, nspr, nss, netwerk, mozglue, memory, mfbt, what is left of xpfe and most of xre plus xpconnect to spidermonkey. Layout, dom, media, gfx and most of widget would be expendable if you didn't want a rendering engine.

It would take years.

Dude, I don't want to be rude here but these questions are a time sink and you are going to have to accept that aside from a few optional components the platform codebase or those traditionally sub-projects them selves is all or nothing.

Not to mention you are about 12 years too late to the party to even entertain THESE types of theoreticals.
Want to write native desktop application or server side application in JavaScript. By native, I mean the JavaScript is only used as a glue to existing C/C++ library via the binding using XPCOM. So basically, I wanted to use JavaScript the similar way Python is being used now. You could see the image of NodeJS and PyQt here. Electron on the other hand resembles UXP more than what I wanted to do.

I understand your explaination. Thank you.