Questions tagged [pre-compilation]
77 questions
35
votes
2 answers
Why do these two string comparisons return different results?
Here is a small piece of code :
String a = "abc";
Console.WriteLine(((object)a) == ("ab" + "c")); // true
Console.WriteLine(((object)a) == ("ab" + 'c')); // false
Why ?

Pablo Honey
- 1,074
- 1
- 10
- 23
35
votes
4 answers
How to run a command at compile time within Makefile generated by CMake?
I would like to pass some options to a compiler.
The option would have to be calculated at compile time - everytime when 'make' is invoked, not when 'cmake', so execute_process command does not cut it. (does it?)
For instance passing a date to a g++…

Łukasz Lew
- 48,526
- 41
- 139
- 208
30
votes
5 answers
Why is aspnet_compiler.exe so slow (and can it be made any faster)?
During our build process we run aspnet_compiler.exe against our websites to make sure that all the late-bound stuff in ASP.NET/MVC actually builds (I know nothing about ASP.NET but am assured this is necessary to prevent finding the failures at…

Greg Beech
- 133,383
- 43
- 204
- 250
22
votes
11 answers
Can Ruby, PHP, or Perl create a pre-compiled file for the code like Python?
For Python, it can create a pre-compiled version file.pyc so that the program can be run without interpreted again. Can Ruby, PHP, and Perl do the same on the command line?

nonopolarity
- 146,324
- 131
- 460
- 740
15
votes
3 answers
Precompiling Handlebars.js templates in Windows
Looking at the Handlebars.js documentation for precompilation.
The instructions are for OSX. Can this be done on Windows as well?
If so, when they say to "install node and npm" does "node" refer to "node.js"?

Chris Dutrow
- 48,402
- 65
- 188
- 258
15
votes
2 answers
How can I get gcc to add a prefix to all symbol names
I know that in the past there was an option -fprefix-function-name that would add a prefix to all generated symbols, it doesn't seem to be part of gcc anymore. Is there any other way to do this?

danielhauagge
- 151
- 1
- 9
13
votes
4 answers
Global resources can't be resolved after publishing Website in VS2008
I have a web-project running in VS 2008. We have some global resource files (*.resx) in the App_GlobalResources folder for internationalisation. All this works like a charm on my local IIS installation out of VS.
But when I publish my web-project to…

Scoregraphic
- 7,110
- 4
- 42
- 64
12
votes
2 answers
Coffeescript compilation error in ruby on rails
I am using coffeescript+ruby-on-rails. The compilation of coffeescript into pure JS leads to an error if there is a syntax problem in the coffee code. On the browser when I run the app, I get this error: ExecJS::RuntimeError
Is there any way to find…

Vipin Verma
- 5,330
- 11
- 50
- 92
10
votes
3 answers
application.css not being served as an asset
EDIT 4, 5 and 6
8 hours in, any more ideas are welcome :) Maybe this bug is already known and solved, but I get the behaviour I described in edit 2&3, when you have this in a .css.erb file in app/assets/stylesheets :
li {
background-image:…

AJP
- 26,547
- 23
- 88
- 127
9
votes
1 answer
Deployment of PrecompiledApp issue
The autogenerated PrecompiledApp.config is causing me some headache.
Im automating the deployment of an older web site and 50% of the time when I deploy I get this error:
System.IO.IOException: The process cannot access the file…

Christian Mikkelsen
- 1,661
- 2
- 19
- 44
7
votes
2 answers
What is the best way to flush precompiled perl6 modules?
I am trying to refactor some code. My approach (using vi) is to copy my old libraries from /lib to /lib2. That way I can hack out big sections, but still have a framework to refactor.
So I go ahead and change mymain.p6 header from use lib '../lib';…

librasteve
- 6,832
- 8
- 30
7
votes
0 answers
What does Aspnet_compiler.exe do?
I'm trying to pre-compile views for our MVC5.1 application to improve first load performance (see this question for more context).
I'm playing with aspnet_compiler.exe:
aspnet_compiler -p d:/path/to/myapp/ -v myapp
I can definately see the…

trailmax
- 34,305
- 22
- 140
- 234
6
votes
1 answer
Complexity of IDE error detection and auto-completion dependent upon language syntax?
Are fewer checks/less rigorous code analysis required to provide development environment error feedback and auto completion for programming languages that are composed largely of human-readable phrases and words (i.e. Python, VB.NET)? This is in…

A. Wilson
- 688
- 1
- 6
- 15
5
votes
1 answer
Poor time performance of 'rake assets:precompile'
Running:
bundle exec rake assets:precompile RAILS_ENV=production
Takes about 6 minutes for 15 .js files of about 250kb total. It should not take this long surely? I see the 'Microsoft Console Based Script Host' working flat out for most of this…

AJP
- 26,547
- 23
- 88
- 127
5
votes
3 answers
How to make GCC evaluate functions at compile time?
I am thinking about the following problem: I want to program a microcontroller (let's say an AVR mega type) with a program that uses some sort of look-up tables.
The first attempt would be to locate the table in a separate file and create it using…

Christian Wolf
- 1,187
- 1
- 12
- 33