« first day (3292 days earlier)      last day (1639 days later) » 

12:19 AM
10 years isn't that long, road work on the highway between where I live and where the farm is located has been going on for at least 3-5 years and there is no sign it's going to end anytime soon.
 
12:32 AM
Funny: I have a person in my CS department telling me I don't know how a queue works. This should be hilarious or maybe just sad.
 
12:49 AM
@CaptainGiraffe why would they say that
it's not a difficult idea to grasp.
unless they are talking about how one would construct it from scratch. Then that might be a more difficult topic.
 
@Rick Also I'm the Datastructure guy, I do all the classes on the topic.
 
@CaptainGiraffe weird what made suggest such an idea to you.
 
@Rick The topical quote would be -"No, it moves to the front pointer is when it pops"
I suggested that a queue does not include any concept of any kind of pointers. "front" or otherwise.
 
@CaptainGiraffe so they are talking about implementation details, but aren't there many different implantations of the queue. Like the Fibonacci heap. Why would they get hung up on such an insignificant detail
 
@Rick Indeed. The person was surprisingly unkind in the discussion.
 
1:01 AM
@CaptainGiraffe or arrogant, they probably don't know as much as they think they do.
 
@Rick I prefer "Stupid as a rock", but I guess arrogant works as well.
 
I wonder though, what kind of heap do they use for std dequeue
:47627573 no seriously, I thought it was a binary heap but I am not so sure anymore.
 
@Rick I'm gonna have to look it up =)
 
well at least you know how to look it up, I just search google : (
 
1:20 AM
@Rick Common implementaions does not use a heap at all. Just an auxiliary vector. Also use vector, no seriously, use vector.
 
@CaptainGiraffe but queue is implamented with dequeue.
 
@Rick That's pretty much the only case.
Think of how all the hardware has been optimized to use vector (well contiguous memory at least)
 
well it makes sense to use a vector in a multi-threaded environment. Also vector does not have a pop front method
 
who in the loving land that is programming needs a pop front? why not just front()?
do_stuff(c.begin() +1, c.end());
 
@CaptainGiraffe well let's say you grab the front element, and that element expands into two more elements. do you just push those elements into the array and increment the front pointer?
would that work
 
1:47 AM
poop_back()
 
2:16 AM
@CaptainGiraffe You have just shattered my understanding of what is possible. : - )
 
Anything is possible - if you break the laws of physics >_<
 
So, lets say you have time series data, is there a good way to say that one time series influence another if the influence isn't known? Like how much they are correlated? (but not I assume, a cross correlation)
 
3:02 AM
@Mikhail like a recommendation based on previous events
 
So, just taking the cross correlation and getting its bandwidth is one way, but the meaning is less than clear for me
I have the mass of the cell nucleus and the cell body and trying to figure out how to measure their "relatedness"
 
Correlation does not imply causation.
For example, if there are more people, there will be more chickens, and there will be more cows. But the number of chickens goes up with number of cows does not imply cows influence chickens or the other way round.
 
so event 1 was seen with group1 5 times later on even 1 was seen with group4 1 time then event1 was seen with group5 10 times. So you can say even 1 correlates with group5 and so on
just based on the number of times it is encountered over an interval of time with a particular group.
 
@Mikhail Usually people have a proposition before testing it out using statistic tools, i.e. cross-correlation.
Also two series maybe not correlated, correlated at current time or correlated with a delay.
Google chrome trying to teach more beginners coding? What is it trying to do? Starting a locusts army of software developers/engineers sometimes down the track? >_<
 
3:19 AM
better yet once you have established in what groups event1 takes place based on number of occurrences, you now have a new search space, you can grab the meta-data associated with each group starting where it occurs most often.
@TelKitty they need more talent, visas drying up.
@TelKitty they probably cracked the Deepmind fortune cookie and it probably forecasts more closed border policies.
 
@Rick I just wonder whether they have given enough thoughts to the name. Hopper? For changing jobs? Going to a greener piece of lawn(grass)? But then, putting the two words 'grass' & 'hopper' together and increase those creatures in number you will get a locust plague.
Camping in shopping centre. Not sure if trying to be creative or not giving the issue enough thought.
 
