« first day (2185 days earlier)      last day (2777 days later) » 

Xeo
7:00 PM
Ah, okay
 
I had some fever all day long. Then I drank a glass of kir and it instantly killed my fever .____.
 
@Mysticial random thought while I read about hardware. Maybe the bug is that you're reading so fast that you cause DRAM leakage? Capacitors (electrolytic at least) seem to have a reputation for losing their spec over time.
 
Must be aiming for some kind of meta-prize
 
@Morwenn one thing is really odd
 
@sehe nobel in literature getting he is not
 
7:12 PM
if you use a custom comparison operator
like bool operator()(const A& a, const B& b) const { comp_count++; return a < b; }
the performance gap between std::sort and pdqsort just disappears
 
He publishes under a pseudonym.
Hint: It ends with "owling"
 
@orlp std::sort wraps the functor in something and uses the wrapped stuff. Not sure whether that helps.
 
well not entirely
@Morwenn maybe it's because I pass the comparison function around by value?
 
@sehe ? doesn't ring bell, the screenshot is of Jens Weller, right?
@sehe J K Rowling?
 
Redicolus!
You nailed it. Thwarted this devil spell
 
7:14 PM
@orlp Maybe. Stateless functors are generally optimized out, but stateful ones have a cost.
 
@Morwenn huh. They're also usually optimized out.
It's about the lifetime of stateful functors.
 
@sehe duh, it has a caption, didn' t notice that on my small phone screen
 
@sehe And even so, mostly iff they capture by references
 
@orlp You can try their fuctor wrapping mechanism and see whether it changes anything.
 
uint64_t comp_count = 0;
struct CompCounter {
    template<class A, class B>
    bool operator()(const A& a, const B& b) const { comp_count++; return a < b; }
};
if I use this comparison function
 
7:16 PM
@TemplateRex You did see my Harry Potter reference though. Don't know how the caption helps
 
@Morwenn Clang doesn't even express stateless function objects in IR.
 
pdqsort takes 1.58x the time
 
@orlp That's a global!?! Why not a function local static. More chance of optimization
 
just because of that increment
@sehe I need to be able to reset it
 
Why not reset the functor
Make it a member.
 
7:17 PM
is it because of the increment? or is it just because you call the comparison operator a bunch more times and you lose whenever it's not trivial
 
user1804599
Help
 
@sehe remember that thing about the standard library passing functors around by value?
 
@sehe ha, are you making fun of Jen's hairdo, saying he looks like Harry Potter?
 
yeah, that
 
@orlp YES! And remember about letting the compiler do its job?
@TemplateRex ... no. That would be "Redicolus"!
 
7:18 PM
@sehe how am I supposed to find out comp_count if it's a member of a copy?
 
@orlp What? You mean you hand-rolled it instead of using a counting_adapter<pdq_sorter>? :o
Just joking :D
 
you're not
don't copy the user-defined functor.
 
@sehe the caption helps in identifying it's Jens :)
 
@orlp counting_adapter figured that out but it's ugly.
 
@Puppy the standard library does
everywhere
 
7:19 PM
reference_wrap. Or /just/ take a reference as a member.
 
@sehe while I continue to be baffled by your literary references, perhaps you can take a quick look at this X3 Q&A and see if it rings a bell (I'm not sure it's a pure Clang bug or some weird X3 stuff)?
 
@sehe std::ref isn't working, weirdly enough
 
@orlp No clue what you're actually trying to do, but here's my $0.02 coliru.stacked-crooked.com/a/5703702f04b2d984
 
@sehe that's reverse order btw :P
 
sbi
Good evening.
 
7:25 PM
@orlp so what; I had to make up any reason to have a custom functor
 
@sehe argh using namespace std, cannot unsee
 
@Puppy Sure you can. Use some poo
 
@sehe the reason is to count comparisons :P
 
@orlp Fine. I hope you see what I am actually saying.
 
7:27 PM
wait I'm dumb
13
I forgot to write c++ in that example
 
@orlp You never actually modify c here.
 
@orlp That was the most confusing remark ever. You mean, you forgot to "increment c" (say /what/, not /how/)
Because you certainly did write quite a bit of c++ there
 
@Puppy Scott Meyers also does it, with a comment /* so, sue me */
@orlp nit: ++c :)
 
@Mikhail The guy with the KNL box ran it in cache mode. He reran in flat mode and binded the memory onto the MCDRAM. But that only shaved off like half a second. IOW, cache mode was already doing a good job caching.
 
