« first day (901 days earlier)      last day (4062 days later) » 

5:00 PM
ohhh
 
fuckin' malloc.
 
@Mysticial I voted to delete
 
@TonyTheLion Nah... Let's keep it around for more shaming. :)
 
oh ok
 
what exactly is .NET and what's it for? Probably a total noob question
 
5:06 PM
@Crowz That's two questions. The first is much easier to answer than the second :)
 
.NET is for when you don't have enough brain to learn C++.
 
Ell
@Crowz it's a massoff framework
 
@ereOn Or when you just don't want to constantly drown in the complexity that is C++.
 
@FredOverflow C++ is not complex. People is complex.
 
5:08 PM
@ereOn <complex> is complex
 
@EtiennedeMartel haha. I read that and I was like "dihydrogen monoxide? ... H20? ... W--water?"
 
@Rapptz Instead of getting a C++ book on OOP, I suggest getting two books. One about C++, and one about OOP.
 
Concur.
 
what is a good book about OOP?
 
OOP - Old Obnoxious Programming
 
Ell
5:09 PM
@ereOn C++ is definately complex :P
 
@Ell Obviously, but I love trolling.
 
you are living on the edge
 
and you spolied an almost perfect 2002 rep (nice symmetry)
 
what happens if you drop below 2k?
 
@ScottW :)
 
5:15 PM
The clans are marching gainst the law, bagpipers play the tunes of war!
 
🍌
blast. went back to chrome after a brief firefox excursion, and no more bananas!
 
hey
anybody knows how do I get max number of samplers in D3D11 pixel shader?
and maybe in vertex shader
 
@SiPlus there's tables and crap on MSDN
 
@melak47 MSDN is crap by itself
 
5:18 PM
@SiPlus No.
 
bool operator==(const std::set<std::string>& lhs, const std::set<std::string>& rhs)
{
   std::for_each(lhs.begin(), lhs.end(),
   [&rhs](std::string& s) {
      std::for_each(rhs.begin(), rhs.end(),
      [&s, &rhs](std::string& k){
        if (s != k) return false;
      })
   });

   return true;
}
does this look wrong?
 
@ScottW doesn't help. I thought I had this working in chrome before :/
 
@melak47 Not unless you make a font with everything.
 
switching to UTF-8 from iso western doesn't help :/
 
@melak47 There isn't what I want there
 
5:19 PM
Chrome has no automatic font fallback
 
@melak47 ISO Western cannot encode bananas.
 
user142019
@TonyTheLion what is the point.
 
@SiPlus "Common-shader core sampler slots" sounds like it might be what you want to know?
 
I'm looking for glGet(GL_MAX_TEXTURE_IMAGE_UNITS) counterpart in D3D11
 
user142019
You are returning false from an inner lambda.
 
user142019
5:20 PM
And not using the result of the lambda call.
 
@TonyTheLion Ugh don't use for_each
 
@ScottW That's Mac OSX.
 
going to try to find in ANGLE code
 
@TonyTheLion why do you capture &rhs in the inner loop's lambda?
 
@Zoidberg hmmmm
 
user142019
5:20 PM
I think Scott knows he uses OS X.
 
@TonyTheLion why for_each?
 
@CatPlusPlus why?
 
user142019
@TonyTheLion y u no for (… : …).
 
@TonyTheLion Also it does way too many comparisons
 
@TonyTheLion code is wrong, of course.
 
5:21 PM
@SiPlus so what are you looking for? number of textures you can bind, or number of samplers?
 
@TonyTheLion Because it's nigh unreadable
 
@melak47 number of textures I can bind at once
 
@TonyTheLion the return statement is bogus. you could throw and then catch in the outermost scope
 
Also doesn't set already have == defined
 
@Walter huh?
 
5:22 PM
@Walter Ugh no
The entire thing is wrong, but return values are not really the problem
 
@SiPlus MSDN.
 
@CatPlusPlus it does
I should have looked
 
