Intelligent lazy and parallel snippet

52 views
Skip to first unread message

xzer

unread,
Apr 24, 2012, 4:42:25 AM4/24/12
to lif...@googlegroups.com
There is parallel snippet in lift, but it seems that it is not easy to use.

To avoid long time execution on a parallel snippet, there is a timeout limit on it, 
it is good but we will get a failure when timeout occurred. So how about to mix
a parallel snippet to a lazy load snippet? It will intelligently decide to render the
manufactured html if the manufacturing finished in time or to output a lazy load 
js hanlder if the manufacturing did not finished in time.

In fact, I have implemented it in my current project, but unfortunately, to avoid
hack lift itself, I did this task in a awful way. Anyway, I can transform a existed
snippet to a intelligent lazy load and parallel snippet simply now.

Is there anybody being interesting in this? And is there any possibility that I can
contribute this thing to the lift core source?

Jeppe Nejsum Madsen

unread,
Apr 24, 2012, 6:54:11 AM4/24/12
to lif...@googlegroups.com

Sounds interesting. Perhaps add it as a lift module
http://www.assembla.com/spaces/liftweb/wiki/External_Modules_Repository

/Jeppe

xzer

unread,
Apr 25, 2012, 3:42:09 AM4/25/12
to lif...@googlegroups.com
Thanks, I will read it and try to do some work

xzer

unread,
May 12, 2012, 7:05:25 AM5/12/12
to lif...@googlegroups.com
I am glad to report that I had pushed my initial work to github at  https://github.com/xzer/lift-isnippet 

I am continuing my work to better it and waiting for any feedback.

Diego Medina

unread,
May 12, 2012, 7:47:14 AM5/12/12
to lif...@googlegroups.com

Thanks for publishing this!

Sent from my tablet
Diego

On May 12, 2012 7:05 AM, "xzer" <xia...@gmail.com> wrote:
I am glad to report that I had pushed my initial work to github at  https://github.com/xzer/lift-isnippet 

I am continuing my work to better it and waiting for any feedback.

--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
Reply all
Reply to author
Forward
0 new messages