« first day (1750 days earlier)      last day (3183 days later) » 

12:00 PM
hello
is it possible to have a friend static operator?
oh, haha, yes it is
I just had a derpy mistake
would there be any benefit in making operators static friends rather than members?
 
time 4 bed ... I need to be ready for the 20km tomorrow >_<
 
@fredoverflow Bread is SERIOUS BUSINESS
 
12:16 PM
@MichaelMitchell Making new friends is always good!
 
.503 is my best :\
 
@fredoverflow I have read that it is prefered to have functions a static over member and friend if you can't do purely static
would this be a good rule to follow for operator overloading?
 
I don't know.
10
Q: How Non-Member Functions Improve Encapsulation

AppuI read Scott Meyers article on the subject and quite confused about what he is talking about. I have 3 questions here. Question 1 To explain in detail, assume I am writing a simple vector<T> class with methods like push_back, insert and operator []. If I follow mayers algorithm, I would end up...

1
Q: Non-friend, non-member functions increase encapsulation?

BadCashIn the article How Non-Member Functions Improve Encapsulation, Scott Meyers argues that there is no way to prevent non-member functions from "happening". Syntax Issues If you're like many people with whom I've discussed this issue, you're likely to have reservations about the syntactic...

1083
Q: Operator overloading

sbiWhat are the basic rules and idioms for operator overloading in C++? Note: The answers were given in a specific order, but since many users sort answers according to votes, rather than the time they were given, here's an index of the answers in the order in which they make most sense: The Gene...

You will probably find your answer in one of these questions.
@Rapptz I hate eating at other people's places.
 
"I heard that doing XYZ is good..." STOP THAT. Every advice without rationale becomes bad advice.
 
is why I am collecting what other people think
 
12:27 PM
ergh... except it's not cargo culting, it's giving reasons why it is good
 
I'm referring to the original question
 
oh right, well balls to reading stuff
 
> Good advice comes with a rationale so you can tell when it becomes bad advice. If you don't understanding why something should be done, then you've fallen into the trap of cargo cult programming, and you'll keep doing it even when it's no longer necessary or even becomes deleterious.
 
12:48 PM
o_0 this is such an odd video... mildly nsfw maybe... Leeloo Dallas
 
I don't understand what it means by a class' public interface
 
@MichaelMitchell the public stuff of a class
=/
 
that is what I thought :/
lol
 
in C++ talk, anything 'public' is part of the interface of that class.
 
user1804599
Use Haskell.
 
12:50 PM
@rightfold shaddap
 
I am making a uint2048 class and it has a private array of 32 64bit unsigned longs. since those are not in the public interface, I should make a operator+ which uses this private array a member function?
 
I lost you towards the end
 
im looking at the suggested rules on drdobbs.com/cpp/how-non-member-functions-improve-encapsu/… for determining if a function should be member or non-member
as an example to concretize my understanding I am trying to understand if an operator should be a member function if it uses data in the private interface of a class
 
szx
afaik operators are usually defined as friend functions
but I might be wrong
 
1:01 PM
The binary operators often don’t have a privileged parameter and are a better fit as a friend function than a member. E.g. all the relops stuff, operator== and so on.
 
@ʎǝɹɟɟɟǝſ for a large number?
 
@MichaelMitchell generally friend functions are considered the better approach, but not all operators can be done that way
 
@thecoshman does it effect anything outside of code maintainability?
 
1:04 PM
@MichaelMitchell using uint2048_t = number<cpp_int_backend<2048, 2048, unsigned_magnitude, unchecked, void>>;
 
The rules for converting an implicit parameter are not the same as a regular function parameter. Non-member functions can use ADL.
 
@MichaelMitchell not really I think...
I think it basically boils down to friend functions can make operators easier to use, but you can't do everything that way.
 
@thecoshman can you give a possible example of an operator that would have to be member and not friend?
@ʎǝɹɟɟɟǝſ thanks for making me aware of it. I implemented it for learning.
 
It doesn't really affect maintainability either
It's just ~~class interface purity~~
 
@MichaelMitchell Learning what
Big nums are boring as fuck
 
1:10 PM
@ʎǝɹɟɟɟǝſ I got to play with intrinsics and found addcarry and subborrow
 
@MichaelMitchell assignments operators, in/de-crement
 
@thecoshman that makes sense
 
1084
Q: Operator overloading

