Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Once function has been compiled, does it need document any longer?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeff Barczewski  
View profile  
 More options Jan 24, 7:13 pm
From: Jeff Barczewski <jeff.barczew...@gmail.com>
Date: Tue, 24 Jan 2012 16:13:09 -0800 (PST)
Local: Tues, Jan 24 2012 7:13 pm
Subject: Once function has been compiled, does it need document any longer?

Mic or all,

Once you compile a function, does it need document any longer?

For example:

var fn = pure(docElement).compile(docDirectives);

From here on out, does pure still use its reference to document or is it
compiled to using all strings by this point?

So when I call

var output = fn(jsonData);  // will document still be used or was it only
used during compile?

The reason this is important is because I am looking at how I can use this
with node.js using precompiled temlplates.

Thanks for your help!

Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mic (BeeBole)  
View profile  
 More options Jan 25, 4:12 pm
From: "Mic (BeeBole)" <tch...@gmail.com>
Date: Wed, 25 Jan 2012 13:12:52 -0800 (PST)
Local: Wed, Jan 25 2012 4:12 pm
Subject: Re: Once function has been compiled, does it need document any longer?
pure.js was designed for the browser and the DOM.
The browser is a decentralized process while the server has it
centralized.
The time pure.js takes to compile and render is irrelevant compared to
other running times, mainly the latency.

On the server you try to shave every milliseconds and bytes for each
in/out requests.
Even if it is technically possible, I'm not sure pure.js, JSDOM,
jQuery and others are right for server side.

Surprisingly, the v1(checkout the branch version1) with all its
clunkiness was designed to generate only HTML strings, no DOM at
rendering.
It was even generating the js source file of the compiled template to
be used as a normal js file.

On Jan 25, 1:13 am, Jeff Barczewski <jeff.barczew...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Barczewski  
View profile  
 More options Jan 25, 4:44 pm
From: Jeff Barczewski <jeff.barczew...@gmail.com>
Date: Wed, 25 Jan 2012 13:44:30 -0800 (PST)
Local: Wed, Jan 25 2012 4:44 pm
Subject: Re: Once function has been compiled, does it need document any longer?

Thanks Mic.

I will check it out.

I think if something like pure can work client side and generate a
precompiled function to be used server side, then it is really the killer
solution. You can use the same code in both places.

I'll take a look at v1.

All the best,

Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »