« first day (1014 days earlier)      last day (3933 days later) » 

cpx
9:00 PM
@BartekBanachewicz Um. Perhaps, you. You have been active for 8 hours since I came here.
 
@cpx i had a tab in the background at work and chipped in time to time
now I simply have the lounge at second screen
 
@BartekBanachewicz Dual monitors at home?
 
Ell
Hmm, I'm not listed on the frequently in this room info
@Tuntuni I have three :£
 
@Ell :0
I have ... one :D
 
@Tuntuni yep, 2x24"
 
9:02 PM
@BartekBanachewicz Noice
 
Ell
Mine are all different sizes though
 
that's why I bought 2 exactly the same
 
Hmm, TotalBiscuit always has a huge Union Jack behind him.
I guess he really likes his country.
 
Union Jack is the UK flag?
Right.
 
alright, now i have dual monitors too :D
 
9:11 PM
I'm having a debate with another person about the invalidation rules of mutating algorithms. Do mutating algorithms invalidate references/iterators? (specifically pop_heap)
 
lounge on one, everything else on the other one
 
@MooingDuck, check the standard?
 
@wilx standard doesn't appear to mention it
@wilx The word "invalidation" is only used in the Algorithms section in reference to qsort
 
Given this description: en.cppreference.com/w/cpp/algorithm/pop_heap, I do not see why it would invalidate any iterators. Except that it simply moves stuff around so iterators will point at different values after pop_heap().
 
@wilx it rearranges elements' contents and destroys the last one, ergo having the same behavior as vector::erase, ergo, it ought to have the same invalidation rules
well, more specifically we're dealing with priority queue, which uses pop_heap and then erases the last one
 
9:14 PM
@MooingDuck: Erase of std::vector from the tail does not invalidate iterators, AFAIK.
 
but yeah, it's similar behavior to vector::erase
@wilx also doesn't rearrange data. pop_heap behaves very similarly to vector::erase from the head
 
Also, pop_heap() does not destroy any elements. It simply makes the last element have undefined (default?) value/
 
Ell
how do initialize a const float** like {{0, 180}, {0, 256}}?
 
@wilx priority_queue follows that with an actual erase
@Ell can't point to temporaries, you want an array?
 
Ell
@MooingDuck yeah
 
9:16 PM
@Ell const float[2][2] = {{0, 180}, {0, 256}};?
 
I should put that highperf windows clock inside my window class
 
I should be looking at priority_queue, not pop_heap...
 
Ell
@MooingDuck right thank you. I was initially doing float[][] but that wouldn't work
I'm not used to c style stuff, and I don't use initializer lists
I ought to read up on them more
 
bah, priority_queue has no listed invalidation either
 
Xeo
It's a container adapter, so eh
It has the guarantees of the underlying container
and it's not like you can get your hands on iterators.
 
9:20 PM
priority_queue is probably the only container I've never used, not even for testing.
I guess it had low priority.
 
@Xeo and pop_heap?
 
Xeo
I used it, at first, for implementing A* in class.
I switched to vector later on though, with manual push_heap / pop_heap.
Since I needed iterators.
 
@StackedCrooked I've used it a couple times
 
Xeo
Actually, let's take a look at that code again.
 
@StackedCrooked you used multi_set?
 
9:23 PM
In my experience vector<string> got real slow after 50k push backs. strangely enough, reserve didn't help. deque handled it like it was a walk in the park with piece of cake.
 
Xeo
Ahaha, and the first thing I see is UB
for(int i=0;i<(GRIDSIZE*GRIDSIZE);i++)
    Grid[0][i] = FreeChr;
:10874652 that's C++98...
 
:10874652 multi_set is C++98
 
Whoops.
I haven't used multi_set either.
 
@StackedCrooked valarray?
 
I played with it.
Briefly.
 
9:24 PM
oh, I keep forgetting it exists
 
valarray sounds like that song by Amy Winehouse
 
valarray had potential to be cool.
 
@Rapptz not really
 
