« first day (1251 days earlier)      last day (3699 days later) » 

5:02 PM
some desolate wasteland
 
yup you fell for it.
Now you're addicted too. You can stop going to the bio-butcher now. It's all in vain
 
user1804599
What?
 
user1804599
I’m not addicted.
 
user1804599
I can live without this stuff just fine.
 
Xeo
that's what they all say
 
5:07 PM
12 mins ago, by rightfold
This stuff is so damn good.
^ That's just not appropriate with any kind of medication. And it's an obvious setup. Like with lip balm
 
It's always a boring morning in the Lounge when I don't get up till 14:00 :) It's gonna be a boring night too since Herr VeHafVaysOfMakingYouChangeZeUIundZeFilespecsByTomorrow called.
 
lol
 
bah
another day, another totally unsatisfying meal, and undoubtedly more sickness.
 
I BROKE IT
 
go home.
 
user1804599
5:13 PM
@sehe earwax best lip balm.
 
cleaned 5k stylecop warnings today, when I git home puppy had managed to break in in the trash compartment. Took an hour to clean the mess up.
 
@DeadMG I'm in the flow.
 
@R.MartinhoFernandes You can always get it back tomorrow. Seriously, go home.
 
user1804599
Johan the Cleaner
 
2 x puppy the binner (bin in opposite directions)
 
