6,982 reputation
11732
bio website
location
age
visits member for 3 years, 9 months
seen 10 hours ago

Sep
9
comment Why friend in C++ should be in the header file?
@Arun, the C++ compilation model is not adapted to that. Module could be a way to provide it, but AFAIK the current proposals don't consider it as a goal (there are a lot of things that modules could provide, I don't expect all of them will be provided, especially in the first version).
Sep
8
comment GPL- How much source must be released?
@JörgWMittag, my understanding is that linking is not even needed to create a derivative work (source: company lawyer in an IP training).
Sep
8
comment What is use of universal character names in identifiers in C++
You can't write that for two reasons, first UCS outside string and character literals can't refer to character in the basic sets without making the program illformed, second if that clause was not present UCS are handled in phase 1 of the translation and thus there would be not difference in handling between an UCS refering to a character in the basic set and the character itself.
Sep
8
answered Why friend in C++ should be in the header file?
Aug
28
comment Why don't compilers inline everything?
@mouviciel, performance matters. In my experience, hardware progress is always completely eaten by increase in the data size and in the complexity of what you want to do (for instance decreased response time allows new more exploratory use models which depend on near instantaneous reaction).
Aug
28
awarded  Nice Answer
Aug
28
revised Why don't compilers inline everything?
added 123 characters in body
Aug
28
awarded  Nice Answer
Aug
28
comment Why don't compilers inline everything?
@ratchetfreak, you can also transform some non tail recursive call in to tail one. But that's for me in the realm of the "difficult" one (especially when you have co-recursive functions or have to determine dynamically where to jump to simulate the return), but that's not impossible (you just put in place a continuation framework and considering that present it becomes easier).
Aug
28
revised Why don't compilers inline everything?
added 182 characters in body
Aug
28
comment Why don't compilers inline everything?
@Prog, as long as you explicitly use a stack, yes. If you don't want to use a stack, you are limited to tail recursion.
Aug
28
answered Why don't compilers inline everything?
Aug
27
awarded  Guru
Aug
26
answered Is method overloading anything more than syntactic sugar?
Aug
18
revised In the days of modern computing, in 'typical business apps' - why does performance matter?
added 647 characters in body
Aug
18
answered In the days of modern computing, in 'typical business apps' - why does performance matter?
Aug
16
answered How do we add software to a machine?
Aug
8
comment How to parse different number types with LALR(1)
Could you present a practical example of the issue you are fearing with float_or_int : FLOAT | INT ? I've used that in the past without meeting them in practice and in the artificial examples I can build, the ambiguity is fundamental.
Aug
4
comment How to best structure Git for our team
See a related question.
Apr
27
reviewed Reject suggested edit on Why are many programmers moving their code to github?