« first day (1600 days earlier)      last day (3333 days later) » 

11:00 AM
fucking natives can't use their own language
 
user3010322
FOOKIN' NAYTIVS.
 
user3010322
So I don't know how it happened but I've become someone's Java tutor. Send help. ;~;
 
Did your power go out? @ScottW
 
@Rapptz you didn't happen to trigger the circuit breaker, did you
 
I just noticed 8 PM to 4 AM is 8 hours not 6.
 
11:04 AM
@Rapptz Welcome to duodecimal arithmetic.
 
I walked outside because I was bored and it was really bright outside.
Almost like it was ~5 PM rather than 12 AM.
 
only heard of sleepless in Seattle, never heard of sleepless in Detroit
 
When my stomach hurts I can't sleep.
 
> No word on when the power will be back on.
lol
top journalism
 
I slept almost 9 hours & a half again yesterday
 
11:07 AM
do they think this is twitter or something
 
DTE Energy officially said there were no estimates on when power will be back on.
What did you want them to say?
 
@Rapptz heh, I always intuitively get that wrong before correcting. Every... single... time...
@Rapptz I dunno a full sentence would have been nice
they've used street slang in a news article
 
Oh shit.
My mind filled in some words to make the sentence coherent.
Hate it when this happens.
Anyway it's CBS detroit
not exactly top notch journalism there anyway
just the first link that I found
 
@sehe not fun :/
 
user3010322
11:10 AM
TIL I hate iterators.
 
user3010322
... The end.
 
I forgot that I had to do other thingies
 
idgi
Joke about facials?
 
39
Q: C++ iterators considered harmful?

UnknownAt the Boost C++ Libraries library conference today, Andrei Alexandrescu author of the book Modern C++ Design and the Loki C++ library, spoke about why iterators are bad, and he had a better solution. I tried to read the presentation slides, but I could not get much out of them. Are iterators ...

@ThePhD Is that one beyond the end? ;)
 
11:12 AM
@Rapptz lol
(sry I had caps lock on)
 
night
 
@ScottW hi
 
@ScottW night
 
@ScottW night
 
> ranges have been added to the core library, including range concepts
 
user3010322
11:14 AM
@FredOverflow There's a special place for you in hell. :(
 
@Rapptz I think they were postponed to C++17 or later.
 
never heard of this
 
@ThePhD ..or possibly purgatory, if off-the-end is invalid.
 
what was it?
 
@Rapptz Look at the date. It's way before.
 
11:16 AM
I know it's old.
I don't recall hearing about ranges for C++0x.
Does anyone have a paper or something?
 
user3010322
View Template Library was its old name.
 
user3010322
It was thought up of and introduced aeons ago.
 
user3010322
And then the topic was swiftly dropped as C++0x stagnated.
 
m8 that's Niebler ranges from 2014
I mean for C++0x
 
user3010322
11:18 AM
That proposal mentions the View Template Library and gives some links. I don't know if it was formally proposed for C++0x.
 
googling it just leads me to stupid range based for
 
Good morning
 
@Rapptz Stupid range-based for? I like it.
 
this?
seems like shit if so
 
user3010322
Also, I would like to point out there is already a concept of ranges in the C++03 library.
 
user3010322
Or at least, it was there in C++03 for Microsoft when they made their <regex> library.
 
user3010322
See std::regex_match.
 
welp I'm going to earn 84.4% of what I'd earn on direct contract
 
@Rapptz yeah I can't find it
 
11:22 AM
actually this isn't as terrible as I made it seem
I mean it's meh but it's not awful
 
user3010322
> A CopyableRange owns the elements in the range and has a deep-copy copy-constructor.
 
user3010322
Oh no, it's awful.
 
user3010322
Ranges never own. Failure.
 
@BartekBanachewicz What do you gain from not going on direct contract?
 
@ThePhD Debatable.
 
11:23 AM
it's surprisingly difficult to find C++ history on range proposals
 
@Jefffrey -15.6% salary
 
> gain
 
There's no negative gain
 
@Jefffrey I am under national insurance, and I can calculate my purchases as company costs
 
11:24 AM
@Jefffrey That's very shallow minded
 
@LightnessRacesinOrbit The paper I linked above was apparently accepted because I found another paper removing it.
 
user3010322
@Rapptz TOP LEL
 
user3010322
I didn't expect them to accept it!
 
user3010322
Well, shit.
 
Oh no I lied.
 
11:25 AM
@Jefffrey when I cease to be a student, the difference will become smaller, and if I can spend enough on stuff that can be linked to my business, I can actually gain
 
