« first day (1801 days earlier)      last day (3146 days later) » 

3:00 PM
@AnastasiyaAsadullayeva It's down.
 
Should I ask on SO
 
@AnastasiyaAsadullayeva supernode down
 
@EtiennedeMartel a soap box??? I give up
 
@ʎǝɹɟɟɟǝſ It gives you them. It doesn't "force" your hand.
 
Really? Wow, talk about resilience lol. gj MS
 
3:00 PM
A soapbox is a raised platform on which one stands to make an impromptu speech, often about a political subject. The term originates from the days when speakers would elevate themselves by standing on a wooden crate originally used for shipment of soap or other dry goods from a manufacturer to a retail store. The term is also used metaphorically to describe a person engaging in often flamboyant impromptu or unofficial public speaking, as in the phrases "He's on his soapbox", or "Get off your soapbox." Hyde Park, London is known for its Sunday soapbox orators, who have assembled at Speakers' Corner...
 
user406009
@AnastasiyaAsadullayeva company firewall against Skype perhaps?
 
@ʎǝɹɟɟɟǝſ std::string x = "Blahblah"; std::string_view x1 = x; std::string_view x2 = x1.remove_suffix( 4 );
 
That's, by the way current standard code.
 
@Lalaland I'm home.
 
user406009
@AnastasiyaAsadullayeva government firewall?
 
Doesn't block Skype.
And the guys above said it's down.
 
If you "remove suffix", the const char* is not longer null-terminated at the x2.c_str() + x2.size();
Which means it works with 0 of the functions provided by the std::
 
user406009
Who cares about null termination?
 
hey guys, I have a question, how would you describe a memset and when would you use one?
 
3:01 PM
Never
 
@ThePhD And?
 
@ʎǝɹɟɟɟǝſ When you're ready to use your brain, we'll have a conversation.
 
@ThePhD lol no
 
@ThePhD it's experimental, what did you expect? :(
 
Kinda like a multibag of mems but with maximum multiplicity 1.
 
3:02 PM
std::string_view stores the pointer to the string + the size.
Once the C-style string is aliased by std::string_view it becomes just like any other string view.
 
... Which makes it not-a-c_str
 
@ThePhD No need to be a jerk.
 
Wow, so logic
 
user406009
@ThePhD why do you want null termination!
 
@EtiennedeMartel ok.
 
3:03 PM
Hi
 
@KalaJ take memory and set value to X, you'd use it (mostly in C) when you want to take a struct or some other piece of memory and initialize it to 0.
 
inb4 question
 
@Lalaland because std:: functions don't work with string_views :v
 
@TonyTheLion Or you could just write struct X lol = {0};
 
3:05 PM
Nope no question
 
@fredoverflow that works in C?
 
can't always succeed at inb4 (also hi)
 
@Grimbode well hi then
 
@TonyTheLion Yes, that will initialize everything to zero.
 
@Grimbode Hello.
 
3:05 PM
@TonyTheLion, ah great. Thank you. So it's mostly used for initializing?
 
@fredoverflow TIL
 
@fredoverflow what's with the two logos
 
user406009
@melak47 I can't think of one that would be a problem for a compiler
 
@KalaJ yes, from what I can tell. I mean I'm no C expert here
 
Just discovered this chat and wanted to chill with awesome c++ people
 
3:06 PM
@Grimbode yes we're awesome.
 
prepare to be disappointed
 
Why :V
 
also important
 
So, doesn't have a question. Wants to be here. Returning Lounger probability... Estimating...
 
3:06 PM
@melak47 I photoshopped GIMPed the second logo to look like a, well, you know...
 
@Grimbode If you're French, you can discuss cheese and wine with the other frenchies.
 
@ThePhD Thank you!
 
---strikethrough---
 
Thanks ThePhD always ruining everything for everyone
 
3:07 PM
Probing Uranus
 
 
@fredoverflow I don't see what you mean
 
Comme tu veux :V
 
@melak47 What does the logo on the right look like to you?
 
3:07 PM
no french allowed
 
@AnastasiyaAsadullayeva Hey, I wanted to do that.
 
@AnastasiyaAsadullayeva :c
 
too slow brah
 
@fredoverflow the android logo waving goodbye to someone
 
yes we can discuss cheese and wine @Mr.kbok
 
3:08 PM
---
 
user406009
@ThePhD anyways, what std apis do you need that rely on null termination. I am sure there are alternatives.
 
_
 
delete all the defstructors!
 
