« first day (1392 days earlier)      last day (3562 days later) » 

3:00 PM
@chmod711telkitty ...
Our codebase only has immutable singletons
So if you copied one, it wouldn't be a problem.
 
@BartekBanachewicz ew ew ew
 
@thecoshman there's a world of difference between a mutable and an immutable singleton
 
@BartekBanachewicz still singletons
 
@thecoshman Pi is a singleton.
now what.
 
@BartekBanachewicz no, it's a global constant.
 
@thecoshman the only difference is that a singleton has a particular type
 
so hidden dependencies/hard-to-test code
 
urgh, so how do I tell which boost target it failed to build?
 
you might say that a singleton is a dependently-typed constant
 
libs\context\src\unsupported.cpp(7) : fatal error C1189: #error : "platform not supported"
 
3:02 PM
@BartekBanachewicz And constants don't?
 
not that helpful :/
 
@BartekBanachewicz I don't have to call 'PI.getInstance().value' if I just use a global constant.
 
@CatPlusPlus ... specific to itself.
 
@BartekBanachewicz That's a p dumb definition!
 
@thecoshman syntax bullshit.
 
3:03 PM
@thecoshman That's incidental and not really important
 
@CatPlusPlus singleton is a type that has one particular value
that's the definition.
so you create both the type and the value at the same time
Pi denotes a value, but not a type.
 
which isn't very great, TBH, because it can be represented as float or double, for example.
 
Xeo
:D
 
3:04 PM
Fun fact: constants should be dependency-injected too!
 
WHAT IF THE EARTH TURNS FLAT OR PI TURNS 4
 
Yeah I don't bother with that either usually
 
Pi's value can change depending on context!
And I want to be able to unit test Pi.
 
user3010322
What the bloody hell
 
I better make my design able to accomodate that.
 
user3010322
3:05 PM
__tostring si not being called on these lua values. :c
 
@BartekBanachewicz the earth is flat to a concave observer
 
yeah anyway representing Pi as PI_float and PI_double is nonsensical
 
when's MSVC getting template variables? :D
Pi<float> :D
 
bah
 
3:07 PM
unless you have a type for irrational numbers, the only reasonable way to keep it in a generic way would be a set of functions or immutable singleton with conversion operators/functions
 
worthless shit feature
 
Xeo
@StackedCrooked I was about to say that you don't optimise hard enough
 
@BartekBanachewicz then you change the code to reflect that.
 
