« first day (1448 days earlier)      last day (3491 days later) » 

9:00 PM
Here's this fun activity to do when you are bored: check out which suggested site for each letter of the alphabet.
 
start with p and x
 
user1804599
@StackedCrooked That's not fun.
 
user1804599
That's even more boring than reading a book about HTML.
 
@rightfold absent?
 
user1804599
I like how -ferror-limit=1 still emits two errors because "too many errors emitted" is an error.
 
9:03 PM
a: amazon.com, b: boost.org, c: coliru.stacked-crooked.com, d: deredactie.be, e: en.wikipedia.org/wiki/Category:2014_anime_television_series, f: facebook.com, g: gmail.com, h: hotmail.com, j: company related, k: kickass.to, l: linkedin.com, m: mycloud.rackspace.com, n: nyaa.eu, ....
 
user1804599
x completes to xhamster.com on my machine.
 
o, q, u, x and z have no completions
 
user1804599
> note: in instantiation of template class 'baka::io::file_stream<baka::io::unique_fd, 1>'
 
user1804599
It's baka::io::file_stream<baka::io::unique_fd, baka::io::operation::write>, not baka::io::file_stream<baka::io::unique_fd, 1>, you baka
 
v => vndb.org hehe
 
user1804599
9:05 PM
@StackedCrooked watch more porn.
 
@rightfold I applaud your fapping.
 
user1804599
I fap to your applauding.
 
@rightfold y is already taken by youtube.
 
user1804599
y?
 
Y
Y (named wye /ˈwaɪ/, plural wyes) is the twenty-fifth letter in the ISO basic Latin alphabet (next to last letter) and represents either a vowel or a consonant in English. == Name == In Latin, Y was named Y Graeca "Greek Y". This was pronounced as I Graeca "Greek I", since the classical Greek sound /y/, similar to modern German ü or French u, was not a native sound for Latin speakers, and the letter was initially only used to spell foreign words. In Romance languages, this history has led to the standard modern name of the letter: In Spanish, Y is called i griega, in Galician i grego, in Catalan...
 
user1804599
9:06 PM
Let's see.
 
@rightfold It's a letter in the alphabet. But since you are dutch I forgive you for not knowing this.
 
user1804599
 
Anyone here using mosh?
 
user1804599
@sehe I am not very knowledgable of such low-level concurrency primitives.
 
user3010322
Is operator++ and friends on iterator supposed to return the iterator, or the dereferenced type?
 
user1804599
9:09 PM
The iterator, duh.
 
@ThePhD This is what I meant earlier.
 
user1804599
Same as with pointers (pointers are iterators).
 
@rightfold faploading
 
user3010322
@StackedCrooked What do you mean, this is what you meant earlier? D:
 
@StackedCrooked nope. tried shells on mobile, but they suck. In dire emergency I'll use ConnectBot + Hacker's Keyboard. It's /passable/
 
9:11 PM
Your learning curve. You do convoluted enable_if stuff, yet you don't know what type iterator++ should return.
 
@ThePhD You asked a completely inane, elementary question. How could you know how to read *outit++ = *init++ if you didn't know?
 
of course it should return the same type
unless you are into fancy expression templates and stuff.
 
user3010322
:c
 
Hey, I still like you :)
 
user1804599
WHAT THE FUCCCCCCCKKKKKKKK
 
user1804599
9:14 PM
Okay, I need that inheritance shit. :<
 
I would understand if you didn't remember whether iterator++ returns It or It&.
But this is incomprehensible.
 
user1804599
CRTP to the rescue!
 
user3010322
Well, my iterator is actually returning
 
user3010322
A T
 
user3010322
Instead of a T& or const T&
 
user3010322
9:15 PM
When dereferenced.
 
CRTP is to C++ has Yonko is to One Piece.
 
This means CRTP in the top 4 of most powerful C++ techniques.
along with overloading, deterministic destruction and ...?
 
user3010322
SFINAE ?
 