This Volkswagen scandal is both very entertaining and terrifying at the same time
 
@ElimGarak There's more than one?
 
user406009
3:09 PM
@AnastasiyaAsadullayeva why
 
@AnastasiyaAsadullayeva Not as scary as the Toyota ECU stuff
 
@Lalaland All of the parsing APIs.
 
@Lalaland What do you mean "why"
 
@AnastasiyaAsadullayeva yup. It'll be quite expensive. I wonder why they thought they'd get away with it.
 
@Lalaland like he said earlier, atoi takes all the digits it can find until it finds \0. so a with a string view of size 3 into "12345", atoi sees all the digits, not just "123"
 
3:10 PM
@Prismatic That's accidental, the VW thing is willful malice!
 
I thought about using streams but those have a bunch of internal applications and I don't know how to exactly make an istream without incurring some kind of allocated overhead, e.g. to have it just reference an existing view of memory.
@Lalaland Also what @melak47 said.
 
@Grimbode Yeah no idea either :/
 
@Grimbode The proposed punishment is less than their single year's profit (2012).
 
@ElimGarak I heard it was at 18 billion?
 
Y'all should read the court transcripts for the Toyota ECU stuff. Google "Barr Toyota court"... its a good read.
 
3:11 PM
@ThePhD just do your own parsing :v
 
And their profit in 2012 was ~22 billion USD.
 
@Grimbode Up to 18 billion.
 
and make it constexpr while you're at it :)
 
@melak47 I am right now: I was trying to shorten my code.
@melak47 :v
Can const char* be used in constexpr ?
 
@ElimGarak Profit? That doesn’t sound right.
 
3:12 PM
Also Google keeps stomping on the French laws lololol how unexpected
 
Yeah, profit. Revenue was $200 billion (for 2013).
 
"We are a big company who know better than a governmental entity what we should do or not"
 
that’s a lot of countries put together
 
@AnastasiyaAsadullayeva link pl0x?
 
user406009
@ThePhD use alloca to create a null terminated temporary copy. Then memcpy, null terminate, and then call itoa
 
3:13 PM
I've downloaded this program to take GIFs of screen captures.
 
user406009
Simple
 
It even allows you to get a URL to the GIF directly
 
@ʎǝɹɟɟɟǝſ what program?
 
3:14 PM
So CNIL will sue for a whooping 300 000 € and Google will laugh and keep pissing on these kind of laws
 
user406009
O(n) with no heap allocation.
 
What is 300 000 €, a few minutes of operations for Gargle?
 
lol 300k
 
I wish these big companies collapsed
 
it's like one programmer's salary
 
3:16 PM
@Mr.kbok I don't get paid nearly that much :(
 
:V yeah
 
> contre son grè
 
@TonyTheLion you work at google? :D
 
@AnastasiyaAsadullayeva and then what?
@Mr.kbok no
 
it’s spelled grès
 
3:16 PM
@TonyTheLion Keep in mind that the cost of a programmer is roughly 2.5x his salary, at least in France.
 
@Mr.kbok not sure what it is here, but I doubt its that much
 
@AnastasiyaAsadullayeva I wish Google would at least pay their fucking taxes
 
@Mr.kbok Good start
@TonyTheLion Happiness
 
@AnastasiyaAsadullayeva <3
 
user406009
@AnastasiyaAsadullayeva Why do you think it's scary? There was no consumer harm.
 
3:17 PM
@LucDanton Journalists make a fuckton of spelling mistakes these days, it's really annoying
@Lalaland What?
 
@AnastasiyaAsadullayeva Haven't they heard of spillchuckers?
 
@Mr.kbok Yeah, instead of just doing everything from Ireland.
 
@Lalaland Harm to the environment
 
Ell
@Mr.kbok to whom do they owe taxes?
 
@Lalaland I think somewhere it said that VW cards polluted 30x over the limit, so there was harm.
 
3:18 PM
emissions are harmful to the environment
fuckers should pay for that
 
@ThePhD don't think so :/
 
@ScottW oh bby
 
@AnastasiyaAsadullayeva good editing costs money so stuck between a rock and a porous, crumbly place
 
@Ell to the French government. They don't pay taxes on their business here.
 
3:19 PM
@melak47 Maybe I can write a _cs compile-time-string literal function. :D
 
@ʎǝɹɟɟɟǝſ wtf
 