but everyone tells me not to use it.
@MooingDuck Why do you think so?
 
valarray is not very general
 
9:26 PM
@wilx , I believe it's even value of first element
 
@Rapptz you know how newbies always try to write a string but they screw it up because they don't really know what they're doing? That's valarray
 
@StackedCrooked valarray was meant for mathematics.
@MooingDuck I don't follow how they're similar at all.
 
Yeah. And it's not very general. It's like a utility written for personal use.
 
Xeo
valarray is a mathematical vector / matrix
so eh
 
@RiaD: If you read the description (en.cppreference.com/w/cpp/algorithm/pop_heap) then you will see that the erase is done as swap of the first with the last element of the range and re-heapification.
That IMHO implies no actual erase operation.
 
9:28 PM
@StackedCrooked It wasn't meant to be general. It had potential to be a useful mathematical vector but fuck knows what happened.
 
The erase is only conceptual in that the range of heap shrinks. The underlying storage is unshrunk.
 
@wilx and so, last element after that is equal to previous first (right after pop_heap itself)
 
is_heap_until
funny name
 
my std::chrono ramblings worked at first try :smugdog:
it's actually animated.
 
More about invalidation: am I right that it doesn't allowed to make reallocation on vector erase? I found only "Effects: Invalidates iterators and references at or after the point of the erase."
 
9:32 PM
@Rapptz the spec disallows expression templates, which very nearly requires it to be slower than doing equations manually.
@RiaD you are correct
 
@MooingDuck Source?
 
@Rapptz C++11 spec?
 
cppreference says libc++ and libstdc++ use expression templates
> Some C++ standard library implementations use expression templates to implement efficient operations on std::valarray (e.g. GNU libstdc++ and LLVM libc++). Only rarely are valarrays optimized any further, as in e.g. Intel Parallel Studio.
So.. where in the standard?
 
@Rapptz as a nonstandard extension, because the standard is stupid here
 
Xeo
@MooingDuck No, the standard was specifically specified to allow that, IIRC
 
9:34 PM
@Rapptz 26.6.2.7
I'm checking
 
Nowhere there does it say you can't use expression templates
 
26.6.3.1/2 valarray<T> operator* (const valarray<T>&, const valarray<T>&); "Each of these operators returns an array whose length is equal to the lengths of the argument arrays. Each element of the returned array is initialized with the result of applying the indicated operator to the corresponding elements of the argument arrays."
 
Xeo
> 3 Any function returning a valarray<T> is permitted to return an object of another type, provided all the const member functions of valarray<T> are also applicable to this type. This return type shall not add more than two levels of template nesting over the most deeply nested argument type.280
 
@Xeo oh thank God, I'm so glad I'm wrong
"valarray might conceivably have been helpful for
optimization on vector machines, because it assumes operations are best
treated atomically. It's hopeless on modern machines." http://cpptips.com/musings_valarray
 
Xeo
wut
 
user142019
9:42 PM
Wonderful.
 
huh
 
Xeo
@BartekBanachewicz Basically, it allows expression templates.
 
also "two levels of template nesting"
 
Xeo
@BartekBanachewicz Yeah. don't quite get that part.
Oh wait, it's simple
Since the restriction is based on the argument type
 
9:43 PM
while looking for that source, someone mentioned gcc went through special pain to make valarray<valarray<T>> work, maybe it's related to that?
 
@RiaD I think so.
 
> The 2011 standard of C++ includes rvalue references, which remove the need for expression templates in the most common cases.
 
Xeo
Expression templates are still more efficient.
 
@BartekBanachewicz in the most common cases maybe, but not for vector math
hooray! My company is in code freeze on our only fork! And my buglist is empty!
 
Xeo
9:46 PM
But I have to admit, I really haven't haven't touched the numerical part of the standard - only <random> and accumulate.
 
@MooingDuck That only means your testing sucks and you have not uncovered all the bugs, yet. :)
 
accumulate is numerical? Isn't it just foldl?
 
