unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Let's Package jQuery: A Javascript Packaging Dystopian Novella
Date: Sat, 02 May 2015 15:34:20 +0200	[thread overview]
Message-ID: <87sibf5cir.fsf@gnu.org> (raw)
In-Reply-To: <87zj5nk7bf.fsf@earlgrey.lan> (Christopher Allan Webber's message of "Fri, 01 May 2015 22:00:23 -0500")

Christopher Allan Webber <cwebber@dustycloud.org> skribis:

> I looked into trying to package jQuery, and it turned out to be quite
> the challenge, much larger than I expected:
>
>   http://dustycloud.org/blog/javascript-packaging-dystopia/

Insightful post!

> In short, this is another instance where per-language packaging has
> helped things grow to a fairly insane state.  I'm not sure how we can
> ever get jQuery packaged.  This is a shame, because many free software
> web applications (including MediaGoblin) depend on it.  To make matters
> worse, I'm sure nearly all modern javascript libraries are like this.

This is terrible.

As an aside, I’m surprised npm creates nested ‘node_modules’ directories
rather than just a flat directory.  It sounds as if at run-time there
could be several variants of the same module being used, something that
most languages do not support (for instance, in Guile, there can only be
one (foo bar) module loaded in a given process.)

> I'm not really sure what this means for Guix and libre web application
> in the future.  I'd really like Guix to shine there... but this seems
> like a tough thing to overcome.

Well, presumably ‘guix import npm’ would be a first step (I hear Dave is
motivated ;-)).

But then, and that also applies to the other importers, we really need
to think hard about updating already imported packages because nobody
wants to update those 265 dependencies manually.

Then again, I don’t know what the cost/benefit tradeoff is.  We get good
integration, transactional upgrades, etc. if we have these Node and JS
things available as Guix packages, but packaging and maintaining all
that is an endless, huge endeavor...

Thanks,
Ludo’.

  reply	other threads:[~2015-05-02 13:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-02  3:00 Let's Package jQuery: A Javascript Packaging Dystopian Novella Christopher Allan Webber
2015-05-02 13:34 ` Ludovic Courtès [this message]
2015-05-02 15:24   ` David Thompson
2015-05-02 18:24     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sibf5cir.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=cwebber@dustycloud.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).