@Aaron3468 They do. A capacitor is basically two conducting plates separated by an insulator. Electrolytic capacitors use an insulator that contains some liquid. They normally sealed, but over a long period of time, the liquid evaporates anyway, and as it evaporates, the capacitance changes. On the other hand, the capacitance has a fairly wide tolerance to start with, so at least slight changes rarely matter much (otherwise, an electrolytic capacitor would be a poor choice to start with).
 
7:31 PM
@sbi evening
 
He then ran a 10b computation that uses 62GB of memory. (IOW, bigger than the MCDRAM.) No noticeable drop in scaleability. Actually, it crushes all the overclocked HEDT boxes and comes close to the 28-core Haswell-E.
 
@sbi Hello.
 
@sbi hi, and no thanks for the HH faq
 
sbi
@TemplateRex What?
 
State Department has taken three years to answer a FOIA request about how long it takes to process FOIA requests https://www.muckrock.com/news/archives/2016/oct/04/state-department-has-taken-three-years-and-countin/
 
sbi
7:36 PM
@Puppy What are you doing here anyway? Isn't this meant to be a European chatroom? Didn't you vote to leave Europe?
@JerryCoffin Oh look. There's one of my age here. How are you doing?
 
@sehe now that is settled, sadly, pdqsort is still much slower while counting comparisons than otherwise
I would expect some performance hit
but not a 50% one
 
sbi
@TemplateRex What?
 
@sbi I voted Remain.
 
@orlp Anyhoops. Does it matter? Either you do operation stats, or you do runtime benchmarking :)
 
@orlp Make each copy count its own comparisons, then increase the original counter in their destructor :p
 
7:37 PM
@sehe it's just kinda worrysome for me
I dno
 
Sep 27 at 15:04, by sbi
I have seen that there's new entries to the C++ FAQ, including one by HH. Thanks, @TemplateRex for making the latter an FAQ!
 
@sbi THHGTG?
 
sbi
@Puppy Tsk. You're still going to be broke with all the other inmates.
@sehe What??
 
actually
 
love,
 
7:38 PM
I work in one of the few areas that is slated to receive a funding increase after Brexit
it probably won't be enough to offset the fact that the pound is now worth shit
 
sbi
@TemplateRex Ah!
 
Right. I'd wait till the cheque arrives
 
sbi
@Puppy Pfft!
@sehe cheque?
 
yes.
so far though I got a 10% raise last year and this year too
 
@sbi fixed
@Puppy Wait. You get your wages from the government?
 
sbi
7:41 PM
@sehe Actually, I just looked it up, and it seems "check" is supposed to be Merkin. (@Jerry?)
@sehe Of course. What did you think why he wouldn't reveal his employer here?
 
Obviously. Merkins don't have sensibilities required for exquisite spelling
 
user1804599
I'm happy.
 
@sbi Yes, that's how it's typically spelled here.
 
@sehe Not directly. I work for a company that sells software to the health service.
most of our EU membership fees are supposed to go to them
 
Still miffed by your suggestion that there would be a 1:1 link between government funding promises and your raise.
 
sbi
7:43 PM
@JerryCoffin Thanks for confirming. You OK?
 
However which way you dice it, such a relation would seem unhealthy.
 
I didn't intend to make such a direct relation
 
I mean, I wish you all the raise you deserve, but let's hope it's not "because we have 10% more to spend"
 
user1804599
@feen Emacs
 
:33372465 no
 
7:44 PM
I'm pretty sure that the reason I got raises is because my past history meant I started on a low salary but as you all know, I'm actually a genius
 
@Puppy Then I'm unsure why you even mention your raise.
 
well, you told me to wait for the cheque to arrive
 
sbi
@Puppy Hahahahahahaha!
As of 8:30pm, 9th October 2016, @BorisJohnson owes our NHS £5.235 billion. http://whatdoesborisowe.co.uk
 
and I think it certainly has done
 
@Puppy That seems a lot more reasonable than blaming increased post-brexit funding :)
 
sbi
7:45 PM
@sehe He's young.
 
@Puppy Nope, because Brexit has yet to happen, let alone the promised funding increases
2 messages moved to bin
 
sbi
@sehe :)
 
I didn't see he had posted 2 messages. First one, though inane, is fine.
 
sbi
@sehe Let's wish him some more than he deserves. He's got a queasy stomach, and we don't want to starve him
 
@sbi Fairly reasonable, yeah. How are you doing?
 
