« first day (2563 days earlier)      last day (2371 days later) » 

12:22 AM
:|
 
 
1 hour later…
1:45 AM
Yo, so whats everybody up to?
 
2:22 AM
...
 
2:57 AM
Fuck, I just realized that if I refactor all my code to use the "all lowercase" notation, I can't use capitalization to distinguished between constructor arguments and class members. Indeed I can't use capitalization for anything...
 
3:23 AM
capitalization is useful like that
Have you considered going with m_member_variable and constructor_argument
 
4:18 AM
@jaggedSpire I could've sworn that I was the only person in the world who prepended with m_. Everybody else does with a leading or trailing underscore.
 
I do memberVariable_, but it looks like Mikhail is trying to move away from specific casing, so...
 
@Mysticial Ive seen m_ convention more than once
 
Is it because I mentioned it more than once here? :P
 
lol
no
 
@Mikhail just name everything java style
 
4:36 AM
@Mikhail just name everything java_style
all identifiers, everything
 
even your real name
 
see how many compiler errors you can get that way
 
Mikhail_Blah
 
 
3 hours later…
7:16 AM
So, normally in the constructor someMember(SomeMember) but its all over when you can't use case
Why would ReSharper do this to us?
 
 
2 hours later…
9:05 AM
@Mikhail Generally not that useful an ability
 
Hey guys! Just wanted to show you guys that the project I was making a few months ago(and discussing it here) made it to the top of the /r/MachineLearning subreddit :) reddit.com/r/MachineLearning/comments/77w42a/…
 
@Mysticial I don't use anything.
 
9:15 AM
@OneRaynyDay looks like one of my homework assignments in undergrad
 
mmm i see
 
bin is so much more appropriate
I hate you guys
7
 
 
1 hour later…
10:43 AM
Does machine code polymorphism present significant interest for improving program performance?
 
Can you sell it as a JIT?
 
11:08 AM
because you deserve it
 
@Mikhail Probably but something what could take advantage of C++
 
@Mikhail The member initialization list does the right thing, even if the member has the same name as the parameter.
229
Q: What is this weird colon-member (" : ") syntax in the constructor?

nilsRecently I've seen an example like the following: #include <iostream> class Foo { public: int bar; Foo(int num): bar(num) {}; }; int main(void) { std::cout << Foo(42).bar << std::endl; return 0; } What does this strange : bar(num) mean? It somehow seems to initialize the member varia...

i.e. Foo(int bar) : bar(bar) would work
 
11:28 AM
@Mikhail I am imagining something like LTO which happens in runtime.
 
12:01 PM
> I almost always use not instead of !. I feel that it's harder to miss when reading code, and somewhat easier to grep.
> Use the SHOUTING NOT operator: !!!
 
@fredoverflow some people apparently do if(false == condition) because of that
 
if (condition)
{
    // do nothing
}
else
{
    // condition is false, do the work
    ...
}
reminded me of this:
 
12:25 PM
> Alpes-Maritimes : un médecin radié pour avoir soigné un cancer avec du radis noir
 
Ell
1:05 PM
hi
 
1:29 PM
So I was looking for old versions of Bibutils to create a Git repository archiving as many revisions as I could find. It turns out somebody has already done that before and managed to find many more revisions than I did.
 
Wait, Donald started one of his tweets with "I agree..."?
What happened?
 
@Columbo Maybe his wife was agreeable that night? :)
 
I am not very familiar with git, when my cowork pushes something, and I had something already committed locally, I get a error like error: failed to push some refs to repository, then if I pull and then push, it works fine, but on bitbucket page it was rebased(I think that is the name? there was 2 paths and they meet at the top)? Is there a way to avoid that? My problem is that I often commit things locally, and if my cowork does a push, my commit will produce that issue.
sorry about the offtopic question :/
 
@Guapo That is the whole point of distributed VCS like Git.
Apparently, you have set up or the default is to rebase local unpushed revisions on pull.
Actually, two paths meeting at top means ordinary merge.
 
@wilx I thought the normal behavior would be for it to complain about changes and make me check/fix if they conflict if not allow me to push just fine
 
1:37 PM
@Guapo The pull does that and it merges them if there are no conflicts.
If you want more control, do fetch and then merge.
 
@wilx and yes its marked as merge indeed, looks like this i.imgur.com/T2WqgKf.png
will fetch / merge still make it a new branch of it? is there no way to keep it in the same branch?
 
@Guapo pull is just a short for fetch and then merge. You could do rebase as you have alluded to initially. E.g., pull --rebase.
 
thanks I will try that next time I have to
 
 
3 hours later…
4:55 PM
@DiegoPereira c’est similaire à cette histoire de médecin scélérat qui prescrivait du céleris
 
 
1 hour later…
6:36 PM
OpenSSL has been pretty aggressive with depreciations lately. First, this week my RSA SSH key stopped working in Cygwin because it is less 1024 bits and today I have noticed that I had to provide password even though ssh-agent was running.
It turns out DSA keys were also depreciated.
 
how did you end up with a RSA key with <1024 bits
 
@milleniumbug It was generated at a time when that was enough.
 