3:35 AM
@TelKitty oh, like an army of code monkeys. but code monkeys are dumb, why would you want a locus of them.
they over-engineer shit, they need like 50 libraries to make something half decent. Then they need huge frameworks to manage all that stupidity.
 
 
6 hours later…
9:15 AM
I keep writing const auto variable_name in python :-(
 
nwp
#define const
#define auto
 
 
1 hour later…
user8245660
10:22 AM
Hi guys. How are you?

I'm wondering:

1. What C++ developers think about Golang, do they love it or hate it?
2. The similar about C#

P.S. It's NOT! a trolling. I really interested in your opinion. Such question are more suitable for some websites likes Quora, but I shall try in this chat :)
 
user8245660
Sorry, if questions were too short, but in the process of the discussion, I shall try to give some certain questions. May be, I shall try to say one, right now:

- when I've tried a Golang... In the case of speed, optimization, easy of use - I'd like
- but, when I tried to do more complex stuff with OOP, which I can do with C# - Golang looks very very weak language... C++ looks very fine in this case (as a language)
- Golang do have a very good ecosystem (my opinion)
 
user8245660
As for the C#. I really interested in opinion of the C++ developers, which have tried some DDD approaches.
 
I think both all of those languages have their merits and different niches.

Go, like you said is simple, and has a good ecosystem, for a sepcific niche. Go seems to have good library support for network stuff.

C# obviously has its neat features, but the ecosystem even with .NET Core thins out quite a bit if you leave the Microsoft world.

Also, both are garbage collected languages.
 
10:39 AM
@Neverlands Holistically I see them as specialized an unable to overcome certain technical challenges, making them unsuitable or any of the work I do.
I've been working for years and never wrote any Go, seems like something too specialized. Lacks GUI support, among other things. C# is a bit better, and works well for making quick interfaces but technical limitations of the language make it a poor candidate for much of my image processing work.
I do as I can't do templates GPU stuff, threading sucks. Coding C# is also harder than Python making me prefer Python or MATLAB for prototyping.
@Neverlands In summary C++ is the only language that takes you "all the way"
 
But also be aware that you're obviously getting a biased sample. It sounds like both Mikhail and me work with software that does image processing. So keep in mind that C++ is not the tool for everything either and there might be things you should prefer the others to.
The languages should just be used as tools. Not everyone that uses a hammer should use a carpenters hammer.
If pretty much all you do is just sending and receiving JSON messages on a Server than you might want to look somewhere else
 
nwp
I'm really starting to hate gdb. Got a segfault in ui->devices_list->something. p this->ui prints the pointer, p this->ui->devices_list produces There is no member named devices_list. WTF?
That and the fact that gdb segfaults when trying to step out of a function.
 
 
1 hour later…
12:05 PM
always found that GDB was a pretty useless piece of crap
9
 
is there another (better) linux debugger though?
 
12:49 PM
@Puppy I will always join the room just to star that
@Neverlands Go is horrendous, and I'm not saying that as a C++ developer specifically
 
@ratchetfreak It's called "Not debugging on Linux"
 
@Neverlands it's an immature attempt to solve a problem better solved though other less onerous mechanisms. Gor Nishikov wrote a good paper as to why goroutines and fibers really cause more problems than they solve.
 
 
3 hours later…
nwp
4:10 PM
Why can you not start std::threads suspended? Gah.
 
@Puppy Those who "grew up" on gdb (e.g., robot) think its the greatest, and consider VC++'s debugger (among others) nearly unusable (and vice versa).
 
4:28 PM
@nwp why would you need to?
 
@nwp The committee decided to standardize (a thin wrapper around) pthreads instead of something that was actually well designed.
 
nwp
@Mgetz I produce threads and need to do a thing before starting them once I know how many I have. I could just use std::function as an unstarted std::thread replacement, but maybe I should just do it differently altogether.
 
4:47 PM
@nwp ah ok, yeah AFAIK it's not really intended for that
Yeah normally when people are doing suspended threads there are permissions things needing doing
 
 
2 hours later…
6:38 PM
is there a general rule for when you should make members static?
 
When you can't avoid it :P
I mean const static data is one thing, but mutable static is something I personally try to avoid
 
@Rick members? A static member is basically a class-level thing rather than an instance level thing, so if you need something that's shared between all instances. static member functions don't refer to a particular instance, so they don't get a this. IOW, they're pretty much normal global functions, but with syntactical access to the class' private/protected parts.
 
I am conflicted I have a method for determining if a number is a root of another number, I use it in another method in the class. This method can be turned into a static method, should it be made static?
it does not share the constructor since all the arguments are passed to the method.
if you were to  look at this inside the class
bool square(int x)
    {
        int t = sqrt(x);
        return t * t == x;
    }
and did not see static would you be like, "this is some ugly code"
 
@Rick Yes, I'd make it static. I'd probably also rename it to something like isPerfectSquare.
The part that's questionable is whether it should be a static member function, or possible just a free function in a namespace surrounding the class. That's harder to answer.
 
@JerryCoffin do you mean it should be a namespace method and I should bring it into my class using the using directive?
 
6:57 PM
Oh I thought you mean static data members, static function members have quite a few uses
 
@PeterT yeah static methods, should have put up the example first
 
When I think about it, in our code-base at work they're mainly factory functions of sorts and some utility ones too.
 
@ratchetfreak clion has a wrapper that works well
 
@PeterT most static methods are utility methods. making them static is usually for organizational purposes
when you don't want methods just floating around
@PeterT I believe this is the same as a static method just without the static keyword
    namespace {
    bool isPerfectSquare(int x)
        {
            int t = sqrt(x);
            return t * t == x;
        }
    }
 
yeah, that thing has static linkage
or "internal linkage" as cppreference calls it now
 
7:09 PM
@PeterT I think because it's called the anonymous namespace, and allos you to access that method only from that file.
also, the anonymous namespace will override global methods, which nice
 
7:22 PM
for example:
        static bool isPerfectSquare(int x)
        {
            int t = sqrt(x);
            return false;
        };
        namespace
        {
        bool isPerfectSquare(int x)
        {
            int t = sqrt(x);
            return t * t == x;
        }
        bool h(int x)
        {
            return isPerfectSquare(x);
        };
        }
    int main(){
    the namespace method will get called here not the global.
     h(25)
    }
 
@Rick What I was thinking of was on this order: coliru.stacked-crooked.com/a/ada3acd55ecc419a
The big difference this would make would be if outside code (rather than just code inside the class) were to call it--or if you planned to put the class directly in the global namespace (which is fine for small projects, probably more questionable in larger ones).
 
@Rick yo can also make it a lookup table
 
Evening
The time for the moonspeople
Et les ombres s'étendaient à la clarté du pâle astre vespéral
 
7:41 PM
@JerryCoffin it would be nice if we could do something like this but with namespace for foo instead of class coliru.stacked-crooked.com/a/83b0aaad33fe86e9
@Morwenn that's what she said :-P
 
 
2 hours later…
9:51 PM
 
 
1 hour later…
11:13 PM
@Morwenn Is there a membership fee?
 

« first day (3292 days earlier)      last day (1639 days later) »