It's another paper proposing the same thing while.. saying the opposite in its title..
..what
title: "Pairs Do Not Make Good Ranges"
proposal text: "The library provides a range utility class template that holds a pair of iterators. This class can store a view on any subrange, and can be passed as a Range parameter to the range-based for loop."
 
user3010322
.... Wat.
 
user3010322
Maybe they meant std::pair is not a good Range.
 
it literally uses std::pair
 
> struct range : pair<Iter, Iter>
 
user3010322
11:27 AM
... LEL.
 
This hurts.
 
@BartekBanachewicz Only -15.6% taxes?
 
Especially since it's the same type twice.
 
user1804599
Rust, apart from its module system, is very nice.
 
Here is like ~46%
 
user3010322
11:27 AM
I thinkk I'm going to propose std::reference to get around the UB that @JerryCoffin pointed out to me.
 
what UB
 
Maybe 36% if you can don't earn much
 
@Jefffrey 9% on direct, 18% + insurance - possible vat as a business
 
hey bby u wanna here hong kong tax rates
 
11:29 AM
98% taxes
 
7% to 15% depending on your salary
also there is no VAT ah ah ah
this city is a giant duty free
 
user3010322
@Rapptz If you use an incomplete class with std::reference_wrapper, you invoke undefined behavior because std::reference_wrapper was defined to have result_type and first_argument_type and second_argument_type. If you use it with an incomplete class, then underlying type machinery can't actually figure that out.
 
I'll be there in a week
 
@ParkYoung-Bae so not that big of a difference
 
11:30 AM
You can't have a reference to an incomplete type anyway
 
user3010322
It's a std:: example of not having a good single responsibility principle: it was done because people didn't want to std::unwrap() stuff before they started using it in code.
 
@Rapptz Er, you totally can.
 
user3010322
@Rapptz You totally can.
 
@Rapptz What
 
Really?
 
11:30 AM
Yeah
 
I thought that was just pointers.
Neat.
 
Same thing.
 
references are pointers
 
no they're not
 
Not exactly, but yeah they concept is that one
 
11:31 AM
@BartekBanachewicz .
 
yes, it's a pun, deal with it
 
they can get different optimizations but in essence...
 
@R.MartinhoFernandes I don't really think so.
 
@BartekBanachewicz Semantically they are different. Even without considering optimizations.
 
@BartekBanachewicz In essence they are not the same thing.
 
user3010322
11:32 AM
A reference is a non-nullable pointer. \o/
 
@ThePhD no no no no no no no no no no no no no no no no no
 
user3010322
@LightnessRacesinOrbit Yes yes yes yes yes!
 
BBL
 
A pointer is a nullable reference!
 
A reference is a non-nullable pointer in the same way that the literal "abc" is a non-countable number
 
user3010322
11:33 AM
@ParkYoung-Bae RECURSIVE DEFINITION, WHERE DOES IT EEND?
 
user1804599
A pointer is a pointer and a reference is a reference.
 
@LightnessRacesinOrbit That is not quite correct as "abc" is very obviously not a number
 
@ParkYoung-Bae And references are very obviously not pointers.
 
Guys please
 
user3010322
WELL THEY MIGHT AS WELL BE.
 
user3010322
11:34 AM
<strawhat/>
 
Tomalak had a 200 comment argument about this or something
 
@LightnessRacesinOrbit I'm going to need a citation
 
user3010322
@ParkYoung-Bae What have you done.
 
@ThePhD Look closely
 
user1804599
My code is good.
 
user1804599
11:35 AM
It works very well and it is easy to understand.
 
@ParkYoung-Bae [1] http://chat.stackoverflow.com/rooms/10/loungec
 
inb4 stars
 
@ThePhD I didn't really believe you until I looked it up. I didn't even know those typedefs were there lol
 
@ParkYoung-Bae nah he split the starbait up
 
user3010322
@Rapptz They're there for when you wrap things like std::binary_function.
 
11:36 AM
@райтфолд what about a reference pointer?
 
user3010322
BUT WAIT
 
user3010322
STD::BINARY_FUNCTION WAS DEPRECATED
 
user3010322
SO HAH
 
user3010322
WE DON'T HAVE TO WORRY ABOUT THOSE TYPEDEFS ANYMORE
 
user3010322
dances
 
11:37 AM
ITT ThePhD doesn't know what 'deprecated' means.
 
Removed in C++17.
 
I saw three of those babes in the backyard where I am constructing a secondary dwelling
 
user3010322
@R.MartinhoFernandes ^ what @Rapptz said.
 
user3010322
11:38 AM
reference_wrapper should be changed! \o/
 
