With all due respect but everyone who has ever worked with Coffeescript
knows that this is not true. Upfront compilation, even of larger projects,
is instant. Coffeescript watches for changed files, compiles them sub
second, and in the very rare cases that you have a syntax mistake (about
once a day) it beeps.


On Thu, Aug 9, 2012 at 8:21 AM, Brad Carleton <b...@techpines.com> wrote:

> @Nathan upfront compilation adds a significant amount of complexity to an
> app.  The guys that work on Java apps sometimes have a team dedicated to
> the "build", which is just building/compiling the app.  Everything should
> be just-in-time.  This makes it an order of magnitude simpler to develop.
>
> Don't get rid of 'require.extensions', it is actually really cool.  Also,
> getting rid of it would break all coffeescript code, which is one of the
> most popular packages in npm.
>
> On Wednesday, August 8, 2012 5:34:44 PM UTC-5, Nathan Rajlich wrote:
>
>> I don't see why you'd jump through so many hoops just to avoid an upfont
>> compilation step. `require.extensions` may be deprecated in the future and
>> is generally frowned upon.
>>
>> On Wed, Aug 8, 2012 at 2:36 PM, Krzysztof Baranowski 
>> <pharc...@gmail.com>wrote:
>>
>>> Found something sort of close to an aswer: Up lets you specify an
>>> "options.requires" array that gets passed to the child process so you can
>>> tell it to require any modules you want before running. Trouble is, they
>>> get required AFTER it tries to load your program (with require), which
>>> means coffeescript support won't be available to load your program from a
>>> .coffee file directly.
>>>
>>> My temporary solution is to just not use Up, may revisit this question
>>> in the future. Thanks for the responses.
>>>
>>> Chris
>>>
>>>
>>> On Wednesday, August 8, 2012 4:12:04 AM UTC-4, Krzysztof Baranowski
>>> wrote:
>>>>
>>>> Hey folks,
>>>>
>>>> So I have an app where all the files are coffeescript. To avoid a js
>>>> compilation step or having to run a watcher I have a
>>>> "require('coffee-script')" statement before everything else in the program,
>>>> which lets me require() coffee files directly from other coffee files.
>>>>
>>>> Problem is, one of the libraries I'm using requires 
>>>> up<https://github.com/LearnBoost/up> which
>>>> spawns child processes with fork(). These processes in turn try to
>>>> require() my app files, which are in coffeescript, and fail.
>>>>
>>>> So I'd like a way to ensure that process spawn with coffeescript
>>>> available to avoid this. Or maybe I could monkey patch Up or something.
>>>>
>>>> Into your capable hands I commit my question, nodejs community!
>>>> Chris
>>>>
>>>
>>> On Wednesday, August 8, 2012 4:12:04 AM UTC-4, Krzysztof Baranowski
>>> wrote:
>>>>
>>>> Hey folks,
>>>>
>>>> So I have an app where all the files are coffeescript. To avoid a js
>>>> compilation step or having to run a watcher I have a
>>>> "require('coffee-script')" statement before everything else in the program,
>>>> which lets me require() coffee files directly from other coffee files.
>>>>
>>>> Problem is, one of the libraries I'm using requires 
>>>> up<https://github.com/LearnBoost/up> which
>>>> spawns child processes with fork(). These processes in turn try to
>>>> require() my app files, which are in coffeescript, and fail.
>>>>
>>>> So I'd like a way to ensure that process spawn with coffeescript
>>>> available to avoid this. Or maybe I could monkey patch Up or something.
>>>>
>>>> Into your capable hands I commit my question, nodejs community!
>>>> Chris
>>>>
>>>
>>> On Wednesday, August 8, 2012 4:12:04 AM UTC-4, Krzysztof Baranowski
>>> wrote:
>>>>
>>>> Hey folks,
>>>>
>>>> So I have an app where all the files are coffeescript. To avoid a js
>>>> compilation step or having to run a watcher I have a
>>>> "require('coffee-script')" statement before everything else in the program,
>>>> which lets me require() coffee files directly from other coffee files.
>>>>
>>>> Problem is, one of the libraries I'm using requires 
>>>> up<https://github.com/LearnBoost/up> which
>>>> spawns child processes with fork(). These processes in turn try to
>>>> require() my app files, which are in coffeescript, and fail.
>>>>
>>>> So I'd like a way to ensure that process spawn with coffeescript
>>>> available to avoid this. Or maybe I could monkey patch Up or something.
>>>>
>>>> Into your capable hands I commit my question, nodejs community!
>>>> Chris
>>>>
>>>
>>> On Wednesday, August 8, 2012 4:12:04 AM UTC-4, Krzysztof Baranowski
>>> wrote:
>>>>
>>>> Hey folks,
>>>>
>>>> So I have an app where all the files are coffeescript. To avoid a js
>>>> compilation step or having to run a watcher I have a
>>>> "require('coffee-script')" statement before everything else in the program,
>>>> which lets me require() coffee files directly from other coffee files.
>>>>
>>>> Problem is, one of the libraries I'm using requires 
>>>> up<https://github.com/LearnBoost/up> which
>>>> spawns child processes with fork(). These processes in turn try to
>>>> require() my app files, which are in coffeescript, and fail.
>>>>
>>>> So I'd like a way to ensure that process spawn with coffeescript
>>>> available to avoid this. Or maybe I could monkey patch Up or something.
>>>>
>>>> Into your capable hands I commit my question, nodejs community!
>>>> Chris
>>>>
>>>  --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-*
>>> *Posting-Guidelines<https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to nod...@googlegroups.com
>>>
>>> To unsubscribe from this group, send email to
>>> nodejs+un...@**googlegroups.com
>>>
>>> For more options, visit this group at
>>> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en>
>>>
>>
>>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to