I wonder if it's possible to write a new language above Javascript VM so that you could embed your language - which is based on javascript - and it will work together with native javascript.
Example:
var person_exists = true; // native js
Animal eats banana // my language
console.log(person_exists) // native js
I've seen Cappuccino...
There are some tools, like PostSharp, that generates code when compiling.
How is it done? Can anyone provide some simple example?
...
Im making a modular program, and it supports dynamic compilation of source files in the plugin directory.
What I would like to do, to speed up loading times, is save compiled assemblies to a separate folder.
When my program loads, and comes across a source file to compile, i would like it to check if there is an already compiled assembl...
I was looking for some good articles in net but found nothing, I know that firstly all programs pass through preprocessor -> compilation -> assembler -> linker -> loader, but what exactly my compiler do during every stage, for example when(which stage) it initializes all global and static variables? which order? thanks in advance,
P.S. ...
FSC recompiles my .scala files every time even there is no need - I can compile it twice without editing anything between attempts and it recompiles them!
For example, I have 2 files
Hello.scala
class Hello{
print("hello")
}
And Tokens.scala:
abstract class Token(val str: String, val start: Int, val end: Int)
{override def toSt...
Why is this C# code not compiling?
public static Dictionary<short, MemoryBuffer> GetBulkCustom(int bufferId,
int startSecond,out int chunksize, out int bardatetime)
{
//const string _functionName = "GetNextBulkWatchData";
UserSeriesCard currentCard = GetUserSeriesCard(bufferId);
Dictionary<short, MemoryBuffer> result =...
Topic is self-explanatory.
My goal is to automate the process of code beautification, so a program like SQLPlus will compile code after it has been beautified.
...
Possible Duplicate:
The Definitive C++ Book Guide and List
I have a basic knowledge of C++, but I am not a Computer Science major. I was looking for a good book for beginners that explains what happens to the code once I click compile or build.
Specifically I am trying to make sense of terms like objects, building, compiling,...
One of my "non-programmer" friends recently decided to make a C++ program to solve a complicated mechanical problem.
He wrote each function in a separate .cpp file, then included them all in the main source file, something like this:
main.cpp:
#include "function1.cpp"
#include "function2.cpp"
...
int main()
{
...
}
He then compile...
Hi,
I recently ran into some strange problems. Changes to files that are not code-behind (and not gets compiled to a DLL) should not require you to recompile the whole website, and this has never been I problem for me. These should actually get compiled dynamically when you first access the resource, e.g. the first time when browsing a...
The following simple program can't be compiled with gcc 4.4.3
include "rapidxml.hpp"
include "rapidxml_utils.hpp"
include "rapidxml_print.hpp"
include "rapidxml_iterators.hpp"
int main()
{
return 0;
}
------------------------------------------------------------
Compile produces following errors:
rapidxml_iterators.hpp:21: e...
I have this simple ASP.NET page here:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Tree.aspx.cs" Inherits="CoconutTree.One" %>
<html>
<head>
<title>Planting Trees</title>
<script runat="server">
protected void Page_Load(Object Source, EventArgs E)
{
string msg = "Let's plant some trees!<br/>"; ...
Really stupid C question.
I'm trying to build the source code here so I can start on modifying it for myself
http://curl.haxx.se/libcurl/c/ftpget.html
I download the file, then run
gcc -o test ftpget.c
and get
Undefined symbols:
"_curl_global_init", referenced from:
_main in ccFchguB.o
"_curl_easy_perform", referenced fr...
Hello,
I cannot understand so strange thing - now the compilation takes about 10 minutes! The application has only one (1) form and maybe 100 or 200 lines of user code. How can it be compiled for 10 minutes?
Help, please.
Thanks
Upd: Windows, debug, mingw32,
Qt 4.6.3
What else?
...
I have the usual type or namespace name does not exist error, except that I have referenced the assembly, the using statement does not show as incorrect and the classes I am referencing are public. In fact, I reference and using the same assembly in a different solution to do the same thing and it works fine.
This is VS2010 by the way.
...
There seem to be enough threads on how to get a grip on a new rather larger than you're used to code base. I intend to ask Stack Overflow, how many of you deal with inheriting code bases for which the whole development environment needs to be recreated? I'm talking like, out of production dev tools fetched, parts of a project built wit...
Hello, I am trying to determine which OS is the best one for VC++ VS2010. I know that Microsoft recommends Win7 x64 however I did some testing and the results are quite confusing:
Build times (single threaded compilation on q9650 CPU) of reference VC++ project under different OS:
Win XP 32bit: 00:02:50.95
Win 7 32bit: 00:03:09.99
Wi...
Hey all,
I'm brand new to Compact Framework and I need to compile a small project for a Windows CE 6.0 device (on which I already installed CF 3.5).
I'm using Visual Studio 2005. When creating a new project like : "Other languages -> Visual Basic -> SmartDevice -> Windows CE 5.0", I can compile a simple form, put it on my mobile device...
Hello
I have VS 2008 Professional and a Smart Device .NET C# project. I have ~100 cs files in total. The build takes very long time, I have to wait for linker approx. 1min (60s) every time i compile the project. I have Core i3, 4GB RAM, 7200rpm disk.
What may be the reason and how to optimize the build? Any Visual Studio options?
Rega...
I have a makefile as follows:
CC = gcc
CFLAGS = -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" $(INCLUDES)
ifdef DEBUG
CFLAGS += -g3
endif
INCLUDES = \
-I../config.include \
-I../log.include \
-I../services.include
SRC_DIR = src
BIN_DIR = bin
BINARY = report
SRCS = $(shell ls $(SRC_DIR)/*.cpp)
OBJS = $(SRCS:%.cpp=%....