« first day (2144 days earlier)      last day (2789 days later) » 

12:15 AM
@Telkitty Strump talkers? Earlier in life I rather enjoyed talking with women that at one time probably would have been called strumpets by the "decent" women of the day.
4
 
that's cause talk is cheap
 
1:05 AM
@JerryCoffin I'm just stumped by the fact you were alive when people could be called strumpets
well not stumped precisely but the wordplay there was too good to pass up
 
1:29 AM
@jaggedSpire Truthfully, it was probably pretty rare, but I did have one great aunt in particularly who I recall using the term at least a few times. Not really sure if she was old, or just old-fashioned (or possibly some of both). I, of course, thought she was ancient, but I was young enough for that to mean next to nothing.
 
@JerryCoffin ah
 
@jaggedSpire When I think about it though, I'm pretty sure she actually was fairly old. She was a (fairly young) adult during the great depression. It had affected her enough that when I was a kid she still acted like there was a depression. We kids hated visiting her: she always gave out cookies, but left out the (expensive!) sugar, and then over-cooked them. Pretty much miniature hockey pucks.
 
@JerryCoffin I can see such terrible cookies acting as kid repellent
 
@jaggedSpire Pretty sure that wasn't intentional--she really seemed to enjoy our visiting, and would comment on how much she missed us and such.
 
1:41 AM
@jaggedSpire I did like one of her lines though: "It's no laughing matter, but it's no matter if you laugh."
Anyway, I gotta go for a while. Talk to you later.
 
@JerryCoffin that is good
talk to you later
 
I wonder how many hate messages trump receives everyday ...
Some moderators have been moaning about how they received some. Think about how many people know a moderator, how many know trump ...
 
2:12 AM
What was the trick for an std::function argument to take lambdas and member functions? There was some youtube video about it a while back...
It was std::invoke and my compiler doesn't have it :-(
meh, somebody should provide a modern answer to this question:
71
Q: Using generic std::function objects with member functions in one class