@ThePhD getting the character sequence as template arguments only works for number literals :(
 
@Mr.kbok Oh, not just the French government. Tax evasion is pretty big for Google.
 
@melak47 Damn.
 
3:20 PM
Did you know: McDonalds declares all of its French restaurant as being in deficit to avoid paying taxes in the country.
 
@EtiennedeMartel sure.
 
if you can encode your strings into base 10 or 11 though...
 
so you guys think that if some government force Google to pay taxes tomo, that Google won't find another loophole that allows them not to pay it? Or perhaps use some lobbyists to help change the law again.
 
@AnastasiyaAsadullayeva The mining industry does the same thing here.
 
I mean call me cynical, but Google has moneyz
 
3:21 PM
@AnastasiyaAsadullayeva I don't believe you :V. McDonalds is sooo expensive here...
 
and they can do whatever it takes to get what they need
 
They're digging tons of minerals but never seem to make any money.
 
user406009
@TonyTheLion They will not pay taxes as long as it's cheaper to avoid them.
 
@Lalaland Exactly
 
@ScottW I don't like his sense of "humor", I barely find anything he says interesting or useful, I cannot talk to him or reply to him anyway so why bother?
 
user406009
3:22 PM
But usually, labbyists are quite cheap.
 
@TonyTheLion The real issue is that the government doesn't want Google to pay taxes that bad
 
Nobody wants to pay taxes.. especially in France.
 
@Grimbode It's artificial
> En facturant ces "services" à des niveaux artificiellement élevés, la maison mère européenne rend mécaniquement ses restaurants déficitaires (ou à la limite du déficit) et concentre le maximum de bénéfices dans sa filiale au Luxembourg où ne travaillent que 13 personnes, contre près de 69.000 salariés pour la France, selon les chiffres d'Europe 1.
 
user406009
@ʎǝɹɟɟɟǝſ What did he plonk you?
 
@ʎǝɹɟɟɟǝſ Okay, move on then.
 
3:23 PM
Bah.
Writing my own functions. :<
The thing everyone punches me in the mouth for.
 
That's pretty impressive.
 
Damn you, c_strings
 
@Mr.kbok Off course.
 
Damn you to hell.
 
user406009
@ThePhD Why don't you just use alloca to create a little wrapper function?
 
user406009
3:24 PM
Like I suggested?
 
@Lalaland Because alloca is A) mildly dangerous and B) nonportable
 
What are you working on @ThePhD?
 
@Mr.kbok Compiler.
... For an existing language, before you accuse me of being rightfold. :P
 
user406009
@ThePhD Ok, malloc then.
 
And for a space that hasn't quite been occupied by others before.
 
3:25 PM
@ThePhD which is?
 
fun fun
 
