Re: Bringing CommonJS and npm to GJS

2017-11-10 Thread Andrea Giammarchi
Fair enough, but I'd like to underline that FUD is not an insult, rather the description of some misleading or speculative information and, as such, rarely constructive for any discussion. Maybe I misunderstood the email, however ... > npm ... brings the undesirable hundreds of package dependenci

Re: Bringing CommonJS and npm to GJS

2017-11-09 Thread philip . chimento
Hi Andrea, People can have different opinions about npm, or node tools, or the best way to package things, or the best way forward for GJS, or criticize your contributions, or anyone's contributions, and they need to be able to do that on this mailing list without being demolished. Everyone who pa

Re: Bringing CommonJS and npm to GJS

2017-11-08 Thread Andrea Giammarchi
People are distributing Desktop applications via Electron, which also needs double modules when it's native and as of today, we do need to say to developers that GJS cannot consume npm modules. Differently, from Gtk, The GNOME SDK is confined into the Linux world ... or at least that's my impressi

Re: Bringing CommonJS and npm to GJS

2017-11-07 Thread philip . chimento
On Sun, Nov 5, 2017 at 4:30 PM Andrea Giammarchi < andrea.giammar...@gmail.com> wrote: > npm is just a repository. > > A repository exists in Python, Ruby, ArchLinux (AUR), Debian, etcetera. > > A repository purpose is to publish a program/module/library that can be > reused across projects. > >

Re: Bringing CommonJS and npm to GJS

2017-11-05 Thread Andrea Giammarchi
npm is just a repository. A repository exists in Python, Ruby, ArchLinux (AUR), Debian, etcetera. A repository purpose is to publish a program/module/library that can be reused across projects. A repository doesn't force you to create dependencies. A repository doesn't need your code to be com

Re: Bringing CommonJS and npm to GJS

2017-11-05 Thread Luke Jones
One of the issues I have with NPM support, is that then brings the undesirable hundreds of package dependencies through encouraging the use of them. If someone *does* use NPM packages and creates an app with this support, then that introduces some seriously big headaches with packaging for distros.

Re: Bringing CommonJS and npm to GJS

2017-11-05 Thread Andrea Giammarchi
If until now GJS ignored the rest of the world in terms of JS modules and the ability to use npm as registry, I believe I'm not the one that can answer that question but I am 100% sure if you want GJS to be more popular, you need a better JS ecosystem integration, and npm is mandatory step zero to

Re: Bringing CommonJS and npm to GJS

2017-11-05 Thread philip . chimento
On Fri, Nov 3, 2017 at 3:16 PM Andrea Giammarchi < andrea.giammar...@gmail.com> wrote: > yeah, that's why I need help/contributors there. > > The fs is relatively trivial, streams are more painful but in JSGtk the fs > was already working. > > I am just starting porting over and improving JSGtk, t

Re: Bringing CommonJS and npm to GJS

2017-11-03 Thread Andrea Giammarchi
yeah, that's why I need help/contributors there. The fs is relatively trivial, streams are more painful but in JSGtk the fs was already working. I am just starting porting over and improving JSGtk, today you have already console globally available, util in core (and timers) and I'm working on os,

Re: Bringing CommonJS and npm to GJS

2017-11-03 Thread Giovanni Campagna
On Thu, 2017-11-02 at 22:50 -0300, Andrea Giammarchi wrote: > FYI the whole project has been moved under a CGJS organization: > https://github.com/cgjs/cgjs > > If you'd like to contribute please rise your hand and I'll add you. > > So far working: > require, console, __filename, __dirname, and a

Re: Bringing CommonJS and npm to GJS

2017-11-02 Thread Andrea Giammarchi
FYI the whole project has been moved under a CGJS organization: https://github.com/cgjs/cgjs If you'd like to contribute please rise your hand and I'll add you. So far working: - require, console, __filename, __dirname, and all timers in place - next up: process module Each core module ca