5:15 PM
@DeadMG :( I haven't eaten today either. Mind you, three puppadums, mango chutney, onion chutney, lime pickle, chicken tandoori starter, chicken mamaloo, keema pilau rice, cauliflower bhagi, bombay aloo, two nans and four pints of Cobra often has that effect.
 
user1804599
@LoïcFaure-Lacroix lol
 
@MartinJames Yeah, I'm really not feeling the need there :P
my doctor told me I needed to put some weight on
 
@DeadMG Sorry - could not resist.
 
I would eat that kind of meal if I could.
 
@DeadMG Yeah:(
 
user3010322
5:17 PM
Alright!
 
user3010322
It's time to get.... buffer-y~
 
Buffy?
 
@JohanLarsson so binary
 
user3010322
Quiick question to everyone here.
 
no question announcements
 
user3010322
5:18 PM
array_view<T, Dimension1, Stride1> my_view{ data, size };
array_view<T, Dimension1> my_view{ data, size, Stride1 };
 
@ThePhD inb4 quickest way is a wooden stake through the graphics card.
 
user3010322
Compile-time strides?
 
user3010322
Or dynamic strides, with compile-time dimensions?
 
user3010322
(mimicking std::array here)
 
user3010322
Guess I'll just do the first one for now... can't hurt, I guess.
 
user1804599
5:21 PM
Make it so that providing a negative stride makes it dynamic.
 
Don't. You're in for a world of pain.
 
user1804599
And then have a special constant DYNAMIC_STRIDE = -1.
 
user3010322
@R.MartinhoFernandes Don't do it... at all? :c
 
@rightfold You said the Wide source was bad, and then you suggest this bullshit?
 
user3010322
He's obviously trolling.
 
user3010322
5:23 PM
Or... IS HE?!
 
I'm serious about the world of pain part.
Personal experience.
 
@ThePhD With @rightfold you can never know.
 
user3010322
You mean, with negative strides?
 
user3010322
I'm so confused. What's everyone referring to. ;~;
 
user3010322
@R.MartinhoFernandes Do you still have the endianess reading article?
 
user3010322
The one about the proper way to read a number of X endianess from a stream?
 
user3010322
Ah, that
 
user3010322
Yeah.
 
user3010322
Awesome. Now I need to template that.
 
user1804599
Why do we have if?
 
user3010322
5:33 PM
So you can have else.
 
user1804599
bool c = foo();
for (auto i = 0; i < c; ++i) {
    print("hello, world!");
}
 
user3010322
:D
 
I have a three-layered hierarchy.
No virtuals.
 
@JohanLarsson haha, that's a funny conundrum.
 
5:37 PM
how do you mean?
 
I find it funny that they created such a problem.
 
:)
could be smart also, kinda forcing everyone to buy Ultimate
 
user3010322
Hm.
 
user3010322
I'm aliasing T* with byte* and writing to its positions.
 
user3010322
Perhaps I've done something wrong.
 
5:43 PM
yes, everything.
 
uni is so useless, compared to the time you spend on it
 
@Jefffrey Yes, it is.
 
so many things ready to be forgotten in a matter of months
so many projects I would like to dedicate myself to instead
so many books I'd like to read instead
it's painful
 
I hate this font.
 
user3010322
5:47 PM
The font loves you.
 
user3010322
Embrace it.
 
Kerning is all fucked up.
And it seems I can't change it. FFS
 
custom CSS vOv
if you are talking about the SO.chat font
 
user3010322
@R.MartinhoFernandes :D
 
user3010322
The Kurse of Kemming
 
5:52 PM
x_x
 
In typography, kerning (less commonly mortising) is the process of adjusting the spacing between characters in a proportional font, usually to achieve a visually pleasing result. Kerning adjusts the space between individual letter forms, while tracking (letter-spacing) adjusts spacing uniformly over a range of characters. In a well-kerned font, the two-dimensional blank spaces between each pair of characters all have a visually similar area. The related term kern denotes a part of a type letter that overhangs the edge of the type block. Metal typesetting The source of the word kern i...
 
user3010322
template <typename T, typename TRange>
T Value ( TRange&& bytes ) {
	T out = 0;
	byte* bout = <reinterpret_cast<byte*>( std::addressof( out ) );
	for ( ulword p = 0; p < sizeof( T ); ++p ) {
		bout[p] = static_cast<T>( bytes[ Positions[p] ];
	}
	return out;
}
 
user3010322
Have I sinned?
 
@Aaღirkhan are random emoticons the only thing you're going to contribute here?
@ThePhD what the fuck
why isn't that using memcpy
why does that exist in the first place
 
user3010322
Uh. Endianess from external streamz.
 
5:56 PM
why do i care is the most important question probably.
 
user3010322
Wondering if I wrote this general case right. :c
 
fuck general cases.
fuck everything
 
@ThePhD I doubt that compiles
 
tesselation shaders in particular
 
that's gonna be my only contribution to it
 
5:57 PM
@Jefffrey of course it doesn't
 
@ThePhD I could tell the devs to make everything pubic while I'm at it.
 
@ThePhD Why did you even ask me for that article?
 
@JohanLarsson yes make everything pubic
@R.MartinhoFernandes so he could not-read it
that's an interesting thing
 
user3010322
@R.MartinhoFernandes I asked for it so I could write a general templated version of it. ;~;
 
ackowledging things just to be able to say that you don't know them
 
5:59 PM
@ThePhD And...
You didn't.
 
user3010322
But I dind't knowif I should use bit shifts
 
The C++ book question has been wiki locked. So I'm removing the pin.
 
user3010322
or if I should just try to... oh, nevermind. :C
 
You did exactly what the article says is wrong.
 
user3010322
5:59 PM
I'llf ix it...
 
I think facepalming is what I should be doing.
 
i want to work on glisha
 
what article?
 
@R.MartinhoFernandes hey you made me smile! That's something considering how bad my day was
> In fact, byte-swapping is the surest indicator the programmer doesn't understand how byte order works.
 
user3010322
6:03 PM
template <typename T, typename TRange>
	static T Value ( TRange&& bytes ) {
	const static ulword outsize = sizeof( T );
	const static positionskew = outsize > 1 ? outsize > 3 : 6 : 2 : 0;
	T out{ };
	for ( ulword p = 0; p < sizeof( T ); ++p ) {
		out |= static_cast<T>( bytes[ p ] ) << Positions[ p + positionskew ];
	}
	return out;
}
 
user3010322
vOv There we go I guess.
 
user3010322
Listen.
 
user3010322
It looks like it works.
 
> D312 is a "lower-level API," which will allow "console-like development."
@ThePhD lol it's just hilarious
continue
 
user3010322
6:04 PM
;~;
 
I know I shouldn't laugh at other programmers but I openly acknowledge the fact how bad I am myself so screw it.
it's hilarious.
 
@ThePhD It doesn't even compile.
 
user3010322
Well, yes, I'm missing atype for the const static...
 
the lounge atmosphere makes me wanna drink booze
 
not even mentioning indentation lol
 
6:06 PM
I fail to understand the significance of 6, 2, 0.
 
27
Q: The profile page is getting a makeover

Jeremy TThe Big Idea Create a page on the network that summarizes who I am as a developer, and lets me show off the stuff I am most proud of. Some of this information is only available by creating a careers profile, but we want to open it up to everybody, even if you don’t have one. Background: The Pr...

^^ woah
 
> outsize > 1 ? outsize > 3 : 6 : 2 : 0;
lol, that doesn't compile either, I think
 
also @ThePhD does all of your code havenaminglikethatsoitsprettymuchfuckingunreadablemess?
 
@BartekBanachewicz What's wrong with the indentation?
 
@R.MartinhoFernandes my bad, I was thinking about indentation and wrote that by mistake
I mean the fact that Positions is a variable (or constant perhaps) that is uppercased is a whole another story
 
user3010322
6:09 PM
I wish you could template operator() =[
 
user3010322
functor<kinky>( weee );
 
what the hell is he uh just
 
functor(id<kinky>(), wee) works.
 
also you can just template the functor you know.
 
I've actually done that in places.
 
6:10 PM
which is pretty much the same.
 
@BartekBanachewicz Er, no?
Different points of choice.
 
ah, wait, you want a T functor with U call?
 
foo f;
f(id<T>(), x);
f(id<U>(), x);
 
or that.
meh.
not interesting.
 
user3010322
@R.MartinhoFernandes I have in_place_of<T> for that, I guess.
 
6:11 PM
@Mysticial WHY
wish they'd focus on important stuff
 
user3010322
Albeit, in_place_of is kind of long.
 
user3010322
Maybe id would work better.
 
id is an identity function. id :: a -> a.
 
user3010322
But still.
 
nananana
 
user3010322
6:13 PM
I guess I'll just make it operator() and hope for the best.
 
user1804599
id is a function that returns the ID of the given argument.
 
user3010322
dhwakdawdw FUCK I can't make virtual with id<T>
 
user3010322
Whhhhhhhhhyyyyyyy mmmmmmmeeeeeeeeeeeeeeeeeeeeeeeeee
 
user1804599
Yay reversal on Meta Stack Overflow.
 
6:14 PM
@ThePhD Er, you can.
e.g. the diamond operators in C++14
 
user3010322
@DeadMG I mean like, explicitly hand template arguments to it without some extra things.
 
user3010322
Meow
 
@DeadMG No, those use type deduction.
Can't do greater<> x; x<int>(0, 1);
 
oh, I didn't see that he wanted explicit template argument
 
user image
2
also funny:
0
A: Is it bad practice to call an observer in a destructor?

lizusekThis is perfectly OK under assumption that you do it with accordance to C++ rules, in partiicular C++ standard.

 
6:17 PM
@LightnessRacesinOrbit lol wat
 
wow that got downvoted fast
-5 so far
 
user3010322
Okay.
 
user3010322
So I think it works.
 
0
Q: VS 2010 C++ Express support of BitBlt()

The Bard of ChelseaI want to reduce screen flicker by drawing a small image to a compatible device context, then using bltbit() to copy this small image to window hdc. Can I do this using VS C++ 2010 express? Function bltbit() appears not to work.

so hardcore
 
user1804599
Is there a place where you can watch TV shows online for free?
 
user3010322
6:24 PM
template <typename T>
using id = in_place_of<T>;
 
user3010322
much using, so wow~
 
user1804599
I want to watch SpongeBob but I can’t find anything good.
 
is it just my impression, or Google C++ Coding Style really sucks?
 
user1804599
Yes.
 
6:25 PM
ok
 
user1804599

Why Google style guide sucks, roughly.

Apr 22 '12 at 18:22, 26 minutes total – 150 messages, 11 users, 2 stars

Bookmarked Apr 22 '12 at 18:54 by Cat Plus Plus

 
oh
lambdas are forbidden
wtf
 
user1804599
@CatPlusPlus alphabetical order or bust :ocd:
 
@rightfold That's ugly.
 
I do it like Cat
> All parameters passed by reference must be labeled const.
 
6:28 PM
that's good.
 
user1804599
@AndyProwl as for lvalue references, that’s a good thing.
 
Cat's order is the opposite of what it should be!
 
well not in constructors
but then you can get to "don't use reference members"
which I am not sure if I like or not
 
user1804599
I use pointer members.
 
@rightfold Why should I not be able to pass a non-const reference to a function?
 
6:29 PM
You want your headers first. That helps ensure they are self-contained and don't depend on anything being included before.
 
user1804599
Because you return using return values, not by modifying somebody else’s state.
 
@BartekBanachewicz That's about how you store it though. You can still pass it as a reference and then store it as a pointer
 
@AndyProwl because mutability sucks
 
System headers are probably the most robust when it comes to that, so they should come last.
 
@rightfold I don't want to return that object from the function. I agree out parameters are bad. What I want is to let the function alter the state of that object
 
user1804599
6:30 PM
Of course there are exceptions.
 
user1804599
Like operator<< for streams, and ctors that take references to initialise pointer fields.
 
Plus I don't see why a non-const reference is bad, but a non-const pointer is ok
 
muuuuutaaabiiiliiittyyyyy suuuuck
 
user1804599
But in general you don’t want this.
 
user1804599
You want to return a new object.
 
6:31 PM
FP master race
 
I don't want to return anything
 
user1804599
@AndyProwl Well, pointer arguments are always suck. :P
 
After a lot of thinking, I've come to this conclusion: Barteks should be kept away from Haskell at all costs.
 
There's no return semantics
 
It makes them nuts.
See also: Bartek Banachewicz, Bartosz Milewski.
 
user1804599
6:31 PM
t x;
f(x); // meh
x = f(x); // :orgasm:
 
@rightfold If x has value semantics, then yes
But that's not always the case
 
user1804599
@AndyProwl they probably want to make it explicit at the call-site that something is going to be modified.
 
@R.MartinhoFernandes NO
I would starve
 
user1804599
So you have to put an ampersand in front of the argument.
 
6:32 PM
I would be like a plant without water
I'm already addicted
Haskell: not even once or for life.
 
@rightfold OK that makes sense
 
user1804599
Screw Haskell.
 
how does unreal engine UCLASS macro work
 
Note to self: s/assing/assign/
 
6:33 PM
lol
 
it's only in front of the class
and it does something
 
Probably one of those visibility macros.
 
user3010322
@BartekBanachewicz Like a pussball.
 
user3010322
It's for their reflection system.
 
user3010322
They have their own custom C++ parser
 
6:34 PM
yeah I was thinking that
 
user3010322
that rolls through macros
 
so two-stage build
 
user3010322
three-stage, actually.
 
I think if I have a Customer class in a C++ program and I want to pass a customer to a function that always expects an object (never null) and modifies it, I should pass it as non-const reference
 
that's a reasonable way to do it.
 
user3010322
6:35 PM
No, it's horrible.
 
user3010322
It makes me cry.
 
@ThePhD your code also makes a lot of people cry so that's that
 
Please tell us where the build system touched you.
 
user1804599
@ThePhD If even you think it’s horrible, it must be really horrible.
 
@rightfold wrong.
@ScottW hi scotty
 
user1804599
6:36 PM
Hey @AndyProwl.
 
user3010322
@R.MartinhoFernandes Deep in my soul. I don't want to program games ever again. :(
 
user1804599
You do unit testing a lot right?
 
I do, why?
 
user1804599
Do you do mocking?
 
multistage builds are flexible, fast and easy to introduce
 
user1804599
6:36 PM
If so, how do you do the polymorphism? Templates or subtyping?
 
@rightfold Depends. I started off as a mockist, now I'm more balanced
 
user3010322
Except, UE4's multibuild generates classes, headers, and imposses arbitrary sanctions on your C++ code.
 
@rightfold For me, in a large codebase having everything as templates is a big problem. Slows down compilation time a lot, makes code less readable, everything is in headers
 
user3010322
These magical generated classes you're supposed to include, so you can use the code you just wrote. Because if you don't, your build will explode with errors you don't have access to because the auto generated files were thrown away after the build finished.
 
So I do subtyping, although I don't like it
 
user3010322
6:38 PM
And let's not forget using namespace DontUseOldTypes;
 
I use templates for really generic stuff like helper algorithms that are not in stdlib
 
they are also using Super in classes
 
@ThePhD sounds like Qt
 
user3010322
Included in some headers because.... why not!
 
user3010322
DontUseOldTypes likes to define lots of things you might find in other people's client code
 
user1804599
6:38 PM
Ah, I see.
 
user3010322
Like, I dunno
 
user3010322
fucking DWORD
 
user3010322
And QWORD and WORD and LONG
 
who the hell uses DWORD
 
user3010322
Because why not make it IMPOSSIBLE to include the windows headers, while you're at it?!
 
6:39 PM
I mean if your code has DWORD in it then you deserve it
lol terrible code writers rejoice
 
shit it's 19:40 already
 
tackle the awful corporate machinery
they want you to write reasonable code
lmao.
 
user1804599
I don’t know what language to use.
 
user3010322
It's not their business where I need to include pieces of their engine. Having a GLOBALLY AVAILABLE, HEADER-BASED using namespace is basic C++ taboo.
 
user1804599
They are all pretty bad.
 
6:40 PM
they are all pretty good also
 
user3010322
The fact that they do it for a good reason is fine, less noble when it starts to blow up my FileSystemWatcher
 
also my BEng project will be written in ES6 most probably
 
@ThePhD No one in game development knows C++.
 
user3010322
._.
 
It's a well-known fact.
 
6:41 PM
pretty much what robot said.
 
Xeo
oi
 
> Assertion `alignment == 16 || alignment == 32' failed.
Aborted (core dumped)
 
you write in AS Xeo
you don't count
 
Oops?
@BartekBanachewicz Zing!
 
What do you guys use for measuring code coverage, if anything?
 
6:42 PM
@AndyProwl return 0;
 
user1804599
@AndyProwl What programming language?
 
@rightfold C++
 
user1804599
Nothing.
 
VS2013 has code analysis for C++ only in the premium version, which is like 6x more expensive than Professional
 
6:44 PM
I am trying out this one and it's not bad. It integrates with VS too
But it's not exactly free and not so configurable - but that might be because I'm new to the thing
 
@AndyProwl VS2013's code analysis never finds anything. And I don't think it's because my code is all dandy :p
 
@melak47 Ah, so it's expensive and useless, cool :P
 
user1804599
We use Coverage.py at work. It reports 100% so I’m happy with it.
 
One of the problems I'm having is:
I have a switch on an enum with exhaustive cases, and I put the default there just to assert
 
user1804599
Heh.
 
6:47 PM
And the code coverage tool is not giving me 100% because no unit test exercises the default path
 
@AndyProwl On Linux, gcov which is borked, and on Windows nothing, but let me know if you find something useful
 
I would like to configure the tool and tell it that "I'm ok with not testing UB", but there's no way to do that
 
Assignment zeros everything out.
I think I might have a bug.
@AndyProwl No UB after compilatiion.
 
@jalf I'm evaluating Bullseye, but it's relatively expensive and I have problems configuring it the way I want
@R.MartinhoFernandes Yeah well the code coverage tool expects me to cover an assert which is there to notify of a broken precondition
so it basically won't give me 100% unless I break the function's contract
I don't want to test how my function behaves when the client has a bug
 
user3010322
There's an unreachable semantic, isn't there/
 
6:53 PM
@AndyProwl if that's the biggest problem you have with it, I might have to look into it :)
 
You don't need to have absolute 100% coverage if you know there's code that shouldn't be covered
 
@jalf The biggest problem is price :) But I can try to convince my boss that we need a code coverage tool and that's the best thing I found.
 
Hello. Sorry for asking here, but the Java chat is quite inactive.
Is there a way in java to get the size of dimensions a array in java has?
 
please go away
 
@AndyProwl $800 for a perpetually valid license? DOesn't seem too bad
 
6:55 PM
@CatPlusPlus Yeah, still I would like to be able to tell the tool when the path should not be covered at all
 
user3010322
Aggh shit fuckles. =[
 
@T_01 What. How do you arrive at the conclusion that this is the right place to ask Java questions?
The population of the Java chat is not our problem
 
You could try generating activity in the Java chat.
JUST SAYING.
 
@jalf Could be worse yes, but our budget is pretty limited and you have to multiply that by the number of developers
 
user3010322
6:56 PM
@R.MartinhoFernandes That would require being invested in the community of the Java chatroom.
 
or try Google. I hear there are a lot of Java programmers around
@AndyProwl You could just run it on your build server, couldn't you?
@ThePhD it would require effort. I think that's the key point
 
user3010322
Hm.
 
@jalf Ah, true, that would save some licenses. But we have several virtual build machines for nightly build so there's still a multiplier. But yes, better than buying it for every developer
 
user3010322
In some places, I'm cheating passing basic integer types to my endian thingy to have it swap the bytes.
 
The Java room doesn't even have one of those "the last message was past n hours ago" notice.
You can that "quite inactive"?
 
user3010322
6:57 PM
That is, to treat an integer type X as just a collection of bytes.
 
You haven't even posted anything there.
 
n overflowed
 
Yet in here, where you were certain of interrupting someone else's conversation with a completely off-topic matter you did.
 
Well, I guess he didn't post anything there because the chat is inactive
 
Where you would be on-topic and not interrupting anyone, you didn't. Kids these days.
 
6:58 PM
@T_01 I am sure you can find places that are more active than this chat room, if that is your sole success criteria. Try a local nightclub, maybe! Or the nearest supermarket!
 
nightclub! yay
 
@AndyProwl The last message was posted twenty minutes ago.
 
and by "yay" I mean
 
user3010322
If you want to catch programmers at a supermarket, stand in the instant food section and go just before it closes.
 
that I can't fucking stand nightclubs.
 
user3010322
6:59 PM
I've never been to a club.
 
user3010322
I should try one day.
 
@DeadMG lucky for you then that you're not the one who needs a Java question answered :p
 

« first day (1251 days earlier)      last day (3699 days later) »