« first day (1679 days earlier)      last day (3271 days later) » 

10:00 AM
Does someone understand this comment
 
what comment
oh
 
englando is hard
 
> the entire point is now that saying that & is equivalent to not having a ref qualifier is false
I can't parse that
 
fuck
me neither
the point is that saying & is equivalent to ~having a ref qualifier is not true
parsed!
the point is that saying (& == not having ref qualifier) = false
basically & == having ref qualifier
unless they're not opposites.
 
his avatar is me reading that comment
 
10:03 AM
> Qt and Linux hacker.

Free Software advocate.

Refined chef.
uh oh
 
Open Source recipes?
Hi Don.
Who's Lori?
 
> big hipster
> must enjoy dick
ugh I know what he needs
the order of overload selection
too lazy to look it up
 
all those retarded requirements on job offers
> must be passionate
> must be self-motivated
 
user3010322
@Rapptz Just convert it manually without windows. Jaysus that's terrible. D:
 
> excellent skills
 
10:06 AM
by Chef Excellence
 
@ThePhD I already do. On other OSes.
 
user3010322
@Rapptz Then just use that code!
 
while in reality what they want is "mediocre skills, able to work on tedious and boring tasks and deliver on time"
 
user3010322
It'd be identical.
 
dude wth are you doing on freelancing websites
you can't be THAT desperate
 
10:07 AM
nah I'm reading normal job offers
 
@ThePhD Windows' code is way way way way more optimised than mine.
Or yours.
 
I once saw a job offer on HTML5
 
Or most people I think
 
> Strong skills in C++ and other object oriented programming languages such as C# and Java
Experience with tools like Jira, Bamboo, Git, NUnit, XLDeploy or Cucumber
Knowledge of of Client/Server architecture
Fluent English
this is a no-bullshit list
 
requirement was "Excellent OOP knowledge"
 
10:08 AM
What they want & what they can get are two different things :p
 
> Experience with tools like Jira, Bamboo, Git, NUnit, XLDeploy or Cucumber
 
> Knowledge of of
 
I have experience with cucumbers and, XL deploy.
 
I have experience with GUnit
 
@buttifulbuttefly @ThePhD github.com/Rapptz/jsonpp/commit/… is this fine?
 
10:08 AM
@buttifulbuttefly Sasha Grey has that too
 
I think that's all I needed to do right
 
they should've said "experience with tools"
 
"like junior programmers"
AYYYYYYY
 
Requirements: don't be bad.
 
@Rapptz seems good to me
 
10:09 AM
alrighty
 
user3010322
@Rapptz Looks like it works.
 
user3010322
But at the same time, why the windows dependency. ;~;
 
user3010322
q_q
 
user3010322
Q_Q
 
Boom, time to go. Best luck to you all :)
 
user1804599
10:10 AM
AWESOME
 
-2
Q: How to become a (C++) Language-Lawyer

user1235183I find myself, from times to times, struggling with language problems. I often can't solve my Problems via popular literature like "A Tour of C++", "The C++ Standard Library", ..., But asking the Question here, i find a lot of people answering very quickly. How can i achieve the necessary knowle...

 
Well, recruitment agents have to do something to get paid ... I mean why else do you need HR, hiring manager, linkedIn, Stackoverflow career & job agencies all at the same time?
 
@ThePhD not too hard to make a conditional macro
 
@BartekBanachewicz it is a troll
 
omg the very second Vulkan question has just been asked
 
10:11 AM
time to ace it again
I'll start with "Hello, top user in reporting in"
 
We need to create enough jobs to keep unemployment rate down ... and all and make them work 10 hours a day too!
 
Ell
@BartekBanachewicz where?
 
don't you love human race & it's stupidity?
 
@Ell there are literally two of them now. It's not terribly hard to find.
 
10:13 AM
@AlexM. I have to admit that Velen is huge compared to White Orchard. So many side things to do. It'd probably take me days :(
 
in the old time ... just a boss decides whether to hire a person who wants a job there , now it's hiring manager through HR to Job agencies who then use websites to advertise a job
dumb humans
 