user1804599
Oh, meh, a base cannot access a protected member of a derived class. Luckily we have friendship!
 
user1804599
9:19 PM
In PHP it can. :v
 
@ThePhD SFINAE is not among the big 4.
 
CRTP is not that powerful.
 
@rightfold You seem to be confused about strong typed and open typed languages lately
 
it's definitely curious, recurring, templated, and a pattern, but particularly powerful?
nope.
 
@Puppy Indeed. It is only that powerful
@Puppy It is powerful in enabling all kinds of polymorphism without the costs of virtual
 
9:21 PM
deterministic destruction is the #1 feature I'd name in C++.
 
x-macros are technically powerful enough to be among the big 4. but they are secret.
 
@sehe There's plenty of non-virtual polymorphism without CRTP.
 
user1804599
Why can I not use injected name in base class list?
 
most of the uses I've seen of CRTP aren't really powerful, just convenient.
like the boost operator mixins.
 
@Puppy meh. Of course. That's like saying sushi isn't interesting. "There's plenty fish in the sea".
As always, just say you don't like it
 
9:22 PM
and frankly, with inheriting constructors, in most cases you could just reverse the inheritance and get the same effect.
 
Convenience is powerful
 
boost::operators<T> : T { using T::T; /* define operators */ }; should be just as effective and without that static_cast/incomplete type crap.
 
Xeo
parameterized base class instead of parameterized derived class, meh vOv
 
yeah, I was just gonna say, wtf.
 
Xeo
@Puppy That'd imply you create your types as using stuff = boost::operators<real_stuff>;
 
@sehe I agree, but only when applied on a sufficiently large scale, I feel. If you have one function in your codebase and you reduce the implementation by one line, that's not power. It's only power if you reduce the size of every function in your codebase by one line, say.
 
Maybe you could consider CRTP is syntactic sugar for function overloading. But one cool thing is that CRTP methods can access stuff from the derived class without needing forward declarations.
 
@Xeo Probably.
 
@Puppy Sure
 
also
frankly, if you used boost::operators with a virtual interface, and then used a final derived implementation, you'd probably have to be a moronic compiler not to optimize that out in most cases.
the only painful point would be if you ever ended up dealing with the base class instead, I guess.
defining the operators themselves would be tricky not to accept too much.
yeah, that wouldn't really work.
 
9:27 PM
besides, no type could be trivial/POD that way
 
yup.
 
@Puppy boost::operators<MyClass> inherits MyClass?
 
@StackedCrooked Yup.
 
Then MyClass myclass; won't have them .
 
use an alias.
 
9:28 PM
I'd need to creat the object as boost::operators<MyClass> myobj;
 
using MyClass = boost::operators<detail::MyClass>;
 
0
Q: What is a good way to eliminate the boilerplate involved in defaulting/deleting move/copy semantics?