sbi
7:47 PM
@JerryCoffin Good to hear! I am spread too thin across all the things I am involved in. IOW, nothing new...
 
@sbi I don't negotiate with terrorist parties. Not even internal ones :)
 
@sehe True. Our internal problems are costing us far more money than delivering on that promise would probably mean for us anyway
@sbi One of the many reasons why I voted Remain
 
sbi
@sehe That one went over me head.
 
@Puppy Sounds realistic. As it is for 80% of Europe
@sbi Don't worry. You didn't miss much :|
 
and pretty much all of the UK too
leaving the EU will be a disaster for us
losing the single market is gonna tank our economy
we're gonna beg for those migrants to come back
 
Ell
7:49 PM
@Puppy I have not expelled any migrants yet, right
 
user1804599
Brexit is great.
 
the only thing I think could possibly salvage the situation is if Parliament refuses to pass the Brexit Act.
and that's a pretty unlikely outcome
 
Ell
We will still have plenty of immigrants imo
because there is plenty of work for them
 
I’m designing a new “find the bugs” C++ exercise, entry level. What do you suggest I put in there? Any common bugs/typos you like?
 
sbi
@sehe Which ones are the other20%??
 
7:50 PM
He teaches. A rare fenomenon
 
@sehe This is largely the result of Andrew Carnegie. In the early 1900's he sponsored a committee to simplify the spelling of some words. From what I recall, he wasn't particularly happy with the result, at least some of their recommendations came into relatively wide use. Theodore Roosevelt (president at the time) issued an executive order requiring its use for some government documents, but the supreme court and congress both decided to use conventional spelling for their documents.
 
@sbi Yes
 
Roosevelt eventually rescinded his executive order.
 
user1804599
@gcouprie ADL accidentally picking the wrong function.
 
user1804599
:trollface:
 
7:51 PM
@JerryCoffin Again, I'm in awe of your historian's muscle
 
sbi
@sehe You, Sir, are way too krüptik for this ape-y brain tonight.
 
You asked the wrong - obvious - question. So gave the obvious - wrong - answer.
 
sbi
@gcouprie Using nekkid pointers?
@sehe Count me in, @Jerry.
@sehe What was wrong about my question?
 
@JerryCoffin He obviously didn't notice that English is a descriptivist rather than prescriptivist language
 
@sbi You know I can't answer it :)
 
sbi
7:54 PM
@Puppy You obviously failed to notice that it is a comparatively messy language.
 
@Puppy we might send the 5M+ UK emigrants back to you as well :)
 
sure, but that doesn't make fixing it by executive decree any more likely to succeed
although personally I think that any language where many words have many variants for different genders has no basis for complaint
 
sbi
@sehe The question aside why you would think I knew this, and assuming I did (I didn't) – why would it be wrong to ask a question you cannot answer?
Isn't this how we learn – being asked question we don't have an answer for?
 
@TemplateRex Of course we might not. We're not stupid. Besides, it would be against the Geneva convention to send them back to the Middle Ages :/
 
sbi
This is pretty damn good.
6
 
7:57 PM
Ok. I was just spitting out a random, correct, statistic.
It's correct because I made it up
 
sbi
So everything you made up is correct?
robots take over https://t.co/RIHFruGizt
That is @R.MartinhoFernandes at his best.
 
Back to Sydney ... Although literally I am still on the plane ...
 
@Puppy Not sure which "he" you mean here (Carnegie or Roosevelt), but then again, I'm not sure it makes a lot of difference either way.
 
@Telkitty Literally literally or figuratively literally? :)
 
I have the best stats, and me and my staffers basically wrote the book on making stuff up. If I make up a stat, you can bet your ass it will stand its ground. It will take you throught the next world war¹ and will not fail to amaze your opponent. So, when people might say your opponent "O, he and she is such a sore loser" (and you know how much I hate losers, I think they need to punched in the face!) really they can't help it. My stats are simply the best. The finest stats around, if I say so myself, and everyone I know agrees with that.
3
</impresion>
 
8:08 PM
@wilx plane is being taxied into bay @ moment
 
@Telkitty So actually literally. Amazing. :D
 
& I am not using roaming ...
 
sbi
@sehe Genius!
 
@sbi I admit I just saw that a little bit earlier. I won't pretend to be original
 
Now have to worry about how to crawl back home
 
8:11 PM
@sbi I thought he was better here
 
sbi
@sehe I knew you would have seen this. That doesn't make yours any less genius, though.
 
Twitterati confirmed
 
