Can the library be smaller?

18 views
Skip to first unread message

Fred Janon

unread,
Nov 3, 2009, 11:40:53 PM11/3/09
to fla...@googlegroups.com
Hi,
I know we can minimize the library, but I saw some mention that part of the library is for the compiler. Would it be possible to remove that part?
Thanks
Fred

Arjun Guha

unread,
Nov 5, 2009, 3:58:25 PM11/5/09
to fla...@googlegroups.com
The compiler stuff is attached to the end. You can simply chop it
off. Furthermore, the flapjax library is wrapped in a "module" that
makes a portion of the Flapjax functions private. The code to export
public functions is lengthy.

I've attached a version of the library that removes the wrapper and
the compiler functions. It shaves about 10K off the uncompressed
library.

Arjun

flapjax-no-compiler.js

John Freeman

unread,
Nov 5, 2009, 4:35:07 PM11/5/09
to fla...@googlegroups.com
I saw in the OOPSLA paper that Flapjax takes a page from Prototype for
some of its DOM and Javascript helpers. I was wondering why not just
place a dependency on Prototype instead of copying the functionality?

- John

manu d

unread,
Nov 5, 2009, 5:30:36 PM11/5/09
to fla...@googlegroups.com
I usually use jQuery with Flapjax and I don't think Flapjax should be tied to any specific Javascript framework.
I agree that Flapjax Dom manipulation is sometimes lacking compared to Prototype or jQuery, and regret having to download both Flapjax and another framework, when Flapjax largely supersedes the event management and Ajax parts of these frameworks.
But Arjun no-compiler flapjax release + a minimal JS framework (say Sizzle.js) is the ticket for flexibility and a smaller size

T25

Arjun Guha

unread,
Nov 6, 2009, 1:49:09 PM11/6/09
to fla...@googlegroups.com
> But Arjun no-compiler flapjax release + a minimal JS framework (say
> Sizzle.js) is the ticket for flexibility and a smaller size

I think the trick is to split Flapjax into three pieces:

1. core FRP
2. Reactive DOM
3. Additional stuff

We'll distribute 1+2+3 as "Flapjax." 1+2 is still useful,
particularly in combination with prototype/jQuery. Just 1 alone is
slightly useless, but separating it from 2 gives us the option of
writing a DOM layer that uses jQuery / Prototype for better browser
interoperability.

Arjun

Fred Janon

unread,
Sep 13, 2010, 2:39:51 AM9/13/10
to fla...@googlegroups.com
Hi Arjun,

Any progress on this matter? That would be great.

Thanks

Fred


--~--~---------~--~----~------------~-------~--~----~
Flapjax home page: www.flapjax-lang.org
Flapjax list: groups.google.com/group/flapjax
Post: fla...@googlegroups.com
Unsubscribe: flapjax-u...@googlegroups.com
-~----------~----~----~----~------~----~------~--~---


Arjun Guha

unread,
Sep 13, 2010, 8:45:29 PM9/13/10
to fla...@googlegroups.com
Hi Fred,

Unfortunately, I haven't had a chance to address this. The hack in
the other thread should work.

Arjun

> --

Fred Janon

unread,
Sep 13, 2010, 9:58:58 PM9/13/10
to fla...@googlegroups.com
Thanks Arjun.

Fred
Reply all
Reply to author
Forward
0 new messages