@wilx more specifically, my buglist for this release is empty. All my bugs are deferred until the next release
 
:D
 
Xeo
@Rapptz Yes
But I think many people use it just for summing
 
9:48 PM
I find accumulate is very cumbersome to use.
 
Boost has some library that improves on it.
 
Just write a special fold for it called sum, and another one for product I guess.
 
Ell
I used accumulate today
 
And did you like it?
I guess the Katy Perry reference isn't obvious.
 
@StackedCrooked not even remotely
 
9:50 PM
Sure, So when you say int number;, that creates an object of integer type. When you say Sales_data newObject; you get a new object of Sales_Data type. But in this case in particular, your object is being created in the function without you knowing it. Basically what's happening, since the return type in your function is Sales_Data, a new object is made automatically and you can modify that object by using the 'this' keyword. If you had a return type of int, you could modify that integer inside the function by doing this = 2 or something like that. :) HOpe this helps! @BartekBanachewicz — MaxMarchuk 5 mins ago
so much bs in that comment
 
user142019
I fixed my .vimrc by not putting everything in one giant .vimrc file anymore.
 
How fascinating.
 
@rightfold you must be good at software design
 
Now you fragmented it across multiple files. That must make it much more readable :P
 
> you could modify that integer inside the function by doing this = 2 or something like that.
still sits in my mind
how to unsee
 
9:53 PM
@BartekBanachewicz this = 0; used to compile and run on some compilers
 
this is T const* right?
 
@BartekBanachewicz in mutable functions yes, though some compilers once forgot the const part :D
 
Xeo
@BartekBanachewicz You could've made the comment much more concise.
@MaxMarchuk: this does not refer to the return type, it refers to the object a member function was called on. — Xeo 20 secs ago
 
@MooingDuck I don't even
@Xeo "you suck"
 
Xeo
@MooingDuck *immutable
 
9:55 PM
Ehehehe this shit always ends up like this.
 
@Xeo no?
 
Xeo
What?
 
And there are still idiots believing this whole "think of the children" shtick.
Oh humanity.
 
Xeo
How is this going to be T const* if not in a const-qualified member function?
 
It's a good question. Needs more upvotes :) I struggled with this for the longest time. — MaxMarchuk 15 mins ago
It seems he still does.
 
9:56 PM
@Xeo const qual fun would be const T const*
 
Heheh.
 
user142019
Fuck.
 
@Xeo whoops, I'd misread his comment as T*const
 
Xeo
@BartekBanachewicz no
Get your const right
T const* == const T*
 
@Xeo eh, indeed
@Xeo oh come fucking on
 
9:57 PM
this is never a const pointer, it doesn't need to be as it's always an rvalue
 
Xeo
@MooingDuck Even then, you're wrong. The this pointer itself isn't const-qualified
What Cat says
 
std::add_const<std::add_pointer<std::add_const<T>::type>::type>::type
 
@CatPlusPlus ah right
@BartekBanachewicz add_pointer?
 
It's an expression that yields a prvalue, if you want to be pedantic.
 
@MooingDuck hm? this, why?
 
Xeo
9:58 PM
I was about to, but then I thought "eh, whatever".
nom nom, delicious bread
 
@BartekBanachewicz forgot it existed, and for a moment couldn't figure out why we needed it. I got it now though
 
@Xeo Good choice.
 
user142019
lol
a PHP ranting thread on /g/
 
hm I am pleasantly surprised with how well GLDR handles the OGLPlus examples
time to make that fucking furry torus
 
Ugh not furries.
 
10:03 PM
that's the goal
dunno if you consider it SFW
 
user142019
If that's not SFW I don't know what retarded company you work for.
 
hm, it looks much more complicated.
@rightfold that was a joke wrt furries
hm, yeah, I think I should really do something simpler now
 
Who the fuck flagged that JESUS
 
@CatPlusPlus How do you flag stuff JESUS?
 
user142019
@CatPlusPlus Which JESUS?
 
