Often, ignoring a problem eventually causes a solution to appear. So
the other day it just struck me that all we need to do, to enable
configurable packing, is to parse the packed version into modules. And
then allow the user to paste them back together.

So I developed a new demo that does that. Now it uses only a packed
version of MochiKit which it downloads as text and analyzes for
dependencies. Then creates the corresponding UI.

    http://www.percederberg.net/mochikit/pack.html

As the standard packed version of MochiKit doesn't include DragAndDrop
and Sortable, I also included those in my source packed version.

The actual download button is still work-in-progress at this point.
Only works in Firefox and even then just sort-of-works. Will have to
ponder that a bit more before creating a final version.

Cheers,

/Per

On Mon, Oct 13, 2008 at 11:33 PM, Arnar Birgisson <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> On Mon, Oct 13, 2008 at 22:23, Arnar Birgisson <[EMAIL PROTECTED]> wrote:
>> Although, there is one outrageous possibility: We could pregenerate
>> all possible combinations of modules. Now, before you call me crazy,
>> note that even if 14 modules could potentially mean 2^14~=16k
>> different combinations, the dependency graph puts severe restrictions
>> on that. So for fun, I decided to see how many there really are. Given
>> the dependency specs Per used in the above html file, there are
>> exactly 1952 possible combinations such that all dependencies are
>> included :D
>
> While I should probably point out that my last message was
> tongue-in-cheek, there was also a glaring bug in my algorithm. After
> fixing that and rerunning, the possible combinations are *merely* 817
> :)
>
> The correct code will appear on my blog in a few minutes.
> http://www.hvergi.net/
>
> cheers,
> Arnar
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to