The HQ-9 (Chinese: 红旗; pinyin: hóng qí, "red flag" or "red banner") is China’s new generation medium- to long-range, active radar homing surface-to-air missile. Unlike the PESA radars of the US MIM-104 Patriot/Russian S-300/S-400 systems, the HQ-9 uses a state-of-the-art AESA radar. The naval HQ-9 appears to be identical to the land-based variant. Its naval type HHQ-9 is equipped in the PLAN Type 052C Lanzhou class destroyer in VLS launch tubes. The land-based HQ-9 system has an anti-radiation variant, known as the FT-2000 for export. The export designation for air defense version is FD-2000 (with...
?
 
user406009
@ThePhD And alloca is available on every platform worth caring about.
 
@Mr.kbok HLSL/GLSL lexers/parsers, and when I have the time (HLSL AST representation) -> SPIR-V.
 
user406009
3:26 PM
POSIX + Windows.
 
look at this pixely camo
why do they do this?
 
Google "HQ9 esolang"
 
@Mr.kbok Urban setting.
That kind of camouflage is used to break patterns.
 
I just checked, alloca is not among the builtins GCC considers constexpr :p
 
to break patterns?
 
3:29 PM
Hahaha Saudi Arabia elected Human Rights Head of the United Nations what a (sad) joke
 
@melak47 Sadface.
 
@Mr.kbok When that is standing in front of similarly colored buildings, it doesn't look like a missile launcher, it looks like it's part of the building.
 
user406009
@melak47 Wait, how could alloca ever be considered constexpr?
 
@Mr.kbok Where? I don’t see anything on my screen.
 
user406009
The address it returns depends on the current stack pointer.
 
3:30 PM
well, the compiler has a stack, right? :p
 
Are our leaders really that retarded/corrupt/both
This is very depressing
 
@ThePhD I knew it
 
user406009
@melak47 Yes, but that has a different value than the builtin one.
 
@melak47 What gave me away? :c
 
user406009
I still don't know how any of the floating point junk can be constexpr.
 
user406009
3:31 PM
Due to the number of runtime floating point flags.
 
@EtiennedeMartel but why pixely?
 
@AnastasiyaAsadullayeva Not even The Onion?
 
@Lalaland There’s a C++ exception for that.
 
@Mr.kbok Because buildings are not curvy like foliage.
 
Morwenn!
Good morning.
 
3:31 PM
@Morwenn no
 
I.e. constexpr floating point math is allowed to be different than, well, the usual one.
 
@EtiennedeMartel okay
 
@ThePhD Thanks, but I've been there all day long :)
 
user406009
@LucDanton Do we have any guarantees when the constexpr versions are called vs the non-const expr versions?
 
user406009
So we could cause a bug by stubbing out a value with a constant?
 
user406009
3:32 PM
That's scary.
 
@Morwenn Really? o.0
 
@Lalaland The typical example is array bounds/type-level stuff, i.e. using foo = int[expr]; you know that expr is compile-time stuff.
 
user406009
blah(3) returning different results from int a = 3; blah(a);
 
That same expr in another context may not be compile-time though!
 
@AnastasiyaAsadullayeva Wow, that's really sad :(
 
3:33 PM
@AnastasiyaAsadullayeva ... Lol. wut.
 
@ThePhD Yes, for at least the previous 6 hours :p
 
Yeah. The kind of thing that makes me hate this society.
 
user406009
Isn't Saudia Arabia like near the bottom of the list as far as human rights are concerned?
 
user406009
Every couple of months you hear another story about sex slaves, or a beheading, etc, etc.
 
Well yes that's the point
 
3:34 PM
... But the UN is the one that has judged Saudi Arabia as crappy. How did they make that decision?
 
@AnastasiyaAsadullayeva They remind us to check our privileges by stealthily financing terrorism. That deserves an award doesn't it?
 
@ThePhD Money?
 
Are these decisions / meetings public?
 
Probably not.
 
@ThePhD Nothing is public these days, unless you belong to the leaders/riches, you're not in the loop.
FUCK EVERYTHING AND EVERYONE
I say we didn't decapitate enough people during the French revolution
 
3:36 PM
Much anger
 
Fuck toute.
 
So.
The mailing service at my school has held my package hostage for 10 days.
I think I'm going to file a complaint.
 
@ThePhD Did it contain a clock?
 
@Morwenn It contained a fan and a mouse.
 
@ThePhD what are their demands?
 
3:37 PM
@ThePhD heyyy bby I can hold your package
 
@melak47 "It should be processed by tomorrow, just come back then."
@AnastasiyaAsadullayeva Only if you'll let me caress your gift tenderly.
 
Done with work. Ttyl. Nice chat room. I'll be back for sure... maybe... idk.. we'll see.
 
@ScottW WAKE UP CHECK.
 
Do come back
 
@Grimbode Come back soon!~
 
3:39 PM
@EtiennedeMartel Nique all
@AnastasiyaAsadullayeva You should like the new series Mr. Robot :)
 
Nickall crème.
 
Good night everyone
 
I've got a coworker who always speaks well in a good french, almost classy.
 
@AnastasiyaAsadullayeva rip in peas
 
@AnastasiyaAsadullayeva Good, good, let the anger flow through you
 
3:44 PM
Once, he was struggling with some shitty bug that would drive anyone crazy and just let go a wonderful "Nique ta race!"
(french ruder equivalent for "fuck you" I'ld say)
 
@AnastasiyaAsadullayeva Night night.
 
everything is equivalent to fuck because they don't have any cuss words
 
> Literally "fuck your race" translates as "fuck you" or "fuck off"
 
why can't constructors deduce the class type?
 
what do you think this is, Rust?
 
3:47 PM
@Mr.kbok Aren't they going to have automatic type deduction a la templated functions in C++17?
 
Well, I'm asking about C++rightnow
 
Ah. Because no one thought to include it, I bet.
 
^the usual answer
 
wtb template <auto X>
 
fair enough :)
 
3:49 PM
using __this_type = class_name;
__this_type(lol kek) {}
~__this_type() {}
 
> Code snippet is not found. Confirm that the code snippet name 'TabControlContentTemplate_snip' is correct.
Thank you, MSDN.
 
As much as I like parametric polymorphism and type inference I think that pretending C++ is a good fit for either is far fetched.
 