10:07 PM
@rightfold No not that mexican guy.
 
you fuckin' racist
 
user142019
Hmm.
 
no reason why Jesus can't be Mexican
 
user142019
iTerm 2 is quite neat.
 
@DeadMG I'm so stoked to see you tomorrow. <333
 
10:09 PM
oh god, don't remind me
 
@rightfold I just use Terminal.
 
user142019
Who is flagging everything? Just be honest.
 
user142019
@StackedCrooked I found it somewhat lacking.
 
FUCKING FLAGGOTS, STAHP
 
@DeadMG It's gonna be wonderful. :D
 
user142019
10:10 PM
And it lags when you use blurry backgrounds.
 
now I'm really worried
 
about what
 
The new bluish theme is not to my taste.
 
@DeadMG Its going to be fine.
 
Counterflag these idiots.
 
10:11 PM
now I'm going to stay home
 
I wish you could see the caster of flags.
 
@Flexo Some flagwhore, plix help
 
@StackedCrooked Your vga connector needs to be replaced.
 
Can they flag in a closed room?
 
I think so
 
10:11 PM
Please invalidate that flag on my msg
 
BTW @ThePhD I found a test called 014_multi_cube_ub
 
I don't fancy being banned
 
@BartekBanachewicz <3 !
 
Who the hell is going full retard with flags?
 
So, new chat platform eh.
 
user142019
10:12 PM
genesis has risen.
 
maybe it's just genesis
 
user142019
genesis please GTFO
 
But I'm so offended :saddowns:
 
user142019
They should remove flagging and add banning.
 
Ugh. Which time it is this week.
 
10:13 PM
	static double nrand(void)
	{
		return 2.0*(double(std::rand())/RAND_MAX - 0.5);
	}
amazing piece of technology.
 
17 mins ago, by rightfold
Fuck.
Still needs counterflags.
 
We shouldn't be so allergic to flags. It's only feeding the trolls.
 
user142019
I don't want to get banned again.
 
It's disrupting.
 
ughfuck wtf is CubicBezierLoop
 
10:14 PM
You should have to get at lest 4K rep to flag or something.
 
user142019
I got banned yesterday for mentioning the word "fuck".
 
@StackedCrooked What you want to do is to tempt the troll to flag everything.
 
oh gawd
 
really?
 
user142019
Yup.
 
10:14 PM
What I want to do is leave SO chat.
 
last time I got banned I think it was for implying that some guy's mother was a whore
9
 
user142019
So I logged in as not-rightfold and effectively pwned the flagmorons. :D
 
Ah man, this has got to stop
@DeadMG lol
 
This is ridiculous.
 
@DeadMG 30 minute ban? or longer?
 
10:15 PM
@DeadMG lol
 
There's nothing wrong about being a whore. This is an insult to whores.
 
@StackedCrooked 2h I think it ended up as
 
hahaha
 
Not a day goes by without a retarded flagfest, or stupid idiots who don't get a clue.
 
wow, the guy has even compile time math
 
10:16 PM
yea, well unless we bother creating some room where we have full control, nothing will change
 
@CatPlusPlus The real issue isn't that chat needs fixing, because all software needs fixing. The issue is that that chat is completely feature frozen.
 
damn, why do we have to do something separate and compete :/
 
user142019
Arrrghh.
 
user142019
Didn't configure Z shell to autocomplete Homebrew.
 
user142019
So annoying.
 
user142019
10:17 PM
> brew inTAB TAB TAB WHY Y NO WORK
 
does boost licence allow me to simply steal his code?
as long as I keep the header?
 
user142019
@BartekBanachewicz if it does it isn't stealing.
 
On par with the subject line. Whats you rating on Cory Doctorows "When Sysadmins ruled the earth"? A - F (fail) is the current grading
 
@rightfold you know what I meant
 
This chat is a nice piece of technology but yeah, it hasn't changed much lately.
 
10:18 PM
@StackedCrooked By "Lately" you mean "For the last three and a half years"
 