@Telkitty Use your legs. One before the other and soon you will learn to walk.
 
Also blacklisting cicada for not wanting to meet up while I was so close ...
Crawl is much easier with 4 legs ...
As you might know - I only have 2
 
Hi all. o/
 
sbi
8:15 PM
I suppose this is cicada's new handle?
Mhmm. Seems implausible.
Anyone?
 
sbi
@sehe Thanks.
My mother just called and asked me what I had for dinner. I told her that I had cooked myself a pheasant with dumplings and two kinds of vegetables. Now she's upset I didn't invite them over for dinner. Next time I'll tell her I warmed a can of baked beans.
 
@Morwenn I simplified some code and made an oopsie
template<class Iter, class Compare>
inline void sort3(Iter a, Iter b, Iter c, Compare comp) {
    sort2(a, b, comp);
    sort2(b, c, comp);
    sort2(a, c, comp);
}
@Morwenn what went wrong here?
you should know :P
why is that offensive?
..
the first one
not the second
 
Many people waiting & baggage transit belt not moving ...
 
@sbi :)
 
8:28 PM
@Telkitty Maybe they are inspecting luggages for contraband? :)
 
sbi
@Telkitty Have you considered posting these minute updates about your adventurous journey on Twitter? At least there people can decide for themselves whether they want to follow this.
 
user1804599
I'm so bored
 
@sbi ssh
 
nwp
@rightfold implement side effects in Haskell
 
sbi
8:31 PM
@Telkitty Actually, that's what I said to you. Only you do not get that. Either.
 
user1804599
You can't, also unsafePerformIO.
 
Coz like ... Nobody would notice if I force pictures on to people if nobody makes any sound right?
Sneaky is the key to winning
 
user1804599
They thought: "how do we do side-effects?" Then they thought: "indirection, motherfucker."
 
personally I prefer the "Just call a function that does a side effect" approach
 
@sbi: What about you keep your crazy mother stories out of this place and on Twitter?
 
user1804599
8:34 PM
thisisfine.jpg
 
sbi
@wilx They're not minute.
 
Still waiting & it's going into peak hours, sigh ...
 
user1804599
@sbi You can also decide whether you want to follow something here. It's called the ignore list.
 
@orlp Last one should compare a and b.
 
@Morwenn yep
 
user1804599
8:37 PM
There is no reason not to plonk somebody if you don't like their messages.
 
sbi
@rightfold Actually, I do this. But then there's people interacting with those I have blocked, and it all falls apart.
 
My claws were almost out & dear it has not even been an hour since arrival ...
 
user1804599
Also, there is literally no reason at all ever in the universe of the past the current and the future to not plonk Telkitty.
3
 
I didn't have you plonked because I thought you would have permanently left by now
 
@sbi wait, is rightfold still here? I plonked him a long time ago /s
2
 
user1804599
8:47 PM
I'm great.
 
Unless I'm mistaken and I don't remember when I was drunk, I never plo,ked anyone here.
 
@Morwenn You can check your profile
 
user1804599
I'm confused about WhatsApp end-to-end encryption.
 
user1804599
Oh wait, I'm not.
 
user1804599
Public keys are public. :p
 
sbi
8:50 PM
@Morwenn You don't remember when you were drunk? I pity you.
 
Sometimes I don't remember when I wasn't even drunk ...
How likely is the checkin baggage service first in last out?
In case you don't know - I am a hygiene freak ... Can't wait to get home & wash everything including myself
 
@rightfold The real difficulty is making sure that the person giving you the public key is the person it should be.
 
user1804599
The app features a feature to check that.
 
...
 
user1804599
It displays a barcode and the other phone can scan it
 
user1804599
9:04 PM
 
@rightfold pas op! waarschuwings bord!
 
user1804599
@orlp how is school going
 
@rightfold delayed
 
user1804599
Ö
 
user1804599
how come
 
9:16 PM
autism
I just don't have the energy to go to classes often
 
user1804599
:v
 
and then I fall into a downward spiral where I totally retract myself from society
 
Wow
 
user1804599
Sounds like a depression.
 
no, I'm perfectly happy
 
user1804599
9:18 PM
oh:p
 