Ell
You mwqn on SO ghiugh
 
@user1235183 All is very simple.:) It is enough instead of asking questions answer questions quickly.:) For example I do this myself though I did not write even one program in C++ in my life.:) — Vlad from Moscow 2 mins ago
6
ahahahahahahahahhahaha
 
Xeo
Meh. Why can't you create an array with elements inline in a blueprint function parameter...
Damn you UE4
 
humans are dumb, if needs 1 person, make sure create a way to employ 5 people instead because ... alas we don't want anyone umemployed!
 
10:17 AM
@Ell excuse me?
 
but only poor people are umemployed, rich people are 'retired at early age'
 
@Ell You okay? Sounds like you have an aneurysm/
 
@Xeo just how much blueprinting do you use
 
Xeo
I'm trying a really bad hacky abuse right now
Basically reducing the blueprints to a general node / flow chart editor for some custom stuff we want
 
I don't think I'd want to use blueprints ever when I can write code
 
10:20 AM
UE C++ is p. bad
 
Xeo
@AlexM. Well, can't not use blueprints if you want to use the blueprint editor to make a flowchart. :P
 
@Griwes still Unemployed.
 
Xeo
@Rapptz the C++ part is mostly normal C++ vOv
> though I did not write even one program in C++ in my life.:)
that... says a lot
 
Yes. :D
 
10:22 AM
@Rapptz assassin's creed!!
 
how do I convert UTF-8 data to std::wstring again
 
Xeo
By crying
 
how is that even supposed to work
is std::wstring UTF-16? what if I have a character that takes more than 2 bytes in UTF-16 in wstring?
 
char16_t is
wchar_t is 4 bytes on linux distros
only windows afaik is 2 bytes
 
How can I write unit tests if I don't know the desired output?
 
10:24 AM
I see
 
pray to allah
 
@khajvah guess
 
@BartekBanachewicz there's wstring_convert.
but I'd stick with std::u16string and do conversion yourself
 
it does some magical calculations that I don't understand and a number appears
 
@Rapptz UE?
 
10:26 AM
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> utf16conv;
std::u16string utf16 = utf16conv.from_bytes(utf8.data());
 
Oh. Unreal Engine.
 
@buttifulbuttefly unreal engine
 
oh it seesm to work
 
the AC in the office is broken
it's gonna be a long day
 
@BartekBanachewicz I don't think it's UTF-16. C++ strings are just vectors of code units
 
10:27 AM
@BartekBanachewicz or so it seesm
 
@khajvah Take the output you get now and copy it to the desired output. I find that this works really well.
 
class WideString : public std::basic_string<wchar_t, std::char_traits<wchar_t> >
hmpfh. I need to end up with this anyway
 
wait why are you deriving from std::wstring?
 
odd
 
lol "you"
ha ha.
 
10:29 AM
the only encoding I see for string literals is UTF-8
u8"stuff"
but U"stuff" doesn't have any encoding attached to it
 
anyway it works
it has a BOM I think
but it works
 
you can change that you know
 
change what
 
the BOM
 
it's in the file.
should I remove it?
 
10:31 AM
@Rapptz You can probably put bad UTF-16 in u"" stuff with escapes etc. Not sure for U"" though.
 
@BartekBanachewicz well no
 
> Use of a BOM is neither required nor recommended for UTF-8, but may be encountered in contexts where UTF-8 data is converted from other encoding forms that use a BOM or where the BOM is used as a UTF-8 signature
 
you're doing utf-8 to utf-16 m8
 
is the BOM on the UTF-8 string or UTF-16 string?
 
10:33 AM
Oh, UCNs can’t be surrogates though. Then I’m guessing it’s all good?
 
@Rapptz on the UTF-8 string
so it's prolly in the file
 
@RichardDawkins As Jesus once said, “Blessed are rich pastors, for they deserve a private jet.” Wait, no he didn't. http://thinkprogress.org/economy/2015/05/21/3661864/prosperity-gospel-pastor-asking-church-buy-65-million-jet/
 
