10,466 reputation
12250
bio website
location Seattle, WA
age 57
visits member for 3 years, 6 months
seen 9 hours ago

20h
comment Why convert to assembly language instead of machine code?
@dweich, I was thinking of LLVM but I didn't appreciate how 'beta' the feature was. I also think most JIT compilers directly emit machine code from byte code but that's probably getting away form the OPs question.
1d
awarded  Nice Answer
1d
revised Do compiler-writers actually need to 'understand' machine code?
added 230 characters in body
1d
answered Do compiler-writers actually need to 'understand' machine code?
1d
revised Why convert to assembly language instead of machine code?
added 217 characters in body
1d
answered Why convert to assembly language instead of machine code?
Apr
10
comment What made BASIC profitable?
Your question is ambiguous. Are you referring to making money by designing a language or making money by selling a compiler or interpreter for a language? Several companies make quite a bit of money selling compilers and interpreters: Microsoft, Adobe, Intel, The Portland Compiler Group, MathWorks, Wolfram, among others. Making money by designing a language is harder because language design is generally not protected as IP, only the implementation.
Mar
31
comment Why is CPU cache memory so fast?
For example, on some multi-core chips, each core will have it's own L1 cache, but all cores share the L2 cache. Having to have an L1 cache for each core uses a lot of chip real estate. CPU real estate is expensive: the bigger the footprint of the chip the more it costs to manufacture it. The cost of chips is super-exponential in the area of the chip.
Mar
31
comment Why is CPU cache memory so fast?
I think this is a good answer. However, it may be worth adding that there is also a cost hierarchy to cache: network storage is cheaper than a local hard drive, which is cheaper than RAM, which is much cheaper than on-CPU cache. If it wasn't for this we'd just make CPUs with 120GB of memory on-chip, and be done with it.
Mar
24
comment How to reuse c++ code?
The header file issue is one reason why some folks dislike working in C and C++. However, given that your question asks about C++ and only C++, you are going to have use header files and libraries just as James suggested. That is the method in C++ for combining modules.
Feb
27
answered Why can't we program without compiling (using an IDE/debugger)?
Feb
15
comment How do I maintain consistency between hard-coded values in different files?
Just read the non-code file and parse the value from that as your program starts up. If you need to be super flexible provide a command line option setting the location of the file.
Jan
29
answered What is the norm for introducing new hires to a code base?
Jan
25
comment How to reduce close points
This sounds like a clustering problem and the MATLAB toolkits support a whole zoo of clustering algorithms. You may want to google 'MATLAB' and 'clustering' to get some idea of whats already available without writing your own.
Dec
17
comment How to represent a geometric line programmatically?
The problem is that neither of those are unique descriptions of a given line. Morween asked for a method that would allow implementation of '=='. The slope and intercept uniquely identify a line. Two lines are equal iff their slopes and intercepts are equal. Store two tuples: the coordinates of the intercept (x0, y0, and z0) and the components of the slope (a, b, c).
Nov
30
revised Tricky logic puzzles - Are they really useful in assessing programming skills?
added 1213 characters in body
Nov
4
awarded  Good Answer
Nov
1
answered Why should I use MSBuild instead of Visual Studio Solution files?
Oct
31
revised Is it viable to make a port from a C++ application to Java through LLVM
added 12 characters in body
Oct
31
revised Is it viable to make a port from a C++ application to Java through LLVM
added 4 characters in body