If you want your own then first you compare sizes, and then do an intersection
Or not an intersection, difference would probably be easier to handle
 
std::set_intersection
 
Because then you get an empty set
 
5:25 PM
I'm a noob :|
 
g'damn. My triangles aren't drawing
 
@CatPlusPlus you're right. didn't realise it was sets ...
 
@Crowz Your perspective matrix ain't got no pancake mix.
 
@DomagojPandža oh wait, you're onto something
 
why would one want to compare two sets of strings ???
 
5:27 PM
well, I somewhat solved my issue
going to use feature level to check number of samplers
16 on <=ps_3_0, still yet to find for ps_4_0
 
It's not an issue, it's called lack of knowledge. Which is an issue, but not in the software engineering kind of way.
 
Lack of knowledge is an issue
 
which network topology is generally used in offices
 
@SiPlus now you're talking about number of samplers again
 
@SiPlus deep man
 
5:28 PM
textures != samplers
 
@Crowz physical or logical topology?
 
@TonyTheLion physical
 
@melak47 He ain't got no pancake mix.
 
@Crowz I would say star topology
 
@DomagojPandža wut? I'm lost :p
16 sampler slots, 128 resource (texture) slots, if I'm reading this right.
 
5:31 PM
@melak47 You're lost because you ain't got no pancake mix
 
@melak47 Common-shader? Means same for pixel shader and vertex shader?
 
@TonyTheLion why's that?
 
@SiPlus I guess so.
also, a resource can be a texture array, with a max size of 2048, so...I guess you can have 128x2048 textures bound? idk :D
 
@SiPlus These days shader units all look the same on hardware.
 
5:34 PM
@Xeo @CatPlusPlus @TonyTheLion Can I be a room owner please? :)
 
Did you fill an application form
 
Is it ok that RSGetViewport gives me [0;0] depth range until I explicitly initialize it?
 
@CatPlusPlus Yes, I used std::fill with zero.
 
@FredOverflow You can from me
 
The default value is [0;1], as MSDN says
 
tis done
if anyone disagrees, then you're free to remove him again
 
room topic changed to Lounge<C++>: document yourself about C++ and you will see [c++] [c++11] [no-helpdesk]
:)
 
Common-shader core, there's no such thing as common-shader. That's naming inherent to the Unified Shader Model where there's no separate pixel, vertex, geometry shader (or others as in TS / DS ) hardware pipelines. You can bind 16 samplers to a shader. And 128 combined resources, these can be regular general purpose buffers or textures. That's part of the common-shader core architecture, as in, beneath all parts of the graphics pipeline.
 
user142019
Y U NO CAPITALIZE SENTENCE
 
5:35 PM
You forgot to add
 
@Zoidberg I copy/pasted verbatim.
 
user142019
Ok. Then it's fine.
 
user142019
Copy/pasting verbatim is always fine!
 
No need to pin that
 
> Let's pin our mission-critical data to a table and give it a night it will never forget.
 
5:37 PM
Also look Stack Exchange is impersonating Feeds what an asshole
3
 
@FredOverflow lol
 
user142019
@FredOverflow :D
 
@FredOverflow Aha. The book isn't for me. A friend of mine is teaching a C++ course and the main topic is about OOP.
So she wants a book that assumes programming knowledge and teaches OOP well.
 
Ugh it must suck
 
@Rapptz to recommend for the course or for herself?
 
5:40 PM
for the course
She says she's tried multiple books but they're shitty.
 
Hei
 
Hey, Jueecy pussy.
 
My friend's uni teammates were questioning the need for C++ over C because "why would we need classes"
 
@CatPlusPlus, good teammates he has there
 
@Rapptz So the students already know C++?
 
5:41 PM
@CatPlusPlus Well, uni can give that impression sometimes...uni classes can be very useless.
 
@CatPlusPlus You are always complaining about classes in university.
 
The best part is that they decided to use Qt for GUI
So they're keeping half of the app in C because
 