3:10 PM
@Puppy :(
 
@melak47 he's right.
 
Something like that is extremely unlikely to happen, so designing for that upfront is a case of the YAGNIs.
 
@Xeo the hardest optimization (flto) would probably reveal to the compiler that there's no overlap :P
 
@StackedCrooked Why dafuq weren't you on -O3 before?
 
3:12 PM
Well. At work we use -O2 for release builds.
 
why don't enums hash
 
But I'll sneak the -O3 in and hope they won't notice.
 
for fucks sake
 
Xeo
@StackedCrooked Wow, Clang is pretty bad there: coliru.stacked-crooked.com/a/7ac7eebc2ee5d21b
 
@BartekBanachewicz I was also surprised and annoyed by this.
 
user3010322
3:13 PM
@Xeo Clang's optimizer isn't as good as the other compiler's.
 
that's not really true.
 
@Xeo And why is by_val more expensive?
 
Xeo
Don't ask me
 
it comes down to what you're optimizing and how much data you have available.
 
I can't come up with a hypothesis.
 
3:15 PM
besides, IIRC coliru is running an svn version of Clang, but a release GCC, so it's not really a fair comparison.
 
I am reading from char* and writing to int*. Could it be that aliasing only applies to the reverse?
 
namespace std {
template<> struct hash<FaceFeature> {
    size_t operator()(const FaceFeature& f) const {
        return std::hash<unsigned>()(static_cast<unsigned>(f));
    }
};
}
amazing
 
I guess not.
 
:F
so much functionality... not.
 
@StackedCrooked No. But your sample still showed uint8_t last I looked.
 
3:18 PM
> Hash functions are only required to produce the same result for the same input within a single execution of a program; this allows salted hashes that prevent collision DoS attacks.
wait what
what the fucked up kind of an argument is that
 
@Xeo But it confirms my standpoint with -O1. (I'm would be a bad scientist.)
 
Xeo
@StackedCrooked wow, what
 
My config thing is shit I need a new one
 
@Xeo -O3 means generate fast code. so compiler dev might be tempted to make it implicitly like "restrict"
 
Xeo
The question is, why does by_val get slower
 
3:22 PM
I'm going to shoot myself...Been trying to do a case-insensitive wstring comparison on windows that can compare in all locales for hours
 
Also handling maps in C++ w/o the Maybe monad is retarded
 
Don't use wstring
Use ICU
 
and all I can get is : use ICU or Boost
 
Normalize then casefold
 
is normalization that easy without ICU?
 
3:23 PM
@VladimirVasilev because that's the way duh
 
Use ICU
 
@Xeo unfortunate alignments or something..?
 
this whole it != container.end() thing should die in fucking hell
 
@BartekBanachewicz says who?
 
whoever thought that not returning a fucking RANGE that could cast to bool was a good idea is retarded
@melak47 cppreference.com
 
3:24 PM
rly? o.O
 
ok, no ICU nor Boost for me, guess I'll stick to english only
 
You still need Unicode you still need ICU
 
yeah but ICU is a no-no here, and Boost is the root of all evil
 
Enjoy your broken software
 
@CatPlusPlus Interesting
 
3:27 PM
@VladimirVasilev what
 
@CatPlusPlus Every. Fucking. Day
 
Please don't ever in any way release it
 
@VladimirVasilev time to call the headhunter
 
The people here don't like big libraries for C++, so I can't use Boost
ICU ( if it implements another type of string ) would require refactoring a lot of stuff
 
The people there are bad at programming hth
 
3:28 PM
C is the square root of all evil
 
Xeo
@BartekBanachewicz mimimi
 
@BartekBanachewicz but..why? first it says "these hash functions are designed to work with unordered associative containers, but not as cryptographic hashes", so what do you need salted hashes for here?
 
Nope, just another taste I guess.
They say including the thousands of files of Boost will increase the compilation to days
 
they're morons.
 
I was expecting to find more hths by cat chat.stackoverflow.com/search?q=hth&user=16102&room=10
just 97, hmm
 
3:30 PM
you can't really achieve shit with Unicode without something like ICU.
 
Xeo
@AlexM. It's a recent sickness of his
 
@VladimirVasilev How about you try for yourself instead of listening to other people who have absolutely no clue of what you are trying to do?
 
Xeo
oh wait, '12
not as recent, I guess
 
yeah, not that anyone will use the case-insensitive comparison.
I'll just remove it alltogether.
@PolymorphicPotato not my software, not my circus
 
@Xeo Apart from that. I just realized the compiler could generate code that performs an initial check for overlapping addresses.
 
3:33 PM
Actually they have an idea and are good programmers, they just don't like third-party stuff and usually roll their own ( or just remove this functionality )
Thanks guys!
 
They're not good programmers
 
> good programmers, they just don't like third-party stuff
"They're good programmers, they just ignore good solutions for no rational reason".
 
sorry, language barrier - good as in "proficient" and "experienced"
 
They're not proficient
 
they're clearly not proficient or effectively experienced.
 
3:34 PM
Hah I like the Cat's attitude
 
why reinvent the wheel
 
Because your wheel is gonna be so much smoother in the end and can roll on its own without requiring a cart ( that you'll put on it either way )
 
especially when that wheel is an incredibly fiddly and difficult bitch like Unicode.
@VladimirVasilev The end is far further in the future than you could possibly hope to benefit from.
 
@VladimirVasilev No it won't
It never does
 
3:36 PM
@Abyx You can inject singletons like you can inject non-singletons.
 
It's just more shitty broken code in the wild
 
CodeGoneWild?
 
DI singletons are not the same as ~~pattern~~ singletons
 
Immutable singleton is fine if you need subtype polymorphism or your language supports no static methods and everything must be inside class.
 
@CatPlusPlus I couldn't agree more, excluding the fact that it's highly egoistical too
 
3:44 PM
@Puppy It's from SVN, but it's from a release revision.
at least that's what I remember the last time this was discussed
 
@VladimirVasilev Your buildflow doesn't need to build boost every time
heck, just download the pre-built versions if they're really that opposed
 
@Collin It's just a no to large third-parties. We used boost before, but it has been rooted out from all projects because it is "too big" for the benefits
I'm just a .NET kiddie though
 
4:08 PM
primitives
 
Ell
Any lua people used luasec before? (https requests)
 
4:21 PM
our "read rules and gtfo" message expired
 
lol "and"
 
Xeo
daaaamn dat rain
 
http://coliru.stacked-crooked.com/a/88872e0375f755f0
^ dead code elimination based on assumption that pointer dereference means the pointer is not null.
in case of someone didn't see it yet
 
Read the rules yo.
19
 
4:37 PM
> Okay, I am making a dating sim (Jesus wouldn't judge me).
 
woah, just had a one time pass '666665' so very close
 
Ell
Someone please convince me not to write an xml parser
 
XML sucks.
 
@Ell I don't know, feeling rather sadistic, go for it man!
 
@PolymorphicPotato Put some twist into it, Katawa Shoujo was awesome... Dog love maybe?
 
4:39 PM
wat
> Served with a "Monster" milkshake and bottomless fries, this dish runs at 3,540 calories.
 
Aug 1 at 14:57, by Puppy
I feel fairly confident that the EU and UN would be quite capable of identifying any large or institutional brutality by the Ukrainian govt... they're quick enough to do so in Israel/Gaza and other conflicts.
 
@PolymorphicPotato A dating sim with disabled girls. Was pretty heartbraking.
 
Weee Weekend!
 
@TonyTheLion hash tag you have to to overtime
 
@VladimirVasilev enable them.
 
4:48 PM
@VladimirVasilev wut
 
@thecoshman Not this weekend
 
> Katawa Shoujo (かたわ少女 Katawa Shōjo?, lit. "Cripple Girls", translated "Disability Girls") is a bishōjo-style visual novel by Four Leaf Studios that tells a story of a young man and five young women living with varying disabilities.
 
GOTY
 
actually it almost was
 
btw there is a dedicated room about eroge Japan Culture

 Maid Café (メイド喫茶)

Welcome back, my Master! (お帰りなさいませ、ご主人様!) Sit wherever you'd l...
 
4:49 PM
it's a visual novel so not much of a gameplay there
@Abyx Sorry I just gave an example of dating sim that I remembered. Not preaching the eastern way at all
 
@Abyx Of course there is
 
@Abyx The executive summary doesn't say anything about it. It doesn't blame the Ukraine government for bad conditions there or say that they are worse than the rebels, or even allege mass murders/etc. In fact, my reading of it implies that they blame both sides somewhat but the rebels slightly more.
 
ITT abyx seems to forget people talk about jap stuff here quite often?
 
so unless they decided to leave the most important part out of the summary, the report doesn't really back up any accusations of institutional brutality/whatever by the govt.
 
@AlexM. sorry for the question. Country?
 
4:53 PM
always check profiles before asking such questions
best case: you don't waste virtual ink
worst case: you ask anyway
 
@AlexM. I didn't. I'm just kinda have a feeling that many people here don't know about that room.
 
My bad, will stalk more next time
Ok guys, it has been a pleasure. I'll stalk around here some other day and hear your witty remarks
 
@Puppy yeah, but actually my point is that UN is just counting bodies and do nothing above that. and wrt Gaza - what exactly UN do to stop violence there?
 
the UN hasn't done a great deal, but they certainly did point fingers (that's about all they really have done).
which is why a lack of finger-pointing in Ukraine is kinda conspicuous.
 
here's what I think its going to happen between America and Russia: youtube.com/watch?v=97cwSnOCsBg
 
5:07 PM
speaking of that, this was a good mission intro in MW2
probably the best part of the whole game lol
this one is even better though
world at war was actually awesome imo
 
You're literally hitler
 
World at War was the last WW2 game I've played.
it wasn't so bad
 
I believe it World at War was a good COD game. Black ops was my last COD game.
 
WoW wasn't bad. I thought it was fine.
I remember being top 10 in number of kills the first two weeks in PSN.
 
@Rapptz Nice. Hardcore pro.
 
5:15 PM
lol
 
I'm bored
 
@TonyTheLion go learn something
 
meanwhile USA did an airstrike on ISIL targets in Iraq.
lol wtf maybe Russia should also hit some targets in another country?
 
War isn't the answer
 
Ell
^
 
5:19 PM
@TonyTheLion to the rich aristocrats, war is the answer.
we are cannon fodder to them
 
@TonyTheLion but... why?
Obama even have a Nobel Peace Prize with all wars he started
 
@Abyx Because there is better, less violent ways to resolve disagreements/conflicts etc. Try communication perhaps
@Abyx He got a Nobel Prize before he hardly did anything
 
@TonyTheLion but communication don't get you more oil/influence/stuff
 
@Abyx I don't know where you're going with this.
 
Ell
Okay silly question
 
5:24 PM
silly answer
 
Ell
is 0x0010FFFF the same value as 0x10FFFF?
 
user3010322
Anyone have a build for Ninja I can have for Windows?
 
@Ell is 01 the same value as 1?
 
@ThePhD you can build it yourself, with python and VC++/mingw IIRC
 
Ell
@TonyTheLion Ahh yes of course it is :D
thanks :)
Sometimes I find non decimal systems hard to read :L
 
5:25 PM
@Ell me too
 
Ell
I convince myself that sometimes the most significant digit is on the right
 
...but 010 isn't the same as 10
so your concerns were justified
 
Sure is
 
user3010322
@Abyx I'm at work, so I was just looking for a quit and easy exec I could grab from somewhere. :c
 
@Ell And which system does that
 
Ell
5:27 PM
@CatPlusPlus None that I know of :P
 
Exactly
 
@milleniumbug Pray tell how you got there
 
user3010322
@Abyx Oooh, shiny!
 
5:29 PM
@CatPlusPlus What do you mean? That 010 == 10? It is - but in the languages with non-retarded literals.
 
Oh literals
 
We weren't talking about literals
 
6 mins ago, by Ell
is 0x0010FFFF the same value as 0x10FFFF?
looks like literal to me
 
Ell
5:42 PM
@milleniumbug I was just talking hex values :3 but anyway
 
-74
A: Yet another offensive email from another new user on Stack Overflow

NeoThere was absolutely NO NEED for an edit. I specifically had the naked link in there so people would recognise the repo in question without having to click on it. What you did was absolutely pointless and a waste of time for everyone involved. The question itself is clear, capitalisation of th...

^^ damn
 
And we still ask ourselves why so many wars...
 
lol, the answerer is unaware of status bars.
> I specifically had the naked link in there so people would recognise the repo in question without having to click on it
 
people with too much free time on their hands. As if it the naked link were doing any difference.
 
5:57 PM
@milleniumbug Yeah, a hex literal. Not an octal literal.
 
regexr.com/399ss - why this regex is not working?
 
Ell
I love regexr
 
I use regex101
It has a debugger
 
@Rapptz chat.stackoverflow.com/transcript/message/18185820#18185820 Irrelevant. But regardless, the question was answered, and maybe I should have had adhered to the public service announcement.
 
@Abyx Use A\s*B.
for some reason your search is greedy
 
6:01 PM
@Rapptz nope, I also wanna match "A+B"
i.e. I really need that [^;]
 
well
just do A[^;\n]*?B then
 
(actually I wanna find statements like A _ = expr(B); )
@Rapptz nope, I can't use ^\n
 
well, don't know what to tell ya
you need better search strings
 
yeah... thanks anyway
@Rapptz I'm trying to find stuff in C++ code =(
 
your search strings atm are really bad though
i.e. A B
 
6:06 PM
well I need to find all statements which contain int type and foo identifier to replace that int with int64 (if that int depends on that foo thing type)
a C++03 codebase. auto would make such refactoring much easier
welp, 22:10 - it's time to go home
 
why not just do a find/replace for int\s*foo\s*=.*?;?
oh and bye
 
hmmm, for std::array<SDL_Rect, total_tiles> wall; i used std::get<total_tiles>(wall).x;
 
USA: Where people freak out about Ebola but don't vaccinate their children.
 
@cyberspace009 out of bounds
 
yup
std::get() is is used to fetch an element but not the whole size of the array I suppose. Well, it is true since I got it to compile when I have std::get<1>(wall).x;
 
6:17 PM
I'll use my frying pan's size as base size for the levels in the game
the kitchen's length is 40.5 frying pans
this should be fun
orcs should be ~7 frying pans in height
 
@EtiennedeMartel well... to be fair, it's not like you can say 'told you so', there simply is not Ebola vaccines... but yeah, I'll say it one more time, GET YOU SHIT TOGETHER AMERICA!
 
@thecoshman Ebola is not dangerous, at least not in the US.
It's a huge problem in Africa.
But not in the US.
 
@thecoshman How can we if our government is dumb
 
@cyberspace009 How can a political entity be dumb?
 
@EtiennedeMartel well, it is. It's highly likely that if you catch it, you will die, it's just not that cotagious.
 
6:28 PM
@thecoshman Which is why it's not dangerous.
Contagion is the important thing here.
 
true true
 
@EtiennedeMartel well, the war with Iraq is an example.
 
@cyberspace009 You seem to have a simplistic view of how politics work.
 
but still, the common cold is very contagious, but I doubt many would call it it dangerous.
 
@thecoshman What you need to be scared of is influenza.
 
6:29 PM
@EtiennedeMartel vOv american
 
the majority voted to go to war.
 
@cyberspace009 Weren't they democratically elected?
 
@EtiennedeMartel yeah. Everyone fell for their lies.
 
@thecoshman Do you even know anything about Ebola?
Honest question, a lot of people who talk about it have no idea how the disease works.
 
You need direct contact with infected fluids to catch it, IIRC.
 
6:31 PM
@Rapptz 'anything', yes.
@EtiennedeMartel as I understand it yes.
but I'm not worried about it
t-virus, now there's something to worry about
 
@EtiennedeMartel Yes.
 
@cyberspace009 So the people is to blame, then.
 
@EtiennedeMartel Who can we trust? The political system in the US is fucked up. My eyes are wide open now. BTW, never voted because to me it never counts.
 
@cyberspace009 *facepalm*
 
how do you expect to change what you dislike if you don't even vote?
people with your mindset are why the political system is fucked up
you have a vote, use it
 
6:36 PM
I lost faith in the system. What should I believe in?
 
@cyberspace009 That right there is part of the problem. Judging from your last few messages, the people that always vote are most likely those that you don't share your political views with. So if you remain apathetic, how will anything ever change?
 
@Praetorian I have trust issues.
 
@cyberspace009 And your solution to that is to trust others to make decisions for you?
 
Unlikely to have mattered, but FWIW, there was no election between Sept. 11 2001 and the authorization of force act for Iraq
the people never voted on war
 
@Praetorian nope. I rather make my own decisions. I am always an outcast
 
6:39 PM
people don't vote on wars ever
they don't have that power
 
@Collin What about being drafted? Would you still go?
 
I mean, no-one campaigned on going to war with iraq
 
there hasn't been a draft since 1973.
and chances are there will never be one
 
it can still happen, though.
 
it'd be political suicide and idiotic
 
6:41 PM
for sure
 
the chances of it happening are so close to zero it might as well not exist
 
@Rapptz I hope you're right.
 
Being afraid of the government... is that exclusive to the US?
 
say WW3 does happen. What are the chances of being drafted from a new president with executive orders. And, they are from political party you dislike.
 
For democracies, at least.
 
6:43 PM
political parties are irrelevant in the face of war
anyway what you need is a good government class
 
If you're getting shot at, you usually leave petty politics for later and shoot back.
 
@Rapptz All they taught us in Government class was US politics and government.
 
I don't think they did a good job at that if you're scared
 
Well, isn't "Don't trust the government" a central tennet of libertarianism?
 
no
 
6:51 PM
@Rapptz I am afraid to make the wrong choice.
 
@Rapptz Or is that a consequence of the whole "the government is always incompetent at everything" view?
 
it doesn't have anything to do with trust
are you actually talking about libertarianism or anarcho socialism?
 
@EtiennedeMartel I thought that was more of a Republican, capitalist view - government is incompetent at everything, private enterprise FTW
 
@Rapptz Isn't libertarianism a different flavor of anarcho-capitalism?
 
Uh..
I said anarcho socialism
anarcho capitalism is on the polar end of anarcho socialism
 
6:54 PM
I know.
 
libertarianism is an umbrella term
you're discussing things that are a little more specific
libertarianism is just the concept that the government shouldn't interfere with the ownership of private property or your personal freedoms, etc.
it's an umbrella term for that
 
Aaaaah.
 
everything else (anarcho socialism, et al) are things that apply the concept
 
This is weird
 
what is?
 
6:56 PM
Openshift is serving an older version of a CSS file instead of the new version.
If I access the server and check the file manually, the new version is stored.
Tried cleaning up the application. Nothing.
Tried disabling the cache in Chrome. Nothing.
 
I should start running again
I miss running
 
I should start running again.
I hate running.
 

« first day (1392 days earlier)      last day (3562 days later) »