« first day (824 days earlier)      last day (4142 days later) » 

12:00 PM
There's a couple that has a hippo as pet.
 
oh wow
interesting pets
some people have
 
It seems fairly intelligent.
 
user142019
I seem fairly intelligent.
 
More than the hippo?
 
user142019
More than the hipster.
 
12:04 PM
lol
 
user142019
 
o'-'o
I made boxer emoticon :)
 
fucking lag
can't play properly
i hate this school
 
user142019
owned
 
i hate everyone
 
12:06 PM
lol
 
user142019
ITT: Nolwenn is the Cat.
 
One test down, one to go
 
@Zoidberg Hmm, I am going to have lunch now, but I think GetGlyphForm might be usable to retrieve a glyph ID. If it works, I will let you post the answer.
 
user142019
Whokay.
 
@Zoidberg I fail
 
12:10 PM
lol
A guy I answered a question for added me on facebook
 
fuckign retards can't upgrade a network properly
i hope they die in a router fire
 
lol
@NolwennLeGuen network newfags
 
user142019
@LuchianGrigore lol
 
heaven
actually, Maldives
let's go!
in C#, 8 mins ago, by Jamie Townsend
bye @R.MartinhoFernandes you're much nicer than this @NullPointer douche
dafuq is going on in C# room again?
 
Xeo
Gaaah, how the fuck does Perforce work?!
 
12:19 PM
It doesn't work.
 
PF is actually pretty awesome when you get used to it
 
@Xeo Neatly.
Perforce-git is something miraculous. Corporate stuff, though.
 
I thought it sucked too, but I can now say it's vastly superior to AccuRev and SS
 