that was fairly long time ago, I think
15 years?
 
@milleniumbug Not that long time ago. I think I must have generated it in like 2009 or such with PuTTTGen.
 
I suppose you could get an older version, connect to the server, and replace the key
 
6:47 PM
@wilx I think you mean deprecated
depreciated is a completely different thing
 
the current preference for SSH keys seems to be ED25519
 
@Puppy Most likely.
 
> Sorry, we couldn’t find that page
 
7:05 PM
I probably mistook that last 7 for a slash and deleted it :(
 
7:17 PM
@fredoverflow You need to sit closer to your screen.
...or glasses. :)
...or better font!
 
@wilx I sit an arm length away from a 27" monitor at 1080p...
 
Wrong DPI settings for the screen?
 
7:58 PM
Hey, so disregarding how horrible that someone is - I have a friend who (gulp) wants to learn C++ as a first programming language. They have an interview in a week about C++ and they don't know any coding let alone in C++.
I warned them they are in for a world of suffering and I warmly recommend against it.
That said, are there any C++ books you guys would recommend for "C++ as a first language"? inb4 already sent him all the books about suicide and mental help.
(My go to books in C++ assume it's not the first language, even "The C++ Programming Language" assumes it's not a first language IIRC)
 
how can you have an interview with c++ and not know any coding..
 
That's what I said
He has a week to learn
 
Ask him to hire a mentor.
 
i don't think you can go from zero to meaningful understanding of c++ in 1 week, maybe regurgitate answers to typical interview questions..
c++ was my first language, I don't remember any books that helped aside from Bjarne's
 
@BenjaminGruenbaum Wait, wait, wait. They're trying to get a programming job after a week of learning?
...and here I keep wondering if I'm not good enough.
 
8:08 PM
Aren't you required to be a genius to accomplish that goal in a week?
 
Is it harsh to say that he's fucked?
 
If you need a time machine for learning C++ in 21 days, I would say 7 days is pretty much impossible.
How about Accelerated C++ though?
I mean yeah, it doesn't cover C++11 and up, but a newb won't be able to understand rvalue references, anyway :)
@BenjaminGruenbaum That is correct. How about the Swan Book by the same author, though?
 
@Mysticial No, it's unrealistic. He's totally and completely buttfucked sideways.
 
8:24 PM
@fredoverflow that's a good book?
 
@BenjaminGruenbaum It's one of the few C++ books that actually teaches C++.
 
@Puppy I guess "fucked" vs. "buttfucked" falls along the same lines as whether Rex Tillerson called Trump a "moron" or a "fucking moron".
 
@fredoverflow I'll recommend it then.
 
@BenjaminGruenbaum TBH, nobody can learn C++ in a week. I'm not sure how he thought it was a good idea to try to get a programming job with no programming experience at all.
 
> Accelerated C++ (Andrew Koenig and Barbara Moo) This basically covers the same ground as the C++ Primer, but does so on a fourth of its space. This is largely because it does not attempt to be an introduction to programming, but an introduction to C++ for people who've previously programmed in some other language
3498
A: The Definitive C++ Book Guide and List

Johannes Schaub - litbBeginner Introductory, no previous programming experience Programming: Principles and Practice Using C++ (Bjarne Stroustrup) (updated for C++11/C++14) An introduction to programming using C++ by the creator of the language. A good read, that assumes no previous programming experience, but is n...

@BenjaminGruenbaum seems I remembered it wrong
 
8:30 PM
I just don't understand why anyone would want to learn C++ as a programming language, let alone as a first one.
@Mysticial I'm not sure either, it's a stupid idea and I recommended against it.
 
I have almost 7 years of C++ experience now, and I would barely consider myself competent. It's just that crazy of a language.
 
@Mysticial Honestly? I gave up on C++. I just can't take the complexity anymore.
 
To be fair you know he doesn't actually have to "know" C++, most C++ developers don't.
 
I seriously started C++ near 2011 I think
 
@fredoverflow I said "competent", not "good" or "skilled" or "expert". :P
 
8:32 PM
I still don't understand a shitton of things some people here understand
 
Also, whenever I see a resume where someone claims to be an expert in C++, it usually raises red flags.
 
@Mysticial you're excellent on the low-level aspects; C pedantry perspires
 
I don't understand a lot of things about C++, but I'd say I'm competent in it since I delivered projects in time in it and those were not shitty.
I don't know C++, I only know JS which is much smaller, and C# which I used for a lot of time - and I wouldn't say I'm an expert in either.
Heck, I don't think there is one programming language I really know.
 
@BenjaminGruenbaum Do you know all implicit conversions and comparison rules in JS? ;)
 
That said, when I say he wants to know C++ in a week, that means I'd expect him to write the same code I'd expect him to be able to write in Python after a few days.
@fredoverflow I honestly memorized the abstract equality and abstract comparison algorithms, but that's a really bad sign not a good one :D
He has a mathematics B.Sc and quit his M.Sc, he's not stupid, I recommended Python as a first language.
Thanks for the tips and for the confirmation this is an impractical task.
 