sbiWhat are the basic rules and idioms for operator overloading in C++? Note: The answers were given in a specific order, but since many users sort answers according to votes, rather than the time they were given, here's an index of the answers in the order in which they make most sense: The Gene...

seriously, read that
all of that
then read it a few more times
and then read about all the things that are mentions that you do not understand
come back in a weeks time so we can tell you go read it all over again.
 
well put :)
 
I'v either upset the lad, or he's reading away :\
 
1:16 PM
@thecoshman I would only be upset if you called me stupid and didn't give me a way to fix it
 
@MichaelMitchell What are those?
 
user1804599
You are stupid.
 
@rightfold yar
@ʎǝɹɟɟɟǝſ aliases for adcx and sbb instructions
adcx adds two integers up to 64 bits in size.
sbb subtracts two integers
 
I rest my case. Boring.
 
adcx will also give you a carry flag if the addition overflows the integer size
sbb gives a borrow flag if the subtraction nets a negative
perhaps individually they are boring functions, but knowing how to use the set of functions they belong to is useful
 
1:26 PM
@MichaelMitchell For what?
Writing yet another big num class?
It's like those people that keep writing their own vector containers.
Even Qt does that
And then maybe claim that malloc will be useful
 
And even then that was only because Qt was designed before C++ was standardised
Also MFC
 
There are so many unsolved problems in our industry.
Choose one of those if you are that kind of person
 
Write an IDE project converter
As in, for example convert a VS2010 project to Code::Blocks project.
Except with multiple IDEs
 
what are we talking about?
 
user1804599
1:30 PM
This guy is hilarious.
 
Ell
well fucking shit
While dancing to the install gentoo video, my phone flew out of my hand and the screen has shattered. I am leaving on monday morning and the local electronics store doesn't recognise a OnePlus One...
11
 
> While dancing to the install gentoo video
 
@Ell lol, you fucking prat
 
May 4 '14 at 22:32, by Jefffrey
That guy is funny
 
This alone is star-worthy material
 
user1804599
1:32 PM
@ʎǝɹɟɟɟǝſ :p
 
You are more than a year late you twat
 
user1804599
I'm not a twat.
 
Not yet
 
@rightfold Prove it
 
Ell
I'm seriously fucked man
 
1:44 PM
@Ell Gentoo is evil. Never recompile Gentoo.
 
Xeo
@Ell hahahaha
 
@Ell Man, who would dance while installing Gentoo video?
 
hilarious
 
@Ell Biggest lol
 
1:49 PM
lol
needs 10h version
 
@unordered_meow Making and uploading
whats the smallest video format?
 
GCC is being funny again
0
A: Initializing std::array with Static Storage Duration with a Parameter Pack Expansion and an Additional Value

ColumboInteresting bug! Minimal reproducing sample: #include <array> constexpr auto make_array(int i) { std::array<int, 2> values = { i, 0 }; return values; } constexpr auto arr = make_array(1); static_assert(arr[0] == 1, ""); Demo with HEAD. By now we can safely say that no UB is induced....

I've said it before and I'll say it again: GCC is full of bugs and crap. /cc @R.MartinhoFernandes
 
2:05 PM
@R.MartinhoFernandes Coliru mobile uses the -moz-box-flex -webkit-box-flex stuff. I suspect your browser has issues with that.
flexible boxes are one of the few sane ways to do layouting
esp in css
 