Hypothetical situation: you run cat /usr/bin/cat > mycat && chmod +x mycat. Is mycat supposed to be identical to /usr/bin/cat?
 
@FredOverflow No, the students know C. It's supposed to be a course about transitioning from C to C++.
(Although this sounds like C with Classes™ it isn't)
 
I don't even know how you argue with people like that
 
5:43 PM
@rubenvb Leave the Cat out of it, dammit! :P
 
0. Forget C
1. Learn C++
2. ???
3. Profit
 
@rubenvb Yes.
 
@DomagojPandža I'm inventing a new programming idiom: teleportation.
 
Assuming I'd like to create, for fun, an HTTP simple webserver in C++, is Boost ASIO the only viable way?
 
@Rapptz I would think the advice still applies. There are very little OOP facilities in C++ anyway, don't need a book just to cover that.
 
5:44 PM
@R.MartinhoFernandes dammit. Then my cat is broken.
lol
I wrote a broken cat
 
Yes, you should get a new cat.
 
user142019
@FredOverflow 2.5 ???
 
@LucDanton 2 books for a course is a lot for a college student though lol
 
@rubenvb Congrats
 
$ cat `which cat` > mycat
$ diff -q mycat `which cat`
$
 
Ell
5:44 PM
@Jueecy it's not the only way by any means
but I like ASIO
 
I used fread and fwrite.
 
@Zoidberg It is a stupid meme
 
stupid codes.
 
@LucDanton I would argue that you probably cannot do OO in C++ without some kind of smart pointer.
 
@Ell, what else would you suggest?
 
5:45 PM
@Rapptz The way you've presented it the course covers a lot.
 
Congrats on screwing up binary copy
A round of applause for @rubenvb
 
How can you fail at cat.
 
Currently I recommended Accelerated C++ since it has a steeper learning curve.
 
Ell
@Jueecy I wouldn't suggest it, but going for the berkely sockets C api is another route :P
 
but I told her I'll keep looking around for one that focuses more on what she wants (OOP)
 
5:46 PM
lolz
 
Ell
combined with select/epoll/other stuff
But I don't know much on this subject
 
@Ell, you are talking arabic to me... :(
 
OOP really doesn't need a whole book
 
Cat Plus Plus for dummies - How not to get trolled to death on your first internet chat experience.
 
@Rapptz "Design Patterns" is about OOP in C++, but the C++ code is worse than terrible. Far worse.
 
5:47 PM
TIL that UUOC is a thing.
 
@EtiennedeMartel OIC.
 
Ell
@Jueecy basically select/epoll/etc. allows you to do asynchronous IO - so you can go "right, start reading that and tell me when it's finished. In the mean time I'm gonna do such and such..."
 
user142019
in Java Sucks, Mar 26 at 18:37, by FredOverflow
Practically every Design Pattern can be viewed as [awesome language feature missing from Java] retarded edition.
 
Don't use select directly
It's waste of effort
 
Effort is a waste of effort..
 
user142019
5:48 PM
Use epoll or kqueue depending on OS.
 
user142019
Even better, use a high-level wrapper.
 
@Zoidberg std::function probably makes half the Patterns obsolete.
 
Fuck patterns
 
Hmm, I'm only getting part of the file.
 
@CatPlusPlus I wouldn't fuck a pattern. They're probably full of diseases.
 
5:49 PM
but the part I have is OK.
 
wow... the guy who answered Tony's stack question. He had two other answers. One was mod-deleted. The other was red-flag deleted. (-100 rep, although he didn't have any rep to lose in the first place)
 
@CatPlusPlus Patterns are awesome once you pair them up. Or is that not what this whole Pattern Matching business is about? :D
 
@Ell, I read something about the C socket API, but I should read more apparently. Another question, since we are here: considering that I have my webserver running. Is it a good idea to implement the application (simple request input and html response output) inside it and store data in binary files instead of a database?
 
user142019
colon.empty();
toilet.flush();
// brb
 
Ell
^nice
 
5:50 PM
@Jueecy What data
 
Ell
@Jueecy I would really go with boost::asio. I find it quite easy to use. And what do you mean by storing the data in binary? which data?
the website data?
 
@CatPlusPlus, the application data, like users data, posts data and such
 
user142019
@Jueecy depends on what you want to do.
 
user142019
@Jueecy RDBMS
 
5:51 PM
I wonder who those "sources" are.
 
What application, you're writing a webserver
 
user142019
And use a high-level language such as Python or Haskell if you make web applications.
 
@Ell yes website data
 
@EtiennedeMartel WTF
 
(Also it's a silly question)
 
5:52 PM
Microsoft sucking? What a surprise.
 
Don't listen to Zoidberg. He never moved past Hello world.
 
@CatPlusPlus I would write the webserver interface and the application in it, to make things... possibly faster...
 
Ell
@Jueecy well you would just keep that in a directory and you would point your webserver to the directory where the website data is stored
 
My bugs are faster!~
 
@Mysticial It doesn't make sense. Many areas in the world (even in the US) have crappy Internet access, and I don't think Microsoft want to just give those areas to Sony.
 
Ell
5:52 PM
also don't do anything for speed :P
 
(No, don't ever use flat files for structured data storage)
 
@Zoidberg I reaped a whole 17 rep!
 
(No, don't write a webserver)
 
user142019
@StackedCrooked nijs.
 
Ell
Also if you are writing your first network application I would go with something easier first, like a chat server or something
 
5:53 PM
(No, don't write a webapp fused with a webserver)
(No, don't write a webapp in C++ at all)
 
@CatPlusPlus Indeed. Use Nginx intead.
 
@Zoidberg It sucks that questions only give 5 rep. (I have 231 questions vs 267 answers.)
 
@CatPlusPlus then I would go with DJango right?
 
Well guess what?
Windows bit me in the anus yet again.
5
A: Unexpected return value from fread()

Michael Burr(I'll bet you're on Windows) bmp = fopen("test_colour.bmp", "r"); should be bmp = fopen("test_colour.bmp", "rb"); If the file is opened in text mode on Windows, the runtime will stop reading when it happens to hit a 0x1a (Ctrl-Z) byte, which Windows considers an EOF marker for text files. ...

 
5:54 PM
What is it with people stepping into a domain they have no idea about, and then making some arbitrary choices in the name of PERFORMANCE
 
Fuck MSVCRT.
 
Why are you reading files in text mode anyway
 
I didn't even think to suggest binary mode, I thought you'd be using it as a matter of fact :s
 
@StackedCrooked I swear @Andy knows every single corner case of the standard by heart. He might actually work as a substitute for litb.
 
You should be doing binary copy
 
5:55 PM
@LucDanton Same here. Why the heck would he do otherwise...
 
well
 
@Mysticial Cool. In this case his answer was a little better than Mike's. (concretely: the argument of the emplace_back() function template can bind to lvalues with any cv-qualification.)
 
(Text mode in CRT is retarded anyway)
 
@Ell I'm too lazy anyway, I won't probably do nothing and just use PHP instead.
 
I am disappoint.
 
5:56 PM
PHP is a great choice
2
 
I must have not remembered and assumed fopen was low-level enough to be binary.
dammit.
I suck.
3
 
@CatPlusPlus <?php } /* sarcasm */ ?>
 
@StackedCrooked cv-qualification == close vote qualification
 
Ell
@rubenvb bit you in your anus? owch.
 
5:57 PM
@Mysticial You live too much on SO :P
 
@StackedCrooked That's what meta has done to me. :(
 
At least you're not a whiner :P
 
Do you still have a question (since you appear to have self-answered this one)? — Robert Harvey 3 mins ago
 
@FredOverflow What's wrong with self answering? Although that answer should have really been moved into the question body.
 
@RobertHarvey I believe he meant to edit his question? This seems like an extension or an edit. — Rapptz 18 secs ago
:P
 

« first day (901 days earlier)      last day (4062 days later) »