8:40 PM
@BenjaminGruenbaum Wait, he is a mathematician? Then there might be a glimmer of hope left.
Mathematicians and physicists almost always outperformed the computer scientists at our University.
 
9:02 PM
@EuriPinhollow Foremost, all language including C++ would benefit from a JIT. Here is a fun idea, make an easy to use wrapper around GCC that compile C++ for the =native target on first run, similar to Android's ART.
Then the user would gets a 30 minute "installing" message :-)
 
you'd need to get an easy way to ship your (and third party) headers
 
Perhaps automatically pack cmake?
 
@Mikhail Does not look like much fun for me, on-target compilation is far cry from what I am talking about.
 
Well the file size savings from LTO are already included in the DLL mechanism. AKA you only load the DLL once into memory, for all running instances.
 
I then need to read about LTO because I might be mistaking the definition.
 
9:08 PM
that said, it's not a completely stupid idea
 
Which one?
 
a "JIT" compiler
 
too bad JITs are banned in the dystopia Windows Store future
on the other hand this solves the halting problem
 
BTW rules are unpinned
 
The problem which led me to such question is that I have hit C++ template restrictions while trying to write a program in sort of optimal way (performance + code reusage + fewer unreadable template usages). Besides that it can be solved with if constexpr it could also be solved with machine code substitution at runtime so that when you point a pointer at function which is then invoked what actually happens is machine code gets linked together.
 
9:15 PM
Whats a C++ template restriction?
 
I like The Orville. The jokes could be funnier but overall it is not a bad sci-fi.
I hope it does not get cancelled too soon.
 
10:07 PM
It's Halloween season. Read the rules to avoid the ghouls! If you have questions about C++, take them where they belong.
12
 
@Mikhail Not being able to partially specialize function templates. Partial ordering requirements. Non-generic handling of template template arguments and or non-type arguments. Duality of sfinae. Disallowing template members in local types. The works.
Try to implement structured binding for Fusion sequences for fun.
@EuriPinhollow hmmm. That sounds a lot like type erasure of the sort function
 
@sehe I wonder how you found it out. :D
 
I want the latest proposals mailing to be available already
 
@EuriPinhollow Because that's what you describe
 
@sehe Please inspect my post a bit more, I said nothing about sorting.
 
10:13 PM
Haha. I see
> write a program in sort of optimal way
Misread that a bit. Doesn't matter: "Sounds a lot like type erasing the function signature"
 
I do not get it. It's not possible to call functions with different signatures through a pointer.
 
@Mikhail On a purely theoretical basis, you're undoubtedly correct--all else being equal, compiling on the final target lets you gather more information about that target, and optimize appropriately. All else is never equal though. Experience with .NET, Java, etc., indicates that the theoretical strengths of JIT are consistently outweighed by its weaknesses (mostly: user waits during optimization).
 
@EuriPinhollow ...
 
Branch prediction in CPU is giving similar benefit in the case I am describing so vaguely but without any code morphism.
 
I have no clue what BTB is here. I'm going to bed.
 
10:17 PM
@sehe The only "BTB" of which I'm aware is the Branch Target Buffer. Hardware to help predict indirect jumps.
 
10:40 PM
@NeilButterworth Thanks for the authoritative link. In practice, I'll take the risk of a user typing in over 16 megabyte of text data at the console, all without ever being tempted to hit Enter. To the OP: the linked question shows you the details of how to best skip the remaining input till the end of line. — sehe 14 secs ago
Why are people being so dense.
Don't they see the difference between "I'm prompting the user for input" and language-lawyering questions.
 
It's a shame that in order to ignore everything till the end of the line I have to type in .ignore(std::numeric_limits<whatever>::max(), '\n')
 
Hint: you don't have to. But by all means, if you post anything on SO, do so or receive the death penalty.
 
It's totally non-obvious to write (how to come up with this, cppreference helps here), read (it's loooooooooooooong), and interpret
 
Yeah. Of course there just needs to be the overload, but since we don't have Uniform Function Call syntax, there's no way to extend the standard library with it.
New, improved version that rights my wrongdoings, hopefully /cc @NeilButterworth — sehe 22 secs ago
 
11:15 PM
lol cryptocurrency, ride sharing services ... or other sharing economy technology - are they really new innovative technology of just new ways of doing old things?
 
> Irrevelant fact: searching for "revelance site:knowyourmeme.com" gives the entry for ahegao as the only result context
 
11:29 PM
@sehe I will posit that it's best to not pass std::numeric_limits::max() to ignore. As soon as you've read enough to be certain there's a problem, you should stop and report the error. Programming the machine to read and ignore input for hours (or potentially even years) is clearly a bad idea, and should be avoided.
 
11:46 PM
@JerryCoffin Well, ignoring input for years is what I've been doing and I'm just fine.
 
World's strongest men pull trucks
good job, that's what the horses do ...
 
@набиячлэвэли We expect more of our software though... :-)
 
... like ... input?
 
@Telkitty Like intelligent behavior.
 
Can't. Too busy typing ellipses.
Suggestion is so much cooler for the lazy. You can have others complete your flawed thoughts.
 

« first day (2563 days earlier)      last day (2371 days later) »