问题标签 [precompiling]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
184 浏览

opengl - 如何在不编译的情况下运行 OpenGL 代码?

所以我有一些openGL代码(例如这样的代码)

我想运行它但没有预编译。有没有办法做这样的事情

0 投票
3 回答
296 浏览

php - PHP:最佳配置存储?

我的应用程序通过很多键/值进行配置(例如 30.000)

我想为这些配置找到最佳部署方法,因为我知道我想避免 DEFINE 以允许运行时重新配置。

我想过

  • 通过 php 文件将它们预编译成数组
  • 将它们预编译到 tmpfs sqlite 数据库中
  • 将它们预编译到 memcached 数据库中

我有什么选择

  • 这些配置的最佳随机访问时间(内存不是问题)?
  • 如果我可以将这些配置分解为(网络,i18n,..)之类的系列,则最好的结构化访问时间

谢谢杰罗姆

0 投票
1 回答
59 浏览

asp.net - 什么将aspx文件转换为c#

哪个进程或类负责将 aspx 文件和数据绑定表达式转换为 c#?

例如

转化为:

这可以定制吗?

0 投票
2 回答
223 浏览

java - 预编译 JSP:是特定于服务器的吗?

由于 JSP 遵循标准 API,我可以在我的项目中预编译它们,然后将结果部署到任何服务器上吗?

具体来说,我使用的是 Tomcat、JBoss 和 WebSphere。

0 投票
1 回答
686 浏览

asp.net - How to get ASP.NET website precompilation to exclude a certain folder

The several different environments (e.g. live, demo etc) of my web app are differentiated by config settings in a folder called EnvironmentConfiguration. Whenever I update one of the sites, I delete the EnvironmentConfiguration folder from the precompiled site before copying the website files over (i.e. in order that the EnvironmentConfiguration folder in the deployment location is not replaced).

Just to save mistakes, is there a way I can get Visual Studio not to produce the EnvironmentConfiguration folder when it precompiles the site for me?

0 投票
1 回答
3953 浏览

visual-studio-2010 - Visual Studio 2010 预编译或预生成操作

我正在寻找在预构建或预编译阶段(用户透明)在我的代码文件中进行一些替换的能力。我在考虑 Visual Studio 扩展,但还没有找到解决方案。需要某种方式来访问解决方案/项目中的所有文件,或者至少需要它的路径。

0 投票
1 回答
94 浏览

iphone - 在构建之前将代码添加到类文件 - Objective C

我正在寻找一个框架,我不想详细说明。

假设我的 iPhone 应用程序中有 100 多个类和 1000 多个方法。在这种情况下,我想在每个类的每个方法(开始或结束或两者)中添加 NSLog。

手动添加 NSLog 是可能的,但有没有更好的解决方案?就像以这样的方式构建应用程序,我可以添加此日志而无需我进行手动工作。

谢谢并恭祝安康,


丹尼斯,

您的回答在许多论坛中都是最有用的。非常感谢。

我正在寻找这样的东西的原因是,我们有很多客户项目,而且很多时候我们在 QA 和 UAT 时遇到了一些崩溃或其他问题。其中约 80% 不可重现或需要某些特定场景。我们使用 .crash 和 dsym 来跟踪此类问题。但在这种情况下它不是很有用。

我正在寻找的是提供添加临时构建,它将记录用户遵循的步骤,以便轻松重现此类问题。

目前我正在使用预编译的标头和您提到的第一种方法(搜索第一个左大括号,然后用宏替换它)。

正如您提到的,我将研究 DTrace 和 objc_msgSend。如果您有任何喜欢的教程,我会同时搜索这些内容,这将是很棒的。

谢谢和问候, :D

0 投票
3 回答
1814 浏览

ruby-on-rails - 使用 jQuery UI 插件进行资产预编译错误

在过去的几个小时里,我一直在为这个问题绞尽脑汁。

我跑步有问题rake assets:precompile RAILS_ENV=production --trace

由于在组合中添加了 jQuery UI。

这是跟踪:

最奇怪的是,当我在我的开发环境中运行这个命令时,它完全可以工作。

在我的生产环境中,如果我删除 jquery ui 引用,它会照常继续,所以这绝对是问题所在。这是我的 Gemfile。

有任何想法吗?(让我知道我是否遗漏了一些重要的东西,因为我目前非常疲倦)

谢谢

0 投票
2 回答
1810 浏览

android - Necessitas (Qt/Android NDK) qmake 路径

我正在运行 openSUSE 12.2 64 位,试图在 Necessitas alpha 4.1 中编译应用程序。这是一个基本的应用程序,代码可能不是问题。在跟踪问题的过程中,我确保拥有所有依赖项和 tools.jar,这显然会导致类似的错误。编译时我得到:

实际上没有列出任何文件。我从 Projects->Build Steps->qmake 复制/粘贴了这一行:

然后我粘贴在一个终端窗口中,结果是:

这显然是不正确的,因为我的路径是 ~/Software/necessitas 而不是 ~/necessitas。我检查了 Tools->Options 的每个选项卡,但看不到任何引用错误文件夹的地方。任何线索这应该去哪里?

0 投票
1 回答
1200 浏览

protocol-buffers - Separating header and source files after compiling .proto with Protocol Buffers

I'm working on the project with the a structure similar to the following:

I've just started to use Google Protocol Buffers and when I compile the code I found that I need add foo/bar/file.h to the file.cc file in order for the code to find the header. I don't plan to commit the .h and .cc files to the repo since they get automatically generated. Is there a parameter I can give protoc to seperate the header/source files into different directories and add the correct path to the source file #includes?