« first day (1756 days earlier)      last day (3193 days later) » 

9:00 PM
#loungecpp on freenode
 
@ScottW Yep.
 
user1804599
sex reassignment surgery, yes
 
I'll join and spread cancer
 
@ʞɔᴉN How about you mumble.
 
user1804599
9:01 PM
@ʞɔᴉN Griwes is already present, sorry.
 
user1804599
No need for more cancer.
 
I was on mumble for like 4 hrs but you wouldnt talk to me
 
0/10 joke ruined
 
@ʞɔᴉN Sorry.
 
-1
 
9:02 PM
@elyse alright, saves me the effort
 
I have to go
Beer/film duties call
 
Why cant I reply to messages on mobile
Nn cat
 
Because mobile is garbage and so is snackchat
Who said I'm going to sleep
I'll be back in 2h
 
Gg cat
 
HOPEFULLY THAT FUCKING THROTTLE TIMER WILL RESET BY THEN
 
user1804599
9:11 PM
Now I want to write something in Erlang.
 
Now I want to eat something in Japan.
 
9:34 PM
matlab 2015 starts soo slowly compared to 2009
everything is slow for the first time in fact
e.g. it takes ~5 seconds to open the contextual help for an item for the first time
the editor even freezes
 
55 mins ago, by Cat Plus Plus
[citation needed]
scott
scott are you on mumble?
 
[bcc32 Error] E2522 Non-const function _fastcall TStrings::GetCount() called for const object
Nooooooooooooooooooooooooooooooooooooooooo
How is GetCount a non-const function????
What is wrong with the VCL??? AHHHH!!!
inb4 everything is wrong with the VCL
 
user1804599
use const_cast
 
if antivirus software exists, does that mean internet explorer is provirus software?
 
user3047181
oooh zing, I wouldn't wanna be msft right now
 
9:51 PM
@caps ahahahahha TStrings ahahahhaha VCL
What the heck did you get yourself into? :D
 
@Griwes Trying to write a TStrings iterator.
I suspect only the const_iterator will work.
 
xD
Why the hell would you do that? :D
 
Since, of course, TStrings[] does not return a &
@Griwes To make it less painful to use.
 
Why would you be trying to use VCL? o.O
 
@Griwes Because it's what my company uses.
 
9:53 PM
@caps Okay. That answer the "what the heck" question. D:
 
Wow, not sure const_iterator will work either.
 
Why the hell is there even a company that still uses VCL O.o
 
[bcc32 Error] E2522 Non-const function _fastcall TStrings::Get(int) called for const object
@Griwes Legacy codebase.
 
Terrible.
 
Can't wait for Embarcadero to finally go out of business.
But I don't know if they will anytime soon.
Or they could make a good compiler and IDE. I'd settle for that too.
Man, this makes me so angry.
 
10:14 PM
their current compiler is Clang
at least for x64 (or maybe x86)
 
@Puppy Exactly.
Eeeeeexacctly.
Supposedly, RAD Studio on Clang is really buggy and poorly optimized.
Also, x64/Clang is not compatible with the VCL (imagine that), if I remember right.
Which means if you want to write code that uses the VCL (hahahahahahaha) you can't use x64/Clang.
 
wtf
> Breivik was born in Oslo on 13 February 1979 [..] One psychologist in one of the reports made a note of the boy's peculiar smile, suggesting it was not anchored in his emotions but was rather a deliberate response to his environment.[30] In another report by psychologists from Norway's centre for child and youth psychiatry (SSBU) concerns were raised about how his mother treated him: "She 'sexualised' the young Breivik, hit him, and frequently told him that she wished that he were dead."
 
user1804599
aww
 
No wonder that he killed so many people, he could never really enjoy sex
 
user3047181
sex is even better when you're getting smacked and insulted
 
user1804599
10:29 PM
inb4 mass murder jokes aren't funny
 
user1804599
inb4 (but this one is)
 
user1804599
 