@Elim what about 770 vs 970? I know of the whole fiasco but I'm wondering if it might still be worth it considering actual specs.
970s seem kinda cheap now.
 
@Mr.kbok Because some things are not trivial to deduce. I think that the proposal covers some of the problems is you're ever interested in reading it.
 
3:58 PM
@Griwes where u sittin?
 
I am trying to understand the implementation of std::map. I made a program that tries to make pointers to values in the map. Nothing I try seems to point to the correct memory. Is there no way to access the proper memory location of the data in a map?
Hoping somebody here knows the answer, cause I can't figure out if I am missing something or if what I am attempting is impossible.
 
I think you need to show us code
 
@TonyTheLion why are you encouraging this :D?
 
We're not psychic really, and also a question on Stack Overflow would be useful
 
Alright I figured it might be much to ask in a chat.
 
4:01 PM
@ScarletAmaranth oh yea, I was having a non-Lounge moment in the Lounge
 
@JoshC auto * p = &yourmap[yourkey]
 
@fredoverflow Essentially what I was trying. Memory addresses seem to differ doing that. I am going to post a question about it like was suggested.
 
@EtiennedeMartel I like that :)
 
@JoshC Seem to differ? Differ from what? You should really try to write a clear question on SO...
 
they all differ from 3
 
4:13 PM
@EtiennedeMartel It's pretty great, it's just that I kinda understand the lyrics and they're hilarious, diminishes the epicness a bit. :D
 
@fredoverflow Ya that is what I am saying.. I suspected a problem with implementation of std::map so I was hoping somebody would just be like OH god no you're an idiot for this reason.. you can't do that at all. Obviously at this point it will require an example of the problem. Which I am working on now =)
 
@JoshC Let me take a guess. You're an idiot because you didn't realize STL containers store copies of objects, not the originals.
 
Well no not precisely. I do realize that. I am trying to access the copy
 
Well, in that case we'll be waiting for your question...
 
@fredoverflow he he he, angry man :P
@fredoverflow that example of @notnull... that could be more or less any language, no?
(reads some more) ooooh
 
4:24 PM
@thecoshman The blog article is terrible and doesn't do Kotlin any justice.
 
@fredoverflow oh no, terrible article.
but I do like that idea of Bar and Bar?
 
2
Q: Are members of a POD-struct or standard layout type guaranteed to be aligned according to their alignment requirements?

Ross BencinaGiven a POD-struct (in C++03) or a standard layout type (in C++11), with all members having a fundamental alignment requirement, is it true that every member is guaranteed to be aligned according to its alignment requirement? In other words, for all members m_k in { m0 ... mn } of standard layou...

A well worded question
 
I call bull shit
 
@thecoshman Yeah, non-nullability is a really nice thing to have in the type system.
 
4:26 PM
@fredoverflow I like pattern matching on it to handle it too
it's a nice way to handle when you want to take null, but then optional vOv so meh
 
Kotlin does not have pattern matching yet.
 
user1804599
I have a new idea for a programming language.
13
 
mattern patching?
 
user1804599
I'm thinking of targeting .NET but I'm not entirely sure, since it lacks stackful coroutines.
 
Oh noes, how are we going to live without stackful coroutines?
(What are those?)
 
user1804599
4:29 PM
@fredoverflow Threads that are not necessarily scheduled automatically.
 
user1804599
Basically, coroutines that have their own call stack.
 
user1804599
Wait, .NET has guaranteed TCO doesn't it?
 
user1804599
Maybe I can implement call/cc.
 
Ell
call/cc is cool
cool/cc
 
4:45 PM
@fredoverflow Haha, I was an idiot. I thought it was the map returning a copy or something silly. I was passing a copy to my lambda.. cause that's what std::thread does by default!
 
I've debugged my mouse
once I press the middle button really hard it starts working again
I hope roccat starts selling mice in romania again soon
 
Can't wait for CppCon videos to be released
~35 days to go
 
@TonyTheLion Worthy of the finest answers! :-)
And I do mean answers. For once I won a FGITW contest (sort of) but @Columbo posted a fine answer too.
 
@R.MartinhoFernandes 970 definitely, it is still a terrific card. And most self-respecting games today never really bounce that top, hence no access of the slow, separate 0.5 GB. Besides, it is still 3.5 GB over 2 GB, so definitely go for it. Not to mention it is 12_1 FL.
 

« first day (1801 days earlier)      last day (3146 days later) »