« first day (3578 days earlier)      last day (1363 days later) » 

3:49 AM
@Milad Is it conscription? If so, how does it work with social distancing?
 
4:41 AM
Are dynamically-typed languages generally slower than statically-typed languages?
(Because there are less compiler optimizations for all its primitive types?)
 
But also because there is computation when determining the type
But the operative word is generally
 
 
1 hour later…
5:53 AM
@TelKitty Yes. Not allowed to say much but activities have decreased. Less operation. Less traveling.
 
6:22 AM
@JerryCoffin What kind of stuff are you doing now days?
 
@Mikhail managing networks of IP-based radios. Basically, a long-distance, high-power, hot-spot to mount under the wing of an aircraft.
 
@JerryCoffin Find me a job!
 
6:50 AM
@JerryCoffin I went to your company's website and found it misleading ...
 
@TelKitty In what way?
 
@JerryCoffin This ^. fuseintegration.com is the website of your company, yeah?
This is the picture on the career section.
 
@TelKitty Um, okay. So basically, you initially thought one thing, realized you were wrong, and then blamed the picture for your mistake?
 
7:10 AM
I'm designing some class as part of a public API, and I want my CTOR to take an optional logger argument, but I'm not sure what type would be best... std::stringstream maybe? (I hesitate to post this as an actual SO question, because it might be construed as "opinion-based" or something)
 
7:31 AM
...I guess I best define a logger class too as part of the same API, and use a reference to that as the type. Then callers just need to inherit that logger class beforehand to do any customization.
 
 
1 hour later…
8:33 AM
@Will Maybe something more general like a functor? In many large libraries you'd inherit your logger from the Library::Logger class (for example, TensorRT)
 
8:54 AM
@Mikhail Yeah, implementing a logger class as a functor (i.e., using operator ()) makes sense. Then again, now I'm wondering if using a lambda instead is worth considering...
 
I think the logger class will look less lazy and let users carry more state
If you use lambdas you're going to see a lot of [&] (auto message) {real_logger(message)};, although this might not be a bad thing :-)
Personally, for deployment and integration reasons I don't like having public API's be C++ style. I try to make everything C style, which lets us integrate with other languages etc.
 
9:11 AM
@Mikhail Good points. Thanks.
Regarding your last point: I tried to come up with a C API first, but it felt too painful mostly because I have whole bunch of std::vectors of indeterminate size to deal with...
 
That is a confusing one. So your C++ code can have a publicly facing C-style API. Basically [Any Language]->[C-style API (exported dll functions)]->[C++]
 
Well, yeah, I'm writing a C++ library, but at one point I considered implementing the whole thing in C for portability benefits -- but I gave up on that simply because it would be a lot more work, and not nearly as concise API-wise.
 
The implementation can be C++ but the publicly facing part can be C
 
Yes, but then I'd lose all C++'s convenient types, no?
 
9:36 AM
I mean, for example, as a C++ API, I can take a reference to a std::vector of some complex types and enlarge them without worrying whether the caller allocated enough memory etc. As a C API though, I'd need to implement a whole bunch of get_size_of_foo()/allocate_foo()/free_foo() functions for the caller to use any actually useful functionality...
 
9:53 AM
So, a lot of my reasoning is based on deployment and interoperability issues that you may or may not have. And I'm thinking a mostly deploying a library as a binary package, for example developing an SDK.
You can get away with C++ api's when you do header only (for many reasons)
 
 
6 hours later…
4:02 PM
Any book recommendation?
 
4:39 PM
4243
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

 
Not C++. Something else. Read a good book recently?
 
> undeclared identifier book, did you mean bool?
 
 
3 hours later…
7:43 PM
@Milad i read this book yesterday. It was increasingly terrible en.m.wikipedia.org/wiki/The_Alchemist_(novel)
 
 
4 hours later…
11:16 PM
@JerryCoffin The work looks good but I don't think I can really be a senior engineer in C (I've never worked on a C only code base, with the exception of dirty, dirty drivers I hacked together) and haven't done SDR since undergrad. Do you guys need image related analysis?
 
@Mikhail Jerry has been devious, there are numerous C++ jobs on their company website, I have already given you a tip. Yet you totally missed it, and Jerry seemed to have lost all his humour.
Although their company seems to be working closely with US defence. IRC Jerry is a vet, this might have worked in his advantage in getting the job.
 
11:47 PM
Can anybody comment on my resume? Its a kinda weird because it has a lot of academic stuff, and imaging stuff, so I'm not really sure how to best focus it on a developer role: ozymandias.beckman.illinois.edu/Mikhail/…
 

« first day (3578 days earlier)      last day (1363 days later) »