« first day (558 days earlier)      last day (2301 days later) » 

12:09 AM
Ah, well, the lib was linked through bcrypt.a, but i didn't "make clean" the dirs which caused the errors. Thanks alot though.
 
 
4 hours later…
4:27 AM
Anyone know a good library / way to benchmark builds? I have 3 ideas on how to implement something (templatized stuff), and I want to know which version would be best on compile times. Should I just be reaching for metabench?
 
4:50 AM
@Justin Incredibuild lets you see the per-file build times as well as resource generation steps
the trial is mostly functional, caps at about 32 PEs
 
But would that be suitable for benchmarking? It often feels to me like there's quite a bit of jitter in compilation times on my machine
 
5:10 AM
Well I believe phoronix has a test suite that builds Chromium using different Linux compilers
But if you want to optimize the rate limiting factors in your compilation I'd recommend Incredibuild
 
No I was just looking at writing library-style code and wanted to measure which approach was faster
 
5:38 AM
Most people look at walltime, with the time command
 
 
6 hours later…
Ron
12:07 PM
This got me wondering. Is namespace better suited for what OP is trying to do? Not sure what's the point of a class that will not be instantiated nor inherited from.
 
> mostly involving type definitions, templates and/or design patterns
My guess: policy classes
 
Ron
Ah I see. I should remove my comment there.
 
tbh, I don't really see the problem with doing nothing
 
Ron
I see. Your class holds static methods, I can understand the purpose of that, I can't understand what the OP is trying to do.
 
the struct has no members, has no useful non-static functions so people won't be creating instances of it anyway
 
Ron
12:13 PM
Awesome. Thanks.
 
 
6 hours later…
6:13 PM
:)
 
6:40 PM
@Amir What do you think you're smiling about?
 
 
2 hours later…
8:37 PM
@JerryCoffin just for someone responding.
i search for linux chat room but i cant find any.
 
9:27 PM
And a few non-Ubuntu ones: chat.stackexchange.com/…
Oh, probably a better link: chat.stackexchange.com/…
 
Ron
Embarrassingly enough I am not quite clear on available polymorphic techniques. I have listed a few. Are all those valid and do they essentially mean the same thing?
Excluding CRTP.
 
you forgot virtual destructor in Base
 
Ron
Ah true.
 
each one of these allows you to call virtual functions on Base, the difference is in storage
 
Ron
I see. The reference to base version is static storage I take it? I am not quite clear why should I use that one.
 
9:41 PM
In 1 and 4 the Derived instance has dynamic storage duration
in 2 and 3 the Derived instance has automatic storage duration
1 uses new and what I think about new is fairly known around here
Sep 15 '17 at 16:08, by milleniumbug
@StephanHofmann You're using new so it's wrong (see: RAII)
 
Ron
Right, silly me.
 
also:
Jan 17 at 15:35, by milleniumbug
half of the transcript of this room can be reduced to "don't use new"
Jan 17 at 15:35, by milleniumbug
the other half is "I know but fucking uni hasn't updated their learning materials for 20 years"
 
Ron
Haha, true.
Regarding 2., that would need manual deleting too, right?
 
no, both the pointer and the variable it's pointing to are of automatic storage duration, and so, they'll get destroyed at the end of scope
 
Ron
@milleniumbug Phheew, awesome, many thanks.
 
9:50 PM
(hence why you can't pass in a pointer to a function that expects the object it's pointing to will live for longer than that)
 
Ron
Appreciate it.
Apparently RAII is god sent, it's just that I didn't get the memo.
 
10:11 PM
Hello people
why this is wrong and cause infinite loop?
Pixel& operator=(const Pixel& rpx)
{
*this = rpx;
return *this;
}
scenario for init Pixel R(255), G(255), B(255);
R = G = B;
 
because you're using an assignment operator inside an assignment operator
just don't provide an assignment operator
 
thank you @milleniumbug now this make sense like = inception :))
*this = rpx; (will again invoke operator=)
 
11:07 PM
Almighty @milleniumbug can I ask a question that is 99% non c++ oriented?
1% is for the chance that there is a crazy way that it is implemented in c++
 
shoot away, the worst thing that could happen is that you won't get an answer
3
(because people here won't know it)
 
@milleniumbug here it goes: I want to prepare for interviews and glassdoor provides questions from interviews. since the pool is so big for each and every company --> Is there a way to extract from a webpage only the paragraph that is under "Interview Questions" ?
just to get the text for each question in the page
 
nwp
Look up "web crawler". I would recommend using python for that.
 
more like "web scraping"
and yes, I wouldn't use C++ for that
 
thank you, i will consider both your answers
 

« first day (558 days earlier)      last day (2301 days later) »