I just can't stand to spend energy to be around people, physically
(autism isn't self-diagnosed tumblr autism btw, real deal)
 
user1804599
mensenschuw
 
user1804599
hmm
 
user1804599
what year are you in now?
 
user1804599
3rd right?
 
9:19 PM
I'm supposed to be done
current schedule looks like I'll finish the 3 year study in 5 years
my grade average is 8, that's not the problem
 
user1804599
cool
 
9:32 PM
@rightfold it takes a special kind of person to spend hundreds of hours tinkering with a sorting algorithm :P
 
not in this room ;p
 
but I'm perfectly happy doing so, even seeing noone for weeks at a time
 
user1804599
Pondering is fun.
Eureka is magnificent.
 
@rightfold 864 people agree. Well, maybe some of them don't, but their parents aren't letting them go anywhere else just yet.
 
user1804599
9:37 PM
ewa
 
@JerryCoffin coming your way in a couple months time. By that I mean coming to the U.S. Please don't go & hide under a rock like cicada while I am there ...
 
Why don't we have a shortcut for std::ratio<1,1> ? This is a fucking outrage, I want my money back.
 
anyone know about directx and screenshot?
 
@Mikhail #define to the rescue
@Rhayden that's almost like asking people whether they know anything about chickens
 
no
 
10:01 PM
@Rhayden DirectX is a M$ 3D graphics API. A screenshot is an image of the exact content as displayed on-screen.
 
@набиячлэвэли of course. how about create device and capture surface with this api
 
To create a device you'll need a blueprint, components and a deal with a manufacturer
 
M$ is the dumbest acronym ever
 
To capture a surface you'll need gloves
 
you should be embarassed
 
10:05 PM
@Rhayden It takes most people a few weeks to figure out DirectX, asking a poorly worded question in the chat will only get you laughed at.
 
Looking for a group of people who want to help build a business that makes us money through paypal everyday. No pay.
 
hmm
considering that I spent the last 24 hours being terribly sick, I am feeling inexplicably great
maybe that's due to the opiate painkillers
 
PayPal without pay is just pal, they are looking for pals
 
10:20 PM
@jaggedSpire sup :3
 
10:35 PM
@Mikhail what would you call this?
identity ratio?
 
std::ratio::one
or maybe unity
 
wait
does std::ratio<4,2> derive from std::ratio<2,1>?
 
no
this would be impossible to implement
 
@milleniumbug why?
 
oh, you mean the one specific canonical type
in that case, sure
 
10:42 PM
huh
what do you mean
with 'one specific type'?
I mean that std::ratio<a,b> derives from std::ratio<a/gcd(a,b), b/gcd(a,b)> if gcd(a,b) != 1
 
for some reason I thought you derive from a list of types
disregard what I've said
 
hmm
so you're in the position where std::ratio<6, 3> derives from std::ratio<2, 1> but not from std::ratio<4, 2>?
 
@Puppy correct
there are no cycles
 
that's just confusing
 
not really
 
10:45 PM
Its not confusing, but its hard to implement...
 
we'd need to derive from the canonicalized_ratio if std::is_same<this_ratio, canonicalized_ratio>::value == false
we could derive from a dummy detail empty type in the other case
 
1177 comments IMGUR is weird when that happens. And I like it
 
> The Spanish Inquisition.
 
@sehe It's "Imgur"
 
11:01 PM
template<std::intmax_t Num, std::intmax_t Den, std::intmax_t Gcd = gcd(Num, Den)>
struct ratio : ratio<Num / gcd(Num, Den), Den / gcd(Num, Den), 1> { };

template<std::intmax_t Num, std::intmax_t Den>
struct ratio<Num, Den, 1> {
    static constexpr std::intmax_t num = Num;
    static constexpr std::intmax_t den = Den;
    typedef ratio<num, den> type;
};
this does expose a third template argument that the user could fuck with though
this doesn't have that issue but introduces a detail base
template<std::intmax_t Num, std::intmax_t Den> struct ratio;

namespace detail {
    template<std::intmax_t Num, std::intmax_t Den>
    struct ratio_base {
        static constexpr std::intmax_t num = Num;
        static constexpr std::intmax_t den = Den;
        typedef ratio<num, den> type;
    };
}

template<std::intmax_t Num, std::intmax_t Den>
struct ratio : std::conditional_t<gcd(Num, Den) == 1,
    detail::ratio_base<Num, Den>, ratio<Num / gcd(Num, Den), Den / gcd(Num, Den)>> { };
 
11:20 PM
@набиячлэвэли and you're not even rightfold
 
You're not Alexander
 
👌👌👌 https://t.co/zLQviBOVWG
9
👌 indeed
 
11:57 PM
@Borgleader complete with 'nam dog for a profile pic, even
 

« first day (2185 days earlier)      last day (2777 days later) »