@TonyTheLion its(C# chat room) worse place on SO i ever saw ...
 
Xeo
I just need to figure out how to get certain stuff from the depot to my workspace...
Just synching didn't seem to do the job last time. :|
 
12:25 PM
@TonyTheLion and its really nice .. i have visited
 
@NullPointer oh cool
 
Xeo
Why the fuck does Perforce sync a folder I have excluded...
 
hey
 
12:26 PM
say I have a header file, declaring a class
 
Put a class into friendzone.
 
Xeo
Did you read the rules?
 
lololololo
 
it has a member, an object of another class
 
@eisbaw You have a header file, declaring a class
 
12:27 PM
lol
 
@eisbaw it has a member object as value
 
yes
 
that's true
 
the point, get to it!
 
@BartekBanachewicz Now, now.
 
12:28 PM
but since I am to distribute it as a shared library
 
I am scared of shared libraries
 
i need to give the 3rd party user this header file
 
aaaaaaand?
 
which includes member objects which he can not see the definition of
 
pimpl
 
12:29 PM
so how can i go about that
pimpl pattern?
 
Don't expose private things in your header.
pimpl can help with that
 
but then i have to maintain two headers
okay
 
pImpl doesn't mean two headers.
 
will look in to it
 
Xeo
I don't think you understand pimpl.
Why would you need two headers?!
 
12:30 PM
He may understand pimp though :P
 
pimp my L
 
correct, i dont know it
reading now
seems like 'just use a pointer the the member obj'
or rather, make the member obj into a Obj*
but heap adds overhead
 
What are the downsides of using unique_ptr instead of Pimpl?
 
Xeo
@BartekBanachewicz What. unique_ptr is one way to implement pimpl. oO
 
12:34 PM
I assume you mean forward declaring the member type and storing it as unique_ptr member.
The downside could be that you still need to expose a forward declaration to the member type.
 
man, every muscle in my body hurts
 
sure that is fine
the type
 
I didn't even move in the last week
 
just not the internals
as wikipedia puts with cheshire cat
In computer programming, an opaque pointer is a special case of an opaque data type, a datatype declared to be a pointer to a record or data structure of some unspecified type. Opaque pointers are present in several programming languages including Ada, C, C++ and Modula-2. If the language is strongly typed, programs and procedures that have no other information about an opaque pointer type T can still declare variables, arrays, and record fields of type T, assign values of that type, and compare those values for equality. However, they will not be able to de-reference such a pointer, and...
 
But both solutions require dynamic allocation.
 
12:35 PM
yes :(
:(
no way to avoid?
 
Xeo
C++17.
 
:p
 
I could think of an unspeakable solution.
 
be present
go ahead
 
dat title
 
12:38 PM
@StackedCrooked, tell me about your voldemort solution
 
Xeo
-1
Q: How to init simple pod * as array in C++11?

myWallJSONI personaly have a problem with float, tried: auto p = new float*({$X, $Y, $Z}); $X, $Y, $Z local variables. What do I do wrong?

 
@Xeo unique_ptr to the whole class or to every member?
 
Xeo
> I personaly have a problem with float
@BartekBanachewicz I have no idea what you're asking.
 
@eisbaw Provide the required size in your header (using char[] ). Use placement new in your constructor (in .cpp file) to construct the object there.
 
12:39 PM
@Xeo nvm then, I am uneducated
 
hahah
unspeakable indeed
 
If the member type size changes you'll need to change your code as well.
 
because fuck logic
 
Xeo
@StackedCrooked That's fucking unstable, though. :/
 
12:41 PM
yes i wont do that
 
anywho, performance will suck then
nevermind
thx anyway :)
 
template<class T>
operator T();
what kind of evil is this?
what was he thinking
 
Hey all
whats up
 
12:53 PM
the sky
 
lol Tony The wtf'
some people need to get laid
 
yes
but seeing I don't have a gf
getting laid is hard at this time
 
@TonyTheLion All you need you cash and lots of condoms.
 
I have decency left in me.
As a robot, you may not have this concept, but you'll learn eventually.
 
@BartekBanachewicz That... is the most brilliantly terrible code I've seen all month.
 
12:59 PM
> In Jamaica there's an erotic dance called, “Daggering” that was banned from TV after causing broken penises.
dafuq?
 
@StackedCrooked Don't!
char[] is not properly aligned. /cc @eisbaw
 
@R.MartinhoFernandes right, I forgot
 
One of typename std::aligned_storage<sizeof(T), alignof(T)>::type, typename std::aligned_union<1, T...>::type, or the bestest wheels::StorageFor<T..> :P
 
@R.MartinhoFernandes T is undefined at that time, only declared. So size needs to be hard-coded. (Yeah, it sucks.)
Would union { char data[N]; void* v; }; also fix alignment?
 
user142019
DNS y u so terrible.
 
user142019
1:10 PM
@TonyTheLion ga naar de Wallen.
 
@StackedCrooked Only if the alignment of void* is enough (and it may overalign, which is wasteful).
 
std::aligned_storage<magic_size, magic_alignment>::type
 
hifi y u so treble
 
XSD Y U SO TERRIBLE?
 
1:11 PM
@StackedCrooked So, the first one.
 
I have to compare two XSD files manually and amend an old version to fit the changes made to a more recent version of the thing, so it won't break our software.
 
user142019
@Xeo $X is this PHP or something?
 
Kill me now!
 
user142019
@TonyTheLion Boom!
 
@R.MartinhoFernandes Are there cases where you need an alignment bigger than word-size?
 
1:12 PM
@Zoidberg :)
If I had known programming career was like this, I'd have chosen something else :P
 
@StackedCrooked I believe most x86 compilers will have alignof(void*) == 4 and alignof(double) == 8.
 
user142019
lol
 
user142019
Tony the pimp.
 
Cache-line alignment is the only example I can think of.
 
I'm still not writing C++... 5 months into a C++ job
 
user142019
1:13 PM
What are you writing?
 
user142019
C with Classes?
 
XSD
XML
 
(And then there are all those extended alignment types for SIMD which may require up to 32).
 
user142019
hahhahahahahaa
 
1:13 PM
and scripts of various types
 
user142019
owned
 
fuck you!
 
user142019
Complain to your terrible recruiter.
 
@Zoidberg I have already.
 
Though the SIMD types are kinda annoying anyway, since new extended_alignment_type is borked in the spec.
 
user142019
1:15 PM
@TonyTheLion my previous boss said during the interview they mostly did PHP. Luckily I had to do almost only JavaScript, Objective-C and some Python.
 
Is new implemented in terms of malloc? Or does it work on top of memmap and brk directly (in case of unix)?
 
So you need a custom allocator for those anyway.
 
@Zoidberg ah
 
user142019
@StackedCrooked in libc++ it is implemented as follows:
 
@StackedCrooked In terms of operator new which gets nothing but a size as argument.
 
user142019
1:16 PM
if (n == 0) n = 1;
void* ptr = malloc(n);
if (!ptr) throw std::bad_alloc{};
return ptr;
 
@R.MartinhoFernandes And the spec doesn't say how operator new is implemented?
 
operator new usually delegates to malloc, but the bad deed has been done by then.
 
@R.MartinhoFernandes Which is remarkably stupid, really...
 
@StackedCrooked Does not matter. It's too late by then.
The interface of operator new is the broken point.
 
I see.
 
1:17 PM
@jalf Yeah.
So you ask for new extended_alignment_type and you get something aligned for max_align_t, which tends to be equal to alignof(double).
@StackedCrooked If you are developing an OS you will need page-aligned structures! :P
 
user142019
Oh that joy.
 
user142019
I just did _Alignas(PAGE_SIZE). :P
 
@Zoidberg For page tables?
 
user142019
IIRC, yes. Let me take a look (has been a month ago).
 
To be honest, I don't think that's needed unless you are declaring those as globals.
 
user142019
1:24 PM
They were globals. :P
 
user142019
Oh the only copy of my kernel that still exists was from before that. :(
 
user142019
fuuuuuuuck
 
user142019
:saveas src/Hexapoda/Database.hs
:!rm src/Hexapoda/Git.hs
 
user142019
I was in src/Main.hs instead of src/Hexapoda/Git.hs. xD
 
@Zoidberg Do you suck at VCS like @ThePhD?
 
user142019
I'm lucky I'm using VCS.
 
Do not #include .cpp files. We already told you in your c1 global object question. — Angew 32 secs ago
@LuchianGrigore Wait, he's a repeat offender?
 
@R.MartinhoFernandes dunno, I meant quickly add comments telling him not to include cpp's
 
@LuchianGrigore Already done.
Thou shalt not includeth thy cpp phile. — R. Martinho Fernandes 15 secs ago
 
1:32 PM
4
A: Classes not accessing global objects

PubbyIt's quite silly to include .cpp files like that - only include headers. Anyway, change main.h to this: #include <iostream> extern AnotherClass c2; extern TheClass c1; Add this to main.cpp: AnotherClass c2; TheClass c1; Then include main.h in each file which needs it, like this: // ...

^ I told him first!
 
I know but for the sake of this question try and assume the cpp files ae actually .h files.. I am still trying to become comfortable with it — Roland Sams 20 secs ago
LOOOOOOOOOOOOL
 
user142019
What a noob.
 
I'm surprised nobody mentioned that the code doesn't even contain a reference
 
0
Q: static_cast an int**& mynum

JabezBelow is my code Class A { A::A(int num) { } int num; }; class B : public A { B::B(int num):A(num) { } }; Class D; Class C { void getNum(A**& somenum) {} D *dObj; }; void C::getNum(A**& somenum) { dObj->getNumber(static_cast<B**>(somenum)); // Error here. } Class...

 
@LuchianGrigore "Hi, I'm unable to fry some eggs - the motor oil doesn't seem to work very well while cooking, but for the sake of this conversation, let's just assume it's cooking oil".
 
1:36 PM
@RolandSams go get one of those good C++ books I showed you ASAP
 
user142019
Reference to pointer to pointer to int. ಠ_ಠ
 
"Have you tried adding more stars? It usually helps"
 
user142019
All problems in computer science can be solved by another level of indirection. :P
 
38 secs ago, by Zoidberg
All problems in computer science can be solved by another level of indirection. :P
10 secs ago, by Luchian Grigore
38 secs ago, by Zoidberg
All problems in computer science can be solved by another level of indirection. :P
 
user142019
No.
 
Xeo
1:38 PM
Stahp.
Before I have to bin you.
 
user142019
We already have a bookmark with a bunch of quoted quotes.
 
user142019
No need to repeat it.
 
Oh come on...
indirection?
get it?
it's funny
LAUGH!
 
user142019
It's funny how you think it's funny.
 
Xeo
@LuchianGrigore You fail, it's not true indirection.
If you edited a message you referenced, the edit wouldn't propagate.
 
user142019
1:41 PM
All problems in computer science can be solved by another level of indirection, except for the problem of too many layers of indirection, except when the number of layers of indirection overflows.
 
All problems can be hidden by another level of misdirection.
 
@AndreiTita Recursion!
 
user142019
Indirection is awesome.
 
Wow, that actually works.
 
:)
google did it first though :P
 
1:43 PM
meh
 
user142019
 
user142019
^ God.
 
user142019
lol
 
user142019
Stupid train I'm getting too late. :P
 
1:46 PM
@Zoidberg Isn't that moot?
 
@sehe I'm renaming it to place_small. Or maybe not, since it's buggy as fuck.
 
Xeo
@StackedCrooked Psst: Don't look at the picture name.
 
@StackedCrooked that's a moot question.
 
hi, did anybody read clean code book ? I once saw a video with Bob Martin in it and he insulted dr House so Im not sure if i should read a book by such a horrible person. :D Joking aside, is it good for modern C++ dev?
 
I h ave read it, loved it
 
1:58 PM
No freaking idea.
There is a copy in the shelves at work, but I haven't touched it.
 
user142019
@StackedCrooked It's moot.
 
It's about function length, naming variables etc
 
@StephaneRolland was it too abstract ? I hate those books. Strive for clarity... @R.MartinhoFernandes same situation :D
 
user142019
Your avatar makes @NoSenseEtAl.
 
@NoSenseEtAl not too abstract. But it is NOT about the core feature of the language, it is how to write clean code in general
 

« first day (824 days earlier)      last day (4142 days later) »