Christian IvicevicFor one class I want to store some function pointers to member functions of the same class in one map storing std::function objects. But I fail right at the beginning with this code: class Foo { public: void doSomething() {} void bindFunction() { // ERROR ...

 
 
3 hours later…
5:28 AM
@Mikhail Huh, why would you need std::invoke to store lambdas in std::function?
 
@Mikhail std::function does INVOKE internally
And INVOKE doesn't solve the problem the OP has
i.e. no instance to call the member function with
 
 
2 hours later…
Ven
7:53 AM
helo
 
sallut
 
Ven
@Morwenn rend mon L stp
 
@Ven Fallait pas faire S quand t'étais au lycée.
 
Ven
7:54 AM
j'ai pas fait S d'ailleurs
trop d'efforts.
 
bouh
 
I need to stop telling people that more features are coming to my apps soon. From stats, they will never come ...
My friend used to joke that he waited for ages and no new updates arrived
 
helo boss
 
Ven
bo-lo-ss
 
8:48 AM
@Puppy sorry about blowing up at you earlier. I was in a bad mood and not ready to have a topic derailed by a correction to grammar
 
Lounge<Drama>
 
9:05 AM
you can say 'I C', you can't say 'I C++'
 
nwp
there was a proposal about "I C ++" inside text and suggesting to format it as code instead
 
u w0t m8
 
nwp
questions/answers that contain the text ++ (outside code) should have a popup saying that maybe they forgot to put some text in code tags
so 'I C++' is a valid reason to add a popup
 
hehe
 
Is the wordplay that common in answers?
 
Ven
9:23 AM
no
 
9:34 AM
@Telkitty Just say "ages are not a feature"
 
@Telkitty you can say I C C, then I C ++.
 
Hello folks.
 
@Käsebrot hey, I ended up googling your name, and watching a weird Youtube video
 
which one?
it's bread with cheese in english ^^
 
So I have been doing OpenGL tutorials for a while now. I see people using GLuint in places where a normal uint would have done the job. Is there any particular reason to use GLuint instead of uint
@Khaled.K yeah this is (was) really popular in germany :D Although many people find it weird :D
 
nwp
@Käsebrot It is common that every library redefines all basic types. The benefit has eluded me to this day, but legends say that in theory it allows you to adapt the definition depending on the platform.
it is much better to use <cstdint>, but some of those libraries predate that header and use that as an excuse to never improve their code
 
@nwp so it's not like GLuint variables are going to be stored by gpu or something, right?
 
nwp
no, they are regular unsigned ints
 
9:51 AM
kk, ty
 
typedef unsigned int GLuint;
 
Ven
37
A: Why does everybody typedef over standard C types?

VenFor the older libraries, this is needed because the header in question (stdint.h) didn't exist. There's still, however, a problem around: those types (uint64_t and others) are an optional feature in the standard. So a complying implementation might not ship with them -- and thus force libraries ...

:D
 
17
Q: What's the advantage of using GLuint instead of unsigned int?

JSevenI like to be more standard as possible, so why should I "constrain" my classes defining it's members as OpenGL types when I can use primitive types? Is there any advantage?

Here mnarked as answer: This allows platform independece, I guess?
The type "unsigned int" has a different size depending on the platform you're building on. I expect this to normally be 32 bits, however it could be 16 or 64 (or something else -- depending on the platform).
 
typedef void GLvoid;
seriously
 
9:54 AM
lol
 
can we move beyond obvious badware
 
Duh, sometimes I am afraid C++ will remain a riddle for me forever :D
@Griwes you consider OpenGL badware?
 
@Käsebrot yes
 
it's a piece of garbage
 
9:58 AM
@набиячлэвэли why is that?
Any reasons for such strong opinions?
 
global hidden state, for starters
also the fact you're using it means you're doing low-level programming
 
Ven
also low level languages
 
which is bad because?
 
...because it's error prone and low level.
(Yes, that's a recursive reason. By design.)
 
@Käsebrot which means you're spending a lot of time implementing something someone else probably did better
 
10:07 AM
I thought it was the purpose of C/C++. To be low level
 
> C/C++
 
There's no language called "C/C++".
Now please go reeducate yourself.
 
(That's a nicer way to say "read a fucking book".)
 
Always a pleasure guyws
guys
 
10:08 AM
@Griwes i said that once and people here said wtf?
 
@Käsebrot Guess why a lot of people aren't using C++ anymore
 
so if C is death, C++ is ultra death?
 
@ChemiCalChems I call bull shit.
 
@sehe not wtf but they said what do you mean
 
Link or it didn't happen.
 
10:10 AM
@milleniumbug Because it's shit?
 
@sehe maybe i fucking made it up in my mind, i'm stunned
gimme a second
 
so what should one use intead of OpenGL?
 
A wrapper thereover, for example
 
@Käsebrot Because they're doing things at the different level of abstraction
 
@sehe i guess it didn't. my brain must have fooled me. maybe it was somewhere else
 
10:12 AM
@набиячлэвэли wrappers cause overhead
 
No, it's C++
 
My precious ~~purrformance~~
 
> Allocation? IN MY PERFORAMNCE?
 
It's more likely than you think!
 
@Käsebrot Which is irrelevant if you spend 3 years doing something because you're actually doing something else
for example, if you want to make a game, don't dabble with OpenGL
 
10:13 AM
@milleniumbug I needed years to realise that
But building engines has to happen on a low level, right?
 
yes you need a lot of aluminium and instrument steel
 
Yeah, but you're not making a game engine, you're making a game
 
@milleniumbug How do you know what I am doing ^^?
 
I don't
I'm guessing based on a history of newcomers asking for help with OpenGL
 
@milleniumbug I am not making a game. I let people using drag and drop in Unity handle this.
 
10:17 AM
whatever
 
@milleniumbug I know what you mean. For years i have been thinking that I have to learn OpenGl for game developement. Then I realised that nobody needs this shit for making games
 
very good
 
@Käsebrot is that so?
i need to learn about that
 
@ChemiCalChems Yes it is
 
how do you manage 3d graphics in plain c++ in a better way?
 
10:18 AM
now can we talk about something more interesting
@ChemiCalChems You don't
 
@milleniumbug like what?
 
@milleniumbug what library do you use then?
 
@Käsebrot not sure, what are you writing
@ChemiCalChems You don't "manage" 3D graphics
 
@milleniumbug something more interesting, like what
@ChemiCalChems If you want to make a game, use one of the billions of engines out there
 
it's irrelevant to the game mechanics, to the plot of your game, to pretty much anything
 
10:19 AM
@milleniumbug you know what i mean man
@Käsebrot i currently use sfml, but idk if there is any good lib for 3d games
sfml is nice for 2d games though
 
there isn't
all of them are terrible
try unity
 
i'm not going there man
idk why, but i kind of don't like it at all
 
Level management <- you want to be here
Scene management
Model management
Texture and mesh management
Rendering <- OpenGL is here
 
@ChemiCalChems You don't have to like the hammer if you want to hang a picture on the wall. But it will get the job done.
 
10:22 AM
I've probably skipped some layers of abstraction there
 
where on that scale is Vulcan then?
 
dunno
 
@Käsebrot problem is making the game isn't as simple as hanging a picture on the wall, it's about hanging 1 million pictures, so i'd prefer to have a tool i like to do the task
 
@ChemiCalChems No, it's not
 
So you will probably spend years creating the tools you are speaking of
 
10:23 AM
@milleniumbug i don't like unity at all, why should i have to use it? it works, yes, but so does assembly
 
wait, why am I even talking to you
 
@milleniumbug idk
@Käsebrot or use something else
another lib
 
@ChemiCalChems I don't make games
 
@ChemiCalChems my point is that all of them are terrible, so when you have unity which is terrible, and there was so much effort put into it, your ad hoc tools will be even worse
 
@milleniumbug no doubt about that. when i jump into 3d, if i ever do, i guess i'll have to go unity, even though i don't like it
 
10:28 AM
you may also try UDK
 
@milleniumbug i like that more
support c++ doesn't it?
 
maybe
 
it does, just like cry engine
 
i'll have to do my reseach if i ever go 3d
 
@ChemiCalChems or have a look at OGRE - engine
 
10:39 AM
@redspah below rendering as yuo'll also have to juggle sync and uniform data shadowing and transfer
 
@R.MartinhoFernandes they need you or something
2
 
@Ven Will they have it for dinner once it grows up? :)
 
@ChemiCalChems Maybe you just remember the lounge kneejerking to c/c++ (as always).
Because it's the hallmark of a bad help vampire or worse gamedev
 
@sehe possibly idk
 
10:46 AM
@Käsebrot Depends on the wrappers. If you do them Java-style, then godspeed. If you do them C++ style, then you are wrong
@LucDanton Cool. Did you change email address? Or political affiliations :)
 
@sehe not as I recall, but it’s a rough morning
 
oh well, now i'm gonna have to think of a way to serialize maps, which i don't even know what are gonna be made of yet
guess i should first think about the latter and then go for the former
 
Oops. Doesn't sound good.
I was referring to the change in your avatar
 
I keep refreshing but I still see the same one
 
click on your chat profile
 
10:52 AM
same thing, even in porn mode
could still be propagating
I see it
same email
 
started happening quite a while ago
 
@sehe IIRC gravatar tends to sometimes change the defaultly generated image
 
looks like my cached images use the same hash as the new ones, so I guess it’s on Gravatar’s end
 
11:39 AM
I'm excited about the proposal to add a "brontosaurus" emoji codepoint because it has the potential to bring together a half-dozen different groups of pedantic people into a single glorious internet argument.
6
 
11:53 AM
@Griwes In Luc's case that has not happened for years, AFAICT
 
I don't think everybody knows what their algorithms are.
 
I think I've read the default identicon is based on a hash the registered email.
It's just that some ID providers don't have/expose an email, and then it fluctuates.
 
@sehe not in this case though
1 hour ago, by Luc Danton
looks like my cached images use the same hash as the new ones, so I guess it’s on Gravatar’s end
 
Cool. Maybe they have thwarted the obvious replay attacks :)
 
nwp
12:21 PM
Aug 22 at 13:30, by nwp
12
Q: Why did my avatar change?

barronMy network-wide gravatar identicon used to be a pleasant blue, now it's bright green. I didn't change my email. Did Stack Exchange change its email hashing algorithm or something?

@milleniumbug you need to know which void you are staring into
(they probably did it for consistency)
my laptop fan started making an annoying high-pitched noise :(
 
@nwp electrical or mechanical?
 
nwp
I don't understand the question
 
@nwp is the noise electrical or mechanical?
 
nwp
oh, I would guess mechanical due to dust, but I'm not sure
 
hm...
 
12:29 PM
@ChemiCalChems acoustical
 
@Abyx to be fair, all sound waves are mechanical, so yeah
 
nwp
for a second I imagined people cranking a handle to mechanically cool the laptop
 
@nwp lol
what is the stack size in a generic c++ program, and can it be changed?
 
nwp
@ChemiCalChems windows gives you 1MB by default I think, you can set it via linker flags
 
@nwp hm, nice
thanks
 
12:33 PM
1MB should be enough for everyone
 
@milleniumbug imagine i was loading a map for a game, i could run out of stack memory, but i guess i could use the heap
 
nwp
the map size should not be known at compile time, therefore you should not be able to put it on the stack
 
@ChemiCalChems std::vector uses dynamic allocation
 
@milleniumbug does it? so a vector is always in the heap?
that makes so much sense, but i never knew
 
nwp
the data of it is
 
12:36 PM
so i won't run out of stack... nice
 
stack overflows happen when your call stack is too deep or if you did std::array<int, 4096*4096*1024> as a local variable
 
@milleniumbug yeah, i know
i was just wondering if storing more than 1 MB in a vector could fuck me over
but since it's dynamically allocated, then there is no problem
 
@ChemiCalChems SOO is an option, AFAICT. Like GNU stdlib's SSO
 
Wtf. Why would an 8-byte size_t be ambiguous with 4-byte unsigned int and 8-byte unsigned long long? It doesn't favor the one that's the same size?
 
@ChemiCalChems If you ever run in to this limit, you probably did it wrong ;p
 
12:40 PM
@ChemiCalChems Depends on how many vector instances you allocate and how many stack frames you're nesing :)
 
@sehe Nope, std::string had to be changed to support SSO explicitly if memory serves, something about iterator invalidation w.r.t. move semantics or some such?
 
Xeo
@Mysticial using size_t = unsigned long; and sizeof(unsigned long) == 8?
 
@Xeo yeah
 
Xeo
And no, there are no favors wrt size, IIRC
 
64-bit Linux
 
12:41 PM
@Puppy i know xd
 
@Puppy In reverse, I heard SSO had to be removed after C++11 outlawed it?
 
@sehe COW
 
that's COW.
SSO is in, COW is out.
 
Xeo
@sehe no, SSO was specifically allowed with C++11, actually, IIRC.
 
but if memory serves, SSO is only in for std::string because they had to make special exceptions for it.
 
12:43 PM
I was pretty sure COW was out for years
 
nope.
 
Xeo
@sehe Not in the standard before '11
 
@Xeo Oh cool. I take it SOO for vector is in too, then?
 
everybody knew it was dumb but permitted by Standard and still used by libstdc++
 
@Puppy Oh. Disregard question
 
Xeo
12:44 PM
libstdc++ still held onto it for a long time
 
Dinkumware had it for a long time, and even had race conditions in it
I know this because I had to manually patch the standard library somewhere around 2000/2001
 
libstdc++ still has it, I believe.
 
Xeo
nah
 
or maybe it's GCC 6 where they finally replaced it?
 
Xeo
ye
they got it as an extension type still, IIRC, in some other header
 
12:45 PM
@sehe IIRC no.
 
@Xeo they use ABI tricks
 
@Puppy ABI*tch
 
@Puppy If I'm not mistaken, they kept the symbols for linking purpose, but new code uses the SSO string.
 
Xeo
@LucDanton inline namespace?
 
no, with linker support and everything
 
Xeo
12:46 PM
ah, ok
 
@Xeo heh, maybe I spoke too soon since that’s not the linker error I expected
 
c++ is like being at sea alone
this room is like a rescue boat
 
nwp
C++ is like the universe: It is ever expanding and enforces a speed limit that makes sure you can never discover everything.
 
@nwp sad but true
 
> If you get linker errors about undefined references to symbols that involve types in the std::__cxx11 namespace or the tag [abi:cxx11]
@Xeo right, ABI tagging was the other feature (together with inline namespaces) (from the manual)
 
nwp
12:56 PM
@LucDanton I have this issue with boost::program_options::arg. gcc links to it properly and clang doesn't and the reason is most likely that the symbol is defined as boost::program_options::arg[abi:cxx11] which confuses clang somehow.
 
i really think it's possible to have any unit as a derived si unit
like stupidity
or intelligence
or whatever
 
nwp
that will be nice
 
hey guys
i'm having a problem with c++
if you could help me
i would really apprecieate it
0
Q: C++ Pass the reference of the class to a vector inside the constructor

Drin kadriuOkay so i have an extern vector of pointer type 'Entity', and what i want to do is, when a new Entity type class gets constructed it gets pushed back in the vector of Entities, in C# this would be possible by passing 'this' as a parameter, but i'm unable to do that in c++ ! Here is my code: 'Pub...

 
show us on the compiler error where the language violated you
7
 
1:01 PM
Aug 19 at 11:58, by nwp
Got a C++ question? Go to the C++ room!
 
ouh thanks
 
extern vector <Entity*> AllEntities;
hello cancer my old friend
 
what about that line
 
it hurts, that's all
 
I think pool vectors like that are better contained in some class
 
1:03 PM
pool vectors?
 
@redspah in the Entity class for example
make it static and that's it
that's what i do
 
Yeah, private static is better than extern.
 
hehe, #define intern static //opposite to extern
 
look guys im not very experienced
but theese guys here
1
Q: C++ getting LNK2019 error, even though no circular dependency, and nothing included twice

Drin kadriuOkay so i'm trying to create an Entity Component System, and until now its been working pretty decent, but now i've encountered some linker errors that i'm not sure why, i've tried different variations for hours but i can't get this to work, i know i have made a very silly mistake but i can't fin...

 
@Drinkadriu that's why we are giving you advice
don't extern stuff
 
1:05 PM
said i should use extern
 
nwp
@milleniumbug that is actually fairly common in gamedev, it annoys me greatly
with a prefix of course for industrial strength performance
 
add a static vector<Entity*> EntityPool in your Entity class or something like that
 
nwp
@redspah he has that already, with header guards
 
it's extern, so it looks like it's in the global scope
 
guys, i wrote all the details in the question
so please read the whole question if you havent
 
1:08 PM
If you have a C++ question, head over to the C++ room.
 
lol that code dump
 
Ven
@AndreasPapadopoulos I have a Padadopoulos question.
Where do you want my head?
 
1:25 PM
!
kinky
 
Ven
WTF
I just discovered `git am`.
git-am - Apply a series of patches from a mailbox
 
nwp
I use git -am all the time, but it does something completely different
 
Ven
you mean commit -am?
 
Ell
@milleniumbug lol
 
nwp
yeah..
 
Ven
1:35 PM
@nwp I really recommend against commit -a, and prefer git add -p a lot
 
Ven
cuz proofreading
 
why not git diffs afterwards
or that'd be git diff --staged but I got it aliased
 
Ven
it would. or you could use git add -p and save you the trouble of having to do it later.
instead of your workflow being `git add > git diff > WHOOPS > git reset -p" you can "git add -p".
 
there is never "WHOOPS"
I know when to add all and when to add only selected files
 
Ven
1:38 PM
that's programmer hubris
 
or
listen to this idea
you could use a git client that's actually not as retarded w.r.t. staging things as the CLI
 
Ven
I use magit.
 
well mostly I check status which has the advantage of not looking through the diffs
 
Ven
well, I'd use magit at $work if it managed separated repositories...:(
 
I never commit -a or add .
I _always_ add to staging piecemeal
 
Ven
1:40 PM
yep.
 
> emacs
eww
 
@набиячлэвэли That's NOT an advantage. It's pretty much the guarantee you'll paper over your fuck ups
 
Ven
@Griwes emacs+evil = <3
A really amazing thing with git add -p is that, if I'm only half-happy, I can just edit.
 
I mostly use git-cola for staging things.
Unless I need to do it on an X-less server, then I live with the pain of git add -p...
 
@sehe It is an advantage because when I want to look at the diffs before staging I use git diff and also look through the changes in my editor which has git diff indicators in the gutter (to the left of each line)
 
Ell
1:42 PM
Patching is very user friend imho
Until you try to stash a tiny chunk and it fails
 
Ven
That's definitely not a pain for me, but hey! Whatever works for you. I appreciate IntelliJ's interface
 
@набиячлэвэли Ah. Yeah I have the gutter thing too. But I still need to review things in side-by-side. For conscience.
 
@sehe I mostly glance over git diff --staged after adding everything, too
 
@Ven Magit FTW! \o/
 
@набиячлэвэли Phew. Faith moderately restored
 
1:55 PM
the War of the Workflows
 

« first day (2144 days earlier)      last day (2789 days later) »