@DeadMG lol, that's not even exaggerated.
It hasn't changed at all since I joined.
 
@DeadMG yep
 
And I've been here for about 3 years I think.
 
user142019
@BartekBanachewicz :3
 
10:19 PM
@TonyTheLion lol
 
@DeadMG Yes.
I'm pretty tired of that.
 
maybe the folks at notconstructive will do better
 
Xeo
@StackedCrooked lies!
> lies!
Also, comment oneboxing
 
user142019
Also I need to install rainbow parentheses but I can't remember which of the 1001 plug-ins was the good one.
 
user142019
10:22 PM
:<
 
also https oneboxing
 
@StackedCrooked They added mobile version!
Which is completely useless!
 
Am I the only one thinking this stackoverflow.com/questions/17888141/… is not constructive? We all know both the dec and the hex representations of most reasonable bits.
 
@DeadMG on it
 
10:24 PM
FREEEDOOOM!
 
@CaptainGiraffe yes
 
thanks flex
 
I just got Electorate badge!! Whoop :)
 
Ugh. Tried to improve the community by using the "Answer Your Own Questions" blog.stackoverflow.com/2011/07/… feature, and I got totally beat up. :( Am I getting too attached to my question, or does it legitimately not belong on SO? stackoverflow.com/questions/17890904/…
 
@MooingDuck Are you actually preferring "1<<N" or acknowledging their right to do so? To my estethic it looks like crap.
 
10:27 PM
@BartekBanachewicz I don't immediately see an issue
 
user142019
@CoryKlein I think it's a fine question.
 
user142019
But people are all OH NO NOT STRICTLY PROGRAMMING-RELATED.
 
@MooingDuck not using <random>, really
 
@CoryKlein Their issue has little to do with the fact that you answered yourself, and more to do with the fact that your question concerns a topic they view as below the threshold we would normally consider as basic research required before posting a question.,
 
@CaptainGiraffe I think it makes sense to ask why they're doing that
@BartekBanachewicz oh, meh
 
10:29 PM
@DeadMG @rightfold Thanks for taking a look.
 
@MooingDuck The accepted answer irks me.
 
@CoryKlein Regardless of the view of the question content itself the "meta" discussion about it's appropriateness doesn't belong in the body of the question
 
@CoryKlein Well, I haven't decided if I want to downvote it yet, so you might want to hold on to that.
 
@CaptainGiraffe accepted answer isn't very good, but that's not related to the quality of the question
 
user142019
I don't really mind questions like these.
 
user142019
10:30 PM
I only close and downvote absolute crap by people who have no idea what they're doing.
 
@Flexo I agree, I put that up intending to remove it later, but it seemed people were using their own personal preferences as reasons to downvote the question, and not following SO guidelines, and comments had gotten so far down I wasn't sure new viewers would understand the reasoning behind the post.
 
@rightfold So your own questions, then
 
@Flexo do you think I should remove that content immediately?
 
@CoryKlein I already did :)
 
@CoryKlein your question has nothing to do with programming or programming tools
 
10:31 PM
@Flexo Haha - okay. Thanks.
 
user142019
I don't like the close reasons anyway.
 
oho, I am getting closer to seeing flags
 
user142019
"This is shitty" and "This is a duplicate" are enough IMO.
 
@CoryKlein The terminal is a file. It cannot know about your "mouse selection". If that was your question.
 
@MooingDuck Given that vim has about 11k tags, I figured it has been accepted as a programming tool on SO.
 
10:32 PM
@rightfold "shitty" isn't constructive criticism =p
 
@rightfold the reasons basically just elaborate on that though for the benefit of the person asking without the need to write an essay in a comment for every question.
 
@LarryKwatchiewanna When you learn to follow instructions, let me know and I will help you. — Monad Newb 3 hours ago
Does anyone think I'm being overly harsh with that comment?
 
@CoryKlein Windows has 51k tags, but we still dont teach people how to use Windows here.
 
