It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I think C++ is one of the best known programming languages of all time, especially for low level programming stuff, but what other languages are a bit like C++ in means of capabilities?
edit: I want compiled, low level programming languages. Not languages like java.
edit: What I meant with c++ like language is this: A compiled, low level language, suitable for high performance applications, it doesn't have to be oop, but it should have similar capabilities as C++ (e.g. OS programming). I hope this makes my question more clear.
http://en.wikipedia.org/wiki/D_%28programming_language%29
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm building a game engine and can't quite find a scripting language that does what I want, and is embeddable into C++. Therefor, the natural solution is to build my own.
I know the basics about Flex, Bison, peg/leg, and a little about VMs. Can I use this knowledge to build a small scripting language for a game engine? How would I implement an embedded language? I'm not really sure where to start off building such a small language.
A common scripting language for use with C++ is Lua. You can implement it with Luabind or another binding, there are plenty (and there are even tutorials to write your own).
Another option is to use Python with Boost.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
In implementing operating system except very small part is written in assembly while most part is written in high level languages such as C/c++
What is the part that is written in assembly and why do we write it and why most of the code is written in high level languages
First, I am not sure that C qualify as a high level language (IMHO, it is a low level one; Haskell, Ocaml, ... are higher level than C).
Then, not everything inside an operating system kernel is implementable in portable C. Hardware dependent stuff (interrupt handling, scheduling, paging, access to hardware I/O ports ...) usually requires some assembly code.
(You could perhaps embed the code with asm keyword in C, but that does not count as portable C).
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
So we have some simple request/response parsers. thay are bacically simple state machines that could be esely created in pure C code. I wonder what is C++ way to parse HTTP 1.0+ requesrt/response streams that would be as fast or faster than C analogs yet would be sweeter from code prespective?
Rather than coding up explicit state machines, you could probably use Spirit.Qi to build a parser for the data. This generally gives rather slow compilation, but execution that's quite competitive.
You might want to look at a previous answer by #sehe for some inspiration on parsing binary data with Spirit.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I was going through Scott Meyer's podcast on CPU CACHES AND WHY YOU CARE It seems this will make code run faster, is there any open source where such coding is done for reference.
Or anybody has example of design of data structures/algorithms based on CPU caches aware
Sure, the entire Linux kernel is implemented to be cache-aware.
For more details there is highly recommended paper What Every Programmer Should Know About Memory.
Linear algebra is sensitive to cache problems. The BLAS subroutines allow one to abstract away from these concerns
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Now I am porting c++ game to objective-c.
The source code uses some dlls such as "malloc.h" and this is the standard dll of C++ so it
cannot be included in objective-c.
What is the best way to overcome this problem.
I hope your help.
Thanks.
To convert code from one language to another, you need to have at basic working knowledge of both languages and platforms involved. It sounds as if both your C/C++ and Objective-C knowledge is too rudimentary for you to undertake this task. I'd recommend you take a short course and work on small projects in both languages to gain some experience so that you'll be qualified to perform this translation.