I think you can use std::consume_header to remove the BOM
should prolly sleep
@LucDanton wait wtf
 
@Rapptz true. Got that to work too, thanks.
 
> If the hexadecimal value for a universal-character-name corresponds to a surrogate code point (in the range 0xD800–0xDFFF, inclusive), the program is ill-formed.
but why
 
10:38 AM
prevents ill-formed UTF-16 in literals/identifiers
 
ugh sizeof(wchar_t) == 8 is valid
 
I like this guy's videos ahahah
 
You're on an issue-fixing spree @Rapptz
 
backlog!
@LucDanton so what if I want to use surrogate pairs
 
Meaning what?
You can index into the literal, I don’t know?
 
10:43 AM
std::pair<surrogate, surrogate>
 
@LucDanton e.g. "\uD840\uDC0C"
 
user1804599
I want to go to Israel.
 
user1804599
It seems like a beautiful place.
 
You’ll have to do it without string literals and without UCNs.
 
user1804599
I've never been outside Europe.
 
10:46 AM
how is that good behaviour :(
 
No ill-formed UTF-16.
 
well you could do "\U0002000C" I think
 
Cmon now, { 0xD840u, 0xDC0Cu } is hardly penalising given the low-level nature of what you are doing.
@Rapptz Assuming that’s the right one then yeah.
 
@LucDanton it gets ugly quick
 
@Rapptz It started being ugly at 'surrogate pair'. How does anyone review such code? I can’t check a pair by hand.
 
10:50 AM
hmm \U [8x hex] is the way to go I think
 
That’s something else.
 
This code is like, 50% macros
 
Namely, well-formed UTF-16 in a string literal with a UCN.
 
what was ill-formed about "\uD840\uDC0C" outside of C++ land
 
Try it in Python.
 
10:52 AM
>>> u'\uD840\uDC0C'
u'\U0002000c'
 
user1804599
Some universal character names can't be used.
 
user1804599
For some completely brain-damaged reason.
 
That’s the repr. Print it.
 
user1804599
@AndyProwl fix it anyway.
 
user1804599
Be strong, independent, black and woman.
 
10:54 AM
I think I've been strong enough
I cannot afford being fired
 
user1804599
But can being fired afford you?
 
Does that mean anything?
 
I'm having a bad day already
 
user1804599
Your day is bad and you should feel bad.
 
10:56 AM
I do
 
I really appreciate that \u and \U are not \x and that string literals are strictly about code points, not units. There’s room for the low-level stuff in the array literals.
 
@LucDanton I don't have the font for it
or well the character map either on my console lol
gonna head to bed though
I like \U.... better because it works better with kana
k bb
 
@Rapptz Codec won’t let me encode anything, so it’s UnicodeEncodeError for me.
 
it's the same error if you do \U0002000C
so not sure what it's proving
 
not on my end
then it gets printed
 
11:01 AM
> In C++, which is better i>-1 or i>=0
who the fuck comes up with these questions
 
@Rapptz I’m guessing it’s Python 2 vs Python 3.
 
AC got fixed omg
 
@buttifulbuttefly I assume you are talking about integers
 
user3010322
> Name: Creflo Dollar
 
user3010322
11:05 AM
Lel.
 
user3010322
Why would anyone be surprised he's asking for money.
 
user3010322
That sounds like a rapper's name.
 
@rightfold oh fuck off already
you're such an annoying little piece of perl sometimes
 
Ya know, the real reason it’s not allowed is probably economy of wording to ensure that only valid pairs appear in literals.
 
user1804599
Perl is awesome.
 
11:07 AM
If I have T& t, is typeid(T) always the same as typeid(t)?
 
@Rapptz Will the compiler check for well-formedness?
 
@butt aren't you getting off soon? you know, the friday afternoon drinks & to get ready for that 5am shower tomorrow morning?
 
@LucDanton Did your mom check for well-formedness
@chmod711telkitty I don't drink, thanks.
 
luc's mom is a compiler?
 
@LucDanton doesn't seem like it
thought it would though
alright now really time to disappear
 
11:10 AM
shit’s broken
 
@ThePhD the nightly show has been having a field day with him
 
@Rapptz good night day
 
wtf you stayed up all night @Rapptz?
(yes I am keeping a record of when the loungers sleep & getting up)
I could be a bot, which you would not know or be sure of ..
 
user1804599
We need more grawlixes in the room description.
 
user3010322
@chmod711telkitty I'd be more comfortable with you being a bot. It would help rationally explain a lot of things.
 
user1804599
 
Ven
@rightfold Why do they capitalize the last Word??
 
user1804599
Because otherwise it looks like shit.
 
Ven
you're rightfolding too hard
 
user1804599
> Here Are 15 Jokes Only Chemists Will Get
 
user1804599
I am not a chemist yet I get all of them. vOv
 
11:20 AM
 
user1804599
> If the Silver Surfer and Iron Man team up, they'd be alloys.
 
user1804599
worst pun ever
 
comedy gold
 
user1804599
> What do chemists call a benzene ring with iron atoms replacing the carbon atoms? A ferrous wheel.
 
user1804599
so bad
 
11:24 AM
> Firefox Will Show Ads Based On Your Browsing History
welp
time to ditch yet another browser
 
I'm still getting past Arsole
 
> This question doesn't make much sense. What does "popular" mean ? Reddit's Haskell sub has roughly half as many subscribers as the Java sub, and about 70% of that of C++. Does that mean that it is hugely popular, or that Haskell "won" ? Which metric would ? Why ? Would it even matter ?
 
..and I've started posting to the wrong room.
 
actually surprised about the numbers
 
Ven
@BartekBanachewicz it's sometimes marked as expired
you need to restart it a few times
 
user1804599
11:35 AM
@buttifulbuttefly what browser does Stallman use?
 
user1804599
Oh wait, he uses lynx.
 
user1804599
I remember.
 
@StackedCrooked I think typeid(t) gives you the dynamic type's id
 
That's what I wondered about.
 
user1804599
11:36 AM
@StackedCrooked no.
 
But then I started thinking that the reference-ness of t might also have influence.
 
user1804599
The latter may result in the type info for the dynamic type of t.
 
user1804599
The former results in the type info for T.
 
user1804599
typeid on an expression always results in the dynamic type of that expression if its static type is polymorphic.
 
Thanks professor Rightfold :)
Pee pee.
 