user142019
@Flexo The last time I saw OP actually really improving his question after it getting closed was I don't know how many weeks ago.
 
@MooingDuck Maybe we should start...
 
10:34 PM
@CaptainGiraffe I was under the impression that vim (not gvim) somehow was able to get mouse tracking if the terminal emulator had support. I could have sworn I saw that work on my own install previously. That's why I added in FDinoff's comment.
 
@MooingDuck I still can't find the start button on my Win3.11 which i'm told is amazing.
 
@CoryKlein some consoles indeed have mouse support that vim can use
 
@rightfold it does happen - quite nice to see when it does too
@MonadNewb my thought was that the whole comment thread was a tangent
 
@CoryKlein That would be extracurricular magic. Not terminal support.
 
@CaptainGiraffe and yet, vim has mouse support in the terminal
 
user142019
10:35 PM
Time to install AdBlock just so I can get rid of that annoying blue bubble in the corner of my avatar that's been bugging me for an hour.
 
user142019
And for YouTube.
 
@Flexo True. I tried to give the OP the benefit of the doubt so I could help him. Of course, the part you missed was when he told me to "click the fucking link". Flagged that pretty quickly ;-)
 
@rightfold in here? I can't see any flags right now
 
@MooingDuck Yes, in the terminal. not by it.
 
user142019
@Flexo Ah, refresh fixed it.
 
10:36 PM
@MonadNewb reads deleted comments :)
 
@CaptainGiraffe Yep - it does, I just tried it. set mouse=a and now vim in my terminal responds to the mouse.
 
user142019
Anyway, let's hide it for next time. :P
 
@CoryKlein he's making a technical nitpick I think, but it's subtle enough that I don't see it
 
@Flexo oh...I guess I don't have enough rep to even see deleted comments...didn't know that was even possible.
 
@CoryKlein Oh, bloody thanks. Well I'm switching to emacs.
 
10:37 PM
well gtg
 
@MonadNewb mod only, mostly for finding people who've been abusing others and then getting it deleted quickly
 
@CoryKlein I think he's saying that the terminal isn't granting the mouse support, the OS is adding mouse support to the terminal. or something.
 
@CaptainGiraffe lol
 
user142019
I want to donate all my money to the guy who created AdBlock.
 
user142019
I want AR glasses that hide poster ads for me.
 
10:38 PM
@rightfold or replace them with something nsfw
 
user142019
:3
 
user142019
With the latest /b/ images.
 
@CatPlusPlus I need to use a proxy from within the United States to place an order, so my orders don't get flagged for verification when I place them in the UK. Any ideas how I would do that?
 
@ThePhD google for web proxy and find a us based one?
 
@ThePhD should be a lot of facebook proxies for us schoolkids you could use.
 
10:41 PM
I used to use google translate as a proxy in highschool, but I doubt that works for PhD
 
@StackedCrooked I got 71 units on Glob Glob!
 
user142019
I got 72! Ha!
 
@StackedCrooked sick.
 
@rightfold Dangit! Where's that downvote button...
 
10:44 PM
looks like "One Game a Month" except way more hardcore
 
good way to make a portfolio for job applications
 
too bad I actually do more reasearchy stuff instead of spamming games/websites
 
hopefully this time next week I'll be at 20k rep
 
You should throw a bbq if that happens.
 
10:48 PM
hehe
 
user142019
Let's see how well Cowboy works.
 
user142019
Hmm.
 
user142019
HTTP/2.0 is planned late 2014.
 
user142019
Hmm.
 
@MooingDuck mail me food :3. kthx
 
user142019
10:55 PM
How can you glob ./**/ebin and prepend -pa to each result?
 
user142019
I could use sed but that's dirty. :P
 
I want to get that shrugging emote Xeo made that one day that got starred. =[
 
teehee I just helped some random chick on SO with GL|ES2
 
There are no girls on the internet.
Don't let your guard down.
Tits or No Go.
 
...
fuck glm seems to be lacking operators
 

« first day (1014 days earlier)      last day (3933 days later) »