The redback spider (Latrodectus hasseltii) is a species of venomous spider indigenous to Australia. It is a member of the cosmopolitan genus Latrodectus, the widow spiders. The adult female is easily recognised by her spherical black body with a prominent red stripe on the upper side of her abdomen and an hourglass-shaped red/orange streak on the underside. Females have a body length of about 10 millimetres (0.4 in), while the male is much smaller, being only 3–4 mm (0.12–0.16 in) long. Mainly nocturnal, the female redback lives in an untidy web in a warm sheltered location, commonly near or inside...
 
@ThePhD Well I guess technically it's not really removed. More like planned to be removed and may change at any given time.
 
user3010322
@chmod711telkitty You can't see it's back, so just assume it's harmless and walk away.
 
quest: find a valid use for std::binary_function so that it can't be removed from C++ and thePhd has to keep being update by it
 
@ThePhD Just because there's a proposal?
 
user1804599
11:39 AM
OK time to write a recursive decent parser.
 
@thecoshman It was already deprecated because it's superseded by std::bind and friends were better alternatives.
 
@райтфолд RIP
Recursive descent to Hell
 
user3010322
@R.MartinhoFernandes I'll fight for it to get it. I'll send all the e-mails in the world if I have to.
 
@R.MartinhoFernandes tbh I don't really see them reverting it.
 
user3010322
They'll never not remove it. D:<
 
user3010322
@chmod711telkitty You know ignorance is bliss for a reason.
 
@Rapptz must... find... use
 
@ThePhD not if you get bitten because you didn't know what it was
 
hmrh..
Is this real?
seems fancy as hell
 
11:42 AM
cppreference really could do with explanations of what these things can be used for and examples :\
 
Yeah.
 
didn't really expect it to be added
 
It was defined as a semantic thing before.
 
Xeo
@Rapptz Not all that fancy
 
@Xeo I mean for the standard library.
 
11:42 AM
Then someone managed to invent the idea to actually provide it.
 
Guys I know what INVOKE is.
Come on.
 
user3010322
Do you, Rapptz?
 
user3010322
Do you?
 
user1804599
Backtracking is so easy.
 
@Rapptz do you really know it?
 
11:43 AM
Yes.
 
oh, when did they start to add live demo's using coliru?
 
Xeo
a long time ago
 
2013
 
user1804599
Jison is terrible in that it doesn't support infinite lookahead.
 
user1804599
For whatever reason.
 
11:45 AM
ITT thecoshman keeps up-to-date
 
> What do drummers and guitarists do in common?
> The bassist's girlfriend.
 
what other things were added in C++17
 
user3010322
I think they're still fighting over <optional>
 
@thecoshman Bartek just posted a joke older than you. Better catch up quick!
 
11:46 AM
@Rapptz here's a new one, why did the chicken cross the road?
 
user1804599
This is so incredibly nice.
 
user3010322
struct derived : private base {};
 
user3010322
std::is_base_of<base, derived>::value; // False?
 
uh fucking java
 
@ThePhD Other way around.
Always messes me up too.
 
user1804599
11:48 AM
@ThePhD true
 
user3010322
@райтфолд Kinky!
 
@BartekBanachewicz where?
 
@ThePhD // true.
 
user3010322
UHGGUGHGUGHGUGH
 
user3010322
FUCKING std::string_view GET IN THE LIBRARY ALREADY FUCKIN' TITTERBUCKETS.
 
11:50 AM
@thecoshman national insurance web portal
lel, vortal :D
I need to digitally sign a document
 
Time to home go
 
and I've spent an hour trying to get java to work before realizing I chose wrong signing method
 
@ThePhD Already in GCC 4.9
 
user3010322
@ParkYoung-Bae Baaibaaai.~
 
11:51 AM
@BartekBanachewicz vortal of dooom
 
user3010322
Can you use std::enable_if on an implicit conversion?
 
user3010322
@Rapptz Do you know if table indices in lua can be non-integral or negative numbers?
 
user3010322
Like does mytable[3.14] work?
 
indices can be strings or numbers
> x = { [3.14] = 1 }
> =x[3.14]
1
 
user3010322
That's...
 
user3010322
11:54 AM
pretty wonky.
 
user3010322
Is that internally converted to a string as a key?
 
user3010322
Or is it really a double ?
 
user3010322
mytable = {}
mytable[3.14] = 20;
print(mytable[3.14]) // 20
print(mytable[3.15]) // nil
// dis gun b gud
 
> for k, v in pairs(x) do print(type(k), type(v)) end
number  number
 
user3010322
WELP.
 
user3010322
11:56 AM
So much for this being EASY.
 
@BartekBanachewicz would be funnier were it grammatically correct
 
learn to slang m8
 

« first day (1600 days earlier)      last day (3333 days later) »