11:37 AM
what am I doing wrong
 
user1804599
@AndyProwl vtable
 
aah yes
 
@AndyProwl You need to compare &typeid(t)
In C++11 you can use std::type_index.
Which is super convenient.
 
user1804599
@StackedCrooked no.
 
@StackedCrooked No, I'm just a nobo and forgot that T must be polymorphic
 
user1804599
typeid returns a reference to std::type_info const, and operator== is overloaded for that.
 
@rightfold Oh.
Right, you in C++ you need to get a pointer to it if you wanted to store it.
 
@rightfold My first prototype for memory visualization ;)
 
user1804599
Nice!
 
user1804599
@StackedCrooked In Mill I do some ugly hacks regarding type_info.
 
11:41 AM
is this like VS's memory window
 
@BartekBanachewicz no; this one has pretty yellow values
 
user1804599
In order to make working with C++ types simpler, I create a subclass of std::type_info of which instances are Mill types. :D
 
@buttifulbuttefly it just needs to anneal
 
@ScarletAmaranth Weird, it does look yellow, although I specified ORANGE...
 
¬_¬ I'm sorry, I forgot how to pun
 
Ven
11:42 AM
mmh
 
user1804599
@fredoverflow Is this for Freducide?
 
@rightfold Yes, but I renamed it to kotlint.
 
@fredoverflow contrast thing with the gray bg maybe
 
I recently realized that type-info is basically a struct which will end up in the object code. And it will have an address there. And thus their address is a unique id.
 
@fredoverflow it's an orangey yellowy colour
 
user1804599
11:43 AM
@fredoverflow Why?
 