Ell
and my payment method is that phone :(
 
fuck
i cant damn concat files with ffmpeg
seems like the tool is broken, as its not accepting any input whatsoever
dont worry guys, 10 hour gentoo is coming
 
what are you trying to concat?
 
@melak47 gentoo.mp4 with itself 680 times
 
you can loslessly concatenate mp4's if you first convert to mpegts
 
2:18 PM
@melak47 mpegts?
 
mpeg transport stream or something
look for mp4
 
still getting damn invalid input
i think its a problem with the hack im doing
 
@StackedCrooked It's Firefox. They invented moz-box-flex, I guess.
 
hmm..
 
i get invalid data, even if i throw normal files
seems like its ffmpeg
 
2:31 PM
ffsmpeg
 
i'd rather blame it on your browser than on my code.
 
@ʎǝɹɟɟɟǝſ ?
 
because my code is perfect
 
@Columbo I don't know why you pinged me with this.
 
@ChemiCalChems get a newwer ffmpeg, don't do hacks, try again? :p
 
2:33 PM
@melak47 got the latest
 
@R.MartinhoFernandes Because you've been defending GCC lately IIRC
 
100 try
 
@Columbo Mostly dissing MSVC.
And clang hype.
 
@R.MartinhoFernandes Clang is awesome
 
I don't care.
 
2:34 PM
@R.MartinhoFernandes …and VC++ is the worst shit under the sun.
 
It doesn't compile my code.
 
@R.MartinhoFernandes Wait what
Show me your code and I'll make it compile
I swear to the non-existent deity that people occasionally swear upon!
 
You're just another stupid fanboy.
 
user1804599
Flexbox is awesome.
 
user1804599
Always use flexbox.
 
2:36 PM
Woah, woah, mate. Who do you call stupid? My code compiles under Clang.
@rightfold Just like COBOL, eh
 
Xeo
@Columbo "make it compile" is exactly what this is about. you shouldn't have to do that, since his code is standard-compliant.
 
@Xeo Which code are you guys talking about
 
@Columbo Are you saying you'll fix the bugs in clang yourself?
Because clang is full of bugs.
@Columbo I did that because you assumed clang was invariably correct.
 
@R.MartinhoFernandes I did no such thing.
 
@Columbo Why did you assume my code needed to change?
 
2:38 PM
@R.MartinhoFernandes Because I assumed it used non-standard extensions or gray zone stuff.
 
Nevermind that most of these things are bugs that have been open for years.
 
@R.MartinhoFernandes Can I see your code?
 
Xeo
@Columbo Just because clang couldn't compile it? Clang fanboy! :P
 
@Xeo :D
@R.MartinhoFernandes Did you show it to @Xeo
 
2:38 PM
No..
Go to the clang bug tracker.
It's in there somewhere.
 
Wait, how did @Xeo know that your code was standard compliant
 
You don't have to fix my code.
 
@R.MartinhoFernandes Anyway, Clang fanboy => Your argument is invalid
 
Typical fanboyism: you want to deal with my lack of belief, not to actually deal with clang's failure.
 
+ nice warning and error messages
 
2:40 PM
ok
 
user1804599
@Columbo Throw an InvalidArgumentException.
 
got a 10:06 hours video
 
which bug are we now talking about? :D
 
fine tuning
 
@ChemiCalChems now upload to youtube
 
2:40 PM
@Columbo Yeah, that's bullshit too. It hasn't been any significant advantage after that first year.
 
@R.MartinhoFernandes Clang does have a shitload of bugs.I know that. I just believe that Clang was written in a modern manner that allows these bugs to be fixed with significantly less effort, making it nicer to evolve.
 
@melak47 its huge
 
@Columbo And yet GCC doesn't fall behind vOv
 
Xeo
@Columbo I think I know which bug in particular he thought about there.
 
(Ask Puppy about LLVM's code)
 
2:41 PM
@Columbo Ahahaha you probably haven't seen any of Clang/LLVM code then
 
The video is about 2 gigs
 
@CatPlusPlus Not one bit lol
My arguments aren't actually valid, I'm just a Clang fanboy
 
The one good thing clang brought was the start of an arms race.
 
@R.MartinhoFernandes It does. Look at implemented C++1Z proposal features.
That's what I'm after.
@R.MartinhoFernandes Yep. Know that Clang showed how good a compiler can be, GCC had to catch up.
 
2:43 PM
@Columbo Er, at any given point in time one of the two will be ahead vOv
 
It's so terrible that they're behind on implementing unfinalised unstable features that might change at any time
4
 
@Columbo lol modern
 
Ohhh clang vs gcc pissing match, grabs popcorn
 
that codebase is full of owning pointers
even owning references
 
@AndyProwl Maybe even owning smart pointers shudders
 
2:45 PM
here and there. But the code definitely doesn't look "modern"
 
It does if you don't actually look at it and just read the hype.
 
uploading
 
@AndyProwl :-( So Clang is not as incredibly awesome as the "disabled by enable_if"-diagnostics were suggesting?
Starts sobbing
 
@Columbo I haven't followed the discussion, I'm just saying the implementation is not clean. The idea is what is awesome
 
Does it implement exceptions on Windows yet
 
2:47 PM
@CatPlusPlus What does that mean
 
AFAIK they're almost done but no
 
@CatPlusPlus Good question, I haven't bother to check, all I know is it doesn't compile ogonek :(
 
well they've been almost done for like a year or so
I'm not sure
Puppy would be able to tell
 
I've been making that joke for like 3 years now
Clang best compiler
 
2:48 PM
@CatPlusPlus It's not funny! >:(
 
It's extremely funny
 
@CatPlusPlus on x64 yes, still something to be done on x86 though
 
@CatPlusPlus Wait, so you have to compile with -fno-exceptions on Windows?
 
Xeo
you can compile with exceptions, but you have to hope that none is actually thrown, IIRC. :D
 
my computer is fucking dying while uploading the 10 hours of video
 
2:55 PM
@Xeo lol
Haven't they implemented DWARF or some shit
Like, GCC has got SJLJ and DWARF IIRC
 
slo SEH? :S
 
We will be starting out Q&A read-only test in a few minutes.
 
@melak47 SEH too
Oh, wait, MinGW doesn't actually support dwarf
 
that's the one clang's got working on x86_64 win32
@Columbo mingw64 does, IIRC?
 
> The Dwarf-2 EH implementation for Windows is not designed at all to work under 64-bit Windows applications. In win32 mode, the exception unwind handler cannot propagate through non-dw2 aware code, this means that any exception going through any non-dw2 aware "foreign frames" code will fail, including Windows system DLLs and DLLs built with Visual Studio.
> Dwarf-2 unwinding code in gcc inspects the x86 unwinding assembly and is unable to proceed without other dwarf-2 unwind information.
 
3:21 PM
Read-only Denver data center failover test is starting now.
 
3:42 PM
gonna create the most useless tool ever
the 10 hour video creator
you give it a video, and it gives you back a >10 hour video
the closest possibility
 
@ChemiCalChems Vlad?
wait he already exists
 
@Borgleader lol
 
We're bringing all traffic back to New York (exiting read-only) now.
 
oh I missed you guys so much
:'*
@Columbo seems a good solution
 
Xeo
4:02 PM
Great. I can't get desktop Skype to run because some random dll has gone missing, and now they're killing metro Skype.
 
lol Skype
 
@Xeo Recompile kernel
 
I won't be surprised if they start including bitcoin miner or if they did so already
 
Fuck photoptasmosis.
One day I'll have an accident because the sun made me sneeze.
 
oh yess
awesome /cc @AlexM.
 
4:09 PM
@R.MartinhoFernandes AKA Autosomal Dominant Compelling Helio-Ophthalmic Outburst Syndrome
 
@TonyTheLion o.o srsly?
 
The photic sneeze reflex (also known as photoptarmosis, Autosomal Dominant Compelling Helio-Ophthalmic Outburst Syndrome (ACHOO) and colloquially sun sneezing) is a condition of uncontrollable sneezing in response to numerous stimuli, such as looking at bright lights or periocular (surrounding the eyeball) injection. The condition affects 18-35% of the population, but its exact mechanism of action is not well understood. == Overview == The photic sneeze effect is a genetic tendency to begin sneezing, sometimes many times consecutively (due to naso-ocular reflex) when suddenly exposed to bright...
See here ^
 
Xeo
@TonyTheLion dat backronym
 
ill be damned, ^ this
 
@Xeo lol
 
Ell
4:12 PM
I found a phone repair shop finally
I pray to allah they can fix it by tomorrow
 
@Ell why do you need it fixed by tomorrow?
 
Ell
Because I'm using revolut (revolut.com) to get my euros for my trip
and the only way to top up my card is via this app
 
Ell
I think.
 
4:36 PM
yeah, driving! starting to be more relaxed in the old broom brooms
 
i dislike driving, i cant wait for self driving cars to be a thing
 
@ChemiCalChems o_0
 
I don't have a licence, I can't wait for self driving cars too
 
@unordered_meow same here, never finished mine because i didnt like driving so i wasnt motivated to take the exam
 
I like driving, and it'd be nice to be able to drive out of town. Plus the old gf's parents are getting older... so you know, might need to start being more grown up about some things.
ffs as much as some reddits have nice communities, over all it's pure scum. Some gif shows a cop stopping another from being heavy handed, but nooo, this must be propoganda and never happens in real life
 
4:41 PM
@thecoshman something something cesspool of scum and villainy
 
morons are everywhere
 
@Borgleader already covered that :P
 
@thecoshman im making a reference D:
i think... need to verify the quote
You will never find a more wretched hive of scum and villainy.
shit...
wretched hive, not cesspool
 

« first day (1750 days earlier)      last day (3183 days later) »