« first day (1456 days earlier)      last day (1380 days later) » 

nwp
9:52 AM
@F.Müller What is the purpose of the compiler? Is it a learning project or does it need to beat gcc in compilation speed? Chances are even if you write it in Python it'll be "efficient enough", but you need to define that properly.
@F.Müller You should know about the features, what they do and what they are for. Once you do you will be able to judge that yourself. Generally all C++ features have their purpose in that they solve a specific problem at a cost. But when you don't have that problem it seems useless. Try to keep an open mind and do not condemn features that you don't need right now.
 
Hey fellas. Any idea what wget -q0- does?
 
 
4 hours later…
1:29 PM
@nwp Well, I think I overemphasized the performance thing. I know there are some CLI programs that can generate efficient C/C++ code. But I find them a bit complicated to work with. I rather write it myself - but I was worried about the performance I might end up with. It is meant to be for educational purposes anyway. I just don't want to make a lot of rookie mistakes, you know.

In the <C++ Lounge> they gave me some nice "how to write a compiler" links. I will check them out and see how far I can get.
 
 
5 hours later…
6:00 PM
unique_ptr<T> myPtr(new T);
do you have to use new there?
 
@Permian auto myPtr = std::make_unique<T>(args...); is actually preferred due to some issues with construction
and temporaries... and things not getting destroyed during partial construction
 
6:37 PM
oh wow
wasnt expecting that
 
@Permian So the issue is that if you do new A(B, C), where B and C are temporaries, and B throws after C had completed... then C won't get destructed in a new expression but if they are method parameters then they are fully constructed prior to the new expression and will be destroyed if something goes wrong.
 

« first day (1456 days earlier)      last day (1380 days later) »