« first day (861 days earlier)      last day (4093 days later) » 

3:00 AM
@DiscreteGenius likely. It could be biwtise negation (NOT) too
17 hours ago, by sehe
@TonyTheLion No. I still sleep with my teddy bear
 
I thought that was you :(
 
It is. The wee one is my teddy bear
 
@sehe I'm too noob to understand that, sorry bro.
 
Ahh I misread that
 
@DiscreteGenius "bro"? Anyways, you can just read a good book:
2148
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

 
3:02 AM
@sehe Yes. Bro. It fit the conversation: you were trying to be quirky, so was I.
 
std::size_t current_front = 0;
std::size_t current_back = sizeof...(Ranges) - 1;
//                         ^
//  error: expected ';' at end of member declaration
WTF.
I think I'll need a goat sacrifice for this one.
 
Alright. Who turned off my firewall?
 
@DiscreteGenius I was quirky? Certainly not to you, at least
@R.MartinhoFernandes That's implementation defined. The standard pretends goats do not exist
 
WTF, I can't use the class template parameter there.
 
Xeo
Hmm... I now have a way to give a total ordering on up to 6 overloads.
 
3:06 AM
posted on February 22, 2013

We continue last week's discussion of comparison functions by thinking about how to compare objects from different parts of an inheritance hierarchy.

 
What do you think of Koenig's submissions in Dr Dobbs?
 
0
Q: Will C+=2 be released sometime later?

SO Comedian I thinkWill there be a new version of C++ named C+=2 sometime later? Please answer

 
Ugh, now the worst ones: indexing and slicing.
 
Someone claimed that const T& and T const& don't interact the same way with templates. When I demanded clarification, he showed how when T is a pointer, it's confusing about what is const to human readers. I guess he got me there :(
 
@Mysticial He thinks wrong
Also ahahaha
It isn't always faster (compilers are REALLY good)... I don't understand why nobody else prefers not to uses silly wrappers for OpenGL (yeah that is what I think). — Mitch 19 mins ago
 
Xeo
3:16 AM
@MooingDuck Eh, that is nothing special with templates...
 
GLUT is totally a wrapper for OpenGL
guys
guys guys
 
:3c
Oh, that uh
... Wait, I forgot what I was going to say. :c
 
I don't think I'd even qualify GLEW as wrapper, because it doesn't wrap that much
 
I should probably get something to eat and sleep..
 
@Etienne you are really good at french... It's you native language isn't it? You are also good at English! :) — Mitch 14 mins ago
 
3:17 AM
lol
 
Xeo
Ooh, wait, I can put a total ordering on 7 overloads actually.
 
@CatPlusPlus Heimlich maneuver - spit him out! Litb? Are you in there?
@R.MartinhoFernandes Totally symptomatic of "magical thinking"
 
Ha! D's round_robin never produces random-access ranges.
I wonder if impossible or just laziness.
Smacks of the latter.
 
3:33 AM
Supposedly Stack Overflow if for people who "write code because they love it"... Yet people seem to like to avoid writing code as much as they can. They like to use small libraries (instead of just making the stuff themselves), and saying "stop reinventing the wheel"... Even though I find it quite fun (to reinvent/modify existing stuff)! — Mitch 2 mins ago
 
lol
 
Lulz
 
I almost admire him...
 
Give him a year or two.
The world will wear him down to a stub.
 
welcome to programming. here is your cape and this thing to stab yourself in the face with.
 
Xeo
3:35 AM
@R.MartinhoFernandes Shouldn't be impossible.
 
@Xeo Yeah, but fucking hard.
Would be easy if the ranges were of the same-size.
 
Xeo
Hm... true.
But same-sized ranges make most stuff go from "hard" to "rather trivial".
 
Way too hard for writing this late.
And I don't even want to imagine slicing.
 
Xeo
@StackedCrooked Can Coliru please put focus in the editor after hitting "compile"? :(
@R.MartinhoFernandes Heh
 
user1357851
anyone here is experienced with CGI
 
3:38 AM
@Xeo Btw, wanna know what the D implementation looks like in the parts I used apply_nth?
 
Xeo
@R.MartinhoFernandes Sure
Hm. I could make a total ordering over 10 overloads, theoretically, but that involves the user knowing how exactly I do it...
 
It builds a switch as a string and then splices it into the code with its mixin feature.
 
Xeo
@R.MartinhoFernandes lol
 
        foreach (i, Unused; Rs)
        {
            if (!source[i].empty) return false;
        }
        return true;
This is the implementation of empty.
static for want.
 
Xeo
Hey Robot, how about not worrying about overlapping EnableIf conditions?
(Just comment any of them out to simulate failed EnableIf conditions.)
 
3:43 AM
haha, neat. I'll check it out more carefully tomorrow. I'm sleepy now.
Gute Nacht!
 
Xeo
Gute Nacht.
Also, @StackedCrooked, the visual part of the scrollbar doesn't really update when you add lines.
 
@Xeo Are you ranking up to 6 overloads? Does this scale?
 
Searching through a set "I having a bit of difficulty trying to get through a set of strings. Methods used for vectors and arrays will not work here; I tried numerous ways trying traverse through a set, including calling an iterator but the compiler won't buy it. I've looked online but no answer seemed quite right." [UNRELATED CODE] "Hopefully I won't need to ask this again."
 
Xeo
@LucDanton 7, in fact. I could go up to 10, with templates, but you'd need to manually add cv qualification to those. Or... wait, I think I have a way to automate it.
Still, 10 is the max for now.
It's the best I could get out of ICSs. :<
 
@Xeo Ah. That sounds desirable.
 
Xeo
3:49 AM
Oh, also, maybe I can make it 13.
 
I'd investigate (and I have in fact stashed away one possible line of inquiry), but back to ranges!
 
Xeo
Hmhm
Fuuun
@LucDanton Hf.
 
Dat transition. (Links to 34:00.)
 
Xeo
Dat 8BK down interwebz. (Links to sadface.)
 
These DJs have their studio about 10 meters from my work place.
 
3:53 AM
Mmh, I'm storing some optionals that I don't want to get copied/moved, and have them reset instead. I.e. only some part of the state makes sense to carry around, the rest being iterator information that's only valid for a time. I could hack in some special members, but the copy members will break when using concat_map with e.g. a move-only range (do I even have those?), or a move-only functor. Guess I'll go RO0 and lift that into its own thing.
 
@Xeo There's always the 240p version :D
 
What do I even call this? ephemeral<T>? For use when a class needs ephemeral state?
 
> Guess I'll go RO0 and lift that into its own thing.
I don't understand..
 
4:25 AM
Bleh.
 
Bleh?
 
Trying to catch hwnd before it's created is hard. ;~;
My old system could do it well, but since changing to the SetWindowLongPtr / GetWindowLongPtr, I can't get the window until after the HWND is created. D:
 
What the H ask ELL is going on here?
 
Markdown: you've almost got it.
 
Fail
 
4:27 AM
H ask ELL, maybe?
Haha, markdown is silly.
@CatPlusPlus You alive?
 
barely
 
Oh. Well then maybe tomorrow I'll share my GREAT VISION for how we can get rolling on Physics and other stuff? x3
 
I keep trying to work but I might as well stop lying to myself and go to sleep
 
Yeah, sleep sounds good.
BUT I'LL SLEEP WHEN I'M DEAD.
I just realized...
I hardly ever comment my code.
This is probably not a good thing.
 
Not really.
 
4:40 AM
Then again, I haven't done anything really spectacular or revolutionary in my code.
So it's not really worth having comments in it. ._.
 
@ThePhD Just make sure you understand you own code.
 
And if I don't? :3c
 
@ThePhD Then I'll have nothing to do with that. :)
 
;~;
 
Damn copies!
 
4:47 AM
Compilation feels like it takes ages now...
I guess I have to better separate my headers and source files otherwise it's going to be like this forever.
 
Anyway, just came here to check things. Have work to do. Bye!
 
How long does it take?
 
5:11 AM
A long time.
A really fucking long time. =[
 
0
Q: no relation between computer science and mathematics

saramoinplease tell me some negative points between computer and mathematics, i want to know that what are the points or facts that we can say that computer science is not relate with mathematics or computer science has no relation with maths i know computer science have a vast region of maths,maths is ...

^^ wut
 
c
It's apparently a C question.
I was gonna write an answer, but decided against it.
 
@Mysticial I don't get it.
 
@Rapptz You're not supposed to get it.
Off topic wall of text.
 
5:24 AM
I think tha tperson was a student
who was really angry that they had to take some math classes.
 
What pisses me off is that a lot of CS students don't need to take any math.
In my undergraduate, CS students were exempt from the engineering math requirements.
 
CS students don't take math?
 
Nowadays it's just plain Calculus, and maybe Linear Algebra.
 
Yeah...
 
5:25 AM
oy man, I took enough math that it could have been my major.
 
Even in the industry, programmers don't know math.
It was like that at Microsoft...
shocked the hell out of me.
 
@Mysticial I KNOW RIGHT
I intern'd there for a bit and like, it wasn't math-heavy or engineering-heavy at all.
Albeit, I worked in the Server and Tools business, so maybe the feel was different.
 
Of course I took all the math because I was also an EE major. But still, why fuck would CS majors be exempt from math?
 
I think when I go to the Entertainment Business this summer, it might have a different feel.
 
I thought math played an important role in CS.
 
5:27 AM
same
 
I know for a fact most of the original CS pioneers were heavy on math.
 
but hardly any CS department has any sort of math requirement for CS.
 
Like, using i and j for indexes.
That's a math thing.
 
I think Calculus, Linear Algebra, and Discrete Math is probably the bare minimum you'd need to get through.
Then again, you don't really have to know Matrices or any of that stuff.
 
Well.. I guess that's enough.
 
5:28 AM
You have {eigen|glm|DirectXMath} to take care of it for you.
 
by Calculus you mean Calculus 1?
 
@ThePhD how are matrices and stuff not linear algebra?
 
Calculus all the way through Multivariable.
@melak47 I'm saying you don't have to know it anymore. Libraries, abstractions, languages make it so you don't need to be mathematically - or even completely algorithmically - sound to make something happen on a computer.
 
Yeah hold on, what?
 
I personally think Calculus, Linear Algebra, Discrete Math, etc. are damn useful and pretty great things to have when doing CS. But I'm also pointing out that (high-level) languages, libraries, and other things make it so you don't really have to know about it to make things work.
 
5:32 AM
Put it this way... is the majority of CS majors don't know math. Then that puts the ones that do (like us) at an advantage right?
 
Eh. Not necessarily.
 
"Resume: CS major who knows math" - automatic hire!
haha
lol
 
Haha, I wish. xD
 
"Resume: CS major who knows math (according to this piece of paper :D)"
 
At the end of the day people don't browse your source code or ask you math questions - they usually ask you algorithm questions and behavioral questions. If you know math, then you can dazzle and astound people when you answer interview questions.
 
5:33 AM
I was asked a couple of hard math questions at the Google interview.
I'm can't disclose them cause of the NDA.
But at least they were interested in math-capable CS people.
 
The NDA for my interview questions is over. Microsoft is pretty lax about interview questions.
All the people I worked with in the Server and Tools business told me their interview questions and how they answered them.
 
I was asked a couple of math questions that I can't imagine anybody knowing the answer unless they've done it before.
It was kinda ridiculous.
I happened to have done it before. So I got lucky.
 
I was lucky enough that all my interview questiosn were about data structures that I had researched before: Tries (and Bit Tries), Dictionaries/Hashmaps, etc.
They also had interesting ones for the Game Dev interview, where I had to do things like preserve unit order when marching a platoon around in-game, etc. etc.
 
how do you maintain order in a platoon? fear--; trust++; :p ?
 
-1
A: Why is processing a sorted array faster than an unsorted array?

SlavaHmm, why not to optimize it even further if you already have std::sort anyway? #include <algorithm> #include <ctime> #include <iostream> int main() { // Generate data const unsigned arraySize = 32768; int data[arraySize]; for (unsigned c = 0; c < arraySize;...

I don't understand people sometimes
 
5:38 AM
I was tempted to write Point Gun(); Platoon.At( Gun );
 
@MooingDuck It doesn't even answer the question.
I saw it get flagged. But the flag was cleared without the answer getting deleted.
 
@Mysticial it doesn't provide any new information at all.
 
exactly
I suppose a custom flag will do it.
But since I answered it, I'm gonna stay clear.
Although since it's been downvoted, we can actually delete it.
 
I don't think I have the power to downvote yet...
 
Interesting, even when flags are cleared. If a new flag is added, they all count to the total.
> not an answer – 3 hours ago × 3
 
5:41 AM
I can't vote to help because my rep is terribru. :3c
 
Normally I'd let such answers sit. But since it's this question, I'd prefer to keep the signal/noise ratio high.
Not to mention, that enough of these will eventually force the whole question into wiki.
 
It workses!
Only takes 10s to compile, too. Why ;_;
 
@Mysticial Rarely does anybody tell me "I can do whatever I want" pertaining to programming. I dig it :) — user99545 5 mins ago
lol
 
5:57 AM
@R.MartinhoFernandes It took a long and silly bug hunt but I think I can call the concat_map prototype a success.
 
@MooingDuck : Hi! Whats up Moo! :D
??
 
There's no std::forward_as_pair and there's no std::tuple<T, U> -> std::pair<T, U> conversion :|
 
Sweet deal!
 
How can you say that its not more optimized without measure? I know you did not because it runs twice faster that sorted array without this change with g++ -O2. — Slava 4 mins ago
@GamesBrainiac hi
 
Managed to make it so my BackBuffer can be used as a Shader Input.
 
6:08 AM
@MooingDuck He's actually right - only if the array is sorted. But that still doesn't answer the question at all.
 
hi
anyone?
anyone know batch commands?
 
@machiavelli Try asking Mooking Duck
@MooingDuck Whats up? Done anything cool recently?
 
@machiavelli Why ask that in a C++ chatroom?
 
@EtiennedeMartel Good point too. There's always a book you can look at.
 
room topic changed to Lounge<C++>: Why ask that in a C++ chatroom? [c++] [c++11] [c++-faq] [no-helpdesk]
I felt like I keep asking that all the time.
So I put it in the room description.
 
6:15 AM
lol
 
@Mysticial he's saying that sorting from greatest to least and flipping the condition is faster than sorting from least to greatest with the original condition. I seriously doubt he's right
@GamesBrainiac been working 11 hours a day at my job lately. We're right at BIG deadlines that cost $30k+ to push back.
 
@MooingDuck Heroic coding. Did you guys have too much partying recently? Thats the usual answer! :P
 
@GamesBrainiac Around here, we call that "crunching".
It isn't exactly fun.
 
@GamesBrainiac no, just other deadlines kept making this one get ignored because they were closer.
 
A simple use-case actually compiles in 2.4s. Somewhat of a relief.
 
6:18 AM
@EtiennedeMartel Crunching. Great name. We all know it aint fun. I used to work as a front end dev @ a local company. Whenever the deadlines hit, you'd see everyone @ the office for hours on end.
@MooingDuck lol. One set of deadlines causes another set to get pushed behind. I've had that myself, cant say I blame you Moo.
 
@Ell Really? Now I feel like my whole life has been a lie.
Fuck that shit, time to listen to the soundtrack of Super Mario RPG. Again.
 
... All those little gold stars my teacher gave me.... they weren't +1? ;~;
 
@EtiennedeMartel Write a novel about it! :P
@ThePhD Ahhh...thinking of old times, huh?
 
@ThePhD That would explain why people keep telling me "+1" but don't star my shit.
 
@EtiennedeMartel +1
 
6:20 AM
@EtiennedeMartel Let's Try~
 
@ThePhD But first, the theme to Master Hand's fight in Super Smash Bros.
 
I don't think I ever got my hands on the Super Smash Bros. OST
 
@ThePhD It's nothing spectacular.
Most of it is arrangements of existing songs.
 
I liked that startup screen though.
 
It's one big nostalgia fest.
 
6:23 AM
But what song I really like, though?
Melty Monster Galaxy in Super Mario Galaxy 2
 
@ThePhD That shit is tight.
Not as good as "Puzzle Plank Galaxy", though.
 
Awwwhhhh shit, Puzzle Plank!
This violinist needs so many Stars and +1s.
If I ever meet him/her/it I'm going to pull a gold star out of my pocket and just slap it on his Forehead.
 
On a side note, you do know they had a full orchestra and a big band for the soundtrack, right?
 
Oh. I don't think I'll have enough stars then. =[
 
I thought most big Nintendo games soundtracks had a full orchestra, like Zelda.
 
6:26 AM
@Rapptz Not necessarily.
Recent titles, yes.
 
@MooingDuck oh... haha.
 
Older games, probably just sampling.
 
Nintendo makes surprisingly good vgbgm.
 
@EtiennedeMartel When is an orchestra full?
 
The older games usually had a single genius, maybe two.
 
6:28 AM
@JohanLarsson Roughly a hundred musicians.
 
ok ty
 
My Skyward Sword game came with a 25th anniversary music cd for Zelda
 
Have you heard Tron soundtrack (for the movie)?
 
I thought Tron kinda sucked.
 
@ThePhD New games as well.
I mean Bastion's soundtrack is made by a single guy.
 
6:32 AM
@EtiennedeMartel But I mean the single genius also made the music.
 
@Rapptz The soundtrack does not suck at all imo. Can't think of any better.
 
man Crysis 3's "sun" actually hurts my eyes.
 
@ThePhD That's also what I meant.
 
@Rapptz : that really looks real man
 
Oh.
Well okay. x3
 
6:36 AM
And anyway, old soundtracks sound like ass these days.
I mean, MIDI? Really?
 
Technology changes.
 
Banjo Kazooie's OST still sounds good to me.
Especially Click Clock Wood
 
Man I loved my N64. ;_;
 
Anyway.
You should all watch this.
 
I already did.
 
6:38 AM
Alright, then not you.
 
Is that one of those
Education about games things?
 
I don't think I should. :c
 
It's Extra Credits o.O
 
6:38 AM
Also RUSTY BUCKET BAAAAY MOTHER FUCKEERS
Yeah I'm too lazy to click. :c
Maybe after I debug this problem. :D
 
I'm gonna work on my GUI library I guess.
 
Triangle Button? <3
 
Need to figure out how to do parent/child objects..
No fuck your triangle buttons.
 
;~;
 
@ThePhD You're worse than the Cat.
 
6:41 AM
I am not! D:
 
@ThePhD Image button might be better anyway.
 
@Rapptz Triangle image. <3
 
Anyway framessssss.
 
Hey, who's there?
 
no one
 
6:51 AM
:)
 
Noooo shit.
 
I'm trying to find a way to use LiveStream for live coding
 
LiveWhat?
 
livestream.com
 
Oh, right, Justin.tv's crappier competitor.
 
6:53 AM
I might try that one too
 
Consider YouTube, Justin.tv or Twitch.tv
 
You want to publically broadcast you coding?
 
YouTube? For live streaming?
 
or join.me if you're high
Yes.
 
Do you know how utterly boring that is?
 
6:54 AM
@ThePhD Yeap
 
ALRIGHT GUYS IT'S COMPILER ERROR TIIIME
 
@ThePhD I wanted something more interactive, indeed
 
FUCK YEAH HIT THAT BUILD BUTTON
Crowd: "Yeah you SMASH that build button, BABY!"
 
@Rapptz Twitch is the game-related spin off of Justin.
 
6:55 AM
@EtiennedeMartel Yeah I know
 
@Rapptz So writing code on there would be weird.
 
@EtiennedeMartel What if it's a game?!
 
In any case those things don't work very well with text because of the video compression
 
3 mins ago, by n2liquid
I'm trying to find a way to use LiveStream for live coding
I don't know, but "live coding" doesn't sound like a game to me.
 
I mean, what if he's coding a game
 
6:56 AM
I don't think it counts as a "game".
 
You don't count.
 
My balls do, though.
 
I was wondering
What I want to live code would fit a browser nicely
If there were some way to just synchronize browser DOMs somehow...
 
.... Wat.
 
Hm..
 
6:57 AM
@ThePhD It would take care of the video compression trouble with text...
 
Is there a way to draw a [X] like shape?
 
@Rapptz ?
 
@Rapptz Two rectangles
 
@n2liquid I'm gonna have to point you to the room's topic.
 
@ThePhD Hm, I don't see it.
It's a square with an X
 
6:58 AM
Oooh.
8 rectangles. :3c
 
too much :(
 
@EtiennedeMartel No one is talking about C++ right now; is it that bad that I am a C++ coder wanting to talk about something else?
 
@n2liquid no
 
If the edges are touching,
and not spaced out like [ ] (more like [] )
 
@n2liquid No one's supposed to know that we don't really talk about C++ here.
 
6:59 AM
Lol.
 
@EtiennedeMartel :P
 

« first day (861 days earlier)      last day (4093 days later) »