« first day (2758 days earlier)      last day (2182 days later) » 

12:45 AM
@StackedCrooked No, but the topic is recent
 
 
7 hours later…
7:25 AM
Anyways this room needs more social degenercy or C++
Fuck. With this room dead, how am I going to find women of color?
 
8:16 AM
@user703016 anet has just released this new take on an old song (you might also like this one, who knows)
 
 
2 hours later…
9:54 AM
Hi remaining loungers and occasional lurkers
 
RIP Lounge
Salvaging the last remnants - come to discord mes amis. @JerryCoffin @sehe @Mysticial @LucDanton
 
It hasn't work until now, there's no reason it would work today v0v
 
But why!
:(
I bet it's your fault Morwenn!
SEE WHAT YOU'VE DONE?!
 
not really x)
I've remained here for a long before joining the other people on Discord
and yet I'm still here :o
 
I forgot to ping @sbi!
 
10:07 AM
nice way of making him notice that you forgot him :p
 
Yeah they'll have to forgive me :).
I'm sure I forgot a few more.
I know for example StackCrooked is on discord just doesn't frequent much. And so is sehe come to think of it.
 
wait, I didn't even know that sehe was on the Discord o_o
 
We need to keep pinging the remaining folk :P.
 
folk is life /o/
I've got a vector of lists of move-only element, how do I emplace_back a new list containing a single move-only element without having to emplace the empty list first then push_back the new element?
Hum, everything compiles and runs without errors, how come...
 
nwp
-w -permissive -please
 
10:22 AM
lel
more like -Wall -Wextra -Wpedantic :p
I don't use -Werror and it would probably make the OSX builds fail
 
10:47 AM
Hm
 
@ScarletAmaranth Don't count on me. C++ questions & answers is quite ok, and I found myself liking cpplang slack more naturally than discord on the handful of times I looked. So, I'll be on SO until it completely dried up. Then I'll wait until I have enough time & interest to be on a chat again, and it would probably be cpplang slack.
 
Wouldn't have thought it'd be Ryan out of all people that left
 
I /am/ happy that I'm on discord, so I can get in touch when needed
@Morwenn I "exist"
 
@sehe that's a fairly overloaded word :p
 
nwp
Yeah, sehe just hates exes. But then again who doesn't.
 
10:52 AM
I don't have any, so I don't have anyone to hate v0v
I just brought some old code back to life
I liked the algorithm even though it's not performant ^^'
 
@nwp Oh I knew. I just consciously ignored it. I still have trouble doing the simplest tasks with ip [cmd] ..
@Morwenn Other things than performance have value too
 
@sehe Let's ask @Mysticial :p
 
He agrees.
 
Fuck, I've got a segfault >.>
 
See. Elegant like haiku.
 
11:04 AM
It's fun because I had no problem with MinGW-w64
 
You weren't aware of a problem :)
 
asan and Valgrind say it comes from somewhere
like from the call to list::merge
I thought it just wouldn't compile it there was a problem
 
 
1 hour later…
12:23 PM
@Morwenn Huh. Are you new to C++ ?
(j/k)
 
 
2 hours later…
2:29 PM
Does it make sense to use "using namespace std" when namespaces are used to avoid name collisions, apart from grouping things logically together? If i use "using namespace std", it ignores the purpose of a namespace in the first place and can lead to name collisions.
 
2:44 PM
Namespaces were originally intended to be composable. So you could define a "package namespace" by importing stuff from other namespaces into it.
 
using namespace is also useful to import UDLs nowadays
 
This is not much used in practice though. Probably because it can lead to subtle name-lookup bugs.
18
Q: Why is namespace composition so rarely used?

StackedCrookedIn his book The C++ Programming Language (third edition) Stroustrup teaches to define individual components in their own namespace and import them in a general namespace. For example: namespace array_api { struct array {}; void print(const array&) { } } namespace list_api { ...

@Morwenn Ah, right. Forgot about that one.
 
I wish I could write auto foo = std::(2h + 5min + 32s); instead of having to write using namespace std::chrono_literals; to use the UDLs
 
@StackedCrooked Yeah, for some reason they managed to get a good design with inline namespaces and UDLs without a second try :o
 
2:49 PM
@Morwenn looks a bit weird though
 
@StackedCrooked it's clearly a namespaced expression :p
 
But yeah, having to write using namespace std::chrono_literals; each time you want to use a literal is a total buzzkill.
 
plus it doesn't allow mixing equivalent literals from different sources in the same scope
not that I ever had to do that, but I almost only use the standard library so I'm not the best one to talk about that
 
@Morwenn One case where the literals seem useful is when defining global constants. But that would require importing the literals into your namespace. And that seems wrong as well.
 
yup
that's why I'd like those namespaced expressions I mentioned, but it would be a minor features for a minor inconvenience and probably isn't worth committee time
 
3:04 PM
You could initialize the constants with the result of a immediately invoked lambda expression (which imports the literals namespace). But that's just stupid :P
Most frustrating feature ever.
 
yup
 
 
4 hours later…
6:39 PM
In C++, how can I find next string in alphabetical order? I mean, I would like to have a way to put char string[] such that a goes to b, b goes to c,..., z goes to aa, aa goes to ab, ..., az goes to ba, ba goes to bb, ..., zz goes to aaa and so on.
 
sort your array?
 
@user2219896 are you saying you want to generate strings in that order? This is not built into C++. You have to write the code to do it yourself.
 
@Code-Apprentice Yes. I would like to learn how to compute MD5-hashes of strings given in alphabetical order.
 
@user2219896 that sounds like two different questions.
 
@Code-Apprentice I know. I already have a code to compute MD5-hash of a string. Now I need to generate all strings.
 
6:44 PM
okay...you might want to start by generating all of the strings from "a" to "z". Then you can use recursion to generate longer and longer strings.
 
7:01 PM
posted on May 05, 2018 by Scott Meyers

Addison-Wesley released Bill Wagner's new edition of More Effective C# last August, but I didn't find out about it and get a copy until a few days ago. The series editor is always the last to know! If you're a C# programmer, I encourage you to give the book a close look. It's easy to do that, because Bill and Addison-Wesley have made unusually generous excerpts available at the book's web si

 
7:31 PM
Also NUMA aritechtures have failed to deliver ram speed improvements, although perhaps higher ram capacities would be impossible otherwise.
 
 
3 hours later…
10:11 PM
My GPU implementation beat the reference java code by 234 times, I am the greatest
 
10:32 PM
> java
 
11:24 PM
Java does the C# bullshit where special functions (Hankel) are evaluated as doubles and then converted to float
But the real break through came when I iterated over the columns rather than the rows :-)
 
11:45 PM
 _Check_return_ __inline float __CRTDECL fabsf(_In_ float _X)
{
        return (float)fabs(_X);
}
lol fuck MSVC
One day the single precision revolution will come (the code above does an implicit cast to double)
 

« first day (2758 days earlier)      last day (2182 days later) »