void.pointerScott Meyers has a good viewpoint on the rule of zero. Basically he advocates default move/copy assign/construct whether or not you actually need them. Basically the general rule of thumb is to avoid the compiler generation of these members, mainly because they are a big source of confusion (I ag...

Nooooo. Not macros
 
MyClass could inherit multiple CRTPs.
 
right, so just stick em together.
 
This can't be done with your system.
 
9:30 PM
what, you can't have using MyClass = boost::operators<boost::operators<detail::MyClass>>?
 
Yeah. That can work.
But it's obviously not as cool as CRTP.
 
yes, it's extrusive so you can layer it on top of an existing class.
and therefore better.
 
@sehe boost::non_copyable etc., cba though
 
user1804599
using MyClass = boost::operators<class {
    // …
}>;
 
user1804599
The ideal syntax!
 
9:32 PM
A silly workaround for lack of mixins
 
@rightfold would be nice
 
Also adding it to an existing class doesn't seem very beneficial in general
 
Xeo
Hmm, past 11:30pm already
time for sleeps
 
@CatPlusPlus Probably not in the case of boost::operators, but I can imagine some potentially more substantial ones that would be more useful.
 
9:34 PM
@TemplateRex Brilliant! Sadly removed already
 
A method is basically syntactic sugar for a function that takes the this pointer as a hidden param.. This makes me think that open classes are not different from open namespaces. Yet the former is considered horrible and the latter is not.
 
@sehe it's literally in his slides, I cracked up first time I saw it
 
unfortunate.
I was writing up an answer that sums up as "You're a moron, Scott doesn't know shit about this issue, hth"
 
@TemplateRex I remember those slides, not the quote so much. More the matrix showing which members get implicitly defined/deleted when
 
@StackedCrooked It is absolutely not syntactic sugar for a function that takes the this pointer as a hidden param.
 
9:36 PM
‘answer’
 
^ in Puppy's universe
 
@sehe what would you expect from an OP named "void.pointer" :P
 
Open namespaces are kind of horrible
 
@Puppy hth are you Alf?
 
Esp with overload hijacking
 
9:37 PM
actually I nicked it from Cat on this particular matter.
 
@AndyProwl nothing actually, I don't discriminate towards such extremities, apparently. I do look at the rep though
 
The thing about these things is that changes in them affect unrelated parts of code
But open classes are typically found in dynamically typed languages where the hijacking is much easier to do and possibly more disastrous
In short fuck rubby
 
@Puppy I think you are one of the most knowledgeable people about C++ in this room (probably in the top 3). Yet you destroy your own credibility with your style of argumentation.
10
 
the problem with the OP has nothing to do with any technical problem.
 
puppydibility
 
9:39 PM
it's that he thinks that a bunch of disgusting macros is better than a simple language feature being used for exactly it's primary purpose.
this is not really a "I need a correct technical solution" moment.
 
Also tone argument
My left mouse button finger hurts :(
 
I have an apple mouse so everything hurts.
My Razer died :(
 
Also I kinda want to buy Shadow of Mordor but I promised myself to not buy games at release anymore
 
user3010322
Just dooo it.
 
user3010322
What's the woooorst that could happen?
 
9:41 PM
Ooh but EU4 is on sale
 
@Puppy did you kiss and make up with Eric N.?
 
Democracy or EU4 that's the question
 
who?
 
user3010322
EU4?
 
user3010322
European Union 4?
 
9:41 PM
@Puppy Eric Niebler
 
Europa Universalis
 
oh that guy
 
user3010322
Sounds like a drug.
 
that was you right, about the exception thingy, on his blog
 
user3010322
4th edition drugs sound good.
 
9:42 PM
well, I have a job now and cannot go around correcting everyone on the Internet who doesn't have a clue about programming anymore
 
Give it a month
 
is "hate" such a strong word in US English vs UK English?
 
not that I previously managed to cover the entire Internet
but you know
 
@ThePhD you mean like the e-cigarette?
 
user1804599
Hmm, GitHub automatically closes issue #N when there is a commit with "fixes #N" in it.
 
9:43 PM
Eh fuck it not buying games right now
 
I didn't get his strong reaction
 
whose strong reaction?
 
Eric's
 
didn't read it
 
he seemed genuinely upset that you used the "hate" word
 
9:43 PM
maybe I'll take a few minutes of my busy schedule to aid him, then
 
@Puppy your inclination to "answer" also has nothing to do with any technical problem.
 
you wrote "I hate people who...", instead of "I hate it when people do..."
 
It's not interesting
 
I hate people too
 
It's mutual
xD not really, of course, you lovely monoclifer critter
 
9:45 PM
@TemplateRex That's because bringing down the process because you're an idiot doesn't just make your life more difficult, it makes my life more difficult too because I can't do any error handling in my own application/library.
and I tend to dislike people who make my own life more difficult for no benefit
most people do
 
> This time it is PPK, a well known JavaScript guru and very influential author that has written it. And I get to disagree with another one of my heroes. (Just recently I have disagreed with Rasmus Leerdorf on the naming of the next major PHP version...)
lol RL being someone's hero
 
He's truly saying these things, right? It's all a bit off-the-scale for me
 
@sehe special Greek/Latin word riddle for you: what's a pedo-pyro-klepto-filatelustrum?
 
I'm a fuckin precog
 
9:47 PM
no.
 
@TemplateRex filate? that's mighty awkwardly anglicised then?
@TemplateRex kinder postzegel pleister?
2 messages moved to bin
 
@sehe someone who once every 5 years sets stolen Kinderpostzegels on fire
 
@TemplateRex child-fire-steal-synatax error
 
@TemplateRex top heavy
burp
 
strtol is not *tol*erated here
 
9:48 PM
@sehe yeah, reminds me of C++ annotations on functions nowadays, with teh virtual static constexpr final override
not to mention the [[deprecated]] and [[no-return]]
 
do didn't forget to add attributes! And maybe c/v ref-qualification
 
@sehe decltype(auto)
 
> Costly kids – one in five families lose money or data due to children on the Internet
haha suckers
 
@TemplateRex noexcept
 
decltype(auto) will be a language wart for some years. I long for Modules/Concepts to make up for the pain.
 
9:51 PM
@CatPlusPlus The rest of them just lose their whole kids to the Internet.
 
@AndyProwl a keyword here, a keyword there, pretty soon those oneliners need to be refactored
 
@Puppy ouch. Time will heal all wounds...
 
@Puppy Less expensive in the long run
 
My colleague loves to introduce unusual compiler warnings. He also likes to litter the code with stuff like __attribute__ ((warn_unused_result)). The only problem is ... he doesn't fix new warnings introduced.
 
at least virtual and static won't go together
 
9:52 PM
It only increases the number compiler warnings.
 
Have CI server yell at him
Repeatedly
Via text-to-speech
 
we should message void.pointer to write class foo { static constexpr decltype(auto) bar() override final noexcept; }; as the canonical class, but otherwise rely on the Rule of Zero
 
@CatPlusPlus I get hundreds of mails per day from the CI server.
 
@StackedCrooked I recommend -Weverything on clang, takes a while to plug every warning, but then you are all set
 
You should be as red as your builds
 
9:55 PM
It's sad. I've developed psychological defense mechanisms to prevent me from going insane.
 
Turn warnings off
 
@StackedCrooked i use Uncly Remy
 
In my projects I use Wall Wextra and Werror.
But not the main branch.
 
Wall Of Extra Terror
 
@StackedCrooked i use -Weverything and then add -Wno-xxx whenever I need to workaround (e.g. Boost.Test has an annoying known bug)
 
9:57 PM
Sounds like a Doctor Who episode
 
Every time I build the project I see warnings like "missing return statement". And it seems like I am the only person who worries about that.
 
user3010322
Lol.
 
user3010322
"Who needs returns anyways?"
 
@StackedCrooked annotate [[no-return]] ;-)
 
Yeah. They are for sissies.
 
9:57 PM
> By using culturally relevant, historically pleasing ratios to create modular scales and basing the measurements in our compositions on values from those scales, we can achieve a visual harmony not found in layouts that use arbitrary, conventional, or easily divisible numbers.
peopleareweird.txt
 
user3010322
"By applying arbitrary designer math to our arbitrary base values, we achieve numbers less arbitrary than everyone else."
 
user3010322
business.txt
 
Ell
it's like negative numbers
 
@Puppy nowadays, parents only worry about what their sons download, and what their daughters upload
 
Ell
arbitrary * arbitrary gives a non-arbitraty
 
9:59 PM
@TemplateRex actually, it's not gender bound for me
 
You wouldn't download a son
 
@sehe I never heard boys being extorted for nude pics, but I would be enraged nevertheless
 
of course it happens. The thing is, they're supposed to shrug it off as "boys will be boys", you have to be able to take a punch or two
 
@Ell You shall be remembered by humanity for this quote.
 
Meh idiots yelling on the staircase
 
user3010322
10:00 PM
Because a nude male online, unless they're fat, is an accomplishment.
 
user3010322
A nude female online is a deep shame stemming from their obvious sluttiness.
 
@sehe most kids I know are pretty savvy about privacy
 
user3010322
100% fact.
 
@CatPlusPlus are they having sex?
 
user3010322
@sehe One hump per step?
 
10:01 PM
No
 
user3010322
Whole new definition to "scoot yourselves up the stairs."
 
@CatPlusPlus are they testing TTS?
 
there's this scene in A History of Violence
 
Happens in more than 1 movie
 
viggo mortensen and maria bello on the stairs
 
10:02 PM
@CatPlusPlus are they wielding sharp objects?
If not, ignore
 
oww kinky
 
"Who's afraid of C++?" Only the sane.
 
Belgian privacy laws (For the über bored.)
 
@StackedCrooked What's wrong with those people. Only two languages? Are they discriminating against the German speakers again?
 
10:12 PM
Soo old fashioned in 2003
 
@JerryCoffin Yeah. They always do.
 
user1804599
reStructuredText is failing.
 
user1804599
It thinks ==== and ---- are the same in one case. :|
 
@StackedCrooked Geeze--they way they act, you'd think there were only 50.000 of them or something...
 
The German community never comes up in debates about the future of the country.
@JerryCoffin hehe
Apparently it's 76,090 forgotten souls.
 
user1804599
10:17 PM
libffi is fun.
 
user1804599
Hmm. Can you specialise variable templates?
 
user3010322
I would hope so
 
user3010322
... But wait, aren't they just using statements?
 
user3010322
If you can't specialize using aliases, you probably can't specialize variable templates.
 
user3010322
Use a class, then alias that.
 
user1804599
10:19 PM
Instantiating a variable template does not result in a type, dummy.
 
user3010322
vOv
 
@StackedCrooked Right up until the Dutch and French sides are within ~75.000 of each other in population. If that ever happens, the German speakers will suddenly become like royalty.
Well, that is (of course) assuming the Dutch and French sides each manage to unify about something (which, come to think of it, seems pretty unlikely).
 
user1804599
> Slipknot explain why this year’s Knotfest will purposely smell of burning camel excrement
 
user1804599
oh boy
 
Ell
lol
limh
 
10:28 PM
moving lion. body language is kinda interesting. He seems to be laying flat to maintain a sense of balance or control.
 
10:49 PM
The Stone Roses had a really good album called The Stone Roses.
 
Ell
I don't understand homogeneous coordinates still
 
You shouldn't. It's classified.
 
@Ell with ye old w?
 
homogenous device co-ordinates?
 
Ell
@thecoshman yep
but I just found this little gem in my app:
if(cube.w < 1.0f) {
    cube.w += 0.1f;
} else if(cube.w > 1.0f) {
    cube.w = 1.0f;
}
 
10:55 PM
what do you not get about them?
 
yeah, that's not correct.
I'm pretty sure.
 
Ell
@Puppy For some reason it makes my cubes render correctly :P
I have no idea why
 
thats... just setting it to 1 :S
 
well, the w component is a bit ... strange.
 
Ell
@thecoshman well, I don't really understand what the w is for
 
10:56 PM
to understand what it's for, you kind of have to work through all the maths
 
I don't exactly remember what you're supposed to do with w but I'm pretty sure it's supposed to be normalized to 1.
 
it's to do with perspective matrixs
normally you would just have a value of one
 
yes, my shader here starts with a value of 1 before perspective matrix multiplication
 
and as the 4D vector goes through the matricies for perspective and world etc it is used to help ensure that when you get to 2D screen co-ords, you now have a 'depth' value.
 
then I just output whatever w is after that.
IIRC perspective divide (w normalization) is done in hardware
 
10:59 PM
IIRC there is basically nothing to be gained from storing the w, as you should just have your shader take an xyz and slap on the w as one, then do that matrix maths.
 

« first day (1448 days earlier)      last day (3491 days later) »