Why can't std::iter_swap find my swap function?
More importantly, why can't std::reverse find my iter_swap?
 
user1804599
Because you didn't make an SSCCE.
 
user3047181
 
user3047181
10:36 PM
im friendly and helpful
 
user1804599
she*
 
user3047181
im ashamed of my sexistness
 
user3047181
how come they aren't cloning stuff any more? back in the day there were all sorts of animals being cloned and shit
 
user1804599
horses are being cloned for races
 
user3047181
can they clone fertile horses?
 
user1804599
10:49 PM
I don't know horseshit about horses.
 
user1804599
All I know is that they're being cloned.
 
user3047181
how come there aren't more funny 3d websites
 
user1804599
Because only 2D websites are worth visiting.
 
3D websites just aren't that funny.
 
user1804599
Lounge<C++> is 2D.
 
user3047181
10:55 PM
they are when they're just like little personal creative websites. i agree amazon.com should stay 2d, but otherwise, gimme more unique funny 3d website with sound effects and shit
 
My std:: implementation doesn't use using std::swap in iter_swap...
 
@caps OOC, what does it use?
 
` // TEMPLATE FUNCTION iter_swap`
`template<class _FwdIt1,`
` class _FwdIt2> inline`
` void iter_swap(_FwdIt1 _Left, _FwdIt2 _Right)`
` { // swap *_Left and *_Right`
` _STD swap(*_Left, *_Right);`
` }`
#define _STD ::std::
 
user1804599
@caps Use adl::swap from some ADL library.
 
@elyse The problem is that std::reverse uses std::iter_swap
 
user1804599
10:59 PM
template<typename Ts...>
auto swap(Ts&&... ts) {
    using std::swap;
    return swap(std::forward<Ts>(ts)...);
}
 
user1804599
Then use iter_swap.
 
@elyse Why are you spouting this nonsense?
 
user1804599
Probably because your problem statement is vague.
 
29 mins ago, by caps
More importantly, why can't std::reverse find my iter_swap?
I am calling std::reverse and passing it some custom iterators.
And it is complaining that it can't find std::swap() for those custom iterators.
 
@elyse Mate, you have to use decltype(auto) there.
 
user1804599
11:14 PM
Yeah whatever.
 
user1804599
Fuck C++.
 
If you have a big ringbuffer (maybe multiple gigabytes large) with one writer thread that frequently writes data, and one or more reader threads that consume the data, then the memory access pattern will be a moving active window inside the buffer. This is used by some high-performance software. But I wonder, doesn't it cause thrashing due to the dirtying of so many cache lines?
 
user1804599
Try it out.
 
user1804599
And observe.
 
@StackedCrooked I have completely no idea what I'm talking about, but doesn't every core has a separate cache to avoid that problem?
 
11:28 PM
@StackedCrooked /cc @Mysticial
only way to get a sure answer ;)
 
Ok :)
 
Isn't a ring buffer usually a queue?
 
It's a circular buffer. Basically an array with modulo indexing.
It maintains a counter for the number of bytes written and a counter for the number of bytes read.
Implementation details can vary though.
 
user1804599
Go has a ring library in its standard library.
 
user1804599
lol, I have 117 upvotes in but I don't even know how to multiply two matrices by hand.
 
11:45 PM
117
A: What is the '@=' symbol for in Python?

elyse@ is the matrix multiplication operator introduced in Python 3.5. @= is matrix multiplication followed by assignment. They map to __matmul__, __rmatmul__ or __imatmul__ similar to how + and += map to __add__, __radd__ or __iadd__. From the documentation: The @ (at) operator is intended to be...

@elyse all thanks to this
 
user1804599
XD
 
user1804599
If you think it's cold then wear a damn sweater and shut the fuck up.
 
@orlp TL;DW
 
user1804599
11:56 PM
@CatPlusPlus Egoatse
 
the butcher bird is sun baking on my window sill again ...
 

« first day (1756 days earlier)      last day (3193 days later) »