user1804599
Fred's Educational C IDE had such a funny abbreviation. :(
 
And then I realized each instruction has a unique address. And this enables debugging information. And exception handling. Etc.
 
@rightfold Maybe I'll re-rename it later when some of the basics actually work :)
 
user1804599
@StackedCrooked no.
 
user1804599
std::cout << &typeid(int) << '\n';
std::cout << &typeid(int) << '\n';
 
11:44 AM
shut up already
 
user1804599
The lines in the output of this program may be different.
 
user1804599
I don't know whether it's unspecified or implementation-defined.
 
user1804599
I think it's unspecified.
 
the reddit TIL icon is so cute I don't know why damnit :<
 
user1804599
11:45 AM
@fredoverflow Why do you implement C yourself?
 
user1804599
Use the parser and analyzer from clang.
 
In Soviet Russia, your behavior is undefined
13
 
@rightfold FECES?
@buttifulbuttefly that's a bold threat
 
user1804599
@StackedCrooked Fun fact: typeid(typeid(int)) != typeid(typeid(std::vector<int>)) in Itanium ABI-based implementations!
 
11:48 AM
In Soviet Russia, #undefining entities is the behavior of the KGB.
 
user1804599
std::type_info is guaranteed polymorphic, and Itanium ABI defines subclasses of it for different kinds of types!
 
@rightfold Why should they be equal? (typo?)
 
user1804599
All sorts of horrible cruft for virtual inheritance.
 
Oh, I see type_info's should be same type.
 
user3010322
@AlexM. So much fascination and wonder.
 
11:50 AM
@rightfold cool
I should abuse this somehow.
 
user1804599
@StackedCrooked poking around with the internals, you can get the type info of a base classes given a type info: mentorembedded.github.io/cxx-abi/abi.html#rtti
 
user1804599
class __si_class_type_info : public __class_type_info {
public:
  const __class_type_info *__base_type;
};
 
so my first interview is scheduled for Wednesday
 
user1804599
This may be used/abused for some things.
 
user1804599
Although I can't directly think of any use cases.
 
user1804599
11:52 AM
Other than implementing dynamic_cast.
 
@BartekBanachewicz "fizz buzz"
 
@rightfold Why does it need to store a pointer to its base type..?
 
user1804599
@StackedCrooked dynamic_cast
 
@StackedCrooked its*
 
@rightfold because fun and profit
 
11:52 AM
the downside is I don't know which company this is for
because I've sent too many emails already
oh well
 
@ScarletAmaranth Damn, I hate it when I mess that up.
 
user1804599
Maybe it's useful for implementing multimethods?
 
@StackedCrooked I hate when others mess it up ^^
 
user1804599
Or subtyping-respecting any_cast.
 
Ven
zend.com/en/resources/php7_infographic so, zend tried to compare performance of php7 compared of other stuff... but only the first implementation. only cpython, no pypy. on mri, no jruby
 
11:56 AM
@rightfold Oh, so it enables checking against the whole inheritance chain.
 
user1804599
@StackedCrooked Exactly.
 
I recall that some implementations of dynamic cast require string comparison.
 
user1804599
You can also obtain pointee types for pointer type infos.
 
This is so much faster.
 
user1804599
@Ven well, listing something which is faster would defeat the point of an ad.
 
Ven
11:57 AM
@rightfold but it's php. people are gonna notice
 
user1804599
Also, I didn't know people used PyPy and JRuby.
 
@Griwes Wow. Documenting this for <10k and posterity:
user image
8
 
user1804599
@Ven Mandelbrot sounds like a perfect program for Julia if you want a dynamically-typed language. :P
 
Ven
@rightfold probably
 
user1804599
Also, it doesn't list the programs used.
 
user1804599
11:59 AM
So it cannot be verified by anybody.
 
Ven
@rightfold we used it at $internship. jruby with some jvm-only server was 11x faster than mri+mongrel
 
user1804599
verrekte mongrel!
 

« first day (1679 days earlier)      last day (3271 days later) »